index.wxml
17.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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
<!-- <view hidden="{{f_hidden}}" class="full_screen" style="background-color: #fff;"></view> -->
<!-- <full_screen id="full_screen"></full_screen> -->
<!-- 全屏控制 -->
<view wx:if="{{is_full_screen_show}}" class="full_screen" bindtap="go_full_ad" style="background-image: url('{{url+full_ad.ad_code}}');">
<view catchtap="close_full_screen" class="skip_box">跳过 <text>{{sec_show}}</text></view>
</view>
<!--普通界面-->
<wxs module="filter" src="../../../utils/filter.wxs"></wxs>
<view class="container rel" wx:if="{{ishow}}">
<block wx:if="{{banner}}">
<image class="xc-top-img abs" src="{{url}}/miniapp/images/top-img.png"></image>
</block>
<!-- 控制要不要显示顶部门店选择 -->
<block wx:if="{{is_topstore}}">
<store_select></store_select>
</block>
<!--搜索框-->
<view class="search-box {{scrollTop>10?'search-fixed':''}} flex-center white " style="top:{{is_topstore?88:0}}rpx">
<view class="classify-frame t-c" bindtap="go_cate">
<image class="classify-img" src="{{url}}/miniapp/images/classify.png"></image>
<view class="fs20">分
<text class="white fs22">类</text>
</view>
</view>
<view class="search-inner">
<view class="search-img">
<image class="wh100" src="{{url}}/miniapp/images/search.png"></image>
</view>
<input bindfocus="jumpSearch" class="search-cont" placeholder="请输入您所搜索的商品" type="text">
</input>
</view>
<view class="classify-frame t-c" bindtap="getScancode">
<image class="classify-img" src="{{url}}/miniapp/images/scanning.png"></image>
<view class="fs20">扫一扫</view>
</view>
</view>
<!--滚动广告-->
<view class="rel title-img" wx:if="{{banner}}">
<swiper circular="true" autoplay="true" class="swiper_box" duration="1000" interval="3000" vertical="" bindchange="bannerSwiperChange" style="height:{{max_sw_height}}rpx" circular="true">
<swiper-item wx:for="{{banner}}" wx:key="banner" class="swiperItem">
<view class="slide-image-frame">
<image bindtap='go_ad' data-url="{{item.ad_weapplink}}" class="slide-image" mode="widthFix" src="{{item.ad_code}}" bindload="imageLoad" data-index="{{index}}" lazy-load="true" binderror="bind_bnerr" data-errorimg="banner[{{index}}].ad_code"></image>
</view>
</swiper-item>
</swiper>
<view class="flex-center-around translation abs">
<view class="circle spot" wx:for="{{banner}}" wx:key="{{index}}" style="background:{{index==banner_index?'#fff':'#999'}}">
</view>
</view>
</view>
<view class="pd-view" wx:else></view>
<view class="flex-center-around {{banner==null?'mar-top':'mar-tops'}}">
<view class="flex-vertical">
<image class="xc-hook" src="{{url}}/miniapp/images/index/youxuan.png">
</image>
<text bindtap='go_test' class="yellow-co fs26 margin-left" data-url="../../../packageA/pages/prom_list/prom_list">人工优先</text>
</view>
<view class="flex-vertical">
<image class="xc-hook" src="{{url}}/miniapp/images/index/zhengpin.png">
</image>
<text class="yellow-co fs26 margin-left">正品保证</text>
</view>
<view class="flex-vertical">
<image class="xc-hook" src="{{url}}/miniapp/images/index/shouhou.png">
</image>
<text class="yellow-co fs26 margin-left">售后无忧</text>
</view>
</view>
<!---导航-->
<view class="venues_box">
<view class="venues_list">
<!-- <view class="venues_item">
<navigator url="/pages/activity/group_list/group_list">
<image src="{{url}}/miniapp/images/index/tuangou.png"></image>
<view>团购</view>
</navigator>
</view> -->
<view class="venues_item">
<navigator url="/packageA/pages/jfbuy/jfbuy">
<image src="{{url}}/miniapp/images/index/jifen.png"></image>
<view>积分购</view>
</navigator>
</view>
<view class="venues_item" wx:if="{{is_closecoupon!=1}}">
<navigator url="/packageA/pages/quan_list/quan_list">
<image src="{{url}}/miniapp/images/index/youhui.png"></image>
<view>优惠券</view>
</navigator>
</view>
<view class="venues_item">
<navigator url="/packageA/pages/checkin/checkin">
<image src="{{url}}/miniapp/images/index/qiandao.png"></image>
<view>签到</view>
</navigator>
</view>
<view class="venues_item">
<navigator bindtap="go_url" data-url="/pages/goods/categoryList/categoryList">
<image src="{{url}}/miniapp/images/index/fenlei.png"></image>
<view>全部分类</view>
</navigator>
</view>
</view>
</view>
<!-- 大分类 -->
<view class="flex-center-around">
<view wx:for="{{gd_category}}" bindtap="go_cate2" data-cid="{{item.id}}" data-pid="0">
<view class="circle xc-class-frame t-c">
<image class="xc-class-img" src="{{item.icoimg==null||item.icoimg==''?(item.image?url+item.image:url+'/miniapp/images/no_cate_def.png'):item.icoimg}}"
binderror="bind_bnerr_icon" data-err="gd_category[{{index}}].icon"></image>
<view class="fs24 gonju ellipsis-1">{{item.name}}</view>
</view>
</view>
</view>
<!-- 轮播 -->
<block wx:if="{{swiperimage.length>0}}">
<swiper class="swiper" autoplay="true" interval="5000" circular="{{true}}" indicator-dots="{{true}}" indicator-active-color="rgb(255,255,255)">
<!-- 活动轮播 -->
<block wx:for="{{swiperimage}}" wx:for-item="adver" wx:for-index="key">
<swiper-item>
<view class="title-img-frame">
<image class="xc-title-img" src="{{url+adver.image}}" bindtap="{{adver.nav_url==0?'go_quanyi':'new_nav'}}" data-url="{{adver.nav_url}}"></image>
</view>
</swiper-item>
</block>
</swiper>
</block>
<view class="split-line"></view>
<!--秒杀-->
<view class="seckill" wx:if="{{saleGoods!=null && pindGoods.length!=0 }}">
<navigator url="/pages/activity/seckill_list/seckill_list">
<view class="seckill-time">
<view class="classname flex">
<image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image>
<image class="seckill-ttitle-img height" src="{{url}}/miniapp/images/seckill-ttitle.png"></image>
</view>
<view class="flex seckill-list">
<text class="fs24 xc-marfin-right">查看全部</text>
<image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
</view>
</view>
</navigator>
<view class="seckill-list">
<swiper class="s_prom" indicator-dots="{{false}}" bindchange="flashSwiperChange">
<swiper-item wx:for="{{saleGoods}}" wx:key="{{index}}" class="p_swiper " wx:key="saleGoods">
<navigator class="ib m-left" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}" wx:for="{{item}}" wx:key="item" wx:for-item="aitem" wx:for-index="aind">
<view class="imgview ">
<image src="{{url+aitem.original_img}}" lazy-load="true" data-errorimg="saleGoods[{{index}}][{{aind}}].original_img" binderror="bind_bnerr3" data-img="{{aitem.original_img}}"></image>
<image wx:if="{{aitem.status==0}}" class="status_img" src="{{url}}/miniapp/images/miao/yure.png"></image>
<image wx:if="{{aitem.status==1}}" class="status_img" src="{{url}}/miniapp/images/miao/going.png"></image>
<image wx:if="{{aitem.status==2}}" class="status_img" src="{{url}}/miniapp/images/miao/mend.png"></image>
</view>
<view class="ellipsis-2">{{aitem.title}}</view>
<view class="red-co mar-top10 is_seckill_height">
<text class="fs20">¥</text>{{aitem.price}}
<text class="un_line">¥{{aitem.market_price}}</text>
</view>
</navigator>
</swiper-item>
</swiper>
<view class="flex-center-around translation">
<view class="circle spot" wx:for="{{saleGoods}}" wx:key="{{index}}" style="background:{{index==flash_index?'#fff':'#999'}}">
</view>
</view>
</view>
</view>
<!----拼单---->
<view class="seckill assemble-top-border" wx:if="{{pindGoods!=null && pindGoods.length!=0 }}">
<navigator url="/pages/activity/pind_list/pind_list">
<view class="seckill-time">
<view class="classname flex">
<image class="clock-img" src="{{url}}/miniapp/images/clock.png"></image>
<image class="seckill-ttitle-img" src="{{url}}/miniapp/images/team.png"></image>
<block wx:if="{{pt_timer_item}}">
<view class="flex user-frame t-c xc-ash {{pt_timer_active==1?'pt_active':''}}">
<image class="user-img circle" src="{{pt_timer_item.head_pic}}"></image>
<view class="ellipsis-1 user-name fs24">{{pt_timer_item.nickname}}</view>
<text class="fs20">刚拼团成功</text>
</view>
</block>
</view>
<view class="flex seckill-list">
<text class="fs24 xc-marfin-right">查看全部</text>
<image class="arrow-right" src="{{url}}/miniapp/images/icon-arrowdown.png"></image>
</view>
</view>
</navigator>
<view class="seckill-lists rel">
<swiper class="s_proms" style="height:{{pindGoods[0].length>1?'590':'290'}}rpx" indicator-active-color='red' bindchange="ptSwiperChange">
<swiper-item wx:for="{{pindGoods}}" wx:key="{{index}}" wx:for-index="pix">
<view class="teamheight" style='display:block;' wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">
<view class="kill-item">
<navigator class="flex navwidth" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{aitem.goods_id}}">
<view class="kill-pic">
<image class="wh100" src="{{url+aitem.original_img}}" data-val="{{aitem.original_img}}" data-errorimg="pindGoods[{{pix}}][{{aind}}].original_img" binderror="bind_bnerr2" lazy-load="true">
</image>
</view>
<view class="kill-cont">
<navigator class="goods-name ellipsis-2" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
{{aitem.title}}
</navigator>
<view class="flex left">
<view class="tneirong red-b flex-vertical rel" wx:if="{{aitem.is_team_tepy!=0}}">
<image class="xc-team-img abs" src="{{url}}/miniapp/images/fril.png"></image>
已拼{{aitem.buy_num}}份</view>
<view class="fs20 flex xc-people-val-frame" style="border-color:{{aitem.is_team_tepy==0?'#059de5':'#d60021'}};margin-left:{{aitem.is_team_tepy==0?'':'8rpx'}}">
<view class=" flex-center val-img {{aitem.is_team_tepy==0?'blue_b':'red-b'}}">
<image class="people-img" src="{{url}}/miniapp/images/bai-ren.png"></image>
</view>
<text class="{{aitem.is_team_tepy==0?'blue_c':'red-co'}}" style="margin-left:8rpx; margin-right:8rpx">{{aitem.ct_num}}人团</text>
</view>
<view class="fs20 blue_c time-blue" wx:if="{{aitem.is_team_tepy==0}}">
距开始:
<text class='tui-conutdown-box'>{{aitem.djs.day}}</text>天
<text class='tui-conutdown-box'>{{aitem.djs.hou}}</text>时
<text class='tui-conutdown-box'>{{aitem.djs.min}}</text>分
<text class='tui-conutdown-box tui-countdown-bg'>{{aitem.djs.sec}}</text> 秒
</view>
</view>
<view class="goods-num" style="margin-top:{{type==0?'70rpx':'40rpx'}}">
<view>
<view class="fs40 flex xc-top15 {{aitem.is_team_tepy==0?'blue_c ai-bas':' red-co ai-bas'}}">
<text class="fs28 {{aitem.is_team_tepy==0?'martop4':''}}">¥</text>
<text style="margin-left:-5rpx">{{aitem.price}}</text>
<span class="underline {{type==0?'martop18':''}}">零售价¥{{aitem.market_price}}</span>
</view>
</view>
</view>
</view>
</navigator>
</view>
</view>
</swiper-item>
</swiper>
<view class="flex-center-around translations abs">
<view class="circle spot" wx:for="{{pindGoods}}" wx:key="{{index}}" style="background:{{index==pt_index?'#fff':'#999'}}">
</view>
</view>
</view>
</view>
<!-- 好物推荐 -->
<view class="title" style="margin-bottom:{{isIpx ? '48rpx' : '0'}};">
<!-- 标题 -->
<view>
<!-- 中文名标题 -->
<view class="China flex-level">
<view class="line flex-vertical">
<view class="one"></view>
<view class="two"></view>
<view class="three"></view>
</view>
<view class="Recommend flex-level" bindtap="requestList">好物推荐</view>
<view class="line flex-vertical">
<view class="three"></view>
<view class="two"></view>
<view class="one"></view>
</view>
</view>
<!-- 英文标题 -->
<view class="english flex-center">
<view class="silk"></view>
<view class="esh five-level-word">GOOD HOT THING</view>
<view class="silk"></view>
</view>
</view>
<!-- 商品列表组件 -->
<goods_recommend id="goods_list"></goods_recommend>
<!-- 商品列表 -->
</view>
</view>
<block wx:if="{{f_hidden}}">
<!--是否是自定义-->
<view class="container" wx:if="{{isTemplate}}" style="background-color:{{bgcolor_t}}">
<!-- 置顶层 -->
<view class="dis_top">
<block wx:for="{{template_arr}}" >
<block wx:if="{{item.content.is_top==1}}">
<!--如果是搜索框的时候 -->
<block wx:if="{{item.ename=='searchbox'}}">
<searchbox object="{{item.content}}"></searchbox>
</block>
<block wx:if="{{item.ename=='store_select'}}">
<store_select object="{{item.content}}"></store_select>
</block>
</block>
</block>
</view>
<!-- 撑开层 -->
<view>
<block wx:for="{{template_arr}}" >
<view wx:if="{{item.content.is_top==1 && item.ename=='searchbox'}}" style="height: 100rpx;"></view>
<view wx:if="{{item.content.is_top==1 && item.ename=='store_select'}}" style="height: 100rpx;"></view>
</block>
</view>
<block wx:for="{{template_arr}}" wx:key="{{index}}">
<view>
<!--导航-->
<block wx:if="{{item.ename=='nav'}}">
<nav object="{{item.content}}"></nav>
</block>
<!--店招-->
<block wx:if="{{item.ename=='shopname'}}">
<shopname object="{{item.content}}"></shopname>
</block>
<!--广告组合-->
<block wx:if="{{item.ename=='advertising'}}">
<advertising object="{{item.content}}"></advertising>
</block>
<!--商品分组-->
<block wx:if="{{item.ename=='goodsGroup'}}">
<goodsGroup object="{{item.content}}"></goodsGroup>
</block>
<!--通知-->
<block wx:if="{{item.ename=='notice'}}">
<notice object="{{item.content}}"></notice>
</block>
<!--语音-->
<block wx:if="{{item.ename=='voice'}}">
<voice object="{{item.content}}"></voice>
</block>
<!--视频-->
<block wx:if="{{item.ename=='video'}}">
<mvideo object="{{item.content}}"></mvideo>
</block>
<!--搜索-->
<block wx:if="{{item.ename=='searchbox' && item.content.is_top!=1}}">
<searchbox object="{{item.content}}"></searchbox>
</block>
<!--天天拼单-->
<block wx:if="{{item.ename=='pingd_buy'}}">
<pingd_buy object="{{item.content}}"></pingd_buy>
</block>
<!--秒杀-->
<block wx:if="{{item.ename=='seckill'}}">
<seckill object="{{item.content}}"></seckill>
</block>
<!--标题-->
<block wx:if="{{item.ename=='title'}}">
<title object="{{item.content}}"></title>
</block>
<!--辅助空白-->
<block wx:if="{{item.ename=='white'}}">
<assist object="{{item.content}}"></assist>
</block>
<!--图片组合-->
<block wx:if="{{item.ename=='picMix'}}">
<picMax object="{{item.content}}"></picMax>
</block>
<!--在线上客服-->
<block wx:if="{{item.ename=='onlineService'}}">
<service object="{{item.content}}"></service>
</block>
<!--扫一扫-->
<block wx:if="{{item.ename=='scan'}}">
<scan object="{{item.content}}"></scan>
</block>
<!--扫一扫-->
<block wx:if="{{item.ename=='store_select' && item.content.is_top!=1}}">
<store_select object="{{item.content}}"></store_select>
</block>
</view>
</block>
</view>
</block>
<!-- 蒙尘 -->
<block wx:if="{{is_disgraceful}}">
<view class="disgraceful">
<!-- 新人礼领取图片 -->
<view class="newreceive flex-center">
<view>
<navigator bindtap="new_nav">
<view class="flex-level" style="position: relative;">
<image class="receive" src="{{url}}{{new_image==''?'/miniapp/images/newpeople/newreceive.png':new_image}}"></image>
<image class="close" src="{{url}}/miniapp/images/plus/Close.png" catchtap="close_disgraceful" style="margin-top: -70rpx; right: -60rpx;"></image>
</view>
</navigator>
<view class="flex-level"></view>
</view>
</view>
</view>
</block>
<!-- 抢红包 -->
<block wx:if="{{showHongbao}}">
<view class="hongbao-container">
<view class="hongbao">
<image src="{{url + 'miniapp/images/redmoney/hongBao.png'}}" class="hongbao-img" bindtap="nav_goto" data-url="/packageA/pages/hongBao/hongBao"/>
<image src="{{url + 'miniapp/images/redmoney/xlose.png'}}" class="close" bindtap="closeHongbao"/>
</view>
</view>
</block>
<block wx:if="{{showHongbaoSmall}}">
<view>
<image src="{{url + 'miniapp/images/redmoney/hongbao_sm.gif'}}" class="hongbao_sm-img" bindtap="nav_goto" data-url="/packageA/pages/hongBao/hongBao"/>
</view>
</block>