ClassifyData.vue
9.79 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
<template>
<view class="page-total">
<!-- 分类列表 -->
<view class="classify-list">
<view class="list" @click="onSkip('classify')">
<view class="thumb"><image src="/static/img/pin_01.png"></image></view>
<view class="name"><text class="one-omit">小米</text></view>
</view>
<view class="list" @click="onSkip('classify')">
<view class="thumb"><image src="/static/img/pin_02.png"></image></view>
<view class="name"><text class="one-omit">华为</text></view>
</view>
<view class="list" @click="onSkip('classify')">
<view class="thumb"><image src="/static/img/pin_03.png"></image></view>
<view class="name"><text class="one-omit">荣耀</text></view>
</view>
<view class="list" @click="onSkip('classify')">
<view class="thumb"><image src="/static/img/pin_04.png"></image></view>
<view class="name"><text class="one-omit">iPhone</text></view>
</view>
<view class="list" @click="onSkip('classify')">
<view class="thumb"><image src="/static/img/pin_05.png"></image></view>
<view class="name"><text class="one-omit">vivo</text></view>
</view>
</view>
<!-- 超值爆款 -->
<view class="super-hot-style">
<view class="hot-title">
<view class="iconfont icon-zhizi"></view>
<view class="title">超值爆款</view>
</view>
<view class="goods-list">
<view class="list" v-for="(item, index) in classGoodsList" @click="onSkip('goods')" :key="index">
<view class="thumb">
<image :src="item.img" mode="widthFix"></image>
</view>
<view class="title"><text class="one-omit">{{item.name}}</text></view>
<view class="price">
<view class="retail-price">
<text class="min">¥</text>
<text class="max">{{item.price}}</text>
</view>
<view class="sales-volume">已售4件</view>
</view>
</view>
</view>
</view>
<!-- 更多热卖 -->
<view class="more-hot">
<view class="hot-title">
<view class="title">
<text class="iconfont icon-xiedian"></text>
<text class="icon">更多热卖</text>
<text class="iconfont icon-xiedian"></text>
</view>
</view>
<view class="goods-list">
<view class="list" v-for="(item,index) in goodsList" @click="onSkip('goods')" :key="index">
<view class="pictrue">
<image :src="item.img" mode="heightFix"></image>
</view>
<view class="title-tag">
<view class="tag">
<text v-if="item.is_goods === 1">特价</text>
{{item.name}}
</view>
</view>
<view class="price-info">
<view class="user-price">
<text class="min">¥</text>
<text class="max">{{item.price}}</text>
</view>
<view class="vip-price">
<image src="/static/vip_ico.png"></image>
<text>¥{{item.vip_price}}</text>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
goodsList:[
{
id: 1,
name: 'BANDALY 2020夏季女装连衣裙韩版大码宽松显瘦套装裙子两件套 JX19301 上豆绿下米白 M ',
price: '219.00',
vip_price: '129.00',
img: '/static/img/goods_thumb_01.png',
is_goods: 0,
},{
id: 1,
name: '花花公子 卫衣男秋季圆领薄款休闲体恤男士时尚长袖T恤外套上衣男生情侣装套头衣服秋天男装 白色 XL',
price: '139.00',
vip_price: '99.00',
img: '/static/img/goods_thumb_02.png',
is_goods: 1,
},{
id: 1,
name: '【两件套】花花公子PLAYBOY短袖T恤男套装夏季新款卫衣男士韩版修身冰丝宽松运动休闲上衣服裤子男装 CYFS903卡其色 XL',
price: '168.00',
vip_price: '158.00',
img: '/static/img/goods_thumb_03.png',
is_goods: 1,
},{
id: 1,
name: '雪域森林短袖T恤男装2020夏季潮流时尚衣服男潮牌圆领印花宽松T恤半袖男 20855橙色 XL',
price: '68.00',
vip_price: '36.00',
img: '/static/img/goods_thumb_04.png',
is_goods: 0,
},{
id: 1,
name: '短袖男夏季T恤男装韩版潮流印花套头衣服男士圆领宽松五分袖学生休闲夏天运动时尚情侣装大码 D119白色 XL',
price: '68.00',
vip_price: '59.00',
img: '/static/img/goods_thumb_05.png',
is_goods: 0,
},{
id: 1,
name: '时尚休闲套装女夏季热天宽松女孩中学生高中初中生女生短袖套装衣服夏天少女学生韩版原宿风T恤潮流裤子一套 绿字母上衣+绿色裤两件套 均码',
price: '83.00',
vip_price: '78.00',
img: '/static/img/goods_thumb_06.png',
is_goods: 1,
},{
id: 1,
name: '北极绒2020春夏季棉质睡衣女睡裙女夏季韩版纯棉短袖少女性感睡衣甜美可爱卡通家居服连衣裙 A3023 M【纯棉 品质保障】',
price: '68.00',
vip_price: '48.00',
img: '/static/img/goods_thumb_07.png',
is_goods: 1,
},{
id: 1,
name: '韩卡婷 2020新款夏季短袖t恤女宽松学生衣服原宿风青春百搭显瘦上衣体恤闺蜜女装 白色 均码【80-120斤】',
price: '29.00',
vip_price: '19.00',
img: '/static/img/goods_thumb_08.png',
is_goods: 0,
},{
id: 1,
name: '美连诚雪纺连衣裙 2020新款女夏裙子波点气质沙滩裙仙气时尚女装休闲衣服大码女装 白底红点 M ',
price: '168.00',
vip_price: '160.00',
img: '/static/img/goods_thumb_09.png',
is_goods: 0,
},{
id: 1,
name: '凝拉t恤女短袖纯棉2020新款夏装中长款韩版宽松大码欧货潮上衣服半袖体恤 桔色2053 2XL(建议150-170斤)',
price: '89.00',
vip_price: '78.00',
img: '/static/img/goods_thumb_10.png',
is_goods: 0,
},{
id: 1,
name: '荣耀Play4T 全网通6GB+128GB大内存 幻夜黑 4000mAh大电池 4800万AI摄影 6.39英寸魅眼屏',
price: '1190.00',
vip_price: '1100.00',
img: '/static/img/goods_thumb_11.png',
is_goods: 0,
},{
id: 1,
name: '小米(MI) Redmi 8A',
price: '699.00',
vip_price: '599.00',
img: '/static/img/goods_thumb_12.png',
is_goods: 0,
},{
id: 1,
name: 'Apple iPhone 11',
price: '5899.00',
vip_price: '5800.00',
img: '/static/img/goods_thumb_13.png',
is_goods: 0,
},{
id: 1,
name: '戴尔(DELL)成就3681英特尔酷睿i5商用办公高性能台式机电脑整机(十代i5-10400 8G 1T 三年上门售后)21.5英寸',
price: '3699.00',
vip_price: '3600.00',
img: '/static/img/goods_thumb_14.png',
is_goods: 0,
},{
id: 1,
name: '戴尔DELL灵越5000 14英寸酷睿i5网课学习轻薄笔记本电脑(十代i5-1035G1 8G 512G MX230 2G独显)银',
price: '4888.00',
vip_price: '4999.00',
img: '/static/img/goods_thumb_15.png',
is_goods: 0,
},{
id: 1,
name: '联想(Lenovo) 来酷 Lecoo一体台式机电脑23英寸(J4105 8G 256G SSD 三年上门)白',
price: '4888.00',
vip_price: '3600.00',
img: '/static/img/goods_thumb_16.png',
is_goods: 0,
},{
id: 1,
name: 'Apple 2020新款 MacBook Pro 13.3【带触控栏】十代i5 16G 512G 2.0GHz 深空灰 笔记本电脑 轻薄本 MWP42CHA',
price: '18200.00',
vip_price: '18200.00',
img: '/static/img/goods_thumb_17.png',
is_goods: 0,
},{
id: 1,
name: 'Apple新款 Mac mini台式电脑主机 八代i5 8G 512G SSD 台式机 MXNG2CHA',
price: '8299.00',
vip_price: '8200.00',
img: '/static/img/goods_thumb_18.png',
is_goods: 0,
},{
id: 1,
name: '同仁堂美白祛斑霜套装 淡斑美白祛黄提亮补水保湿套装 男女士护肤美白化妆品套装',
price: '288.00',
vip_price: '282.00',
img: '/static/img/goods_thumb_19.png',
is_goods: 0,
},{
id: 1,
name: '【限定款·雕花口红8支礼盒装】中国风口红套装七夕礼物送女朋友老婆生日礼物唇膏唇釉花仙西子同心锁口红 【限定款8支雕花口红】',
price: '188.00',
vip_price: '99.00',
img: '/static/img/goods_thumb_20.png',
is_goods: 0,
},
],
classGoodsList: [
{
id: 1,
name: '荣耀Play4T 全网通6GB+128GB大内存 幻夜黑 4000mAh大电池 4800万AI摄影 6.39英寸魅眼屏',
price: '1190.00',
vip_price: '1100.00',
img: '/static/img/goods_thumb_11.png',
is_goods: 0,
},{
id: 1,
name: '小米(MI) Redmi 8A',
price: '699.00',
vip_price: '599.00',
img: '/static/img/goods_thumb_12.png',
is_goods: 0,
},{
id: 1,
name: 'Apple iPhone 11',
price: '5899.00',
vip_price: '5800.00',
img: '/static/img/goods_thumb_13.png',
is_goods: 0,
},{
id: 1,
name: '荣耀Play4T 全网通6GB+128GB大内存 幻夜黑 4000mAh大电池 4800万AI摄影 6.39英寸魅眼屏',
price: '1190.00',
vip_price: '1100.00',
img: '/static/img/goods_thumb_11.png',
is_goods: 0,
},{
id: 1,
name: '小米(MI) Redmi 8A',
price: '699.00',
vip_price: '599.00',
img: '/static/img/goods_thumb_12.png',
is_goods: 0,
},{
id: 1,
name: 'Apple iPhone 11',
price: '5899.00',
vip_price: '5800.00',
img: '/static/img/goods_thumb_13.png',
is_goods: 0,
},
]
};
},
methods:{
/**
* 跳转点击
* @param {String} type 跳转类型
*/
onSkip(type){
switch (type){
case 'classify':
uni.navigateTo({
url: '/pages/SearchGoodsList/SearchGoodsList',
})
break;
case 'goods':
uni.navigateTo({
url: '/pages/GoodsDetails/GoodsDetails',
animationType: 'zoom-fade-out',
animationDuration: 200
})
break;
}
}
}
};
</script>
<style lang="scss">
@import 'ClassifyData.scss';
</style>