feat: 首页优化

This commit is contained in:
2026-07-27 16:43:37 +08:00
parent f2c1cfcb15
commit eed5c3fe03
19 changed files with 718 additions and 103 deletions
@@ -0,0 +1,53 @@
import bluetoothEarbudsImage from '@/assets/joyful-selection/products/bluetooth-earbuds.png'
import miniOvenImage from '@/assets/joyful-selection/products/mini-oven.png'
import smartSpeakerImage from '@/assets/joyful-selection/products/smart-speaker.png'
import giftBoxImage from '@/assets/joyful-selection/products/gift-box.png'
export const joyfulProducts = [
{
id: 'bluetooth-earbuds',
name: '小米蓝牙耳机 Air2 SE',
desc: '轻盈半入耳,通勤运动都好听',
detail: '舒适半入耳设计,配合便携充电盒,日常通勤、运动和在线会议都能保持清晰稳定的聆听体验。',
price: '69.90',
originPrice: '99.90',
category: '数码家电',
tag: '积分兑换',
image: bluetoothEarbudsImage
},
{
id: 'mini-oven',
name: '奶油白家用迷你烤箱',
desc: '小巧不占地,早餐烘焙好帮手',
detail: '紧凑台式机身搭配可视化炉门,适合烤吐司、蛋挞和小份点心,让厨房日常更轻松。',
price: '129.00',
originPrice: '169.00',
category: '居家生活',
tag: '新品上架',
image: miniOvenImage
},
{
id: 'smart-speaker',
name: '黑曜智能音箱 Pro',
desc: '语音唤醒,沉浸听感',
detail: '圆柱一体式声学结构,支持语音互动和日常音乐播放,适合卧室、书房与办公桌面使用。',
price: '99.00',
originPrice: '139.00',
category: '数码家电',
tag: '热门推荐',
image: smartSpeakerImage
},
{
id: 'gift-box',
name: '橙意惊喜礼盒',
desc: '精致包装,送礼更有心意',
detail: '亮橙礼盒搭配丝带包装,适合节日福利、积分兑换礼和日常心意礼赠场景。',
price: '59.90',
originPrice: '89.90',
category: '食品饮料',
tag: '品质精选',
image: giftBoxImage
}
]
export const getJoyfulProduct = id => joyfulProducts.find(item => item.id === id) || joyfulProducts[0]