修改模拟数据
@@ -6,21 +6,45 @@ import type { CreditLimit, Settlement, WriteOff } from '@/typings/mall'
|
|||||||
*/
|
*/
|
||||||
export const mockCreditLimitList: CreditLimit[] = [
|
export const mockCreditLimitList: CreditLimit[] = [
|
||||||
{
|
{
|
||||||
merchantId: 'merchant_a',
|
merchantId: 'merchant_001',
|
||||||
merchantName: '商户A',
|
merchantName: '鑫洋食品',
|
||||||
totalLimit: 100000,
|
totalLimit: 100000,
|
||||||
usedLimit: 99900,
|
usedLimit: 99900,
|
||||||
availableLimit: 100,
|
availableLimit: 100,
|
||||||
updateTime: '2025-11-28 10:00:00',
|
updateTime: '2025-11-28 10:00:00',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
merchantId: 'merchant_b',
|
merchantId: 'merchant_002',
|
||||||
merchantName: '商户B',
|
merchantName: '隆盛糕点',
|
||||||
totalLimit: 50000,
|
totalLimit: 50000,
|
||||||
usedLimit: 12000,
|
usedLimit: 12000,
|
||||||
availableLimit: 38000,
|
availableLimit: 38000,
|
||||||
updateTime: '2025-11-28 10:00:00',
|
updateTime: '2025-11-28 10:00:00',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
merchantId: 'merchant_003',
|
||||||
|
merchantName: '九江双蒸',
|
||||||
|
totalLimit: 80000,
|
||||||
|
usedLimit: 35000,
|
||||||
|
availableLimit: 45000,
|
||||||
|
updateTime: '2025-11-28 10:00:00',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
merchantId: 'merchant_004',
|
||||||
|
merchantName: '仙泉酱油',
|
||||||
|
totalLimit: 60000,
|
||||||
|
usedLimit: 20000,
|
||||||
|
availableLimit: 40000,
|
||||||
|
updateTime: '2025-11-28 10:00:00',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
merchantId: 'merchant_005',
|
||||||
|
merchantName: '沟门前风味',
|
||||||
|
totalLimit: 70000,
|
||||||
|
usedLimit: 45000,
|
||||||
|
availableLimit: 25000,
|
||||||
|
updateTime: '2025-11-28 10:00:00',
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -31,8 +55,8 @@ export const mockSettlementList: Settlement[] = [
|
|||||||
{
|
{
|
||||||
id: 'settlement_001',
|
id: 'settlement_001',
|
||||||
orderNo: 'ORD20251128001',
|
orderNo: 'ORD20251128001',
|
||||||
merchantId: 'merchant_a',
|
merchantId: 'merchant_001',
|
||||||
merchantName: '商户A',
|
merchantName: '鑫洋食品',
|
||||||
amount: 5000,
|
amount: 5000,
|
||||||
status: SettlementStatus.UNSETTLED,
|
status: SettlementStatus.UNSETTLED,
|
||||||
dueDate: '2025-12-15',
|
dueDate: '2025-12-15',
|
||||||
@@ -41,8 +65,8 @@ export const mockSettlementList: Settlement[] = [
|
|||||||
{
|
{
|
||||||
id: 'settlement_002',
|
id: 'settlement_002',
|
||||||
orderNo: 'ORD20251125001',
|
orderNo: 'ORD20251125001',
|
||||||
merchantId: 'merchant_a',
|
merchantId: 'merchant_001',
|
||||||
merchantName: '商户A',
|
merchantName: '鑫洋食品',
|
||||||
amount: 8000,
|
amount: 8000,
|
||||||
status: SettlementStatus.UNSETTLED,
|
status: SettlementStatus.UNSETTLED,
|
||||||
dueDate: '2025-12-10',
|
dueDate: '2025-12-10',
|
||||||
@@ -51,8 +75,8 @@ export const mockSettlementList: Settlement[] = [
|
|||||||
{
|
{
|
||||||
id: 'settlement_003',
|
id: 'settlement_003',
|
||||||
orderNo: 'ORD20251120001',
|
orderNo: 'ORD20251120001',
|
||||||
merchantId: 'merchant_b',
|
merchantId: 'merchant_002',
|
||||||
merchantName: '商户B',
|
merchantName: '隆盛糕点',
|
||||||
amount: 3000,
|
amount: 3000,
|
||||||
status: SettlementStatus.UNSETTLED,
|
status: SettlementStatus.UNSETTLED,
|
||||||
dueDate: '2025-12-05',
|
dueDate: '2025-12-05',
|
||||||
@@ -61,8 +85,8 @@ export const mockSettlementList: Settlement[] = [
|
|||||||
{
|
{
|
||||||
id: 'settlement_004',
|
id: 'settlement_004',
|
||||||
orderNo: 'ORD20251115001',
|
orderNo: 'ORD20251115001',
|
||||||
merchantId: 'merchant_b',
|
merchantId: 'merchant_002',
|
||||||
merchantName: '商户B',
|
merchantName: '隆盛糕点',
|
||||||
amount: 4500,
|
amount: 4500,
|
||||||
status: SettlementStatus.OVERDUE,
|
status: SettlementStatus.OVERDUE,
|
||||||
dueDate: '2025-11-30',
|
dueDate: '2025-11-30',
|
||||||
@@ -72,8 +96,8 @@ export const mockSettlementList: Settlement[] = [
|
|||||||
{
|
{
|
||||||
id: 'settlement_new_001',
|
id: 'settlement_new_001',
|
||||||
orderNo: 'ORD20251128999',
|
orderNo: 'ORD20251128999',
|
||||||
merchantId: 'merchant_a',
|
merchantId: 'merchant_003',
|
||||||
merchantName: '商户A',
|
merchantName: '九江双蒸',
|
||||||
amount: 1200,
|
amount: 1200,
|
||||||
status: SettlementStatus.OVERDUE,
|
status: SettlementStatus.OVERDUE,
|
||||||
dueDate: '2025-11-28',
|
dueDate: '2025-11-28',
|
||||||
@@ -83,20 +107,41 @@ export const mockSettlementList: Settlement[] = [
|
|||||||
{
|
{
|
||||||
id: 'settlement_new_002',
|
id: 'settlement_new_002',
|
||||||
orderNo: 'ORD20251129001',
|
orderNo: 'ORD20251129001',
|
||||||
merchantId: 'merchant_b',
|
merchantId: 'merchant_004',
|
||||||
merchantName: '商户B',
|
merchantName: '仙泉酱油',
|
||||||
amount: 2800,
|
amount: 2800,
|
||||||
status: SettlementStatus.UNSETTLED,
|
status: SettlementStatus.UNSETTLED,
|
||||||
dueDate: '2025-11-30',
|
dueDate: '2025-11-30',
|
||||||
relatedOrders: ['ORD20251129001'],
|
relatedOrders: ['ORD20251129001'],
|
||||||
},
|
},
|
||||||
|
// 更多未结账款
|
||||||
|
{
|
||||||
|
id: 'settlement_008',
|
||||||
|
orderNo: 'ORD20251110005',
|
||||||
|
merchantId: 'merchant_005',
|
||||||
|
merchantName: '沟门前风味',
|
||||||
|
amount: 6500,
|
||||||
|
status: SettlementStatus.UNSETTLED,
|
||||||
|
dueDate: '2025-12-20',
|
||||||
|
relatedOrders: ['ORD20251110005', 'ORD20251110006'],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'settlement_009',
|
||||||
|
orderNo: 'ORD20251105003',
|
||||||
|
merchantId: 'merchant_003',
|
||||||
|
merchantName: '九江双蒸',
|
||||||
|
amount: 3200,
|
||||||
|
status: SettlementStatus.UNSETTLED,
|
||||||
|
dueDate: '2025-12-08',
|
||||||
|
relatedOrders: ['ORD20251105003'],
|
||||||
|
},
|
||||||
|
|
||||||
// 已结账款
|
// 已结账款
|
||||||
{
|
{
|
||||||
id: 'settlement_005',
|
id: 'settlement_005',
|
||||||
orderNo: 'ORD20251110001',
|
orderNo: 'ORD20251110001',
|
||||||
merchantId: 'merchant_a',
|
merchantId: 'merchant_001',
|
||||||
merchantName: '商户A',
|
merchantName: '鑫洋食品',
|
||||||
amount: 6000,
|
amount: 6000,
|
||||||
status: SettlementStatus.SETTLED,
|
status: SettlementStatus.SETTLED,
|
||||||
dueDate: '2025-11-25',
|
dueDate: '2025-11-25',
|
||||||
@@ -106,8 +151,8 @@ export const mockSettlementList: Settlement[] = [
|
|||||||
{
|
{
|
||||||
id: 'settlement_006',
|
id: 'settlement_006',
|
||||||
orderNo: 'ORD20251105001',
|
orderNo: 'ORD20251105001',
|
||||||
merchantId: 'merchant_a',
|
merchantId: 'merchant_001',
|
||||||
merchantName: '商户A',
|
merchantName: '鑫洋食品',
|
||||||
amount: 7500,
|
amount: 7500,
|
||||||
status: SettlementStatus.SETTLED,
|
status: SettlementStatus.SETTLED,
|
||||||
dueDate: '2025-11-20',
|
dueDate: '2025-11-20',
|
||||||
@@ -117,14 +162,36 @@ export const mockSettlementList: Settlement[] = [
|
|||||||
{
|
{
|
||||||
id: 'settlement_007',
|
id: 'settlement_007',
|
||||||
orderNo: 'ORD20251101001',
|
orderNo: 'ORD20251101001',
|
||||||
merchantId: 'merchant_b',
|
merchantId: 'merchant_002',
|
||||||
merchantName: '商户B',
|
merchantName: '隆盛糕点',
|
||||||
amount: 2500,
|
amount: 2500,
|
||||||
status: SettlementStatus.SETTLED,
|
status: SettlementStatus.SETTLED,
|
||||||
dueDate: '2025-11-15',
|
dueDate: '2025-11-15',
|
||||||
settlementDate: '2025-11-12',
|
settlementDate: '2025-11-12',
|
||||||
relatedOrders: ['ORD20251101001'],
|
relatedOrders: ['ORD20251101001'],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'settlement_010',
|
||||||
|
orderNo: 'ORD20251020001',
|
||||||
|
merchantId: 'merchant_004',
|
||||||
|
merchantName: '仙泉酱油',
|
||||||
|
amount: 4200,
|
||||||
|
status: SettlementStatus.SETTLED,
|
||||||
|
dueDate: '2025-11-10',
|
||||||
|
settlementDate: '2025-11-08',
|
||||||
|
relatedOrders: ['ORD20251020001'],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'settlement_011',
|
||||||
|
orderNo: 'ORD20251015001',
|
||||||
|
merchantId: 'merchant_005',
|
||||||
|
merchantName: '沟门前风味',
|
||||||
|
amount: 5800,
|
||||||
|
status: SettlementStatus.SETTLED,
|
||||||
|
dueDate: '2025-11-05',
|
||||||
|
settlementDate: '2025-11-02',
|
||||||
|
relatedOrders: ['ORD20251015001', 'ORD20251015002'],
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -136,8 +203,8 @@ export const mockWriteOffList: WriteOff[] = [
|
|||||||
settlementId: 'settlement_005',
|
settlementId: 'settlement_005',
|
||||||
amount: 6000,
|
amount: 6000,
|
||||||
proof: [
|
proof: [
|
||||||
'https://picsum.photos/400/300?random=proof1',
|
'/static/jz/1.jpg',
|
||||||
'https://picsum.photos/400/300?random=proof2',
|
'/static/jz/2.jpg',
|
||||||
],
|
],
|
||||||
remark: '已完成付款,请查收',
|
remark: '已完成付款,请查收',
|
||||||
submitTime: '2025-11-22 14:30:00',
|
submitTime: '2025-11-22 14:30:00',
|
||||||
@@ -148,7 +215,7 @@ export const mockWriteOffList: WriteOff[] = [
|
|||||||
settlementId: 'settlement_006',
|
settlementId: 'settlement_006',
|
||||||
amount: 7500,
|
amount: 7500,
|
||||||
proof: [
|
proof: [
|
||||||
'https://picsum.photos/400/300?random=proof3',
|
'/static/jz/3.jpg',
|
||||||
],
|
],
|
||||||
remark: '转账凭证',
|
remark: '转账凭证',
|
||||||
submitTime: '2025-11-18 10:15:00',
|
submitTime: '2025-11-18 10:15:00',
|
||||||
@@ -159,10 +226,46 @@ export const mockWriteOffList: WriteOff[] = [
|
|||||||
settlementId: 'settlement_001',
|
settlementId: 'settlement_001',
|
||||||
amount: 5000,
|
amount: 5000,
|
||||||
proof: [
|
proof: [
|
||||||
'https://picsum.photos/400/300?random=proof4',
|
'/static/jz/4.jpg',
|
||||||
],
|
],
|
||||||
remark: '部分付款',
|
remark: '部分付款',
|
||||||
submitTime: '2025-11-28 09:00:00',
|
submitTime: '2025-11-28 09:00:00',
|
||||||
status: WriteOffStatus.PENDING,
|
status: WriteOffStatus.PENDING,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'writeoff_004',
|
||||||
|
settlementId: 'settlement_007',
|
||||||
|
amount: 2500,
|
||||||
|
proof: [
|
||||||
|
'/static/jz/5.jpg',
|
||||||
|
'/static/jz/1.jpg',
|
||||||
|
],
|
||||||
|
remark: '现金支付凭证',
|
||||||
|
submitTime: '2025-11-12 16:45:00',
|
||||||
|
status: WriteOffStatus.APPROVED,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'writeoff_005',
|
||||||
|
settlementId: 'settlement_010',
|
||||||
|
amount: 4200,
|
||||||
|
proof: [
|
||||||
|
'/static/jz/2.jpg',
|
||||||
|
'/static/jz/3.jpg',
|
||||||
|
'/static/jz/4.jpg',
|
||||||
|
],
|
||||||
|
remark: '银行转账',
|
||||||
|
submitTime: '2025-11-08 11:20:00',
|
||||||
|
status: WriteOffStatus.APPROVED,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'writeoff_006',
|
||||||
|
settlementId: 'settlement_003',
|
||||||
|
amount: 1500,
|
||||||
|
proof: [
|
||||||
|
'/static/jz/5.jpg',
|
||||||
|
],
|
||||||
|
remark: '预付部分款项',
|
||||||
|
submitTime: '2025-11-27 15:30:00',
|
||||||
|
status: WriteOffStatus.PENDING,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -4,235 +4,347 @@ import type { Goods } from '@/typings/mall'
|
|||||||
* 商品模拟数据
|
* 商品模拟数据
|
||||||
*/
|
*/
|
||||||
export const mockGoodsList: Goods[] = [
|
export const mockGoodsList: Goods[] = [
|
||||||
// 服装类商品
|
// 农产品
|
||||||
{
|
{
|
||||||
id: 'goods_001',
|
id: 'goods_001',
|
||||||
shopId: 'merchant_a',
|
shopId: 'merchant_001',
|
||||||
shopName: '商户A',
|
shopName: '鑫洋食品',
|
||||||
name: '2024春季新款连衣裙',
|
name: '桂味新鲜荔枝现摘现发当季水果自家果园荔枝',
|
||||||
cover: 'https://picsum.photos/400/400?random=1',
|
cover: '/static/product/1/1.jpg',
|
||||||
images: [
|
images: ['/static/product/1/1.jpg'],
|
||||||
'https://picsum.photos/800/800?random=1',
|
detailImage: '/static/product/1/2.jpg',
|
||||||
'https://picsum.photos/800/800?random=2',
|
price: 20,
|
||||||
'https://picsum.photos/800/800?random=3',
|
originalPrice: 35,
|
||||||
],
|
stock: 500,
|
||||||
price: 299,
|
sales: 2345,
|
||||||
originalPrice: 599,
|
description: '高州等核心产区直发的桂味荔枝,甜度常达18度以上,带有淡淡桂花香。果园凌晨采摘,严格分选后使用泡沫箱+冰袋+顺丰快递,最大限度保证新鲜。',
|
||||||
stock: 100,
|
|
||||||
sales: 1234,
|
|
||||||
description: '优质面料,舒适透气,修身显瘦,适合春夏季节穿着。',
|
|
||||||
specs: [
|
specs: [
|
||||||
{ name: '颜色', values: ['黑色', '白色', '红色'] },
|
{ name: '规格', values: ['5斤装', '10斤装'] },
|
||||||
{ name: '尺码', values: ['S', 'M', 'L', 'XL'] },
|
{ name: '等级', values: ['特级', '一级'] },
|
||||||
],
|
],
|
||||||
tags: ['新品', '热销'],
|
tags: ['新品', '热销'],
|
||||||
categoryId: 'cat_001',
|
categoryId: 'cat_001',
|
||||||
categoryName: '服装',
|
categoryName: '农产品',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'goods_002',
|
id: 'goods_002',
|
||||||
shopId: 'merchant_a',
|
shopId: 'merchant_002',
|
||||||
shopName: '商户A',
|
shopName: '隆盛糕点',
|
||||||
name: '男士休闲T恤',
|
name: '老农田桂圆肉干无核新货8a龙眼肉干500g厚元肉干',
|
||||||
cover: 'https://picsum.photos/400/400?random=4',
|
cover: '/static/product/2/1.jpg',
|
||||||
images: [
|
images: ['/static/product/2/1.jpg', '/static/product/2/2.jpg'],
|
||||||
'https://picsum.photos/800/800?random=4',
|
detailImage: '/static/product/2/3.jpg',
|
||||||
'https://picsum.photos/800/800?random=5',
|
price: 50,
|
||||||
],
|
originalPrice: 68,
|
||||||
price: 89,
|
|
||||||
originalPrice: 159,
|
|
||||||
stock: 200,
|
stock: 200,
|
||||||
sales: 856,
|
sales: 890,
|
||||||
description: '纯棉面料,柔软舒适,经典百搭款式。',
|
description: '特级石硖硖龙眼,传统工艺蒸汽烘干,果肉厚实无核,色泽自然。独立包装,干净卫生,可直接食用或用于煲汤、泡水,是日常养生佳品。',
|
||||||
specs: [
|
specs: [
|
||||||
{ name: '颜色', values: ['白色', '灰色', '黑色', '蓝色'] },
|
{ name: '规格', values: ['250g', '500g', '1000g'] },
|
||||||
{ name: '尺码', values: ['M', 'L', 'XL', 'XXL'] },
|
|
||||||
],
|
],
|
||||||
tags: ['热销'],
|
tags: ['热销'],
|
||||||
categoryId: 'cat_001',
|
categoryId: 'cat_001',
|
||||||
categoryName: '服装',
|
categoryName: '农产品',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'goods_003',
|
id: 'goods_003',
|
||||||
shopId: 'merchant_a',
|
shopId: 'merchant_003',
|
||||||
shopName: '商户A',
|
shopName: '九江双蒸',
|
||||||
name: '女士牛仔裤',
|
name: '自然禾方化橘红陈皮无糖植物饮料350ml*9瓶整箱装',
|
||||||
cover: 'https://picsum.photos/400/400?random=6',
|
cover: '/static/product/3/1.jpg',
|
||||||
images: [
|
images: ['/static/product/3/1.jpg'],
|
||||||
'https://picsum.photos/800/800?random=6',
|
detailImage: '/static/product/3/2.jpg',
|
||||||
'https://picsum.photos/800/800?random=7',
|
price: 50,
|
||||||
],
|
originalPrice: 75,
|
||||||
price: 199,
|
|
||||||
originalPrice: 399,
|
|
||||||
stock: 150,
|
stock: 150,
|
||||||
sales: 678,
|
sales: 567,
|
||||||
description: '高腰设计,显瘦修身,弹力面料,穿着舒适。',
|
description: '严选化州橘红、新会陈皮等道地原料,无添加糖,慢火熬制。口感甘醇清润,带有天然草本香气,适合日常佐餐或需要润养时饮用。',
|
||||||
specs: [
|
specs: [
|
||||||
{ name: '颜色', values: ['浅蓝', '深蓝', '黑色'] },
|
{ name: '包装', values: ['9瓶装', '15瓶装'] },
|
||||||
{ name: '尺码', values: ['25', '26', '27', '28', '29'] },
|
|
||||||
],
|
],
|
||||||
tags: ['推荐'],
|
tags: ['新品'],
|
||||||
categoryId: 'cat_001',
|
categoryId: 'cat_003',
|
||||||
categoryName: '服装',
|
categoryName: '美食饮品',
|
||||||
},
|
},
|
||||||
|
|
||||||
// 数码类商品
|
|
||||||
{
|
{
|
||||||
id: 'goods_004',
|
id: 'goods_004',
|
||||||
shopId: 'merchant_b',
|
shopId: 'merchant_004',
|
||||||
shopName: '商户B',
|
shopName: '仙泉酱油',
|
||||||
name: '无线蓝牙耳机',
|
name: '沉香原木摆件老料虫漏原材料天然刮香',
|
||||||
cover: 'https://picsum.photos/400/400?random=8',
|
cover: '/static/product/4/1.jpg',
|
||||||
images: [
|
images: ['/static/product/4/1.jpg'],
|
||||||
'https://picsum.photos/800/800?random=8',
|
detailImage: '/static/product/4/2.jpg',
|
||||||
'https://picsum.photos/800/800?random=9',
|
price: 152,
|
||||||
],
|
originalPrice: 299,
|
||||||
price: 299,
|
stock: 30,
|
||||||
originalPrice: 499,
|
sales: 123,
|
||||||
stock: 80,
|
description: '产自芽庄或海南的虫漏沉香老料,由虫蚁啃噬后树脂自然醇化数十年而成。香气清甜带凉意,既可作雅致摆件,亦可刮取少量用于熏香、品茗,具有收藏价值。',
|
||||||
sales: 2345,
|
|
||||||
description: '主动降噪,长续航,高音质,支持快充。',
|
|
||||||
specs: [
|
specs: [
|
||||||
{ name: '颜色', values: ['白色', '黑色'] },
|
{ name: '重量', values: ['100g', '200g', '500g'] },
|
||||||
],
|
],
|
||||||
tags: ['新品', '热销'],
|
tags: ['新品'],
|
||||||
categoryId: 'cat_002',
|
categoryId: 'cat_005',
|
||||||
categoryName: '数码',
|
categoryName: '文创工艺品',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'goods_005',
|
id: 'goods_005',
|
||||||
shopId: 'merchant_b',
|
shopId: 'merchant_005',
|
||||||
shopName: '商户B',
|
shopName: '沟门前风味',
|
||||||
name: '智能手表',
|
name: '罗非鱼新鲜冷冻食材烧烤红烧净膛烤鱼酒店食堂快',
|
||||||
cover: 'https://picsum.photos/400/400?random=10',
|
cover: '/static/product/5/1.jpg',
|
||||||
images: [
|
images: ['/static/product/5/1.jpg'],
|
||||||
'https://picsum.photos/800/800?random=10',
|
detailImage: '/static/product/5/2.jpg',
|
||||||
'https://picsum.photos/800/800?random=11',
|
price: 80,
|
||||||
],
|
originalPrice: 120,
|
||||||
price: 899,
|
|
||||||
originalPrice: 1299,
|
|
||||||
stock: 50,
|
|
||||||
sales: 567,
|
|
||||||
description: '健康监测,运动追踪,消息提醒,长续航。',
|
|
||||||
specs: [
|
|
||||||
{ name: '颜色', values: ['黑色', '银色', '金色'] },
|
|
||||||
{ name: '表带', values: ['硅胶', '皮革', '金属'] },
|
|
||||||
],
|
|
||||||
tags: ['新品'],
|
|
||||||
categoryId: 'cat_002',
|
|
||||||
categoryName: '数码',
|
|
||||||
},
|
|
||||||
|
|
||||||
// 食品类商品
|
|
||||||
{
|
|
||||||
id: 'goods_006',
|
|
||||||
shopId: 'merchant_a',
|
|
||||||
shopName: '商户A',
|
|
||||||
name: '进口零食大礼包',
|
|
||||||
cover: 'https://picsum.photos/400/400?random=12',
|
|
||||||
images: [
|
|
||||||
'https://picsum.photos/800/800?random=12',
|
|
||||||
'https://picsum.photos/800/800?random=13',
|
|
||||||
],
|
|
||||||
price: 128,
|
|
||||||
originalPrice: 198,
|
|
||||||
stock: 300,
|
stock: 300,
|
||||||
sales: 1890,
|
|
||||||
description: '多种口味,营养健康,适合全家分享。',
|
|
||||||
specs: [],
|
|
||||||
tags: ['热销', '推荐'],
|
|
||||||
categoryId: 'cat_003',
|
|
||||||
categoryName: '食品',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id: 'goods_007',
|
|
||||||
shopId: 'merchant_a',
|
|
||||||
shopName: '商户A',
|
|
||||||
name: '有机坚果礼盒',
|
|
||||||
cover: 'https://picsum.photos/400/400?random=14',
|
|
||||||
images: [
|
|
||||||
'https://picsum.photos/800/800?random=14',
|
|
||||||
'https://picsum.photos/800/800?random=15',
|
|
||||||
],
|
|
||||||
price: 168,
|
|
||||||
originalPrice: 268,
|
|
||||||
stock: 120,
|
|
||||||
sales: 456,
|
sales: 456,
|
||||||
description: '精选优质坚果,营养丰富,送礼佳品。',
|
description: '精选优质淡水罗非鱼,单片急速冷冻,锁住鲜味。已去鳞、去鳃鳃、去内脏,处理干净,解冻即可烹饪。肉质细嫩少刺,适合香煎、红烧、烧烤,是酒店食堂高效备餐之选。',
|
||||||
specs: [
|
specs: [
|
||||||
{ name: '规格', values: ['500g', '1000g'] },
|
{ name: '规格', values: ['500g', '1000g'] },
|
||||||
],
|
],
|
||||||
tags: ['推荐'],
|
tags: ['热销'],
|
||||||
categoryId: 'cat_003',
|
categoryId: 'cat_001',
|
||||||
categoryName: '食品',
|
categoryName: '农产品',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'goods_006',
|
||||||
|
shopId: 'merchant_006',
|
||||||
|
shopName: '阿哒嘛民族服饰',
|
||||||
|
name: '罗非鱼苗新吉富雄性淡水养殖特大鱼耐寒',
|
||||||
|
cover: '/static/product/6/1.jpg',
|
||||||
|
images: ['/static/product/6/1.jpg', '/static/product/6/2.jpg'],
|
||||||
|
detailImage: '/static/product/6/3.jpg',
|
||||||
|
price: 10,
|
||||||
|
originalPrice: 15,
|
||||||
|
stock: 1000,
|
||||||
|
sales: 2345,
|
||||||
|
description: '新吉富优良品系,雄性率高达98%以上,生长速度快,体型匀称。经过耐寒驯化,适应性更强,成活率高。适合池塘、网箱等淡水养殖模式,是养殖户的放心选择。',
|
||||||
|
specs: [
|
||||||
|
{ name: '规格', values: ['100尾', '500尾', '1000尾'] },
|
||||||
|
],
|
||||||
|
tags: ['热销'],
|
||||||
|
categoryId: 'cat_001',
|
||||||
|
categoryName: '农产品',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'goods_007',
|
||||||
|
shopId: 'merchant_007',
|
||||||
|
shopName: '四脚公园',
|
||||||
|
name: '三华李5斤新鲜李子孕妇水果现摘大果珍珠青李',
|
||||||
|
cover: '/static/product/7/1.jpg',
|
||||||
|
images: ['/static/product/7/1.jpg'],
|
||||||
|
detailImage: '/static/product/7/2.jpg',
|
||||||
|
price: 30,
|
||||||
|
originalPrice: 45,
|
||||||
|
stock: 200,
|
||||||
|
sales: 789,
|
||||||
|
description: '特产三华李,现摘现发,果大核小。青皮红肉,口感脆爽,酸甜多汁,非常适合孕妇缓解孕吐、开胃生津。自然成熟,绿色种植,新鲜送达。',
|
||||||
|
specs: [
|
||||||
|
{ name: '规格', values: ['3斤装', '5斤装'] },
|
||||||
|
],
|
||||||
|
tags: ['新品', '热销'],
|
||||||
|
categoryId: 'cat_001',
|
||||||
|
categoryName: '农产品',
|
||||||
},
|
},
|
||||||
|
|
||||||
// 家居类商品
|
|
||||||
{
|
{
|
||||||
id: 'goods_008',
|
id: 'goods_008',
|
||||||
shopId: 'merchant_b',
|
shopId: 'merchant_008',
|
||||||
shopName: '商户B',
|
shopName: '知味观',
|
||||||
name: '北欧风格台灯',
|
name: '正宗化州拖罗饼金腿拖罗大饼广式月饼中秋特产',
|
||||||
cover: 'https://picsum.photos/400/400?random=16',
|
cover: '/static/product/8/1.jpg',
|
||||||
images: [
|
images: ['/static/product/8/1.jpg'],
|
||||||
'https://picsum.photos/800/800?random=16',
|
detailImage: '/static/product/8/2.jpg',
|
||||||
'https://picsum.photos/800/800?random=17',
|
price: 30,
|
||||||
],
|
originalPrice: 48,
|
||||||
price: 159,
|
stock: 150,
|
||||||
originalPrice: 299,
|
sales: 567,
|
||||||
stock: 90,
|
description: '化州非遗特产,以金黄酥脆的千层饼皮为特色。内馅选用优质金丝火腿、椰丝、白糖冬瓜等,口感丰富,咸甜交织,是中秋佳节不可或缺的传统美味。',
|
||||||
sales: 234,
|
|
||||||
description: '简约设计,护眼光源,适合卧室书房。',
|
|
||||||
specs: [
|
specs: [
|
||||||
{ name: '颜色', values: ['白色', '木色'] },
|
{ name: '规格', values: ['单个装', '礼盒装'] },
|
||||||
],
|
],
|
||||||
tags: ['新品'],
|
tags: ['新品'],
|
||||||
categoryId: 'cat_004',
|
categoryId: 'cat_002',
|
||||||
categoryName: '家居',
|
categoryName: '非遗老字号',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'goods_009',
|
id: 'goods_009',
|
||||||
shopId: 'merchant_b',
|
shopId: 'merchant_009',
|
||||||
shopName: '商户B',
|
shopName: '老美华',
|
||||||
name: '四件套床上用品',
|
name: '电白绿奇线香纯手工电白绿奇手工香电白绿奇楠老料',
|
||||||
cover: 'https://picsum.photos/400/400?random=18',
|
cover: '/static/product/9/1.jpg',
|
||||||
images: [
|
images: ['/static/product/9/1.jpg'],
|
||||||
'https://picsum.photos/800/800?random=18',
|
detailImage: '/static/product/9/2.jpg',
|
||||||
'https://picsum.photos/800/800?random=19',
|
price: 45.6,
|
||||||
],
|
originalPrice: 68,
|
||||||
price: 299,
|
stock: 80,
|
||||||
originalPrice: 599,
|
sales: 234,
|
||||||
stock: 150,
|
description: '采用茂名电白特产绿奇楠沉香老料,纯手工古法制作。香气清雅醇厚,带有凉甜韵味。燃烧持久,烟形婀婀娜,适用于居家熏香、瑜伽冥想、书房静心。',
|
||||||
sales: 789,
|
|
||||||
description: '纯棉面料,柔软亲肤,多种花色可选。',
|
|
||||||
specs: [
|
specs: [
|
||||||
{ name: '尺寸', values: ['1.5m床', '1.8m床', '2.0m床'] },
|
{ name: '规格', values: ['10支装', '30支装'] },
|
||||||
{ name: '颜色', values: ['浅灰', '深灰', '米白', '粉色'] },
|
],
|
||||||
|
tags: ['新品'],
|
||||||
|
categoryId: 'cat_002',
|
||||||
|
categoryName: '非遗老字号',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'goods_010',
|
||||||
|
shopId: 'merchant_010',
|
||||||
|
shopName: '原音社',
|
||||||
|
name: '茂名特产正宗黑豆干豆豉豉原味古法工艺散装',
|
||||||
|
cover: '/static/product/10/1.jpg',
|
||||||
|
images: ['/static/product/10/1.jpg'],
|
||||||
|
detailImage: '/static/product/10/2.jpg',
|
||||||
|
price: 32.5,
|
||||||
|
originalPrice: 45,
|
||||||
|
stock: 400,
|
||||||
|
sales: 890,
|
||||||
|
description: '茂名农家传统工艺晒制,选用黑豆为原料,经过天然发酵,豆豉豉乌黑油亮,豉豉香浓郁醇厚。原味无添加,是烹饪豉豉汁排骨、蒸鱼、炒青菜的绝佳调味品。',
|
||||||
|
specs: [
|
||||||
|
{ name: '规格', values: ['250g', '500g'] },
|
||||||
],
|
],
|
||||||
tags: ['热销'],
|
tags: ['热销'],
|
||||||
categoryId: 'cat_004',
|
categoryId: 'cat_004',
|
||||||
categoryName: '家居',
|
categoryName: '粮油副食',
|
||||||
},
|
},
|
||||||
|
|
||||||
// 美妆类商品
|
|
||||||
{
|
{
|
||||||
id: 'goods_010',
|
id: 'goods_011',
|
||||||
shopId: 'merchant_a',
|
shopId: 'merchant_001',
|
||||||
shopName: '商户A',
|
shopName: '鑫洋食品',
|
||||||
name: '保湿面霜套装',
|
name: '茂名特产籺籺寿桃籺籺菠萝叶籺籺电白高州籺籺',
|
||||||
cover: 'https://picsum.photos/400/400?random=20',
|
cover: '/static/product/11/1.jpg',
|
||||||
images: [
|
images: ['/static/product/11/1.jpg'],
|
||||||
'https://picsum.photos/800/800?random=20',
|
detailImage: '/static/product/11/2.jpg',
|
||||||
'https://picsum.photos/800/800?random=21',
|
price: 15,
|
||||||
|
originalPrice: 25,
|
||||||
|
stock: 300,
|
||||||
|
sales: 678,
|
||||||
|
description: '茂名传统手工米糕,有寿桃形状的寿桃籺籺、用菠萝叶包裹的艾籺籺等。外皮软糯,内馅咸甜可选(如花生、绿豆、椰丝),是节日、喜庆场合的代表性小吃。',
|
||||||
|
specs: [
|
||||||
|
{ name: '口味', values: ['花生馅', '绿豆馅', '椰丝馅'] },
|
||||||
],
|
],
|
||||||
price: 399,
|
tags: ['热销'],
|
||||||
originalPrice: 699,
|
categoryId: 'cat_004',
|
||||||
stock: 200,
|
categoryName: '粮油副食',
|
||||||
sales: 1567,
|
|
||||||
description: '深层补水,改善肌肤,温和不刺激。',
|
|
||||||
specs: [],
|
|
||||||
tags: ['热销', '推荐'],
|
|
||||||
categoryId: 'cat_005',
|
|
||||||
categoryName: '美妆',
|
|
||||||
},
|
},
|
||||||
]
|
{
|
||||||
|
id: 'goods_012',
|
||||||
|
shopId: 'merchant_002',
|
||||||
|
shopName: '隆盛糕点',
|
||||||
|
name: '凤球唛唛瑶柱鲍鱼汁290g/瓶海参即食捞饭',
|
||||||
|
cover: '/static/product/12/1.jpg',
|
||||||
|
images: ['/static/product/12/1.jpg'],
|
||||||
|
detailImage: '/static/product/12/2.jpg',
|
||||||
|
price: 10,
|
||||||
|
originalPrice: 15,
|
||||||
|
stock: 600,
|
||||||
|
sales: 1234,
|
||||||
|
description: '凤球唛唛出品的优质鲍鱼汁,融合瑶柱、鲍鱼等海味精华。酱汁浓郁粘稠,蚝香鲜美,适用于捞饭、拌面、焖制海参、花菇等菜肴,轻松提升菜肴档次。',
|
||||||
|
specs: [
|
||||||
|
{ name: '规格', values: ['290g', '500g'] },
|
||||||
|
],
|
||||||
|
tags: ['热销'],
|
||||||
|
categoryId: 'cat_004',
|
||||||
|
categoryName: '粮油副食',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'goods_013',
|
||||||
|
shopId: 'merchant_003',
|
||||||
|
shopName: '九江双蒸',
|
||||||
|
name: '100寸防爆电视机4K高清智能网络平板',
|
||||||
|
cover: '/static/product/13/1.jpg',
|
||||||
|
images: ['/static/product/13/1.jpg'],
|
||||||
|
detailImage: '/static/product/13/2.jpg',
|
||||||
|
price: 500,
|
||||||
|
originalPrice: 899,
|
||||||
|
stock: 50,
|
||||||
|
sales: 89,
|
||||||
|
description: '100英寸巨幕设计,采用防爆屏体,安全可靠。支持4K超高清分辨率,搭载智能操作系统,内置丰富影音资源。适合高端家庭影院、商业展示、会议办公等场景。',
|
||||||
|
specs: [
|
||||||
|
{ name: '尺寸', values: ['75寸', '85寸', '100寸'] },
|
||||||
|
],
|
||||||
|
tags: ['新品'],
|
||||||
|
categoryId: 'cat_006',
|
||||||
|
categoryName: '电子数码',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'goods_014',
|
||||||
|
shopId: 'merchant_004',
|
||||||
|
shopName: '仙泉酱油',
|
||||||
|
name: '灰色西装套装女春秋高级感气质显瘦时尚通勤连衣',
|
||||||
|
cover: '/static/product/14/1.jpg',
|
||||||
|
images: ['/static/product/14/1.jpg'],
|
||||||
|
detailImage: '/static/product/14/2.jpg',
|
||||||
|
price: 150,
|
||||||
|
originalPrice: 299,
|
||||||
|
stock: 120,
|
||||||
|
sales: 456,
|
||||||
|
description: '春秋季通勤必备灰色西装套装,采用垂坠感佳的抗皱面料。剪裁利落,版型修身显瘦,整体设计简约高级,适合办公室、商务会谈等正式场合,彰显干练气质。',
|
||||||
|
specs: [
|
||||||
|
{ name: '颜色', values: ['灰色', '黑色', '藏青'] },
|
||||||
|
{ name: '尺码', values: ['S', 'M', 'L', 'XL'] },
|
||||||
|
],
|
||||||
|
tags: ['新品', '热销'],
|
||||||
|
categoryId: 'cat_007',
|
||||||
|
categoryName: '服装鞋袜',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'goods_015',
|
||||||
|
shopId: 'merchant_005',
|
||||||
|
shopName: '沟门前风味',
|
||||||
|
name: '原创汉服改良交领刺绣织金妆花黑色马面裙女冬款',
|
||||||
|
cover: '/static/product/15/1.jpg',
|
||||||
|
images: ['/static/product/15/1.jpg'],
|
||||||
|
detailImage: '/static/product/15/2.jpg',
|
||||||
|
price: 90,
|
||||||
|
originalPrice: 168,
|
||||||
|
stock: 80,
|
||||||
|
sales: 234,
|
||||||
|
description: '原创设计改良汉服,交领上衣搭配织金妆花黑色马面裙。刺绣精美,纹样典雅,面料厚实保暖,适合秋冬季节。兼具传统韵味与现代实穿性,可用于传统节日或日常出街。',
|
||||||
|
specs: [
|
||||||
|
{ name: '尺码', values: ['S', 'M', 'L'] },
|
||||||
|
],
|
||||||
|
tags: ['新品'],
|
||||||
|
categoryId: 'cat_007',
|
||||||
|
categoryName: '服装鞋袜',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'goods_016',
|
||||||
|
shopId: 'merchant_006',
|
||||||
|
shopName: '阿哒嘛民族服饰',
|
||||||
|
name: '天然玉石玉雕龙船一帆风顺摆件家居装饰品',
|
||||||
|
cover: '/static/product/16/1.jpg',
|
||||||
|
images: ['/static/product/16/1.jpg'],
|
||||||
|
detailImage: '/static/product/16/2.jpg',
|
||||||
|
price: 168,
|
||||||
|
originalPrice: 298,
|
||||||
|
stock: 40,
|
||||||
|
sales: 123,
|
||||||
|
description: '采用天然岫岫玉等玉石,手工精雕细琢成龙船造型,寓意"一帆风顺、大吉大利"。做工细腻,色泽温润,是寓意吉祥的办公室、书房、家居装饰摆件或送礼佳品。',
|
||||||
|
specs: [
|
||||||
|
{ name: '尺寸', values: ['小号', '中号', '大号'] },
|
||||||
|
],
|
||||||
|
tags: ['新品'],
|
||||||
|
categoryId: 'cat_005',
|
||||||
|
categoryName: '文创工艺品',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'goods_017',
|
||||||
|
shopId: 'merchant_007',
|
||||||
|
shopName: '四脚公园',
|
||||||
|
name: '竹编竹篮子高档手提中秋月饼包装礼盒端午节粽子',
|
||||||
|
cover: '/static/product/17/1.jpg',
|
||||||
|
images: ['/static/product/17/1.jpg'],
|
||||||
|
detailImage: '/static/product/17/2.jpg',
|
||||||
|
price: 15,
|
||||||
|
originalPrice: 25,
|
||||||
|
stock: 200,
|
||||||
|
sales: 456,
|
||||||
|
description: '精选天然竹材,手工编织而成的高档礼品篮。造型古朴雅致,环保结实,可作为中秋月饼、端午粽子等节礼的特色包装,循环使用性强,充满传统仪式感。',
|
||||||
|
specs: [
|
||||||
|
{ name: '尺寸', values: ['小号', '中号', '大号'] },
|
||||||
|
],
|
||||||
|
tags: ['热销'],
|
||||||
|
categoryId: 'cat_005',
|
||||||
|
categoryName: '文创工艺品',
|
||||||
|
},
|
||||||
|
]
|
||||||
@@ -140,9 +140,7 @@ function goToCart() {
|
|||||||
<view class="section-title">商品详情</view>
|
<view class="section-title">商品详情</view>
|
||||||
<view class="content-body">
|
<view class="content-body">
|
||||||
<image
|
<image
|
||||||
v-for="(img, index) in goods.images"
|
:src="goods.detailImage"
|
||||||
:key="index"
|
|
||||||
:src="img"
|
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
class="detail-img"
|
class="detail-img"
|
||||||
/>
|
/>
|
||||||
|
|||||||
BIN
src/static/jz/1.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
src/static/jz/2.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
src/static/jz/3.jpg
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
src/static/jz/4.jpg
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
src/static/jz/5.jpg
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
src/static/product/1/1.jpg
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
src/static/product/1/2.jpg
Normal file
|
After Width: | Height: | Size: 2.7 MiB |
BIN
src/static/product/10/1.jpg
Normal file
|
After Width: | Height: | Size: 104 KiB |
BIN
src/static/product/10/2.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
src/static/product/11/1.jpg
Normal file
|
After Width: | Height: | Size: 174 KiB |
BIN
src/static/product/11/2.jpg
Normal file
|
After Width: | Height: | Size: 810 KiB |
BIN
src/static/product/12/1.jpg
Normal file
|
After Width: | Height: | Size: 140 KiB |
BIN
src/static/product/12/2.jpg
Normal file
|
After Width: | Height: | Size: 926 KiB |
BIN
src/static/product/13/1.jpg
Normal file
|
After Width: | Height: | Size: 139 KiB |
BIN
src/static/product/13/2.jpg
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
src/static/product/14/1.jpg
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
src/static/product/14/2.jpg
Normal file
|
After Width: | Height: | Size: 511 KiB |
BIN
src/static/product/15/1.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
src/static/product/15/2.jpg
Normal file
|
After Width: | Height: | Size: 903 KiB |
BIN
src/static/product/16/1.jpg
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
src/static/product/16/2.jpg
Normal file
|
After Width: | Height: | Size: 235 KiB |
BIN
src/static/product/17/1.jpg
Normal file
|
After Width: | Height: | Size: 121 KiB |
BIN
src/static/product/17/2.jpg
Normal file
|
After Width: | Height: | Size: 717 KiB |
BIN
src/static/product/2/1.jpg
Normal file
|
After Width: | Height: | Size: 138 KiB |
BIN
src/static/product/2/2.jpg
Normal file
|
After Width: | Height: | Size: 141 KiB |
BIN
src/static/product/2/3.jpg
Normal file
|
After Width: | Height: | Size: 1005 KiB |
BIN
src/static/product/3/1.jpg
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
src/static/product/3/2.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
src/static/product/4/1.jpg
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
src/static/product/4/2.jpg
Normal file
|
After Width: | Height: | Size: 692 KiB |
BIN
src/static/product/5/1.jpg
Normal file
|
After Width: | Height: | Size: 134 KiB |
BIN
src/static/product/5/2.jpg
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
src/static/product/6/1.jpg
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
src/static/product/6/2.jpg
Normal file
|
After Width: | Height: | Size: 106 KiB |
BIN
src/static/product/6/3.jpg
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
BIN
src/static/product/7/1.jpg
Normal file
|
After Width: | Height: | Size: 101 KiB |
BIN
src/static/product/7/2.jpg
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
src/static/product/8/1.jpg
Normal file
|
After Width: | Height: | Size: 170 KiB |
BIN
src/static/product/8/2.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
src/static/product/9/1.jpg
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
src/static/product/9/2.jpg
Normal file
|
After Width: | Height: | Size: 522 KiB |
@@ -16,6 +16,7 @@ export interface Goods {
|
|||||||
name: string // 商品名称
|
name: string // 商品名称
|
||||||
cover: string // 封面图
|
cover: string // 封面图
|
||||||
images: string[] // 商品图片
|
images: string[] // 商品图片
|
||||||
|
detailImage:string // 详请图片
|
||||||
price: number // 价格
|
price: number // 价格
|
||||||
originalPrice: number // 原价
|
originalPrice: number // 原价
|
||||||
stock: number // 库存
|
stock: number // 库存
|
||||||
|
|||||||