detail.wxml
13.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
384
385
386
387
388
389
390
391
392
393
<import src="../../../vendors/zanui/actionsheet/index.wxml" />
<wxs src="../../../wxs/helper.wxs" module="helper" />
<view style="display:flex;">
<image class="detail-banner-image" src="{{helper.image(defaultImage, 750, 470, 1)}}"></image>
</view>
<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>
<view class="text-time">发售时间待定</view>
</block>
</view>
<view class="advanceTitle">{{reminderNum}}人已关注</view>
</view>
<view class="detail-btn" bindtap="buyNow">查看商品详情</view>
</view>
<view class="line"></view>
<view class="detail-container">
<view class="goodsInfo">
<view wx:for="{{productDesc}}">
<view style="display:flex;">
<image class="intro-image" src="{{helper.image(item.imageUrl, 690, 432, 1)}}" wx:if="{{item.imageUrl}}"></image>
</view>
<view class="desc">{{item.intro}}</view>
</view>
</view>
</view>
<view wx:if="{{showAssisList}}" style="height:70rpx;"></view>
<view style="height:100rpx;"></view>
<assis-list wx:if="{{showAssisList}}" list="{{avatarList}}" num="{{assisLimit}}"></assis-list>
<block wx:if="{{limitProductType === 4}}">
<block wx:if="{{showStatus === 1}}">
<block wx:if="{{productSourceType === 1}}">
<action-bar wx:if="{{assisStatus === 1}}">
<view class="bottom1-action">
<view class="action-btn" bindtap="assisShare">邀请好友助力获取限购码</view>
<view class="help">?</view>
</view>
</action-bar>
<action-bar wx:elif="{{assisStatus === 2}}">
<view class="bottom1-action">
<view class="action-btn3">即将开售</view>
</view>
</action-bar>
<action-bar wx:else>
<view class="top-assis-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action1">
<view class="top-ok" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
<block wx:if="{{productSourceType === 2}}">
<action-bar wx:if="{{assisStatus === 3}}">
<view class="top-assis-action">
<view class="top-title" >你的好友邀请你为ta助力</view>
<view class="top-action">
<view class="top-ok" bindtap="assisAction">帮ta助力</view>
<view class="top-cancel" bindtap="assisCancel">取消</view>
</view>
</view>
</action-bar>
<action-bar wx:elif="{{assisStatus === 2}}">
<view class="top-assis-action">
<view class="top-title">你的好友已助力成功</view>
<view class="top-ok" bindtap="restartSelfShare">我也要参加</view>
</view>
</action-bar>
<action-bar wx:elif="{{assisStatus === 4}}">
<view class="bottom1-action">
<view class="action-btn">已助力</view>
<view class="help">?</view>
</view>
</action-bar>
<action-bar wx:else>
<view class="top-assis-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action1">
<view class="top-ok" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
</block>
<block wx:elif="{{showStatus === 2 || showStatus === 7}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn disable">立即购买</view>
</view>
</action-bar>
</block>
<block wx:elif="{{showStatus === 3}}">
<action-bar>
<view class="top-assis-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action1">
<view class="top-ok" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
<block wx:elif="{{showStatus === 4}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn ok" bindtap="buyNow">立即购买</view>
</view>
</action-bar>
</block>
<block wx:elif="{{showStatus === 5}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn2 disable">即将售罄</view>
</view>
</action-bar>
</block>
<block wx:elif="{{showStatus === 6}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn2 disable">即将开售</view>
</view>
</action-bar>
</block>
<block wx:else>
<action-bar>
<view class="top-assis-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action1">
<view class="top-ok" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
</block>
<block wx:elif="{{limitProductType === 5}}">
<block wx:if="{{productSourceType === 1}}">
<action-bar wx:if="{{queueStatus === 1}}">
<view class="bottom1-action">
<view class="action-btn3">即将开售</view>
<view class="help">?</view>
</view>
</action-bar>
<action-bar wx:elif="{{queueStatus === 2}}">
<view class="bottom1-action">
<view class="action-btn" bindtap="goQueueList">参加排队</view>
<view class="help">?</view>
</view>
</action-bar>
<action-bar wx:elif="{{queueStatus === 3}}">
<view class="bottom1-action">
<view class="action-list">
<view class="action-btn3" bindtap="goQueueList">排队中,查看详情</view>
<view class="action-btn" bindtap="assisShare">邀请好友助力排队</view>
</view>
<view class="help">?</view>
</view>
</action-bar>
<block wx:elif="{{queueStatus === 4}}">
<block wx:if="{{showStatus === 3}}">
<action-bar>
<view class="top-assis-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action1">
<view class="top-ok" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
<block wx:elif="{{showStatus === 4}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn ok" bindtap="buyNow">立即购买</view>
</view>
</action-bar>
</block>
<block wx:elif="{{showStatus === 6}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn2 disable">即将开售</view>
</view>
</action-bar>
</block>
<block wx:elif="{{showStatus === 7}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn disable">立即购买</view>
</view>
</action-bar>
</block>
<action-bar wx:else>
<view class="top-assis-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action1">
<view class="top-ok" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
<action-bar wx:else>
<view class="top-assis-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action1">
<view class="top-ok" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
<block wx:if="{{productSourceType === 2}}">
<action-bar wx:if="{{queueStatus === 1}}">
<view class="bottom1-action">
<view class="action-btn3">即将开售</view>
<view class="help">?</view>
</view>
</action-bar>
<action-bar wx:elif="{{queueStatus === 3}}">
<view class="top-assis-action">
<view class="top-title" >你的好友邀请你为ta助力参加排队</view>
<view class="top-action">
<view class="top-ok" bindtap="queueAction">帮ta助力</view>
<view class="top-cancel" bindtap="queueCancel">取消</view>
</view>
</view>
</action-bar>
<block wx:elif="{{queueStatus === 4}}">
<block wx:if="{{showStatus === 2}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn disable">立即购买</view>
</view>
</action-bar>
</block>
<block wx:elif="{{showStatus === 5}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn2 disable">即将售罄</view>
</view>
</action-bar>
</block>
<action-bar wx:else>
<view class="top-assis-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action1">
<view class="top-ok" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
<block wx:elif="{{queueStatus === 5}}">
<action-bar>
<view class="bottom1-action">
<view class="action-btn">已助力</view>
<view class="help">?</view>
</view>
</action-bar>
</block>
<action-bar wx:else>
<view class="top-assis-action">
<view class="top-title" >当前活动已结束</view>
<view class="top-action1">
<view class="top-ok" bindtap="goList">查看其他活动</view>
</view>
</view>
</action-bar>
</block>
</block>
<block wx:if="{{modal}}">
<yoho-alert wx:if="{{assisSuccess === 1}}" bindcancel="hideAlert">
<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="{{assisSuccess === 2}}" bindcancel="hideAlert">
<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}}" bindcancel="hideAlert">
<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" bindtap="restartSelfShare">
我也要参加
</view>
<view class="modal-cancel" bindtap="goQueueList">
查看详情
</view>
</view>
</view>
</yoho-alert>
<yoho-alert wx:if="{{queueSuccess === 2}}" bindcancel="hideAlert">
<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" bindtap="restartSelfShare">
我也要参加
</view>
<view class="modal-cancel" bindtap="goQueueList">
查看详情
</view>
</view>
</view>
</yoho-alert>
<yoho-alert wx:if="{{error}}" bindcancel="hideAlert">
<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>
<template is="zan-actionsheet" data="{{...actionSheet}}" />