index.wxml
9.7 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
<!-- <scroll-view scroll-y="true" style="height:100%" bindscroll="scroll" scroll-top="{{scrollTop}}" bindscrolltolower="loadMore"> -->
<view>
<view class='page'>
<view class='top'>
<navigator class='search_box' url="/pages/search/search">
<image src='/images/search.png' class='search_icon'></image>
<input class='real_search' placeholder='搜索您想要的商品'></input>
</navigator>
<view class="morebox" bindtap="more">
<view class="moreimg">
<image src="/images/more.png"></image>
</view>
</view>
</view>
<!-- <view class='list' wx:if="{{nav_index!=0}}">
<view class='list_item' wx:if="{{index < length_num}}" wx:for="{{class_arr}}" wx:key="index" data-id="{{item.id}}" data-index="{{index}}" catchtap="look_item">
<view class='item'>
<view class='item_img'>
<image src='{{item.image}}' mode='aspectFill' />
</view>
<view class='item_font'>{{item.name}}</view>
</view>
</view>
<view class='list_item' data-type="1" catchtap="show_all" wx:if="{{class_arr.length>9}}">
<view class='item'>
<view class='item_img'>
<image src='/images/all.png' />
</view>
<view class='item_font'>{{length_num == 9?'查看全部':'收起'}}</view>
</view>
</view>
</view> -->
<!-- 轮播图 -->
<!-- catchtap="{{item.goods_id == 0?'':'look_more'}}" -->
<view>
<view class="tuoyuan">
<image src="/images/tuoyuan.png"></image>
<view class="lunbo_box {{nav_index==0?'boxactive':''}}">
<swiper interval="{{interval}}" duration="{{duration}}" circular="{{circular}}"
current='{{current}}' bindchange='swiperChange' autoplay="{{autoplay}}" class='swiper_box'>
<swiper-item class='swiper-item' wx:for="{{imgurl}}" wx:key="index">
<image src='{{item.image}}' mode="aspectFill" data-id="{{item.goods_id}}"
data-style="{{item.type}}" data-src="{{item.url}}" catchtap="look_more" />
</swiper-item>
</swiper>
<view class="dots">
<block wx:for="{{imgurl}}" wx:key="index">
<view class="dot {{zcurrent == index ? 'active':''}}"></view>
</block>
</view>
</view>
</view>
</view>
<!-- 劳保 -->
<view class="quan">
<view class="quanitem">
<image src="/images/xing.png" class="qiuimg"></image>
<view class="quanname">全球心选</view>
</view>
<view class="quanitem">
<image src="/images/zheng.png" class="qiuimg"></image>
<view class="quanname">正品保障</view>
</view>
<view class="quanitem">
<image src="/images/gou.png" class="qiuimg"></image>
<view class="quanname">售后无忧</view>
</view>
<view class="quanitem">
<image src="/images/dianhua.png" class="qiuimg"></image>
<view class="quanname">优质客服</view>
</view>
</view>
<view class="fenlei">
<view class="fenleiitem" bindtap="laobao">
<image src="/images/img_laobao.png" mode="widthFix"></image>
</view>
<view class="fenleiitem" bindtap="gonghui">
<image src="/images/img_laobao2.png" mode="widthFix"></image>
</view>
<view class="fenleiitem" bindtap="canban">
<image src="/images/img_laobao-1@2x.png" mode="widthFix"></image>
</view>
<view class="fenleiitem" bindtap="birthday" id="1">
<image src="/images/img_laobao3@2x.png" mode="widthFix"></image>
</view>
<!-- <view class="fenleiitem" bindtap="birthday" id="2">
<image src="/images/img_laobao4.png" mode="widthFix"></image>
</view> -->
</view>
<!-- 新品上线 -->
<view class="huo">
<image src="/images/huo.png" class="huoimg"></image>
<view class="pingtai">轻奢各样商品钜惠来袭</view>
</view>
<view class="newgoodbox">
<view class="newgood">
<view class="newgoodleft" bindtap="seeactive" data-id="{{activity[0].id}}">
<view class="newgoodlefttop">
<view class="newtitle" style="color:{{activity[0].name_color}}">{{activity[0].name}}</view>
<view class="hot" style="background:{{activity[0].describe_color}}">{{activity[0].label}}</view>
</view>
<view class="newgoodlist">
<view class="hotgoodimg">
<image src="{{activity[0].image}}"></image>
</view>
</view>
</view>
<view class="newgoodleft" bindtap="seeactive" data-id="{{activity[1].id}}">
<view class="newgoodlefttop">
<view class="newtitle" style="color:{{activity[1].name_color}}">{{activity[1].name}}</view>
<view class="youxuan" style="background:{{activity[1].label_color}}">{{activity[1].label}}
</view>
</view>
<view class="jiesuo" style="color:{{activity[1].describe_color}}">{{activity[1].describe}}</view>
<view class="newgoodlist">
<view class="hotgoodimgk">
<image src="{{activity[1].image}}"></image>
</view>
</view>
</view>
</view>
<view class="newgood">
<view class="dapaiitem" bindtap="seeactive" data-id="{{activity[2].id}}">
<view class='dapaititle' style="color:{{activity[2].name_color}}">{{activity[2].name}}</view>
<view class='nvshen' style="color:{{activity[2].describe_color}}">{{activity[2].describe}}</view>
<view class="dapaiimg">
<image src="{{activity[2].image}}"></image>
</view>
</view>
<view class="dapaiitem" bindtap="seeactive" data-id="{{activity[3].id}}">
<view class='dapaititle' style="color:{{activity[3].name_color}}">{{activity[3].name}}</view>
<view class='nvshen' style="color:{{activity[3].describe_color}}">{{activity[3].describe}}</view>
<view class="dapaiimg">
<image src="{{activity[3].image}}"></image>
</view>
</view>
<view class="dapaiitem" bindtap="seeactive" data-id="{{activity[4].id}}">
<view class='dapaititle' style="color:{{activity[4].name_color}}">{{activity[4].name}}</view>
<view class='nvshen' style="color:{{activity[4].describe_color}}">{{activity[4].describe}}</view>
<view class="dapaiimg">
<image src="{{activity[4].image}}"></image>
</view>
</view>
</view>
</view>
<!-- 活动区域 -->
<view class="actboxpage" wx:if="{{nav_index==0}}">
<!-- <view class="pinpainame">品牌专区</view> -->
<view class="pinpaiheng">
<view class="huok">
<image src="/images/zuanshi.png" class="huoimg"></image>
<view class="pinname">品牌专区</view>
<view class="chaoduo">超多大牌 轻松选择 </view>
</view>
<view class="tosee" bindtap="gopinpai">
全部
<image src="/images/gosee.png" class="seeimg"></image>
</view>
</view>
<view class="actity" wx:if="{{status1==1}}">
<!-- <view class="miaoshaoname">活动专区</view> -->
<view class="active flexone">
<view wx:for="{{pinpailist}}" class="actbox" wx:key="" bindtap="cityTap" data-id="{{item.id}}">
<view class="activeitem">
<image src="{{item.image}}" mode="widthFix"></image>
</view>
<view class="activename">{{item.name}}</view>
</view>
</view>
</view>
<!-- <view class="miaosha xianshi" wx:if="{{status2==1&&activitystatus==3&&xianshilist.length!=0}}" bindtap="moremiao">
<view class="neigouimg">
<image src="{{logok}}"></image>
</view>
</view> -->
</view>
<!-- 公告栏 -->
<!-- url="../notice/notice" -->
<!-- <view class="notice">
<image src="/images/notice.png" class="notice_tips" />
<view class="notice_word">
<view class="notice_item" wx:for="{{notice}}" wx:key="index" wx:if="{{index<2}}" bindtap="noticedetail" data-id="{{item.id}}">
<view class="dian" />
<view class="word">{{item.title}}</view>
<view class="time">{{item.createtime}}</view>
</view>
</view>
</view> -->
<!-- 大分类 -->
<!-- {{stick==1?'navactive':''}} -->
<!-- <view class="navactive">
<view class="horizontal_nav ">
<view class="nav_item {{nav_index == index?'active':''}}" wx:for="{{nav_arr}}" wx:key="index" bindtap="select_nav" data-index="{{index}}" data-id="{{item.id}}">{{item.name}}</view>
</view>
<view class="morebox" bindtap="more">
<view class="moreimg">
<image src="/images/more.png"></image>
</view>
</view>
</view> -->
<!-- <view class='select_box'>
<view class='select_item {{c_index == 0?"active":""}}' data-index="0" bindtap='reorder'>默认</view>
<view class='select_item {{c_index == 1?"active":""}}' data-index="1" bindtap='reorder'>价格
<view class='select_img'>
<image src="{{c_index == 1?'/images/select_active.png':'/images/select.png'}}" class='select_img_no_choose' />
</view>
</view>
<view class='select_item {{c_index == 2?"active":""}}' data-index="2" bindtap='reorder'>销量
<view class='select_img'>
<image src="{{c_index == 2?'/images/select_active.png':'/images/select.png'}}" class='select_img_no_choose' />
</view>
</view>
</view> -->
<!-- 品牌推荐列表 -->
<view class="tuijianlist flexone fixedactive" wx:if='{{stick==1}}'>
<view class="tuijianlistitem " wx:for="{{nav_arr}}" wx:key="index" bindtap="select_nav"
data-index="{{index}}" data-id="{{item.id}}">
<view class="tuijianitemname {{seltui==index?'tuiactive':''}}">{{item.name}}</view>
<view class="tuijiandes {{seltui==index?'tuiactive':''}}">{{item.description}}</view>
</view>
</view>
<view class="tuijianlist flexone" id="tuijianTop">
<view class="tuijianlistitem " wx:for="{{nav_arr}}" wx:key="index" bindtap="select_nav"
data-index="{{index}}" data-id="{{item.id}}">
<view class="tuijianitemname {{seltui==index?'tuiactive':''}}">{{item.name}}</view>
<view class="tuijiandes {{seltui==index?'tuiactive':''}}">{{item.description}}</view>
</view>
</view>
<view class='real_goods product_container' id="real_goods">
<Model_item list="{{shop_arr}}" type='open' wx:if="{{shop_arr.length>0}}" />
<view wx:else class="noData">暂无相关产品</view>
</view>
<concat />
</view>
</view>
<v-tab-bar selected="{{selected}}" text="1" list="{{list}}"></v-tab-bar>