147 lines
3.7 KiB
JavaScript
147 lines
3.7 KiB
JavaScript
// 货盘页 mock 数据(用于离线预览,实际数据从 API 获取)
|
|
|
|
export const mockCountries = [
|
|
{ id: '45', name: '美国', flag: '🇺🇸' },
|
|
{ id: '76', name: '日本', flag: '🇯🇵' },
|
|
{ id: '484', name: '墨西哥', flag: '🇲🇽' },
|
|
{ id: '826', name: '英国', flag: '🇬🇧' },
|
|
{ id: '276', name: '德国', flag: '🇩🇪' },
|
|
{ id: '250', name: '法国', flag: '🇫🇷' },
|
|
{ id: '380', name: '意大利', flag: '🇮🇹' },
|
|
{ id: '124', name: '加拿大', flag: '🇨🇦' },
|
|
{ id: '36', name: '澳大利亚', flag: '🇦🇺' },
|
|
{ id: '410', name: '韩国', flag: '🇰🇷' },
|
|
{ id: '152', name: '智利', flag: '🇨🇱' },
|
|
{ id: '604', name: '秘鲁', flag: '🇵🇪' }
|
|
]
|
|
|
|
export const mockCategories = [
|
|
{ id: 'all', name: '全部商品', children: [], productCount: 0 },
|
|
{
|
|
id: '1',
|
|
name: '男士服装',
|
|
productCount: 159,
|
|
children: [
|
|
{ id: '101', categoryName: 'T恤' },
|
|
{ id: '102', categoryName: '卫衣' },
|
|
{ id: '103', categoryName: 'POLO衫' }
|
|
]
|
|
},
|
|
{
|
|
id: '2',
|
|
name: '女士服装',
|
|
productCount: 36,
|
|
children: [
|
|
{ id: '201', categoryName: '连衣裙' },
|
|
{ id: '202', categoryName: 'T恤' }
|
|
]
|
|
},
|
|
{
|
|
id: '3',
|
|
name: '童装',
|
|
productCount: 40,
|
|
children: [
|
|
{ id: '301', categoryName: '儿童T恤' },
|
|
{ id: '302', categoryName: '儿童卫衣' }
|
|
]
|
|
},
|
|
{
|
|
id: '4',
|
|
name: '家居配饰',
|
|
productCount: 3,
|
|
children: [
|
|
{ id: '401', categoryName: '帆布包' },
|
|
{ id: '402', categoryName: '马克杯' }
|
|
]
|
|
}
|
|
]
|
|
|
|
export const mockFilterGroups = [
|
|
{
|
|
id: '1',
|
|
title: '物流渠道',
|
|
tags: [
|
|
{ id: 't1', name: '包邮', color: '#ff6800', fontColor: '#ffffff', productCount: 84 },
|
|
{ id: 't2', name: '不包邮', color: '#999999', fontColor: '#ffffff', productCount: 154 }
|
|
],
|
|
selected: []
|
|
},
|
|
{
|
|
id: '2',
|
|
title: '印刷位置',
|
|
tags: [
|
|
{ id: 't3', name: '单面印', color: '#00b894', fontColor: '#ffffff', productCount: 12 },
|
|
{ id: 't4', name: '双面印', color: '#6c5ce7', fontColor: '#ffffff', productCount: 14 }
|
|
],
|
|
selected: []
|
|
},
|
|
{
|
|
id: '3',
|
|
title: '印刷工艺',
|
|
tags: [
|
|
{ id: 't5', name: '烫画', color: '#e17055', fontColor: '#ffffff', productCount: 8 },
|
|
{ id: 't6', name: '直喷', color: '#00cec9', fontColor: '#ffffff', productCount: 3 }
|
|
],
|
|
selected: []
|
|
}
|
|
]
|
|
|
|
export const mockProducts = [
|
|
{
|
|
id: 1,
|
|
name: '180G牛奶丝T恤 DG120',
|
|
price: '28.00',
|
|
image: '/static/images/products/1.png',
|
|
tags: [
|
|
{ text: '包邮', bg: '#ff6800', color: '#ffffff' },
|
|
{ text: '烫画', bg: '#e17055', color: '#ffffff' }
|
|
]
|
|
},
|
|
{
|
|
id: 2,
|
|
name: '纯棉连帽卫衣 HD200',
|
|
price: '59.00',
|
|
image: '/static/images/products/2.png',
|
|
tags: [
|
|
{ text: '不包邮', bg: '#999999', color: '#ffffff' }
|
|
]
|
|
},
|
|
{
|
|
id: 3,
|
|
name: '帆布托特包 BG150',
|
|
price: '15.00',
|
|
image: '/static/images/products/3.png',
|
|
tags: [
|
|
{ text: '单面印', bg: '#00b894', color: '#ffffff' }
|
|
]
|
|
},
|
|
{
|
|
id: 4,
|
|
name: '儿童纯棉T恤 KD100',
|
|
price: '22.00',
|
|
image: '/static/images/products/4.png',
|
|
tags: [
|
|
{ text: '包邮', bg: '#ff6800', color: '#ffffff' },
|
|
{ text: '直喷', bg: '#00cec9', color: '#ffffff' }
|
|
]
|
|
},
|
|
{
|
|
id: 5,
|
|
name: '重磅圆领T恤 DG150',
|
|
price: '35.00',
|
|
image: '/static/images/products/5.png',
|
|
tags: [
|
|
{ text: '双面印', bg: '#6c5ce7', color: '#ffffff' }
|
|
]
|
|
},
|
|
{
|
|
id: 6,
|
|
name: '拉链卫衣 HD220',
|
|
price: '79.00',
|
|
image: '/static/images/products/6.png',
|
|
tags: [
|
|
{ text: '包邮', bg: '#ff6800', color: '#ffffff' }
|
|
]
|
|
}
|
|
]
|