giftpacklist.wxml
6.25 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
124
125
126
127
128
129
130
131
<view class="box data-v-3a5b7e36">
<view class="box_top data-v-3a5b7e36">
<image src="{{giftImage}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="giftImage"></image>
</view>
<view class="box_title data-v-3a5b7e36">
<view class="top_title data-v-3a5b7e36">
<text class="data-v-3a5b7e36 ellipsis-2">{{giftTitle}}</text>
</view>
<view class="top_time data-v-3a5b7e36">
<text class="data-v-3a5b7e36">{{"兑换截至时间:"+giftDate}}</text>
</view>
<view class="top_price data-v-3a5b7e36">
<block wx:if="{{giftPrice>0}}">
<text class="data-v-3a5b7e36">{{"¥"+giftPrice}}</text>
</block>
<block wx:if="{{giftPrice>0 && giftIntegral>0}}">
<text class="data-v-3a5b7e36">/</text>
</block>
<block wx:if="{{giftIntegral>0}}">
<text class="data-v-3a5b7e36">{{giftIntegral+"积分"}}</text>
</block>
<block wx:if="{{giftType>0}}">
<text class="data-v-3a5b7e36">{{actTitle}}</text>
</block>
</view>
<view class="top_foot data-v-3a5b7e36">
<view class="top_foot_price data-v-3a5b7e36">
<text class="data-v-3a5b7e36">{{"原价:"+giftPosPrice+"元"}}</text>
</view>
<view class="top_foot_qty data-v-3a5b7e36">
<text class="data-v-3a5b7e36">{{"已售:"+giftQty+"件"}}</text>
</view>
</view>
</view>
<view class="box_ware data-v-3a5b7e36">
<view class="box_ware_title data-v-3a5b7e36">
<text class="data-v-3a5b7e36">礼包内容</text>
</view>
<block wx:for="{{wareCard}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class="box_ware_box data-v-3a5b7e36">
<view class="box_ware_img data-v-3a5b7e36">
<block wx:if="{{item.lbType==1}}">
<image src="{{item.wareImage==''?iurl+'/miniapp/images/giftbag/gift01.png':iurl+item.wareImage}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
</block>
<block wx:if="{{item.lbType==2}}">
<image src="{{iurl+'/miniapp/images/giftbag/gift05.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
</block>
<block wx:if="{{item.lbType==3}}">
<image src="{{iurl+'/miniapp/images/giftbag/gift02.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
</block>
<block wx:if="{{item.lbType==4}}">
<image src="{{iurl+'/miniapp/images/giftbag/gift03.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
</block>
<block wx:if="{{item.lbType==5}}">
<image src="{{iurl+'/miniapp/images/giftbag/gift04.png'}}" class="data-v-3a5b7e36" lazy-load="true" binderror="bind_bnerr2" data-errorimg="wareCard[{{index}}].wareImage"></image>
</block>
</view>
<view class="box_ware_item data-v-3a5b7e36">
<view class="box_ware_item_title data-v-3a5b7e36">
<text class="data-v-3a5b7e36">{{item.couponName}}</text>
</view>
<view class="box_ware_item_price data-v-3a5b7e36">
<text class="data-v-3a5b7e36"></text>
</view>
<view class="box_ware_item_qty data-v-3a5b7e36">
<text class="data-v-3a5b7e36 ellipsis-1">{{"数量:"+item.num}}</text>
</view>
<view class="box_ware_code data-v-3a5b7e36">
<block wx:if="{{isBuy==0&item.lbType==1}}">
<image src="{{iurl+'/miniapp/images/giftbag/gift06.png'}}" lazy-load="true" bindtap="getcode" class="data-v-3a5b7e36"></image>
</block>
<block wx:if="{{isBuy==0&item.lbType==2}}">
<image src="{{iurl+'/miniapp/images/giftbag/gift06.png'}}" class="data-v-3a5b7e36" lazy-load="true" data-url="/pages/user/coupons/coupons" bindtap="goto"></image>
</block>
<block wx:if="{{isBuy==0&item.lbType==3}}">
<image src="{{iurl+'/miniapp/images/giftbag/gift06.png'}}" class="data-v-3a5b7e36" lazy-load="true" data-url="/pages/user/my_service/i_service" bindtap="goto"></image>
</block>
<block wx:if="{{isBuy==0&item.lbType>3}}">
<text class="data-v-3a5b7e36">奖励已发放</text>
</block>
</view>
</view>
</view>
</block>
</view>
<view class="foot_box data-v-3a5b7e36">
<view class="foot_box_title data-v-3a5b7e36">
<text class="data-v-3a5b7e36">活动说明</text>
</view>
<view class="foot_box_remark data-v-3a5b7e36">
<rich-text nodes="{{giftRemark}}"></rich-text>
</view>
</view>
<view class="foot_empty data-v-3a5b7e36"></view>
<block wx:if="{{isBuy==1}}">
<view class="foot_button data-v-3a5b7e36">
<block wx:if="{{giftPrice>0&&giftIntegral>0}}">
<view class="foot_button_left data-v-3a5b7e36" data-id="{{lbId}}" bindtap="GetBuyPrice">
<text class="data-v-3a5b7e36">立即购买</text>
</view>
</block>
<block wx:if="{{giftPrice>0 && giftIntegral>0}}">
<view class="foot_button_right data-v-3a5b7e36" bindtap="GetBuyIntegral" data-id="{{lbId}}">
<text class="data-v-3a5b7e36">立即兑换</text>
</view>
</block>
<block wx:if="{{giftPrice>0 && giftIntegral<=0}}">
<view class="foot_button_buy data-v-3a5b7e36" bindtap="GetBuyPrice" data-id="{{lbId}}">
<text class="data-v-3a5b7e36">立即购买</text>
</view>
</block>
<block wx:if="{{giftPrice<=0 && giftIntegral>0}}">
<view class="foot_button_intalge data-v-3a5b7e36" bindtap="GetBuyIntegral" data-id="{{lbId}}">
<text class="data-v-3a5b7e36">立即兑换</text>
</view>
</block>
</view>
</block>
<block wx:if="{{isBuy==0}}">
<view class="foot_button data-v-3a5b7e36">
<view class="foot_button_buy data-v-3a5b7e36" bindtap="getcode">
<text class="data-v-3a5b7e36">立即使用</text>
</view>
</view>
</block>
</view>
<!-- 引入提示组件 -->
<warn id="warn"></warn>
<my_confirm id="my_confirm"></my_confirm>
<!-- 弹出框扫描 -->
<qr_code id="qc_com"></qr_code>