每日运势小程序
This commit is contained in:
19
DailyFortuneGuide/pages/history/index.ttml
Normal file
19
DailyFortuneGuide/pages/history/index.ttml
Normal file
@@ -0,0 +1,19 @@
|
||||
<view class="page">
|
||||
<scroll-view class="content" scroll-y="true" style="padding-top: {{safeAreaTop}}px;">
|
||||
<view class="empty" tt:if="{{!history.length}}">
|
||||
<text class="empty-text">{{emptyText}}</text>
|
||||
</view>
|
||||
|
||||
<block tt:for="{{history}}" tt:key="id">
|
||||
<view class="history-card" bindtap="handleViewDetail" data-id="{{item.id}}">
|
||||
<view class="card-header">
|
||||
<text class="card-date">{{item.displayTime}}</text>
|
||||
<text class="card-city">{{item.city}}</text>
|
||||
</view>
|
||||
<text class="card-summary" tt:if="{{item.summary}}">{{item.summary}}</text>
|
||||
<text class="card-summary" tt:else>鏈娴嬬畻宸蹭繚瀛橈紝鍙偣鍑绘煡鐪嬭鎯?/text>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user