chongzhi.wxml
1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<wxs module="g_filter" src="g_filter.wxs"></wxs>
<view class="container">
<!-- 封面 -->
<view class="banner-container"><image class="img-block" src="{{url + imgAd}}"></image></view>
<!-- 列表 -->
<view>
<!-- 标题 -->
<view class="title flex" bindtap="onClickTab">
<view class="t-item {{currentIndex == 0 ? 'active':''}}" data-index="0">待核销</view>
<view class="t-item {{currentIndex == 1 ? 'active':''}}" data-index="1">已核销</view>
</view>
<!-- 内容 -->
<view class="list">
<block wx:for="{{list}}" >
<view class="l-item" bindtap="goDetails" data-id="{{item.ID}}" >
<!-- 上 -->
<view class="{{currentIndex == 0 ? 'top flex':'flex'}}">
<!-- 左 -->
<!-- <view class="left">
<image class="img-block"></image>
</view> -->
<!-- 右 -->
<view class="right">
<view class="fs28 ellipsis-2 txt-justify">{{item.ActName}}</view>
<view>
<view class="price fs24">零售价:¥{{item.PosPrice}}</view>
<view class="date fs24">{{(currentIndex == 0 ? '兑换截止日期': '核销时间') + ':' + item.BeginDate + '至' + item.EndDate}}</view>
</view>
</view>
</view>
<!-- 下 -->
<view class="bottom" wx:if="{{currentIndex == 0 && g_filter.is_acting(item.EndDate) }}" >
<text catchtap="viewDetails" data-index="{{index}}" class="btn" >立即使用</text>
</view>
</view>
</block>
<nodata nodataContainer="nodata" wx:if="{{list.length === 0}}">暂无数据</nodata>
<view hidden="{{!noMore}}" class="no-more t-c" wx:if="{{list.length !== 0}}">- 已全部加载 -</view>
</view>
</view>
</view>
<qrcode id="qrcode" ></qrcode>