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
|
<template>
<main>
<div class="container">
<div class="home-banner-box">
<img src="../../../images/xiaomi/main-top.webp" alt="">
</div>
<Goods>
<template #left-img></template>
<template #right-goods>
<Item v-for="(item, index) in itemListPhone">
<div class="goods-img">
<img :src="item.src" alt="">
</div>
<h3 class="title">{{ item.title }}</h3>
<p class="desc">{{ item.desc }}</p>
<p class="price">{{ item.price }}</p>
</Item>
</template>
</Goods>
<Goods>
<template #title>
<h2 class="title">智能穿戴</h2>
</template>
<template #more>
<ul class="tab-list">
<li class="active">耳机</li>
<li>穿戴</li>
</ul>
</template>
<template #left-img>
<img src="../../../images/xiaomi/watch&bud/left-watch.webp" alt="">
</template>
<template #right-goods>
<Item v-for="(item, index) in itemListBud">
<div class="goods-img">
<img :src="item.src" alt="">
</div>
<h3 class="title">{{ item.title }}</h3>
<p class="desc">{{ item.desc }}</p>
<p class="price">{{ item.price }}</p>
</Item>
<MoreItem></MoreItem>
</template>
</Goods>
<Goods>
<template #title>
<h2 class="title">笔记本 | 平板</h2>
</template>
<template #more>
<ul class="tab-list">
<li class="active">热门</li>
</ul>
</template>
<template #left-img>
<img src="../../../images/xiaomi/pad&book/left-pad.webp" alt="">
</template>
<template #right-goods>
<Item v-for="(item, index) in itemListPad">
<div class="goods-img">
<img :src="item.src" alt="">
</div>
<h3 class="title">{{ item.title }}</h3>
<p class="desc">{{ item.desc }}</p>
<p class="price">{{ item.price }}</p>
</Item>
<MoreItem>
<template #mini-item>
<h3 class="title">
Redmi Book Pro 14 2024
</h3>
<p class="price">4999元</p>
<div class="mini-img">
<img src="../../../images/xiaomi/pad&book/mini-Redmi Book Pro 14 2024.webp" alt="">
</div>
</template>
<template #more-small>
<small>热门</small>
</template>
</MoreItem>
</template>
</Goods>
<Goods>
<template #title>
<h2 class="title">家电</h2>
</template>
<template #more>
<ul class="tab-list">
<li class="active">热门</li>
<li>电视影音</li>
<li>空调</li>
</ul>
</template>
<template #left-img>
<ul>
<li class="top-img">
<img src="../../../images/xiaomi/elec/left-elec1.webp" alt="">
</li>
<li class="bottom-img">
<img src="../../../images/xiaomi/elec/left-elec2.webp" alt="">
</li>
</ul>
</template>
<template #right-goods>
<Item v-for="(item, index) in itemListElec">
<div class="goods-img">
<img :src="item.src" alt="">
</div>
<h3 class="title">{{ item.title }}</h3>
<p class="desc">{{ item.desc }}</p>
<p class="price">{{ item.price }}</p>
</Item>
<MoreItem>
<template #mini-item>
<h3 class="title">
迷你波轮洗衣机 3kg
</h3>
<p class="price">799元</p>
<div class="mini-img">
<img src="../../../images/xiaomi/elec/mini-米家迷你波轮洗衣机Pro 3kg.webp" alt="">
</div>
</template>
<template #more-small>
<small>热门</small>
</template>
</MoreItem>
</template>
</Goods>
<Goods>
<template #title>
<h2 class="title">生活电器</h2>
</template>
<template #more>
<ul class="tab-list">
<li class="active">风扇</li>
<li>扫地机</li>
<li>空净</li>
<li>清洁</li>
<li>环境</li>
</ul>
</template>
<template #left-img>
<ul>
<li class="top-img">
<img src="../../../images/xiaomi/cleaner/left-cleaner1.webp" alt="">
</li>
<li class="bottom-img">
<img src="../../../images/xiaomi/cleaner/left-cleaner2.webp" alt="">
</li>
</ul>
</template>
<template #right-goods>
<Item v-for="(item, index) in itemListCleaner">
<div class="goods-img">
<img :src="item.src" alt="">
</div>
<h3 class="title">{{ item.title }}</h3>
<p class="desc">{{ item.desc }}</p>
<p class="price">{{ item.price }}</p>
</Item>
<MoreItem>
<template #mini-item>
<h3 class="title">
米家直流变频台式循环扇
</h3>
<p class="price">299元</p>
<div class="mini-img">
<img src="../../../images/xiaomi/cleaner/mini-米家直流变频台式循环扇.webp" alt="">
</div>
</template>
<template #more-small>
<small>风扇</small>
</template>
</MoreItem>
</template>
</Goods>
<Goods>
<template #title>
<h2 class="title">厨房电器</h2>
</template>
<template #more>
<ul class="tab-list">
<li>净水器</li>
<li class="active">烟灶</li>
<li>电饭煲</li>
<li>微蒸烤</li>
</ul>
</template>
<template #left-img>
<ul>
<li class="top-img">
<img src="../../../images/xiaomi/kitchen/left-kitchen1.webp" alt="">
</li>
<li class="bottom-img">
<img src="../../../images/xiaomi/kitchen/left-kitchen2.webp" alt="">
</li>
</ul>
</template>
<template #right-goods>
<Item v-for="(item, index) in itemListKitchen">
<div class="goods-img">
<img :src="item.src" alt="">
</div>
<h3 class="title">{{ item.title }}</h3>
<p class="desc">{{ item.desc }}</p>
<p class="price">{{ item.price }}</p>
</Item>
<MoreItem>
<template #mini-item>
<h3 class="title">
米家智能净烟机P2
</h3>
<p class="price">299元</p>
<div class="mini-img">
<img src="../../../images/xiaomi/kitchen/mini-米家智能净烟机P2.webp" alt="">
</div>
</template>
<template #more-small>
<small>烟灶</small>
</template>
</MoreItem>
</template>
</Goods>
<Goods>
<template #title>
<h2 class="title">智能家居</h2>
</template>
<template #more>
<ul class="tab-list">
<li class="active">小爱音箱</li>
<li>门锁门铃</li>
<li>路由器</li>
<li>智能设备</li>
</ul>
</template>
<template #left-img>
<ul>
<li class="top-img">
<img src="../../../images/xiaomi/smart/left-smart1.webp" alt="">
</li>
<li class="bottom-img">
<img src="../../../images/xiaomi/smart/left-smart2.webp" alt="">
</li>
</ul>
</template>
<template #right-goods>
<Item v-for="(item, index) in itemListSmart">
<div class="goods-img">
<img :src="item.src" alt="">
</div>
<h3 class="title">{{ item.title }}</h3>
<p class="desc">{{ item.desc }}</p>
<p class="price">{{ item.price }}</p>
</Item>
<MoreItem>
<template #mini-item>
<h3 class="title">
Redmi小爱触屏音箱 8英寸
</h3>
<p class="price">299元</p>
<div class="mini-img">
<img src="../../../images/xiaomi/smart/mini-Redmi小爱触屏音箱 8英寸.webp" alt="">
</div>
</template>
<template #more-small>
<small>小爱音箱</small>
</template>
</MoreItem>
</template>
</Goods>
<div class="home-banner-box">
<img src="../../../images/xiaomi/main-bottom.webp" alt="">
</div>
</div>
</main>
</template>
<script>
import Goods from './Goods.vue';
import Item from './Item.vue';
import MoreItem from './MoreItem.vue';
export default {
components: {
Goods,
Item,
MoreItem
},
data() {
return {
itemListPhone: [
{ id: 1, src: '../../../images/xiaomi/phone/REDMI Turbo 4 Pro.webp', title: 'REDMI Turbo 4 Pro', desc: 'Turbo 4 Pro 好看,更能打!', price: '1999元起' },
{ id: 2, src: '../../../images/xiaomi/phone/Xiaomi 15 Ultra.webp', title: 'Xiaomi 15 Ultra', desc: '徕卡1英寸主摄 | 徕卡2亿超级长焦 | 徕卡超纯光学系统 | 骁龙8至尊版移动平台 | 6000mAh 小米金沙江电池 | 小米澎湃OS 2', price: '6499元起' },
{ id: 3, src: '../../../images/xiaomi/phone/REDMI Turbo 4.webp', title: 'REDMI Turbo 4', desc: 'REDMI Turbo 4 好看又能打', price: '1799元起' },
{ id: 4, src: '../../../images/xiaomi/phone/Redmi 14C.webp', title: 'Redmi 14C', desc: '【持久续航】5160mAh 大电池', price: '499元起' },
{ id: 5, src: '../../../images/xiaomi/phone/REDMI K80 Pro.webp', title: 'REDMI K80 Pro', desc: '骁龙8至尊版|2K新国屏|全焦段影像', price: '3699元起' },
{ id: 6, src: '../../../images/xiaomi/phone/REDMI K80.webp', title: 'REDMI K80', desc: '第三代骁龙8|2K新国屏|6550mAh 超长续航', price: '2499元起' },
{ id: 7, src: '../../../images/xiaomi/phone/Xiaomi 15.webp', title: 'Xiaomi 15', desc: '徕卡光学 Summilux 高速镜头|骁龙®8至尊版移动平台|5400mAh 小米金沙江电池 小米澎湃OS 2', price: '4199元起' },
{ id: 8, src: '../../../images/xiaomi/phone/Xiaomi 15 Pro.webp', title: 'Xiaomi 15 Pro', desc: '徕卡光学 Summilux 高速镜头| 骁龙®8至尊版移动平台|6100mAh 小米金沙江电池|小米澎湃OS 2', price: '4999元起' },
],
itemListBud: [
{ id: 1, src: '../../../images/xiaomi/watch&bud/Xiaomi Buds 5 Pro.webp', title: 'Xiaomi Buds 5 Pro', desc: '小米首发双功放三单元|55dB 深度降噪|哈曼联合调音', price: '1299元起' },
{ id: 2, src: '../../../images/xiaomi/watch&bud/REDMI Buds 6 Pro.webp', title: 'REDMI Buds 6 Pro', desc: '小米首发圈瓷同轴三单元 | 55dB深度降噪 | 无级动态降噪技术', price: '399元起' },
{ id: 3, src: '../../../images/xiaomi/watch&bud/Redmi Buds 6 青春版.webp', title: 'Redmi Buds 6 青春版', desc: '42dB深度主动降噪 | 双麦AI通话抗风噪 | 12.4mm超大镀钛动圈', price: '139元起' },
{ id: 4, src: '../../../images/xiaomi/watch&bud/Redmi Buds 6.webp', title: 'Redmi Buds 6', desc: '旗舰双单元架构 | 49dB深度降噪 | 42h超长续航', price: '199元起' },
{ id: 5, src: '../../../images/xiaomi/watch&bud/Xiaomi Buds 5.webp', title: 'Xiaomi Buds 5', desc: '舒适无感佩戴|高通全链路无损音频|哈曼 AudioEFX 联合调音', price: '679元起' },
{ id: 6, src: '../../../images/xiaomi/watch&bud/Redmi Buds 6S.webp', title: 'Redmi Buds 6S', desc: '14.2mm超大动圈单元 | 半入耳主动降噪 | 33小时超长续航', price: '199元起' },
{ id: 7, src: '../../../images/xiaomi/watch&bud/Redmi Buds 6 活力版.webp', title: 'Redmi Buds 6 活力版', desc: '14.2mm超大动圈 | 内置五种调音模式 | 30小时长续航', price: '99元起' },
],
itemListPad: [
{ id: 1, src: '../../../images/xiaomi/pad&book/Redmi Book Pro 14 2024.webp', title: 'Redmi Book Pro 14 2024', desc: '65W 满血性能|全新酷睿 Ultra 处理器', price: '4899元起' },
{ id: 2, src: '../../../images/xiaomi/pad&book/Redmi Book Pro 16 2024.webp', title: 'Redmi Book Pro 16 2024', desc: '70W 狂暴性能|3.1K 165Hz 高刷高亮屏', price: '6399元起' },
{ id: 3, src: '../../../images/xiaomi/pad&book/Redmi Book 16 2024.webp', title: 'Redmi Book 16 2024', desc: '47W 满血性能 | 小米澎湃智联 | 旗舰硬核品质', price: '3699元起' },
{ id: 4, src: '../../../images/xiaomi/pad&book/Redmi Book 14 2024.webp', title: 'Redmi Book 14 2024', desc: '47W 满血性能 | 小米澎湃智联 | 旗舰硬核品质', price: '4499元起' },
{ id: 5, src: '../../../images/xiaomi/pad&book/Redmi Pad Pro系列.webp', title: 'Redmi Pad Pro系列', desc: '12.1英寸2.5K旗舰机大屏 | 10000mAh超大电池', price: '1499元起' },
{ id: 6, src: '../../../images/xiaomi/pad&book/Xiaomi Pad 6S Pro 12.4.webp', title: 'Xiaomi Pad 6S Pro 12.4', desc: '第二代骁龙8 旗舰处理器 | 小米澎湃OS', price: '2799元起' },
{ id: 7, src: '../../../images/xiaomi/pad&book/Redmi Pad SE.webp', title: 'Redmi Pad SE', desc: '高性价比千元平板|11英寸高刷护眼大屏|全金属一体机身|73.2天超长待机', price: '849元起' },
],
itemListElec: [
{ id: 1, src: '../../../images/xiaomi/elec/小米电视S系列.webp', title: '小米电视S系列', desc: '144HZ超高刷 3+32G 多色温色彩还原技术', price: '2599元起' },
{ id: 2, src: '../../../images/xiaomi/elec/小米电视S Pro Mini LED系列.webp', title: '小米电视S Pro Mini LED系列', desc: '144Hz超高刷、4+64G大存储', price: '4999元起' },
{ id: 3, src: '../../../images/xiaomi/elec/小米电视 S Mini LED 系列.webp', title: '小米电视 S Mini LED 系列', desc: 'Mini LED 高分区背光、1200nits峰值亮度', price: '2999元起' },
{ id: 4, src: '../../../images/xiaomi/elec/巨省电 小米空调 1.5匹新1级能效.webp', title: '巨省电 小米空调 1.5匹新1级能效', desc: '强劲制冷 | 高效节能 | 智能互联', price: '1899元' },
{ id: 5, src: '../../../images/xiaomi/elec/米家新风空调 立式3匹.webp', title: '米家新风空调 立式3匹', desc: '全屋快通风,就要大新风', price: '6799元' },
{ id: 6, src: '../../../images/xiaomi/elec/米家分区洗烘一体机 15kg.webp', title: '米家分区洗烘一体机 15kg', desc: '健康分开洗 一台就够了', price: '5499元' },
{ id: 7, src: '../../../images/xiaomi/elec/米家波轮洗衣机 10kg.webp', title: '米家波轮洗衣机 10kg', desc: '全景玻璃阻尼上盖 防夹手', price: '999元' },
],
itemListCleaner: [
{ id: 1, src: '../../../images/xiaomi/cleaner/米家智能直流变频落地扇1X 升级版.webp', title: '米家智能直流变频落地扇1X 升级版', desc: '静音舒适自然风,支持充电宝供电,随处可用, 小爱语音控制', price: '299元' },
{ id: 2, src: '../../../images/xiaomi/cleaner/米家循环扇.webp', title: '米家循环扇', desc: '风量强劲,广域覆盖', price: '319元' },
{ id: 3, src: '../../../images/xiaomi/cleaner/米家直流变频落地扇 Pro.webp', title: '米家直流变频落地扇 Pro', desc: '收纳有序,与自然风同行', price: '399元' },
{ id: 4, src: '../../../images/xiaomi/cleaner/米家落地扇.webp', title: '米家落地扇', desc: '静享智能轻风', price: '219元' },
{ id: 5, src: '../../../images/xiaomi/cleaner/米家智能直流变频循环扇 落地式.webp', title: '米家智能直流变频循环扇 落地式', desc: '智能温湿度控风,超广域空气循环', price: '429元' },
{ id: 6, src: '../../../images/xiaomi/cleaner/米家智能直流变频塔扇2.webp', title: '米家智能直流变频塔扇2', desc: 'DIY自然风 ,环抱式柔和送风 ,儿童安全防护', price: '329元' },
{ id: 7, src: '../../../images/xiaomi/cleaner/米家桌面移动风扇.webp', title: '米家桌面移动风扇', desc: '无线长续航,随处享清凉', price: '129元' },
],
itemListKitchen: [
{ id: 1, src: '../../../images/xiaomi/kitchen/米家智能燃气灶S2.webp', title: '米家智能燃气灶S2 5200W/4800W', desc: '5200W/4800W猛火 | 双环聚能火焰 | 可调节', price: '699元' },
{ id: 2, src: '../../../images/xiaomi/kitchen/米家智能定时灶S2.webp', title: '米家智能定时灶S2 5200W /4800W', desc: '5200W/4800W爆炒大火才够味 | 68%超高热效', price: '1099元' },
{ id: 3, src: '../../../images/xiaomi/kitchen/米家智能平嵌侧吸油烟机S1.webp', title: '米家智能平嵌侧吸油烟机S1', desc: '小巧机身 | 25立方大吸力 | 烟灶联动', price: '1799元' },
{ id: 4, src: '../../../images/xiaomi/kitchen/米家智能顶侧双吸油烟机S2.webp', title: '米家智能顶侧双吸油烟机S2', desc: '25m³/min大风量 | 1000Pa大静压', price: '2099元' },
{ id: 5, src: '../../../images/xiaomi/kitchen/米家智能欧式烟机S2.webp', title: '米家智能欧式烟机S2', desc: '23m³/min大吸力|500pa静压|智能干洗', price: '1499元' },
{ id: 6, src: '../../../images/xiaomi/kitchen/米家智能净烟机S2 白色.webp', title: '米家智能净烟机S2 白色', desc: '下厨不留味|无油网免拆洗|真白不惧黄', price: '2699元' },
{ id: 7, src: '../../../images/xiaomi/kitchen/米家智能净烟机P1.webp', title: '米家智能净烟机P1', desc: '高速气旋强锁烟, 劲速气流高效净吸,无油网设计免拆洗', price: '2999元' },
],
itemListSmart: [
{ id: 1, src: '../../../images/xiaomi/smart/Xiaomi智能家庭屏 10.webp', title: 'Xiaomi智能家庭屏 10', desc: 'MIUI Home|10.1" 高清大屏|115°超广角摄像头|儿童模式|家庭 KTV|小爱同学', price: '899元' },
{ id: 2, src: '../../../images/xiaomi/smart/小米小爱音箱Play 增强版.webp', title: '小米小爱音箱Play 增强版', desc: 'LED时钟显示,语音控制传统家电', price: '129元' },
{ id: 3, src: '../../../images/xiaomi/smart/小米小爱音箱 Play.webp', title: '小米小爱音箱 Play', desc: '听音乐、语音遥控家电', price: '99元' },
{ id: 4, src: '../../../images/xiaomi/smart/小米小爱音箱 Pro.webp', title: '小米小爱音箱 Pro', desc: '澎湃低音,语音遥控传统家电', price: '269元' },
{ id: 5, src: '../../../images/xiaomi/smart/小米AI音箱(第二代).webp', title: '小米AI音箱(第二代)', desc: '低频饱满有深度,人声清晰有细节', price: '179元' },
{ id: 6, src: '../../../images/xiaomi/smart/小米小爱音箱.webp', title: '小米小爱音箱', desc: 'Hi-Fi级音频芯片,支持AUX IN接口,你桌面的有源音箱', price: '199元' },
{ id: 7, src: '../../../images/xiaomi/smart/Redmi小爱触屏音箱 8英寸.webp', title: 'Redmi小爱触屏音箱 8英寸', desc: '8英寸高清大屏,海量优质影音资源', price: '349元' },
],
}
}
}
</script>
<style scoped>
main {
height: 5194px;
width: 100%;
background-color: rgb(245, 245, 245);
}
.container {
width: 1226px;
margin: 0 auto;
}
.home-banner-box {
padding: 22px 0;
}
.home-banner-box img {
width: 1226px;
}
.tab-list {
height: 58px;
padding: 14px 0;
box-sizing: border-box;
}
.tab-list li {
list-style: none;
float: left;
margin-left: 30px;
height: 30px;
line-height: 30px;
cursor: pointer;
}
.tab-list .active {
border-bottom: 2px solid rgb(255, 103, 0);
color: rgb(255, 103, 0);
}
</style>
|