coupons.wxml
2.1 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
<!--pages/my/coupons/coupons.wxml-->
<view>
<view class='banner'>
<view class='iconfont icon-fanhui' bindtap='get_back'></view>
<view class='coupons'>优惠券</view>
</view>
<view class='tab'>
<view class='{{use===1?"use":""}}' bindtap='changeUse1'>未使用</view>
<view class='{{use===2?"use":""}}' bindtap='changeUse2'>已使用</view>
<view class='{{use===3?"use":""}}' bindtap='changeUse3'>已过期</view>
</view>
<block wx:if='{{use===1}}'>
<view class='item_list' wx:for='{{unuse}}' wx:key='{{item.id}}'>
<view class='list_character'>
<view class='money'>
<text>¥</text>{{item.price}}
</view>
<view class='sale'>{{item.title}}</view>
<view class='data'>有效期至:{{timeFormate(item.end_time,YYMMDD)}}</view>
</view>
</view>
</block>
<block wx:if='{{use===2}}'>
<view class='item_list' wx:for='{{used}}' wx:key='{{item.id}}'>
<view class='list_character'>
<view class='money'>
<text>¥</text>10
</view>
<view class='sale'>满200元可用(仅限蔬菜类目)</view>
<view class='data'>有效期至:2018/03/18</view>
</view>
</view>
</block>
<block wx:if='{{use===3}}'>
<view class='item_list' wx:for='{{over}}' wx:key='{{item.id}}'>
<view class='list_character'>
<view class='money'>
<text>¥</text>10
</view>
<view class='sale'>满200元可用(仅限蔬菜类目)</view>
<view class='data'>有效期至:2018/03/18</view>
</view>
</view>
</block>
</view>