team_success.wxml
11.6 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
<wxs module="filters" src="../../../utils/filter.wxs"></wxs>
<!---- //文字"-->
<view wx:if="{{is_show}}">
<view class='center'>
<view class='cenleft'>
<image src='{{image}}' binderror='img_show_err' data-err="image"></image>
</view>
<view class='cenright'>
<!----//图片区域---->
<view class='cenrt'>
<view class='xc-goods-details ellipsis-2 fs30'>
{{goods.goods_name}}
</view>
</view>
<view class='cenrcen flex-vertical-between'>
<view>
<view class="fs40 xc-wc" style='font-size:40rpx'>
<span class="fs28 xc-rmbs" style="font-weight:500;">¥</span>{{teamlist.price}}</view>
<view class="fs22 word-line xc-wc" style="width:172rpx;">
零售价¥{{goods.market_price}}
</view>
</view>
<view class="xc-wc fs24">
<view>
<view class="">已拼{{teamlist.buy_num}}件</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">
{{teamlist.ct_num}}人拼
</view>
</view>
</view>
</view>
</view>
</view>
<view class='clear'></view>
</view>
<!----以上商品显示完成---->
<view class='body'>
<!-- 阶梯团 -->
<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=".xc-fail-ladder flex-level fs28" wx:if="{{pay_f==1 || order.pt_status==3}}">
<view class="xc-wc">拼团失败</view>
<view class="xc-img-frame oh" >
<image class="img" src="{{iurl}}/miniapp/images/xc-qtshibai.png"></image>
</view>
</view>
<!-- 会员团和商家团 -->
<view class='bodytop' wx:if="{{(teamlist.kttype==2 || teamlist.kttype==1) && p_status==1}}">
还差
<text class="xc-wc">{{teamlist.ct_num-ordertx.length}}</text>人成团,组团成功为您节省
<text class="xc-wc">{{filters.toFix(goods.market_price-teamlist.price,2)}}</text>元
</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 class="flex_tou">
<view class='bodyimg flex-level'>
<view class='d' wx:for="{{ordertx2}}" wx:key>
<image src='{{item.head_pic}}'></image>
<span wx:if="{{item.is_pt_tz==1}}">团长</span>
</view>
<view class='d' wx:for="{{sf_arr}}" wx:if="{{p_status!=2}}">
<image src='{{iurl}}/miniapp/images/shafa.png'></image>
</view>
<view class='xc-ellipsis-img flex-vertical' wx:if="{{ordertx.length>5}}">
<image class="pictures " src="{{iurl}}/miniapp/images/xc_ellipsis.png"></image>
</view>
</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="{{p_status==1}}">
点击下方按钮分享给小伙伴,可快速成团!
</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='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='cmeng'
wx:if="{{(teamlist.kttype==2||teamlist.kttype==1)&&p_status==1}}">邀请好友参团</button>
<!-- </view> -->
<!-- </block> -->
<view class="xc-home-page-frame">
<button class="xc-home-page" bindtap='gohome'> 返回首页</button>
</view>
<view class='zspan' hidden="{{hiddenName}}" bindtap='click'>查看拼团列表
<view class='down-arrow1'></view>
</view>
</view>
<!---/ // // // // //展开拼团列表---->
<view class='bodyfoot'>
<view class='bodyselect' wx:if="{{zk}}" bindtap='czk'>
<span>查看拼团列表
<view class='down-arrow'></view>
</span>
</view>
<view class='zhangxi' hidden="{{hiddenName}}" wx:for="{{ordertx}}" wx:for-index="ky">
<view class='img rel'>
<view class="xc-list" wx:if="{{item.is_pt_tz}}">
<span>团长</span>
</view>
<image src='{{item.head_pic}}'></image>{{item.nickname}}
</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 class="clear"></view>
</view>
<view class='clear'></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>{{item.price}}
</view>
<view class='jgright'>{{item.ct_num}}
<span>人参团</span>
</view>
</view>
</view>
<view class="xc-shuoming ellipsis-2 fs26">
<text>{{item.goods_name}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
<!----蒙板---->
<view class='mtop' wx:if="{{meng}}">
<view wx:if="{{teamlist.kttype==3}}" class='mt1'>
<block wx:if="{{max_num-ordertx.length>0}}">
还差
<span class='mts'>{{max_num-ordertx.length}}</span>人,邀请好友参团吧
<span class='mcou' bindtap='cmc'>⊗</span>
</block>
<block wx:else>
您已经可以享受最低价,邀请好友参团吧
<span class='mcou' bindtap='cmc'>⊗</span>
</block>
</view>
<view wx:else>
还差
<span class='mts'>{{teamlist.ct_num-ordertx.length}}</span>人,邀请好友参团吧
<span class='mcou' bindtap='cmc'>⊗</span>
</view>
<view>点击分享,发送给
<span class='mts'>朋友</span>和
<span class='mts'>朋友圈</span>
</view>
<!--底部-->
<view class='mfoot' bindtap='saveImageToPhotosAlbum'>
<button class='mbtn'>查看分享二维码</button>
</view>
</view>
<!--二维码显示页面-->
<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>