detail.wxml
19.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
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
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
<import src="../../../vendors/zanui/actionsheet/index.wxml" />
<wxs src="../../../wxs/helper.wxs" module="helper" />
<block wx:if="{{oldSaleTime > currentTime}}">
<count-down-by-now current="{{currentTime}}" begin="{{oldSaleTime}}"></count-down-by-now>
</block>
<image class="detail-banner-image" src="{{helper.image(defaultImage, 750, 470, 1)}}"></image>
<view class="detail-container">
<view class="product-name">
<text class="name">{{productName}}</text>
</view>
<!-- <view class="realPrice">{{price}}</view> -->
<view class="advanceTitleView">
<!-- <view class="advanceTime">
<view class="image-time"><image class="image-time" src="../../../static/images/shijian2@3x.png"></image></view>
<block wx:if="{{saleTime}}">
<view class="text-time">{{saleTime}} 发售</view>
</block>
<block wx:else>
<view class="text-time">发售时间待定</view>
</block>
</view> -->
<view class="realPrice">{{price}}</view>
<view class="advanceTitle">{{reminderNum}}人已关注</view>
</view>
<view class="detail-btn" bindtap="buyNow">查看商品详情</view>
</view>
<view class="line"></view>
<image class="banner-image" lazy-load bindtap="goList" src="../../../static/images/banner.png"></image>
<view class="detail-container">
<view class="goodsInfo">
<view wx:for="{{productDesc}}" wx:key="index">
<block wx:if="{{item.type === 2}}">
<!--<video class="desc-video" src="{{item.imageUrl}}"></video>-->
</block>
<block wx:else>
<block wx:if="{{item.type === 4}}">
<image lazy-load class="intro-image" src="{{item.imageUrl}}?imageslim"
wx:if="{{item.imageUrl}}"
mode="widthFix"></image>
</block>
<block wx:if="{{item.type === 1}}">
<image lazy-load class="intro-image" src="{{item.imageUrl}}?imageslim"
wx:if="{{item.imageUrl}}" mode="widthFix"></image>
</block>
<block wx:if="{{item.type === 3}}">
<view class="desc">{{item.intro}}</view>
</block>
</block>
</view>
</view>
</view>
<image class="bottom-image" lazy-load bindtap="goYohobuy" src="../../../static/images/bottom.png"></image>
<view wx:if="{{showAssistList}}" style="height:70rpx;"></view>
<view style="height:100rpx;"></view>
<assist-list wx:if="{{showAssistList}}" list="{{avatarList}}" num="{{assistLimit}}"></assist-list>
<block wx:if="{{limitProductType === 4}}">
<!-- 没有助力 -->
<block wx:if="{{showStatus === 1}}">
<block wx:if="{{productSourceType === 1}}">
<action-bar wx:if="{{assistStatus === 1 || assistStatus === 3}}">
<form bindsubmit="assistShare" report-submit='true'>
<view class="bottom1-action">
<button class="as-bottom ok" formType="submit">{{isNew=='Y' ? '邀请新用户助力获取限购码' : '邀请好友助力获取限购码'}}</button>
<view class="help-wrapper" bindtap="goHelp">
<image class="help" src="../../../static/images/XD_q_ic@3x.png"></image>
</view>
</view>
</form>
</action-bar>
<action-bar wx:elif="{{assistStatus === 2}}">
<view class="bottom1-action">
<view class="as-bottom cancel">即将开售</view>
</view>
</action-bar>
<block wx:else></block>
</block>
<block wx:if="{{productSourceType === 2}}">
<action-bar wx:if="{{assistStatus === 2 || assistStatus === 5}}">
<view class="top-assist-action">
<view class="top-title" >你的好友已助力成功</view>
<view class="top-action3">
<view class="as-bottom ok width150" bindtap="restartSelfShare">我也要参加</view>
</view>
</view>
</action-bar>
<action-bar wx:elif="{{assistStatus === 3}}">
<view class="top-assist-action">
<view class="top-title" >你的好友邀请你为ta助力</view>
<view class="top-action">
<view class="as-bottom ok width130" bindtap="assistAction">帮ta助力</view>
<view class="as-bottom ok width130" bindtap="assistJion">直接参加</view>
</view>
</view>
</action-bar>
<action-bar wx:elif="{{assistStatus === 4}}">
<view class="bottom1-action">
<view class="as-bottom ok">已助力</view>
<view class="help-wrapper" bindtap="goHelp">
<image class="help" src="../../../static/images/XD_q_ic@3x.png"></image>
</view>
</view>
</action-bar>
<block wx:else></block>
</block>
</block>
<block wx:elif="{{showStatus === 2}}">
<block wx:if="{{productSourceType === 1}}">
<action-bar>
<view class="bottom1-action">
<view class="as-bottom cancel">限购码已抢光</view>
</view>
</action-bar>
</block>
<block wx:if="{{productSourceType === 2}}">
<action-bar wx:if="{{assistStatus === 2 || assistStatus === 5}}">
<view class="top-assist-action">
<view class="top-title" >你的好友已助力成功</view>
<view class="top-action3">
<view class="as-bottom ok width150" bindtap="restartSelfShare">我也要参加</view>
</view>
</view>
</action-bar>
<block wx:else></block>
</block>
</block>
<block wx:elif="{{showStatus === 3}}">
<action-bar>
<view class="bottom1-action" wx:if="{{isSubscribe == 'N'}}" >
<view class="as-bottom confirm" bindtap="saleRemind">关注公众号获得发售提醒</view>
</view>
<view wx:else class="top-assist-action">
<view class="top-title" >当前活动已结束</view>
<view class="as-bottom ok" bindtap="goList">查看其他活动</view>
</view>
</action-bar>
</block>
<block wx:elif="{{showStatus === 4}}">
<block wx:if="{{productSourceType === 1}}">
<action-bar>
<view class="bottom1-action" wx:if="{{isSubscribe == 'N'}}" >
<view class="as-bottom confirm" bindtap="saleRemind">关注公众号获得发售提醒</view>
</view>
<view wx:else class="bottom1-action">
<view class="as-bottom ok" bindtap="buyNow">立即购买</view>
</view>
</action-bar>
</block>
<block wx:if="{{productSourceType === 2}}">
<action-bar wx:if="{{assistStatus === 2 || assistStatus === 5}}">
<view class="top-assist-action">
<view class="top-title" >你的好友已助力成功</view>
<view class="top-action3">
<view class="as-bottom ok width150" bindtap="restartSelfShare">我也要参加</view>
</view>
</view>
</action-bar>
<block wx:else></block>
</block>
</block>
<block wx:elif="{{showStatus === 5}}">
<action-bar wx:if="{{productSourceType === 1}}">
<view class="bottom1-action">
<view class="as-bottom cancel">限购码已抢光</view>
</view>
</action-bar>
<block wx:if="{{productSourceType === 2}}">
<action-bar wx:if="{{assistStatus === 2 || assistStatus === 5}}">
<view class="top-assist-action">
<view class="top-title" >你的好友已助力成功</view>
<view class="top-action3">
<view class="as-bottom ok width150" bindtap="restartSelfShare">我也要参加</view>
</view>
</view>
</action-bar>
<action-bar wx:else>
<view class="bottom1-action">
<view class="as-bottom cancel">限购码已抢光</view>
</view>
</action-bar>
</block>
</block>
<block wx:elif="{{showStatus === 6}}">
<action-bar wx:if="{{productSourceType === 1}}">
<view class="bottom1-action">
<view wx:if="{{isSubscribe == 'N'}}" class="as-bottom confirm" bindtap="saleRemind">关注公众号获得发售提醒</view>
<view wx:else class="as-bottom cancel">即将开售</view>
</view>
</action-bar>
<block wx:if="{{productSourceType === 2}}">
<action-bar wx:if="{{assistStatus === 2}}">
<view class="top-assist-action">
<view class="top-title" >你的好友已助力成功</view>
<view class="top-action3">
<view class="as-bottom ok width150" bindtap="restartSelfShare">我也要参加</view>
</view>
</view>
</action-bar>
<action-bar wx:else>
<view class="bottom1-action">
<view class="as-bottom cancel">即将开售</view>
</view>
</action-bar>
</block>
</block>
<block wx:elif="{{showStatus === 7}}">
<block wx:if="{{productSourceType === 1}}">
<action-bar>
<view class="bottom1-action" wx:if="{{isSubscribe == 'N'}}" >
<view class="as-bottom confirm" bindtap="saleRemind">关注公众号获得发售提醒</view>
</view>
<view wx:else class="bottom1-action">
<view class="as-bottom cancel">立即购买</view>
</view>
</action-bar>
</block>
<block wx:if="{{productSourceType === 2}}">
<action-bar wx:if="{{assistStatus === 2}}">
<view class="top-assist-action">
<view class="top-title" >你的好友已助力成功</view>
<view class="top-action3">
<view class="as-bottom ok width150" bindtap="restartSelfShare">我也要参加</view>
</view>
</view>
</action-bar>
<block wx:else></block>
</block>
</block>
</block>
<block wx:elif="{{limitProductType === 5}}">
<block wx:if="{{productSourceType === 1}}">
<action-bar wx:if="{{queueStatus === 1}}">
<view class="bottom1-action">
<view class="as-bottom cancel">活动尚未开始</view>
<view class="help-wrapper" bindtap="goHelp">
<image class="help" src="../../../static/images/XD_q_ic@3x.png"></image>
</view>
</view>
</action-bar>
<action-bar wx:elif="{{queueStatus === 2}}">
<view class="bottom1-action">
<view class="as-bottom ok" bindtap="goQueueList">参加排队赢取限购码</view>
<view class="help-wrapper" bindtap="goHelp">
<image class="help" src="../../../static/images/XD_q_ic@3x.png"></image>
</view>
</view>
</action-bar>
<action-bar wx:elif="{{queueStatus === 3}}">
<view class="bottom1-action">
<view class="action-list" style="width: 570rpx;">
<view class="as-bottom confirm width250" style="width: 230rpx;" bindtap="goQueueList">排队中,查看详情</view>
<view class="as-bottom ok" bindtap="assistShare">{{isNew=='Y' ? '邀请新用户助力排队' : '邀请好友助力排队'}}</view>
</view>
<view class="help-wrapper" bindtap="goHelp">
<image class="help" src="../../../static/images/XD_q_ic@3x.png"></image>
</view>
</view>
</action-bar>
<block wx:elif="{{queueStatus === 4}}">
<action-bar>
<view class="top-assist-action">
<view class="bottom1-action">
<view class="as-bottom ok" bindtap="goQueueList">排队已结束 查看详情</view>
<view class="help-wrapper" bindtap="goHelp">
<image class="help" src="../../../static/images/XD_q_ic@3x.png"></image>
</view>
</view>
</view>
</action-bar>
</block>
<block wx:elif="{{queueStatus === 6}}">
<action-bar >
<view class="top-assist-action">
<view class="top-title" >你的好友已助力成功</view>
<view class="top-action3">
<view class="as-bottom ok width200" bindtap="goQueueList">查看详情</view>
<view class="as-bottom cancel width200" bindtap="restartSelfShare">我也要参加</view>
</view>
</view>
</action-bar>
</block>
<block wx:else></block>
</block>
<block wx:if="{{productSourceType === 2}}">
<action-bar wx:if="{{queueStatus === 1}}">
<view class="bottom1-action">
<view class="as-bottom cancel">活动尚未开始</view>
<view class="help-wrapper" bindtap="goHelp">
<image class="help" src="../../../static/images/XD_q_ic@3x.png"></image>
</view>
</view>
</action-bar>
<action-bar wx:elif="{{queueStatus === 3}}">
<view class="top-assist-action">
<view class="top-title" >你的好友邀请你为ta助力排队</view>
<view class="top-action">
<view class="as-bottom ok width130" bindtap="queueAction">帮ta助力</view>
<view class="as-bottom cancel width130" bindtap="assistJion">直接参加</view>
</view>
</view>
</action-bar>
<block wx:elif="{{queueStatus === 4}}">
<action-bar>
<view class="top-assist-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action3">
<view class="as-bottom ok width200" bindtap="goQueueList">查看详情</view>
<view class="as-bottom cancel width200" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
<block wx:elif="{{queueStatus === 5}}">
<action-bar>
<view class="bottom1-action">
<view class="as-bottom cancel width200">已助力</view>
<view style="width:10rpx;"></view>
<view class="as-bottom ok width200" bindtap="goQueueList">查看排队详情</view>
<view class="help-wrapper" bindtap="goHelp">
<image class="help" src="../../../static/images/XD_q_ic@3x.png"></image>
</view>
</view>
</action-bar>
</block>
<block wx:elif="{{queueStatus === 6}}">
<action-bar >
<view class="top-assist-action">
<view class="top-title" >你的好友已助力成功</view>
<view class="top-action3">
<view class="as-bottom ok width200" bindtap="goQueueList">查看详情</view>
<view class="as-bottom cancel width200" bindtap="restartSelfShare">我也要参加</view>
</view>
</view>
</action-bar>
</block>
<block wx:else></block>
</block>
</block>
<block wx:if="{{modal}}">
<yoho-alert wx:if="{{assistSuccess === 1}}" >
<view class="modal-content">
<view class="modal-title">
<view class="sub-title">助力成功</view>
<view class="sub-title2">帮好友助力成功,您也来参与吧~</view>
</view>
<view class="modal-ok" bindtap="restartSelfShare">
我也要参加
</view>
</view>
</yoho-alert>
<yoho-alert wx:if="{{assistSuccess === 2}}" >
<view class="modal-content">
<view class="modal-title">
<view class="sub-title">重复助力</view>
<view class="sub-title2">您已经助力过啦,自己也来参加吧~</view>
</view>
<view class="modal-ok" bindtap="restartSelfShare">
我也要参加
</view>
</view>
</yoho-alert>
<yoho-alert wx:if="{{queueSuccess === 1}}" >
<view class="modal-content">
<view class="modal-title">
<view class="sub-title">助力成功</view>
<view class="sub-title2">
<view>帮好友抢到了1个排队号,</view>
<view>您也来参加吧~</view>
</view>
</view>
<view class="modal-btn">
<view class="modal-ok btn-info" bindtap="restartSelfShare">
我也要参加
</view>
<view class="modal-cancel btn-info" bindtap="goQueueList">
查看详情
</view>
</view>
</view>
</yoho-alert>
<yoho-alert wx:if="{{queueSuccess === 2}}" >
<view class="modal-content">
<view class="modal-title">
<view class="sub-title">重复助力</view>
<view class="sub-title2">
<view>您已经助力过啦,</view>
<view>自己也来参加吧~</view>
</view>
</view>
<view class="modal-btn">
<view class="modal-ok btn-info" bindtap="restartSelfShare">
我也要参加
</view>
<view class="modal-cancel btn-info" bindtap="goQueueList">
查看详情
</view>
</view>
</view>
</yoho-alert>
<yoho-alert wx:if="{{queueSuccess === 3}}" >
<view class="modal-content">
<view class="modal-title">
<view class="sub-title">助力失败</view>
<view class="sub-title2">
<view>助力人数已满,</view>
<view>自己也来参加吧~</view>
</view>
</view>
<view class="modal-btn">
<view class="modal-ok btn-info" bindtap="restartSelfShare">
我也要参加
</view>
<view class="modal-cancel btn-info" bindtap="goQueueList">
查看详情
</view>
</view>
</view>
</yoho-alert>
<yoho-alert wx:if="{{error}}" >
<view class="modal-content">
<view class="modal-title">
<view class="sub-title">助力失败</view>
<view class="sub-title2">
<view>请重新助力</view>
</view>
</view>
<view class="modal-ok" bindtap="cancelError">
确定
</view>
</view>
</yoho-alert>
</block>
<button wx:if="{{isGoApp}}" class="appBtn" bindtap='goApp' type="default" hover-class="none" open-type="launchApp" app-parameter="{{appParameter}}" binderror="launchAppError">
<image class="appImg" src="../../../static/images/back2App@3x.png"></image>
</button>
<template is="zan-actionsheet" data="{{...actionSheet}}" />