luckyGo_details.wxml
14.9 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
<wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
<view>
<view class="flex pd20 bg-white">
<!-- <view class="img-container shrink0" data-content="已团{{luckyGoInfo.group_joined}}件"> -->
<view class="img-container shrink0" data-content="">
<image class="img-block" src="{{iurl + luckyGoInfo.original_img}}" data-errorimg="luckyGoInfo.original_img" binderror="bind_bnerr" lazy-load="true"></image>
</view>
<view class="mgl20 flex fdc jc_sb f1 pdv10">
<!----//图片区域---->
<!-- <view class='cenrt'> -->
<view class="ellipsis-2 fs26">{{param.goods_name}}</view>
<!-- </view> -->
<view class="flex-vertical-between">
<view>
<view class="fs40 xc-wc rmb">{{filters.price(luckyGoInfo.group_price)}}</view>
<view class="fs22 word-line c-7b">
<!-- 手店价<text class="rmb">{{luckyGoInfo.shop_price}}</text> -->
<!-- <block wx:if="{{card_field && sele_g[card_field]>0}}"><text class="rmb lh1">{{sele_g[card_field]}}</text></block>
<block wx:else><text class="rmb lh1">{{sele_g.shop_price}}</text></block> -->
</view>
</view>
<view class="xc-wc fs24">
<view>
<!-- luckyGoMembers.create_time 为0,表示还没开团 -->
<view class="t-c" wx:if="{{luckyGoMembers[0].create_time > 0}}">已成团</view>
<view class="t-c" wx:else>待成团</view>
<view class="flex xc-valframe t-c">
<view class="xc-frame-img">
<image class="picture" src="{{iurl}}/miniapp/images/bai-ren.png"></image>
</view>
<view class="xc-people-val">{{luckyGoInfo.group_num}}人团</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!----以上商品显示完成---->
<view class="mgt20 bg-white pr">
<view class="rules fs24" bindtap="showRules">规则 <text class="iconfont icon-arrow_right fs24"></text></view>
<!-- 阶梯团 -->
<!-- <view class='bodytop' wx:if="{{teamlist.kttype==3&& p_status==1}}">
当前价格
<text class="xc-wc">¥{{ct_price}}</text>,
<block wx:if="{{max_num-ordertx.length>0}}">
<text class="xc-wc">还差{{max_num-ordertx.length}}</text>人享受最低价格<text class="xc-wc">¥{{min_price}}</text>
</block>
<block wx:else>
该团已经拼购到最低价了哦~
</block>
</view> -->
<!-- 拼团成功 -->
<!-- <view class="xc-ptcomplete-ladder flex-level fs28" wx:if="{{teamlist.kttype==3&&p_status==2}}">
<view class="xc-wc">拼团成功</view>,当前价格
<text class="xc-wc">¥{{ct_price}}</text>
<view class="xc-img-frame oh">
<image class="img" src="{{iurl}}/miniapp/images/xc_qtcg.png"></image>
</view>
</view>
<view style="height: 20rpx" wx:if="{{teamlist.kttype==3&&p_status==4}}"></view> -->
<!-- 阶梯团失败 -->
<!-- <view class="pdt50 pdb30 pdh20" wx:if="{{pay_f==1 || order.pt_status==3}}"> -->
<view class="pdt50 pdb30 pdh20">
<block wx:if="{{team_id != 0}}">
<view class="fs28 t-c" wx:if="{{luckyGoMembers[0].create_time > 0}}">
<view>参团成功,本期幸运购已开团!</view>
<view class="fs26 t-c c-red">{{iWin ? '恭喜您团中该商品,请等待商家发货~':'很遗憾您未团中,可获得一份帮团奖励,再接再厉噢~'}}</view>
</view>
<view class="fs28 t-c" wx:else>您已参团成功,还差{{filters.show_default(luckyGoInfo.group_num, '0') - filters.show_default(luckyGoInfo.num, '0')}}人参与即可成团!</view>
</block>
<block wx:if="{{team_id == 0 && param.from}}">
<view class="fs28 t-c">组团中,还差{{filters.show_default(luckyGoInfo.group_num, '0') - filters.show_default(luckyGoInfo.num, '0')}}人即可成团!</view>
</block>
<!-- <view class="fs26 t-c c-red">快去邀请小伙伴一起参与吧~</view> -->
<!-- <view class="xc-img-frame oh" >
<image class="img" src="{{iurl}}/miniapp/images/xc-qtshibai.png"></image>
</view> -->
</view>
<!-- 拼团成功 -->
<!-- <view class="xc-ptcomplete flex-level fs28" wx:if="{{p_status==2 && (teamlist.kttype==2||teamlist.kttype==1)}}">
<view class="xc-wc">拼团成功</view>,为您节省
<text class="xc-wc">{{filters.toFix(goods.market_price-teamlist.price,2)}}</text>元
<view class="xc-img-frame oh">
<image class="img" src="{{iurl}}/miniapp/images/xc_qtcg.png"></image>
</view>
</view>
<view></view> -->
<!----//// //头像---->
<view class="flex_tou pdv20">
<view class="flex jc-center">
<view class="d" wx:if="{{team_id == 0 && param.from}}">
<image class="img-block" src='{{iurl}}/miniapp/images/shafa.png'></image>
</view>
<block wx:else>
<block wx:for="{{luckyGoMembers}}">
<view class="d" wx:if="{{index <= 4}}">
<image class="img-block" src='{{item.head_pic}}'></image>
<!-- <span wx:if="{{item.is_pt_tz==1}}">团长</span> -->
</view>
</block>
<view class="d" wx:if="{{luckyGoMembers.length > 4}}">
<image class="pictures img-block" src="{{iurl}}/miniapp/images/xc_ellipsis.png"></image>
</view>
</block>
</view>
</view>
<view class='bodytime'>
<!----/ //旁边直线---->
<view class='bodytimeleft'>
<view class='xian'></view>
</view>
<!-- 阶梯团 开始-->
<!-- <view class='bodytimecen' wx:if='{{p_status==1}}'>
剩余
<span>{{obj.hou}}</span>:
<span>{{obj.hou}}</span>:
<span>{{obj.min}}</span>:
<span>{{obj.sec}}</span>结束
</view> -->
<!-- 阶梯团 成功-->
<!-- <view class='bodytimecen-success' wx:if='{{teamlist.kttype==3&&p_status==2 && is_pay_wk!=1}}'>
剩余支付时间:
<span>{{obj.hou}}</span>时
<span>{{obj.min}}</span>分
<span>{{obj.sec}}</span>秒
</view> -->
<view class='bodytimecen-success' wx:if='{{teamlist.kttype==3&&p_status==4 }}'>
拼团已结束
</view>
<!-- </block> -->
<!-- 阶梯团失败 -->
<!-- <view class='bodytimecen' wx:if='{{p_status==3}}'>
还差
<text class="xc-wc">{{teamlist.ct_num-ordertx.length}}</text>人参团, 拼团失败。
</view> -->
<!-- 会员团 -->
<!-- <view class='bodytimecen' wx:if='{{(teamlist.kttype==1 || teamlist.kttype==2) && p_status==2}}'>
已经有
<text class="xc-wc">{{ordertx.length}}</text>人参团, 拼团成功。
</view> -->
<!----//旁边直线---->
<view class='bodytimeright'>
<view class='xian'></view>
</view>
</view>
<!-- 阶梯团 -->
<view class='fs30 xc-green' wx:if='{{teamlist.kttype==3&&p_status==2}}'>
拼团成功, 规定时间内支付尾款即发货
</view>
<view class="xc-wc fs30 t-c xc-onclik" wx:if="{{!(luckyGoMembers[0].create_time > 0)}}">
点击下方按钮分享给小伙伴,可快速成团!
</view>
<!-- <block wx:if="{{pay_f!=1 && order.pt_status<2}}"> -->
<!----/ // // // //按钮---->
<view wx:if="{{teamlist.kttype==3}}" class='bodybutton'>
<!-- 阶梯团 -->
<button wx:if="{{p_status==1}}" bindtap="clickShare" style='background-color:#fab55a; color:#fff'>
<!-- <button wx:if="{{p_status==1}}" bindtap="clickShare" bindtap='cmeng' style='background-color:#fab55a; color:#fff'> -->
邀请好友参团
</button>
<button bindtap="go_pay_wk" style='background-color:#42c780;' wx:if="{{order.pt_status==2 && order.is_zsorder==4 }}">
支付尾款
</button>
</view>
<!-- <view wx:elif="{{teamlist.ct_num-ordertx.length>0}}" class='' bindtap='cmeng'> -->
<!--会员团 商家团-->
<button class="bodybutton" style='background-color:#fab55a; color:#fff' bindtap='clickShare'
wx:if="{{(teamlist.kttype==2||teamlist.kttype==1)&&p_status==1}}">邀请好友参团</button>
<!-- </view> -->
<!-- </block> -->
<view class="flex jc-center ai-center fs26" hidden="{{hiddenName}}" bindtap="click">
查看参团成员<text class="down-arrow1"></text>
</view>
<view class='bodyfoot'>
<view class="fs26" wx:if="{{zk}}" bindtap="czk">查看参团成员<view class='down-arrow'></view></view>
<!-- {{ordertx}} -->
<view class="flex ai-center jc_sb pdh30 pdv20 fs26" hidden="{{hiddenName}}" wx:for="{{luckyGoMembers}}" wx:for-index="ky">
<view class="flex ai-center">
<view class="avatar-container">
<image class="img-block" src="{{item.head_pic}}"></image>
</view>
<view class="mgl20 t-l">
<view>{{item.nickname}}</view>
<!-- <view class="c-7b">参团编号:<text class="c-red">{{item.team_sn}}</text></view> -->
</view>
</view>
<view class="f1 t-r">
<view class="fs22">{{filters.format_time(item.add_time, 1)}}</view>
<view class="c-red" wx:if="{{item.team_status == 0}}">待成团</view>
<view class="c-7b" wx:if="{{item.team_status == 1}}">未团中</view>
<view class="c-red" wx:if="{{item.team_status == 2}}">已团中</view>
</view>
<!-- <view class='zssj' wx:if="{{teamlist.kttype==1}}">{{item.add_time_date}}参团</view> -->
<!-- <view class='zssj' wx:if="{{ky==0 &&teamlist.kttype!=1}}">{{item.add_time_date}}
<text>开团</text>
</view>
<view class='zssj' wx:else>{{item.add_time_date}} 参团</view> -->
</view>
<view class='clear'></view>
</view>
<view class="flex pd30">
<view class="pdh20 f1">
<button class="btn-red pdh20 fs24" bindtap="gohome">返回首页</button>
</view>
<view class="pdh20 f1" wx:if="{{!(luckyGoMembers[0].create_time > 0)}}">
<button class="btn-yellow pdh20 fs24" bindtap="clickShare">邀请好友参团</button>
</view>
<!-- <button class="btn-red pdh20 fs24" bindtap="gohome">返回首页</button>
<button class="btn-yellow pdh20 fs24" bindtap="gohome">邀请好友参团</button> -->
</view>
</view>
<!---/ // // // // //展开拼团列表---->
<view class='clear'></view>
<!----//大家都在团---->
<!-- <view class='goodslist'>
<view class='goodslisttop'> -->
<!-- <view class='goodslistspan fs24'>大家都在团</view> -->
<!-- 推荐商品 -->
<!-- <view class="flex-center rel xc-linellae-frame">
<view class="xc-linellae"></view>
<view class="abs flex-center xc-recommend-frame ">
<image class=" xc-recommend" src="{{iurl}}/miniapp/images/diamond.png"></image>
<view class="xc-recommend-word">大家都在团</view>
</view>
</view>
<view class='goodslisttopright'></view>
</view>
<view class="changxin">
<view class='onegoods' wx:for="{{pageteam}}" wx:key="{{index}}" bindtap="go_goodsinfo" data-gid="{{item.goods_id}}">
<view class='onegoodsimg'>
<image src="{{imageurl+item.share_imgurl}}"></image>
</view>
<view class="xc-buttmo-frame">
<view class='onegoodsdesc '>
<view class='price flex-vertical-between'>
<view class='jgleft fs32 flex-center xc-wc'>
<view class="xc-ping xc-wc fs26 t-c">拼</view>
<text class="fs20" style='height:39rpx;margin-right:5rpx;margin-left:15rpx;'>¥</text>11.00{{item.price}}
</view>
<view class='jgright'>{{item.ct_num}}2
<span>人参团</span>
</view>
</view>
</view>
<view class="xc-shuoming ellipsis-2 fs26">
<text>{{item.goods_name}}</text>
</view>
</view>
</view>
</view>
</view> -->
</view>
<!--二维码显示页面-->
<canvas class="mycanvas" canvas-id='share' style='width:750rpx;height:1217rpx;'></canvas>
<!-- <canvas canvas-id='share' style='width:750rpx;height:1217rpx;' wx:if='{{canvasHidden}}'></canvas> -->
<!--拼团玩法弹出框-->
<!----弹起的---->
<block wx:if="{{pd_xx}}">
<view class="bview"></view>
<view class="juzhong">
<view class="xq">
<view class="title" bindtap="close_pt_xx">拼团玩法介绍
<image src="{{iurl}}/miniapp/images/gbi.png" class="close"></image>
</view>
<view>1.开团:
<text class="hs1">选择心仪商品,点击“发起X人团”按钮,付款后即为开团成功;</text>
</view>
<view>2.参团:
<text class="hs1">进入朋友分享的页面,点击“立即参团”按钮,付款后即为参团成功,若多人同时支付,支付成功时间较早的人获得参团资格;</text>
</view>
<view>3.成团:
<text class="hs1">在开团或参团成功后,点击“邀请小伙伴参团”将页面分享给好友,在有效时间内凑齐人数即为成团,此时商家会开始发货;</text>
</view>
<view>4.组团失败:
<text class="hs1">在有效时间内未凑齐人数,即为组团失败,此时付款项会原路退回到支付账户;</text>
</view>
<view>5.
<text class="hs1">组团有效期间内,拼购商品订单不允许取消。 </text>
</view>
</view>
</view>
</block>
<!-- 分享控件,底部弹出 -->
<share id="share_button" bind:send="onShareAppMessage" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share>
<view wx:if="{{showPoster}}">
<view class="mask" catchtap="closePoster"></view>
<view class="poster-container">
<view class="poster-wrapper">
<view class="poster">
<!-- <view class="poster" bindtap="previewImage"> -->
<image src="{{shareImgPath}}" class="poster-img"></image>
<view class="btn-close" catchtap="closePoster">
<text class="iconfont icon-close"></text>
</view>
</view>
<view class="btn-container">
<!-- <button class="btn-share" open-type="share" bindtap="">微信好友分享</button> -->
<button class="btn-share" bindtap="savePic">保存到相册</button>
</view>
</view>
</view>
</view>
<!-- 遮罩层 -->
<view class="mask" bindtap="close_all" catchtouchmove="true" wx:if="{{showRules}}"></view>
<!-- 规则详情和提示信息弹窗 -->
<view class="rule-pop-container" wx:if="{{showRules}}">
<view class="pop-title">规则详情
<text class="iconfont icon-guan" bindtap="closeRules"></text>
</view>
<view class="pdt40">
<view class="pdb20">活动时间</view>
<view class="">{{filters.format_time(luckyGoInfo.start_time,1)}} 至 {{filters.format_time(luckyGoInfo.end_time,1)}}
</view>
</view>
<view class="pdt40">
<view class="pdb20">活动内容</view>
<view class="popup-content">
<view class="pdb10">{{luckyGoInfo.lc_rule}}</view>
</view>
</view>
<view class="pdv20">
<view class="btn" bindtap="closeRules">我知道了</view>
</view>
</view>