search_result.wxml
21.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
<view class='page {{flag?"active":""}}'>
<view class='banner'>
<!-- <view class='iconfont icon-fanhui'></view> -->
<view class='input_box'>
<view>
<input type="text" placeholder='请输入搜索内容' class='input_placeholder' placeholder-class='banner_input' value='{{keyword}}' bindinput='get_keyWords' class='input_placeholder'></input>
</view>
<view class='iconfont icon-quxiao' bindtap='clear_keyword'></view>
</view>
<view class='serach' bindtap='send_search'>搜索</view>
</view>
<view class='nav_type_boxs'>
<view class='nav_type_left'>
<view class='nav_type {{wangge==0?"type_active":""}}' bindtap='changeWangGe0'>
<text class='iconfont icon-liebiao'></text>
<text>列表</text>
</view>
<view class='nav_type {{wangge==1?"type_active":""}}' bindtap='changeWangGe1'>
<text class='iconfont icon-wangge'></text>
<text>网格</text>
</view>
<view class='nav_type {{wangge==2?"type_active":""}}' bindtap='changeWangGe2'>
<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 class='item_list6'>
<view wx:if='{{wangge==0}}'>
<view>
<view class='goodbox'>
<view class='good_item' wx:for='{{searchList}}' wx:key='{{item.id}}' data-goods='{{item.id}}'>
<view class='good_img' bindtap='get_goodsDetial' data-goods='{{item.id}}'>
<image src='{{item.label}}' class='good_img_label'></image>
<image src='{{item.more.thumbnail}}' class='good_img_img'></image>
</view>
<view class='good_right'>
<view class='good_name'>{{item.title}}</view>
<view class='good_stand'>{{item.excerpt}}</view>
<view class='good_price_three'>
<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 red_rmb'>¥</text> {{item.vip_price}}</text>
<view class='good_vip_spec'>
<image class='vipvip' src='{{imgUrl}}vipvip.png'></image>
</view>
</view>
<view class='good_btn'>
<view class='iconfont icon-gouwuche' catchtap='show_cart_mask' data-goods='{{item.id}}'></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class='ad_box' bindtap='show_ad' wx:if='{{showad}}'>
<image src='{{imgUrl}}atan@2x.png' mode='widthFix' catchtap='goad'></image>
<view class='iconfont icon-quxiao'></view>
</view>
</view>
<view>
<view class='goodbox goods_margin_top'>
<view class='good_item' wx:for='{{groupList}}' wx:key='{{item.id}}' data-goods='{{item.id}}' >
<view class='good_img' bindtap='get_goodsDetial' data-goods='{{item.id}}'>
<image src='{{item.label}}' class='good_img_label'></image>
<image class='group_image' src='{{item.more.thumbnail}}'></image>
<view class='group_time {{item.group_status==1?"active":""}}'>
距
<text wx:if='{{item.group_status==1}}'>开始\t\t\t</text>
<text wx:elif='{{item.group_status==2}}'>结束\t\t\t</text> {{day}}天{{hour}}小时
</view>
</view>
<view class='good_right'>
<view class='good_name'>{{item.title}}</view>
<view class='good_stand'>{{item.excerpt}}</view>
<view class='good_price_progress'>
<progress show-info border-radius='4' activeColor='#ffda44' stroke-width='8' percent='{{percent}}' font-size='12'></progress>
<text class='group_font'>已拼{{item.group_number}}份\t\t\t\t目标{{item.group_min_number}}份</text>
</view>
<view>
<view class='good_vipbox'>
<view class='good_vipbox_left good_price_three'>
<text class='good_vip red_rmb_right'><text class='rmb red_rmb'>¥</text> {{item.vip_price}}</text>
<text class='good_oprice'><text class='rmb'>¥</text>{{item.old_price}}</text>
</view>
<view class='good_btn' wx:if='{{0}}'>
<view class='iconfont icon-gouwuche' catchtap='show_cart_mask' data-goods='{{item.id}}'></view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- <view class='else'>亲,没有商品啦?</view> -->
</view>
<view wx:if='{{wangge==1}}' class='wangge_box'>
<view class='collocation collections'>
<view class='collocation_box' wx:for='{{searchList}}' wx:key='{{item.id}}'>
<view class='collocation_img' data-goods='{{item.id}}' bindtap='get_goodsDetial'>
<image src='{{item.label}}' class='collocation_img_label'></image>
<image src='{{item.more.thumbnail}}' class='collocation_img_image'></image>
</view>
<view class='collocation_content'>
<view>{{item.title}}</view>
<view class='introduce introduces'>{{item.excerpt}}</view>
<view>
<view class='price_big_box'>
<text class='money_icon2 money_icon2s'>¥</text>
<text class='money2 money2s'>{{item.price}}</text>
<text class='original_price original_prices'>¥{{item.old_price}}</text>
</view>
<view class='good_vipbox good_vipboxs'>
<view class='good_vipbox_left'>
<text class='good_vip'><text class='rmb red_rmb'>¥</text> {{item.vip_price}}</text>
<view class='good_vip_spec'>
<image class='vipvip' src='{{imgUrl}}vipvip.png'></image>
</view>
</view>
<view class='good_btn cart_icon'>
<view class='iconfont icon-gouwuche' catchtap='show_cart_mask' data-goods='{{item.id}}'></view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- <view class='else'>亲,没有商品啦?</view> -->
</view>
<view wx:if='{{wangge==2}}'>
<view class='back_white'>
<view class='big_img_box'>
<view class='goods_for' wx:for='{{searchList}}' wx:key='{{item.id}}' data-goods='{{item.id}}' bindtap='get_goodsDetial'>
<view class='goods_for_img'>
<image class='goods_for_img_label' src='{{item.label}}'></image>
<image src='{{item.more.thumbnail}}' class='goods_for_img_image'></image>
</view>
<view class='goods_for_font'>
<view class='good_btn cart_icons'>
<view class='iconfont icon-gouwuche' catchtap='show_cart_mask' data-goods='{{item.id}}'></view>
</view>
<view class='goods_for_font_one'>{{item.title}}</view>
<view class='goods_for_font_two'>{{item.excerpt}}</view>
<view class='goods_for_font_three'>
<view class='goods_for_font_three_one'>
<view>¥</view>
{{item.price}}
</view>
<view class='goods_for_font_three_two'>¥{{item.old_price}}</view>
<view class='goods_for_font_three_three'>
<view>¥</view>
{{item.vip_price}}
</view>
<view class='goods_for_three_four'>
<image class='vipvip' src='{{imgUrl}}vipvip.png'></image>
</view>
</view>
</view>
</view>
<!-- <view class='else'>亲,没有商品啦?</view> -->
</view>
</view>
</view>
</view>
</view>
<!-- 筛选弹窗LXY -->
<view class='masx_box' wx:if='{{flag}}' bindtap='close_flag'>
<view class='popup_box'>
<view class='popup_content' wx:for='{{screen}}' 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 {{item.t?"active":"" }}' wx:for='{{cell.item}}' wx:key='{{item.attribute_value}}' data-id='{{item.id}}' data-select="{{cell.is_checkbox}}" data-parent="{{cellindex}}" data-item="item" data-index="{{index}}"catchtap='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' catchtap='reset_select'>重置</view>
<view class='btn2' catchtap='close_all'>完成</view>
</view>
</view>
<!--加购弹框 -->
<!-- <view class='jump_cart_mask' wx:if='{{show_cart_mask}}'>
<view class='cart_jump_diceng'>
<view class='close_jump_cart iconfont icon-cuowu' bindtap='close_jump_msk'></view>
<view class='good_one'>
<view class='goods_one_left'>
<image src='{{goods_item.info.more.thumbnail}}'></image>
</view>
<view class='goods_one_right'>
<view class='goods_one_right_one'>{{goods_item.info.title}} </view>
<view class='goods_one_right_two'>
<text class='right_two_left'>¥{{skuid_price}}</text>
<text class='right_two_right'>¥{{old_skuid_price}}</text>
</view>
<view class='goods_one_right_three'>
<view class='right_three_left'>¥
<text>{{vip_skuid_price}}</text>
</view>
<text class='right_three_right'> <image class='vipvip' src='{{imgUrl}}vipvip.png'></image></text>
</view>
<text class='goods_one_right_four'>选择\t\t\t{{idss_item}}</text>
</view>
</view>
<view class='goods_two_right' wx:for='{{goods_item.attr.attr_sku}}' wx:key='{{item.id}}' wx:for-item="cell" wx:for-index="cellindex">
<view class='goods_two_right_one'>{{cell.name}}</view>
<view class='goods_two_right_two'>
<view class='goods_two_right_two_item {{value.t?"active":"" }}' wx:for='{{cell.item}}' wx:key='{{key}}' data-id='{{value.id}}' data-parent="{{cellindex}}" data-item="{{value.attribute_value}}" data-index="{{index}}" wx:key='{{index}}' wx:for-item='value'
bindtap='changeIds'>{{value.attribute_value}}</view>
</view>
</view>
<view class='goods_three'>
<view class='goods_three_one'>
<view class='goods_three_one_left'>购买数量</view>
<view class='goods_three_one_right'>
<view class='jian_dec' bindtap='dec_item'>-</view>
<view class='jian_dec item'>{{item}}</view>
<view class='jian_dec' bindtap='add_item'>+</view>
</view>
</view>
</view>
<view class='goods_four' bindtap='jump_cart_id'>加入购物车</view>
</view>
</view> -->
<!--加购弹框 -->
<view class='jump_cart_mask' wx:if='{{show_cart_mask}}'>
<view class='cart_jump_diceng'>
<view class='close_jump_cart iconfont icon-cuowu' bindtap='close_jump_msk'></view>
<view class='good_one'>
<view class='goods_one_left'>
<image src='{{goods_item.info.more.thumbnail}}'></image>
</view>
<view class='goods_one_right'>
<view class='goods_one_right_one'>{{goods_item.info.title}} </view>
<view class='goods_one_right_two'>
<text class='right_two_left'>¥{{skuid_price}}</text>
<text class='right_two_right'>¥{{old_skuid_price}}</text>
</view>
<view class='goods_one_right_three'>
<view class='right_three_left'>¥
<text>{{vip_skuid_price}}</text>
</view>
<!-- <text class='right_three_right'>-->
<image class='vipvip' src='../../imgs/vip_du.png'></image>
<!-- </text> -->
</view>
<text class='goods_one_right_four'>选择\t\t\t{{sku_values}}</text>
</view>
</view>
<view class='goods_two_right' wx:for='{{goods_item.attr.attr_sku}}' wx:key='{{item.id}}' wx:for-item="cell" wx:for-index="cellindex">
<view class='goods_two_right_one'>{{cell.name}}</view>
<view class='goods_two_right_two'>
<view class='goods_two_right_two_item {{value.t?"active":"" }}' wx:for='{{cell.item}}' wx:key='{{key}}' data-id='{{value.id}}' data-parent="{{cellindex}}" data-item="{{value.attribute_value}}" data-index="{{index}}" wx:key='{{index}}' wx:for-item='value'
bindtap='changeIds'>{{value.attribute_value}}</view>
</view>
</view>
<view class='goods_three'>
<view class='goods_three_one'>
<view class='goods_three_one_left'>购买数量</view>
<view class='goods_three_one_right'>
<view class='jian_dec' bindtap='dec_item'>-</view>
<view class='jian_dec item'>{{item}}</view>
<view class='jian_dec' bindtap='add_item'>+</view>
</view>
</view>
</view>
<view class='goods_four' data-limit='{{goods_item.info.limit_numer}}' bindtap='jump_cart_id'>加入购物车</view>
</view>
</view>