goodsDetial.wxml
28.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
<!--pages/index/goodsDetial/goodsDetial.wxml-->
<import src="../../../wxParse/wxParse/wxParse.wxml" />
<view class='big_box'>
<view class='detail_container {{show||shows||basicInfo?"active":""}}'>
<view class='banner'>
<view class='iconfont icon-fanhui' catchtap='get_back'></view>
<view class='coupons'>
<view class='goods_detail {{active?"active":""}}' bindtap='jump_goods' id='NAV{{one}}'>商品详情</view>
<view class='graphic_detail {{!active?"active":""}}' bindtap='jump_detail' id='NAV{{two}}'>图文详情</view>
</view>
<view class=' share '>
<button open-type='share' type='false' class='share_btn' plain='true'>分享</button>
<!-- <button open-type='share' class='btn1'>立即邀请</button> -->
</view>
</view>
<scroll-view scroll-y scroll-into-view="NAV{{statestatus}}" style='height:100%' scroll-with-animation='true'>
<view id='NAV{{one}}'></view>
<view class='banner_box'>
<!-- <view class='banner_box_group ' wx:if='{{groupList.length>0}}'> -->
<view wx:if='{{yesno}}'>
<view wx:if='{{goods.groupType.group_status==3}}' class='banner_box_group active '>已结束</view>
<view wx:else class='banner_box_group '>
距离团购
<text wx:if='{{goods.groupType.group_status==1}}'>开始\t\t\t</text>
<text wx:elif='{{goods.groupType.group_status==2}}'>结束\t\t\t</text> {{day}}天{{hour}}小时{{minute}}分钟
</view>
</view>
<!-- </view> -->
<view>
<swiper circular='true ' display-multiple-items='1 ' class='banner_img '>
<swiper-item wx:for='{{goods.info.more.photos}}' wx:key='{{item}}'>
<image src='{{item.url}}'></image>
</swiper-item>
</swiper>
</view>
</view>
<view class='content_item '>
<view class='item_list '>
<view class='banner_title '>{{goods.info.title}}</view>
<view class='introduce '>{{goods.info.excerpt}}</view>
<view wx:if='{{groupList.length>0}}'>
<view class='good_price_progress ' wx:if='{{goods.groupType.group_status==2}} '>
<progress show-info border-radius='4 ' activeColor='#ffda44 ' stroke-width='8 ' percent='{{percent}} ' font-size='12 '></progress>
<text class='group_font '>已拼{{goods.info.group_number}}份\t\t\t\t目标{{goods.info.group_min_number}}份</text>
</view>
</view>
<view class='banner_character '>
<view class='banner_price '>
<view class=' '>
<text class='money_icon '>¥</text>
<text class='money '>{{goods.info.price}}</text>
<text class='original_price '>¥{{goods.info.old_price}}</text>
</view>
<view class='display_box '>
<text class='money_icon2 '>¥</text>
<text class='money2 '>{{goods.info.vip_price}}</text>
<view class='vip '>
<image class='vipvip ' src='{{imgUrl}}vipvip.png '></image>
</view>
</view>
</view>
<view>已售出:{{goods.info.sale_number}}份</view>
</view>
</view>
<view class='item_list '>
<view class='list_content ' bindtap='chooseStandard'>
<view class='content_title '>
<view class='title '>商品规格</view>
<view class='content '>
<text decode="{{true}}">选择 处理方式 份量</text>
</view>
</view>
<view class='iconfont icon-jinru '></view>
</view>
<view class='list_contents ' bindtap='jumpBasicInfo'>
<view class='content_title '>
<view class='title '>基本参数</view>
<view class='content '>
<view wx:for='{{goods.attr.attr_com}} ' wx:key='{{cell.id}} ' wx:for-item='cell '>{{cell.name}}
<text wx:for='{{cell.item}} ' wx:key='{{item.id}} '>\t\t{{item.attribute_value}}</text>
</view>
</view>
</view>
<view class='iconfont icon-jinru '></view>
</view>
<view class='graphic_ingredients_box ' wx:if='{{goods.info.more.images.length>0}}'>
<view class='graphic_ingredients' bindtap='get_recipe'>
<view class='graphic_ingredients_background'>
<view class='graphic_ingredients_border'>浏览图文食谱</view>
</view>
</view>
</view>
</view>
<view class='item_list7' wx:if='{{goods.attr.attr_cook.length>0}}'>
<view class='list_content'>
<view>
<view class='attribute' wx:for='{{goods.attr.attr_cook}}' wx:key='{{item.id}}' wx:index='index'>
<view class='attribute_titel'>{{item.name}}</view>
<view class='stars' wx:for="{{item.item}}" wx:for-item="value" wx:key='{{value.id}}'>{{value.attribute_value}}</view>
</view>
</view>
</view>
<view class='more_box' wx:if='{{goods.attr.attr_cook.length>8}}'>
<view>展开更多</view>
<view class='iconfont icon-zhankai'></view>
</view>
</view>
<view class='item_list1' id='yyh'>
<view class='hint1'>
<view>{{goods.vips.sale_price}}元升级SVIP,立享{{goods.vips.slideCount}}特权</view>
<view class='cash_back'>
本商品
<text class='red_font'>更返{{goods.vips.cashback_price}}元</text>
</view>
</view>
<view class='hint1'>
<view>分享商品邀请新人下单</view>
<view class='cash_back'>
即得
<text class='red_font'>{{goods.sharePrice}}元</text> 红包
</view>
</view>
</view>
<view class='item_list2'>
<view class='user_evaluation'>
<view class='user_evaluation_title'>用户评价</view>
<view class='user_evaluation_time' bindtap='jump_user_comment'>
<view>({{goods.info.comment_count}})</view>
<view class='iconfont icon-jinru icon-jinrus'></view>
</view>
</view>
<view class='user_information_box' wx:for='{{comment}}' wx:for-index='index' wx:key='{{index}}'>
<view class='user_information'>
<view class='the_star'>
<view class='head_portrait'>
<image src='{{item.avatar}}'></image>
</view>
<view class='star_box'>
<view class='user_name'>{{item.full_name}}</view>
<view class='oneoneonestar'>
<view class='stars1'>
<view class='iconfont icon-pingfen'></view>
<view class='iconfont icon-pingfen'></view>
<view class='iconfont icon-pingfen'></view>
<view class='iconfont icon-pingfen'></view>
<view class='iconfont icon-pingfen'></view>
</view>
<view class='stars1s'>
<view class='iconfont icon-pingfen icon-pingfens' wx:for='{{item.stars_arr}}' wx:key='{{item}}'></view>
</view>
</view>
</view>
</view>
<view class='title'>{{item.create_time}}</view>
</view>
<view class='evaluation'>{{item.content}}</view>
<view class='evaluation_img'>
<view class='upload_img_box'>
<view class='upload_img' wx:for='{{item.more.photos}}' wx:for-item='child' wx:key='{{child}}'>
<image src='{{child}}'></image>
</view>
</view>
</view>
<view class='comments_btn'>
<view class='iconfont icon-message'></view>
<view class='comments'>评论</view>
</view>
</view>
</view>
<view class='item_list3' wx:if='{{goods.promotion.length>0}}'>
<view class='package_title'>购买含本商品套餐更优惠</view>
<view class='package_box' bindtap='jump_goodsDetial2' data-id='{{item.promotion_id}}' wx:for='{{goods.promotion}}' wx:key='{{item.id}}'>
<view class='package_img_box'>
<view class='package_img'>
<image src='{{item.thumbnail}}'></image>
</view>
</view>
<view class='package_content'>
<view>{{item.title}}</view>
<view class='package_hint'>{{item.excerpt}}</view>
<view class='pickage_display'>最多可省
<text class='money_icon2'>¥</text>
<text class='money2'>{{item.save_price}}</text> </view>
</view>
</view>
</view>
<view class='item_list4' wx:if='{{goods.safety.length>0}}'>
<view class='detection'>
<view class='line1'></view>
<view class='detection_title'>安心检测</view>
<view class='line2'></view>
</view>
<view class='detection_hint'>经过14项感官排查,100%可溯,点标签查看。</view>
<view class='detection_item'>
<view class='detection_box' wx:for='{{goods.safety}}' wx:for-index='index' wx:key='{{index}}'>
<view class='detection_img'>
<image src='{{item.icon}}'></image>
</view>
<view>{{item.name}}</view>
</view>
</view>
</view>
<view class='itme_list5' bindtap='checkHeight' wx:if='{{goods.info.buyer_content}}'>
<view class='recommended_box'>
<view class='iconfont icon-maishoutuijian'></view>
<view>买手推荐</view>
</view>
<view class='foretaste_box'>
<view class='head_portrait'>
<image src='{{imgUrl}}icon32.png'></image>
</view>
<view class='buyer_recommend'>
<view class='buyer_name'>{{goods.buyer.name}}</view>
<view>{{goods.buyer.signature}}</view>
</view>
</view>
<view class='aaa'></view>
<view class='recommend_content'>
<view class='iconfont icon-shangyinhao'></view>
<view class='recommend_character'>{{goods.info.buyer_content}}</view>
<view class='triangle'></view>
</view>
</view>
<view class='ingredients shicai' wx:if='{{goods.food_material.length>0}}'>
<view class='ingredients_title'>食材包内含{{goods.food_material.length}}件</view>
<view class='ingredients_box'>
<view class='ingredients_img'>
<image src='{{goods.info.more.cookbook}}'></image>
</view>
<view>
<view class='ingredients_item' wx:for='{{goods.food_material}}' wx:key='{{cell}}' wx:for-item='cell'>
<view class='ingredients_name'>{{cell.name}}</view>
<view class='ingredients_content'>
<view class='marginRight' wx:for='{{cell.child}}' wx:key='{{item}}'>{{item}}</view>
</view>
</view>
</view>
</view>
</view>
<view class='item_list6' wx:if='{{collocation.length>0}}'>
<view class='collocation_title'>建议搭配 酸梅汁或红酒 解腻助消化</view>
<view class='collocation'>
<view class='collocation_box' wx:for='{{collocation}}' wx:for-item='cell' wx:key='{{cell.id}}' wx:for-index='index' bindtap='jump_collocation_detail'
data-jid='{{cell.other_id}}'>
<view class='collocation_img'>
<image src='{{cell.more.thumbnail}}'></image>
</view>
<view class='collocation_content'>
<view>{{cell.title}}</view>
<view class='introduce'>{{cell.excerpt}}</view>
<view class=''>
<text class='money_icon2'>¥</text>
<text class='money2'>{{cell.price}}</text>
<text class='original_price'>¥{{cell.old_price}}</text>
</view>
</view>
</view>
</view>
</view>
<view class='templates' id='NAV{{two}}'>
<template is="wxParse" data="{{wxParseData:content.nodes}}" />
</view>
</view>
</scroll-view>
<view class='bottom_btn'>
<view class='hint_btn'>
<view>
<navigator class='shop_car' url='../../cart/cart' open-type="switchTab">
<view class='iconfont icon-gouwuche'></view>
<view>购物车</view>
<view class='cart_count'>{{goods.cartCount}}</view>
</navigator>
</view>
<view bindtap='collection' bindtap='collection_true' data-id='{{goods.info.id}}'>
<view class='iconfont icon-shoucang {{goods.is_favorite==1||shoucang?"active":""}}'></view>
<view class='shop_car {{goods.is_favorite==1||shoucang?"active":""}}'>收藏</view>
</view>
</view>
<view wx:if='{{!goods.groupType}}' class='join_btn' bindtap='get_car'>加入购物车</view>
<!-- <view wx:if='{{goods.groupType}}' class='join_btns'></view> -->
<view class='immediately_btn {{minute==null?"active":""}} {{goods.groupType?"activity":""}}' bindtap='get_settle'>立即购买</view>
</view>
</view>
<!-- 加购弹框 -->
<view class='cart_mask' wx:if='{{show}}'>
<view class='cart_mask_diceng'>
<view class='close_jump_cart iconfont icon-cuowu' bindtap='close_mask_cart'></view>
<view class='goods_name'>{{goods.info.title}}</view>
<view class='weight' wx:for='{{goods.attr.attr_sku}}' wx:key='{{item.id}}' wx:for-index='cellindex' wx:for-item='cell'>
<view class='weight_view'>{{cell.name}}</view>
<view class='quality'>
<view class='quality_left {{value.t?"active":""}}' wx:for='{{cell.item}}' wx:key='{{key}}' data-gid='{{value.id}}' data-parent="{{cellindex}}" data-item="{{value.attribute_value}}" data-index="{{index}}" bindtap='changeIds' wx:for-item='value'>{{value.attribute_value}}</view>
</view>
</view>
<view class='last_box'>
<view class='last_box_top'>
<view class='last_box_top_price'>
<view>¥{{skuid_price}}</view>
</view>
</view>
<view class='last_box_top'>
<view class='last_box_top_price'>
<view class='member_price'>¥{{vip_skuid_price}}</view>
<text class='member'>会员专享</text>
</view>
<!-- <view class='jiajian'>
<view bindtap='dec_num' class='dec_num'>-</view>
<view class='numnum'> {{num}}</view>
<view bindtap='add_num' class='dec_num'>+</view>
</view> -->
<view class='purchase' data-limit='{{goods.info.limit_numer}}' bindtap='hide_mask'>加入购物车</view>
</view>
</view>
</view>
</view>
<!-- 直接购买弹框 -->
<view class='cart_mask' wx:if='{{shows}}'>
<view class='cart_mask_diceng'>
<view class='close_jump_cart iconfont icon-cuowu' bindtap='close_mask_carts'></view>
<view class='goods_name'>{{goods.info.title}}</view>
<view class='weight' wx:for='{{goods.attr.attr_sku}}' wx:key='{{item.id}}' wx:for-index='cellindex' wx:for-item='cell'>
<view class='weight_view'>{{cell.name}}</view>
<view class='quality'>
<view class='quality_left {{value.t?"active":""}}' wx:for='{{cell.item}}' wx:key='{{key}}' data-gid='{{value.id}}' data-parent="{{cellindex}}" data-item="{{value.attribute_value}}" data-index="{{index}}" bindtap='changeIds' wx:for-item='value'>{{value.attribute_value}}</view>
</view>
</view>
<view class='last_box'>
<view class='last_box_top'>
<view class='last_box_top_price'>
<view>¥{{goods.info.price}}</view>
</view>
</view>
<view class='last_box_top'>
<view class='last_box_top_price'>
<view class='member_price'>¥{{goods.info.vip_price}}</view>
<text class='member'>会员专享</text>
</view>
<view class='jiajian' wx:if='{{!goods.groupType}}'>
<view bindtap='dec_num' class='dec_num'>-</view>
<view class='numnum'> {{num}}</view>
<view bindtap='add_num' class='dec_num'>+</view>
</view>
<view class='purchase' bindtap='hide_masks'>确定</view>
</view>
</view>
</view>
</view>
<!-- 基本信息弹框 -->
<view class='cart_mask' wx:if='{{basicInfo}}'>
<view class='info_mask_diceng'>
<view class='close_jump_cart iconfont icon-cuowu' bindtap='close_mask_info'></view>
<view class='goods_name'>基本参数</view>
<view class='weight' wx:for='{{goods.attr.attr_com}}' wx:key='{{item.id}}' wx:for-index='cellindex' wx:for-item='cell'>
<view class='weight_view'>{{cell.name}}</view>
<view class='quality'>
<view class='quality_left active' wx:for='{{cell.item}}' wx:key='{{key}}' wx:for-item='value'>{{value.attribute_value}}</view>
</view>
</view>
<view class='iKnowLast' bindtap='iKnow'>
我知道了
</view>
</view>
</view>
</view>