detail.wxml
8.58 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
<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">
<image class="image-time" src="../../../static/images/shijian2@3x.png"></image>
{{saleTime}}发售
</view>
<view class="advanceTitle">{{reminderNum}}人已关注</view>
</view>
<view class="detail-btn">查看商品详情</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>
<copyright></copyright>
<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:if="{{assisStatus === 2}}">
<view class="bottom1-action">
<view class="action-btn3">即将开售</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:if="{{assisStatus === 2}}">
<view class="top-assis-action">
<view class="top-title">你的好友已助力成功</view>
<view class="top-ok" bindtap="rrestartSelfShare">我也要参加</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-btn" bindtap="assisShare">参加排队</view>
<view class="help">?</view>
</view>
</action-bar>
<action-bar wx:if="{{queueStatus === 2}}">
<view class="bottom1-action">
<view class="action-list">
<view class="action-btn3" bindtap="goQueueList">排队中,查看详情</view>
<view class="action-btn" bindtap="assisShare">邀请好友助力排队</view>
</view>
</view>
</action-bar>
<action-bar wx:if="{{queueStatus === 3}}">
<view class="bottom1-action">
<view class="action-list">
<view class="action-btn3" bindtap="goQueueList">活动结束,点击查看排队详情</view>
</view>
</view>
</action-bar>
</block>
<block wx:if="{{productSourceType === 2}}">
<action-bar>
<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"><text decode="{{true}}"> 取消 </text></view>
</view>
</view>
</action-bar>
<action-bar>
<view class="top-assis-action">
<view class="top-title" >你的好友已助力成功</view>
<view class="top-action1">
<view class="top-ok" bindtap="restartSelfShare" >我也要参加</view>
</view>
</view>
</action-bar>
</block>
</block>
<yoho-alert wx:if="{{assisSuccess === 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="{{assisSuccess === 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" bindtap="restartSelfShare">
我也要参加
</view>
<view class="modal-cancel" 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" bindtap="restartSelfShare">
我也要参加
</view>
<view class="modal-cancel" bindtap="goQueueList">
查看详情
</view>
</view>
</view>
</yoho-alert>
<template is="zan-actionsheet" data="{{...actionSheet}}" />