index.wxml
22.8 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
<view class='page'>
<view class='index_top'>
<view class='index_add' bindtap='chooseAdress'>
<view class='iconfont icon-location'></view>
<text class='city_box'>{{city}}</text>
</view>
<view class='index_input' bindtap='search'>
<input placeholder='有机红颜草莓' placeholder-class='holder'></input>
<icon type='search' size='16' color='#222'></icon>
</view>
<view class='iconfont icon-message' bindtap='toMessage'></view>
</view>
<view class='nav_box'>
<swiper display-multiple-items='{{num}}' class='swiper_nav_box'>
<swiper-item>
<text class='font-nav {{nav===0?"nav_swiper_active":""}}' bindtap='changeNav1'>
推荐
</text>
</swiper-item>
<swiper-item bindtap='active_btn' wx:for='{{category}}' wx:key='{{item.id}}' class='swiper_item'>
<text class='font-nav {{nav===item.id?"nav_swiper_active":""}}' bindtap='changeNav2' data-id='{{item.id}}'>{{item.name}}</text>
</swiper-item>
</swiper>
<view class='nav_text' bindtap='operation_all'>
<text class='iconfont icon-fenlei'></text>
</view>
</view>
<block wx:if='{{nav===0}}'>
<swiper previous-margin='40rpx' next-margin='40rpx' circular='true' display-multiple-items='1' class='swiper_banner_box'>
<swiper-item wx:for='{{special}}' wx:key='{{item.id}}'>
<image src='{{item.image}}' class="slide-image {{currentIndex == 0 ? 'active': ''}}"></image>
</swiper-item>
</swiper>
<view class='safe_box'>
<view>
<text class='iconfont icon-jiance'></text>
<text>安心检测</text>
</view>
<view>
<text class='iconfont icon-xingzhuang'></text>
<text>优选源头</text>
</view>
<view>
<text class='iconfont icon-xingzhuang1'></text>
<text>赔付保证</text>
</view>
</view>
<view class='classfy'>
<!-- <navigator to='{{banner.url}}'> -->
<image src='{{banner.image}}'></image>
<!-- </navigator> -->
</view>
<view class="safety_box function">
<navigator class="safe_item clo" url='goods_detial/goods_detial' hover-class="none">
<image src="../imgs/ic01@2x.png" alt="" mode='aspectFit'></image>
<text>会员俱乐部</text>
</navigator>
<navigator url='../my/balance _center2/balance _center2' class="safe_item clo" hover-class="none">
<image src="../imgs/ic02@2x.png" alt="" mode='aspectFit'></image>
<text>储值送券</text>
</navigator>
<navigator url="../my/balance _center2/balance _center2" class="safe_item clo" hover-class="none">
<image src="../imgs/ic03@2x.png" alt="" mode='aspectFit'></image>
<text>邀请有礼</text>
</navigator>
<navigator href="" class="safe_item clo" hover-class="none">
<image src="../imgs/ic04@2x.png" alt="" mode='aspectFit'></image>
<text>每日签到</text>
</navigator>
</view>
<view class='new_person_box'>
<view class="index_title">
<text class="title_left"></text>
<text class="title_mid">超值新人礼包</text>
<text class="title_right"></text>
</view>
<scroll-view class='scroll_box' scroll-x>
<navigator url='/pages/index/goodsDetial/goodsDetial' class='new_person_item'>
<image src='../imgs/pic1.png'></image>
<view class='goods_name'>三纹鱼片</view>
<view>
<text class='rmb'>¥</text>
<text class='pprice'>26.0</text>
<text class='oprice'>¥52.0</text>
</view>
</navigator>
<navigator url='/pages/index/goodsDetial/goodsDetial' class='new_person_item'>
<image src='../imgs/pic1.png'></image>
<view class='goods_name'>三纹鱼片</view>
<view>
<text class='rmb'>¥</text>
<text class='pprice'>26.0</text>
<text class='oprice'>¥52.0</text>
</view>
</navigator>
<navigator url='/pages/index/goodsDetial/goodsDetial' class='new_person_item'>
<image src='../imgs/pic1.png'></image>
<view class='goods_name'>三纹鱼片</view>
<view>
<text class='rmb'>¥</text>
<text class='pprice'>26.0</text>
<text class='oprice'>¥52.0</text>
</view>
</navigator>
</scroll-view>
</view>
<view class='nav_type_box'>
<view class='nav_type_left'>
<view class='nav_type type_active'>
<text class='iconfont icon-liebiao'></text>
<text>列表</text>
</view>
<view class='nav_type'>
<text class='iconfont icon-wangge'></text>
<text>网格</text>
</view>
<view class='nav_type'>
<text class='iconfont icon-datu'></text>
<text>大图</text>
</view>
</view>
<view class='nav_type_right'>
<text class='iconfont icon-shaixuan'></text>
<text bindtap='select'>筛选</text>
</view>
</view>
<view wx:for='{{product_item}}' wx:key='{{item.id}}'>
<view class='classfy' style='padding-top:40rpx;'>
<image src='{{item.more.banner}}' bindtap='get_contant'></image>
</view>
<view class='goodbox'>
<view class='good_item' bindtap='get_goodsDetial' wx:for='{{item.product_item}}' wx:key='{{item.id}}'>
<view class='good_img'>
<image src='{{item.more.thumbnail}}'></image>
</view>
<view class='good_right'>
<view class='good_name'>{{item.title}}</view>
<view class='good_stand'>{{item.label}}</view>
<view>
<text class='good_pprice'><text class='rmb'>¥</text>{{item.price}}</text>
<text class='good_oprice'><text class='rmb'>¥</text>{{item.old_price}}</text>
</view>
<view>
<view class='good_vipbox'>
<view class='good_vipbox_left'>
<text class='good_vip'><text class='rmb'>¥</text> {{item.vip_price}}</text>
<view class='good_vip_spec'>会员专享</view>
</view>
<view class='good_btn'>
<view class='iconfont icon-gouwuche'></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='ad_box' bindtap='show_ad' wx:if='{{showad}}'>
<image src='../imgs/atan@2x.png' mode='widthFix' catchtap='goad'></image>
<view class='iconfont icon-quxiao'></view>
</view>
</view>
<!-- 筛选弹窗LXY -->
<view class='masx_box' bindtap='cancleMask' wx:if='{{popup_state}}'>
<view class='popup_box'>
<view class='popup_content'>
<view class='popup_title'>烹饪时间</view>
<view class='popup_item'>
<view class='popup_item_content'>10分钟</view>
<view class='popup_item_content'>10分钟</view>
<view class='popup_item_content'>10分钟</view>
</view>
</view>
<view class='popup_content'>
<view class='popup_title'>烹饪时间</view>
<view class='popup_item'>
<view class='popup_item_content'>1~2星</view>
<view class='popup_item_content'>1~2星</view>
<view class='popup_item_content'>1~2星</view>
</view>
</view>
<view class='popup_content'>
<view class='popup_title'>烹饪时间</view>
<view class='popup_item'>
<view class='popup_item_content'>微辣</view>
<view class='popup_item_content'>微辣</view>
<view class='popup_item_content'>微辣</view>
<view class='popup_item_content'>微辣</view>
</view>
</view>
<view class='popup_content'>
<view class='popup_title'>烹饪时间</view>
<view class='popup_item'>
<view class='popup_item_content'>
<text class='iconfont icon-xiaoyu'></text>500cal </view>
<view class='popup_item_content'> 500~2000cal </view>
<view class='popup_item_content'> >2000cal</view>
</view>
</view>
<view class='popup_content'>
<view class='popup_title'>烹饪时间</view>
<view class='popup_item'>
<view class='popup_item_content'>10分钟</view>
<view class='popup_item_content'>10分钟</view>
<view class='popup_item_content'>10分钟</view>
</view>
</view>
<view class='popup_content'>
<view class='popup_title'>饮食禁忌/过敏(多选)</view>
<view class='popup_item'>
<view class='popup_item_content'>鸡蛋</view>
<view class='popup_item_content'>乳制品</view>
<view class='popup_item_content'>海鲜</view>
<view class='popup_item_content'>鸡蛋</view>
<view class='popup_item_content'>乳制品</view>
<view class='popup_item_content'>海鲜</view>
<view class='popup_item_content'>鸡蛋</view>
<view class='popup_item_content'>乳制品</view>
<view class='popup_item_content'>后台自定义</view>
</view>
</view>
<view class='popup_hint'>菜系(↓往下轮播可筛选更多属性)</view>
<view class='popup_btn'>
<view class='btn1'>重置</view>
<view class='btn2'>完成</view>
</view>
</view>
</view>
</block>
<block wx:if='{{nav===item.id}}' wx:for='{{category}}' wx:key='{{item.id}}'>
<swiper previous-margin='40rpx' next-margin='40rpx' circular='true' display-multiple-items='1' class='swiper_banner_box'>
<swiper-item>
<image src='{{two_banner}}'></image>
</swiper-item>
</swiper>
<swiper class='swiper_nav_boxs' display-multiple-items='{{count}}'>
<swiper-item class='swiper_items' wx:for='{{goods}}' wx:key='{{item.id}}'>
<view class='{{erji===item.id?"active":""}}'>{{item.name}}</view>
</swiper-item>
</swiper>
<view class='nav_type_box'>
<view class='nav_type_left'>
<view class='nav_type type_active'>
<text class='iconfont icon-liebiao'></text>
<text>列表</text>
</view>
<view class='nav_type'>
<text class='iconfont icon-wangge'></text>
<text>网格</text>
</view>
<view class='nav_type'>
<text class='iconfont icon-datu'></text>
<text>大图</text>
</view>
</view>
<view class='nav_type_right' bindtap='select'>
<text class='iconfont icon-shaixuan'></text>
<text>筛选</text>
</view>
</view>
<block wx:for='{{goods}}' wx:key='{{item.id}}'>
<view class='classfy' style='padding-top:40rpx;'>
<image src='{{item.more.banner}}' bindtap='get_contant'></image>
</view>
<view class='goodbox'>
<view class='good_item' bindtap='get_goodsDetial' wx:for='{{goods[0].child}}' wx:key='{{item.id}}'>
<view class='good_img'>
<image src='{{item.image[0]}}'></image>
</view>
<view class='good_right'>
<view class='good_name'>{{item.title}}</view>
<view class='good_stand'>量大好吃无限回购</view>
<view>
<text class='good_pprice'><text class='rmb'>¥</text>{{item.price}}</text>
<text class='good_oprice'><text class='rmb'>¥</text>{{item.old_price}}</text>
</view>
<view>
<view class='good_vipbox'>
<view class='good_vipbox_left'>
<text class='good_vip'><text class='rmb'>¥</text> {{item.vip_price}}</text>
<view class='good_vip_spec'>会员专享</view>
</view>
<view class='good_btn'>
<view class='iconfont icon-gouwuche'></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='ad_box' bindtap='show_ad' wx:if='{{showad}}'>
<image src='../imgs/atan@2x.png' mode='widthFix' catchtap='goad'></image>
<view class='iconfont icon-quxiao'></view>
</view>
</block>
</block>
<!-- 筛选弹窗LXY -->
<view class='masx_box' wx:if='{{flag}}'>
<view class='popup_box'>
<view class='popup_content' wx:for='{{select}}' wx:key='{{item.id}}' wx:for-item="cell" wx:for-index="cellindex" >
<view class='popup_title'>{{cell.name}}</view>
<view class='popup_item'>
<view class='popup_item_content {{currnetindexs===index&&main==mainindex?"active":""}}' wx:for='{{cell.item}}' wx:key='{{item.attribute_value}}' data-id='{{item.id}}' data-indexs="{{cellindex}}" data-index="{{index}}" bindtap='changeId'>{{item.attribute_value}}</view>
</view>
</view>
</view>
<view class='popup_hint' wx:if='{{select.length>5}}'>菜系(↓往下轮播可筛选更多属性)</view>
<view class='popup_btn'>
<view class='btn1'>重置</view>
<view class='btn2' bindtap='close_all'>完成</view>
</view>
</view>
<view class='index_top_mask' wx:if='{{all}}'>
<view class='all_classify'>
<view class='all_classify_one'>
全部分类
<view class='cuowu' bindtap='cancel_both_category'>×</view>
</view>
<view class='all_classify_two'>
<view class='all_classify_two_item'>
<image src='../imgs/goods_1.png'></image>
<text>热卖</text>
</view>
<view class='all_classify_two_item'>
<image src='../imgs/goods_1.png'></image>
<text>热卖</text>
</view>
<view class='all_classify_two_item'>
<image src='../imgs/goods_1.png'></image>
<text>热卖</text>
</view>
<view class='all_classify_two_item'>
<image src='../imgs/goods_1.png'></image>
<text>热卖</text>
</view>
<view class='all_classify_two_item'>
<image src='../imgs/goods_1.png'></image>
<text>热卖</text>
</view>
<view class='all_classify_two_item'>
<image src='../imgs/goods_1.png'></image>
<text>热卖</text>
</view>
</view>
</view>
</view>
</view>