user_coupon.wxml
4.78 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<wxs module="filter" src="c_filter.wxs"></wxs>
<wxs src="filter.wxs" module="util"></wxs>
<image class="xc-coupon-img" src="{{h_pic}}">
</image>
<!-- 券内容 -->
<view class="q_content">
<view class="item" wx:for="{{quan_list}}">
<view class="xc-coupon-frame flex-center">
<view class="coupon-frame flex rel">
<!-- 锯齿 -->
<view class="circle-frame abs">
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
<view class='circle circle-sawtooth'></view>
</view>
<view class="coupon-left rel {{filter.setcolor(item.UseObjectType)}} flex-center">
<view class="white oval abs" style='background: {{filter.setbgcolor(item.UseObjectType)}};' wx:if="{{item.ObtainTimes>0}}">
<view class=" xc-valuer">x{{item.ObtainTimes}}</view>
</view>
<view class="white xc-money-frame">
<view class="f_text">
<text class="xc-rmb-symbol">¥</text>
<text class="xc-rmb-val">{{item.CashSum}}</text>
</view>
<view class="coupon-explain" wx:if="{{item.BuySum==0}}">
无使用门槛
</view>
<view class="coupon-explain t-c" wx:if="{{item.BuySum>0}}">
满{{item.BuySum}}元可用
</view>
</view>
</view>
<view class="coupon-right flex-center rel">
<view class="coupon-annotation flex">
<view class="flex top-frame">
<view class="frame">
<!-- <view class="flex"> -->
<view class="coupon-wode ib flex ellipsis-2 ">
<text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(item.UseObjectType)}}
</text>
{{item.PrivilegeName}}
<!-- </view> -->
</view>
<view class="coupon-time">
{{filter.format_time(now)}}至{{item.Validay}}</view>
</view>
</view>
<view wx:if="{{item.Obtain>0}}" class="code-img" bindtap="show_quan" data-ind="{{index}}" data-now="{{filter.format_time(now)}}">
<image class="coupon-code" src='{{iurl}}/miniapp/images/user_r_code.png'></image>
</view>
<view wx:else class="code-img">
<image class="coupon-code" src='{{iurl}}/miniapp/images/hui-ewm.png'></image>
</view>
</view>
<view class="clik-get t-c white five-level-word abs {{filter.setcolor(item.UseObjectType)}} "
wx:if="{{item.ObtainTimes>0 || item.SecondNo==0 }}" bindtap="get_quan" data-ind="{{index}}" >立即领取</view>
<view class="clik-get t-c white five-level-word abs g_gray" wx:else bindtap="get_out" data-ind="{{index}}"
>已领取</view>
<view class="abs flex-vertical-between bottmo-explain" bindtap='clik_coupon' data-ind="{{index}}">
<view></view>
<view class="font-word flex">优惠券使用说明
<view class="circle circle-size flex t-c">
<view class="xc-jiantou"></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="xc-buttom "wx:if="{{item.is_open==1}}">
<view style="padding: 10rpx">
<text class="five-level-word explain-coupon">{{util.format(item.Remark)}}</text>
</view>
</view>
</view>
</view>
<!-- 弹出框扫描 -->
<qr_code id="qc_com"></qr_code>
<pop_txt id="pop_txt"></pop_txt>
<warn id="warn"></warn>