diff --git a/src/mock/finance.ts b/src/mock/finance.ts
index 9a1070e..3ed0d93 100644
--- a/src/mock/finance.ts
+++ b/src/mock/finance.ts
@@ -6,21 +6,45 @@ import type { CreditLimit, Settlement, WriteOff } from '@/typings/mall'
*/
export const mockCreditLimitList: CreditLimit[] = [
{
- merchantId: 'merchant_a',
- merchantName: '商户A',
+ merchantId: 'merchant_001',
+ merchantName: '鑫洋食品',
totalLimit: 100000,
usedLimit: 99900,
availableLimit: 100,
updateTime: '2025-11-28 10:00:00',
},
{
- merchantId: 'merchant_b',
- merchantName: '商户B',
+ merchantId: 'merchant_002',
+ merchantName: '隆盛糕点',
totalLimit: 50000,
usedLimit: 12000,
availableLimit: 38000,
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',
orderNo: 'ORD20251128001',
- merchantId: 'merchant_a',
- merchantName: '商户A',
+ merchantId: 'merchant_001',
+ merchantName: '鑫洋食品',
amount: 5000,
status: SettlementStatus.UNSETTLED,
dueDate: '2025-12-15',
@@ -41,8 +65,8 @@ export const mockSettlementList: Settlement[] = [
{
id: 'settlement_002',
orderNo: 'ORD20251125001',
- merchantId: 'merchant_a',
- merchantName: '商户A',
+ merchantId: 'merchant_001',
+ merchantName: '鑫洋食品',
amount: 8000,
status: SettlementStatus.UNSETTLED,
dueDate: '2025-12-10',
@@ -51,8 +75,8 @@ export const mockSettlementList: Settlement[] = [
{
id: 'settlement_003',
orderNo: 'ORD20251120001',
- merchantId: 'merchant_b',
- merchantName: '商户B',
+ merchantId: 'merchant_002',
+ merchantName: '隆盛糕点',
amount: 3000,
status: SettlementStatus.UNSETTLED,
dueDate: '2025-12-05',
@@ -61,8 +85,8 @@ export const mockSettlementList: Settlement[] = [
{
id: 'settlement_004',
orderNo: 'ORD20251115001',
- merchantId: 'merchant_b',
- merchantName: '商户B',
+ merchantId: 'merchant_002',
+ merchantName: '隆盛糕点',
amount: 4500,
status: SettlementStatus.OVERDUE,
dueDate: '2025-11-30',
@@ -72,8 +96,8 @@ export const mockSettlementList: Settlement[] = [
{
id: 'settlement_new_001',
orderNo: 'ORD20251128999',
- merchantId: 'merchant_a',
- merchantName: '商户A',
+ merchantId: 'merchant_003',
+ merchantName: '九江双蒸',
amount: 1200,
status: SettlementStatus.OVERDUE,
dueDate: '2025-11-28',
@@ -83,20 +107,41 @@ export const mockSettlementList: Settlement[] = [
{
id: 'settlement_new_002',
orderNo: 'ORD20251129001',
- merchantId: 'merchant_b',
- merchantName: '商户B',
+ merchantId: 'merchant_004',
+ merchantName: '仙泉酱油',
amount: 2800,
status: SettlementStatus.UNSETTLED,
dueDate: '2025-11-30',
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',
orderNo: 'ORD20251110001',
- merchantId: 'merchant_a',
- merchantName: '商户A',
+ merchantId: 'merchant_001',
+ merchantName: '鑫洋食品',
amount: 6000,
status: SettlementStatus.SETTLED,
dueDate: '2025-11-25',
@@ -106,8 +151,8 @@ export const mockSettlementList: Settlement[] = [
{
id: 'settlement_006',
orderNo: 'ORD20251105001',
- merchantId: 'merchant_a',
- merchantName: '商户A',
+ merchantId: 'merchant_001',
+ merchantName: '鑫洋食品',
amount: 7500,
status: SettlementStatus.SETTLED,
dueDate: '2025-11-20',
@@ -117,14 +162,36 @@ export const mockSettlementList: Settlement[] = [
{
id: 'settlement_007',
orderNo: 'ORD20251101001',
- merchantId: 'merchant_b',
- merchantName: '商户B',
+ merchantId: 'merchant_002',
+ merchantName: '隆盛糕点',
amount: 2500,
status: SettlementStatus.SETTLED,
dueDate: '2025-11-15',
settlementDate: '2025-11-12',
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',
amount: 6000,
proof: [
- 'https://picsum.photos/400/300?random=proof1',
- 'https://picsum.photos/400/300?random=proof2',
+ '/static/jz/1.jpg',
+ '/static/jz/2.jpg',
],
remark: '已完成付款,请查收',
submitTime: '2025-11-22 14:30:00',
@@ -148,7 +215,7 @@ export const mockWriteOffList: WriteOff[] = [
settlementId: 'settlement_006',
amount: 7500,
proof: [
- 'https://picsum.photos/400/300?random=proof3',
+ '/static/jz/3.jpg',
],
remark: '转账凭证',
submitTime: '2025-11-18 10:15:00',
@@ -159,10 +226,46 @@ export const mockWriteOffList: WriteOff[] = [
settlementId: 'settlement_001',
amount: 5000,
proof: [
- 'https://picsum.photos/400/300?random=proof4',
+ '/static/jz/4.jpg',
],
remark: '部分付款',
submitTime: '2025-11-28 09:00:00',
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,
+ },
]
diff --git a/src/mock/goods.ts b/src/mock/goods.ts
index a0d5096..7ca6894 100644
--- a/src/mock/goods.ts
+++ b/src/mock/goods.ts
@@ -4,235 +4,347 @@ import type { Goods } from '@/typings/mall'
* 商品模拟数据
*/
export const mockGoodsList: Goods[] = [
- // 服装类商品
+ // 农产品
{
id: 'goods_001',
- shopId: 'merchant_a',
- shopName: '商户A',
- name: '2024春季新款连衣裙',
- cover: 'https://picsum.photos/400/400?random=1',
- images: [
- 'https://picsum.photos/800/800?random=1',
- 'https://picsum.photos/800/800?random=2',
- 'https://picsum.photos/800/800?random=3',
- ],
- price: 299,
- originalPrice: 599,
- stock: 100,
- sales: 1234,
- description: '优质面料,舒适透气,修身显瘦,适合春夏季节穿着。',
+ shopId: 'merchant_001',
+ shopName: '鑫洋食品',
+ name: '桂味新鲜荔枝现摘现发当季水果自家果园荔枝',
+ cover: '/static/product/1/1.jpg',
+ images: ['/static/product/1/1.jpg'],
+ detailImage: '/static/product/1/2.jpg',
+ price: 20,
+ originalPrice: 35,
+ stock: 500,
+ sales: 2345,
+ description: '高州等核心产区直发的桂味荔枝,甜度常达18度以上,带有淡淡桂花香。果园凌晨采摘,严格分选后使用泡沫箱+冰袋+顺丰快递,最大限度保证新鲜。',
specs: [
- { name: '颜色', values: ['黑色', '白色', '红色'] },
- { name: '尺码', values: ['S', 'M', 'L', 'XL'] },
+ { name: '规格', values: ['5斤装', '10斤装'] },
+ { name: '等级', values: ['特级', '一级'] },
],
tags: ['新品', '热销'],
categoryId: 'cat_001',
- categoryName: '服装',
+ categoryName: '农产品',
},
{
id: 'goods_002',
- shopId: 'merchant_a',
- shopName: '商户A',
- name: '男士休闲T恤',
- cover: 'https://picsum.photos/400/400?random=4',
- images: [
- 'https://picsum.photos/800/800?random=4',
- 'https://picsum.photos/800/800?random=5',
- ],
- price: 89,
- originalPrice: 159,
+ shopId: 'merchant_002',
+ shopName: '隆盛糕点',
+ name: '老农田桂圆肉干无核新货8a龙眼肉干500g厚元肉干',
+ cover: '/static/product/2/1.jpg',
+ images: ['/static/product/2/1.jpg', '/static/product/2/2.jpg'],
+ detailImage: '/static/product/2/3.jpg',
+ price: 50,
+ originalPrice: 68,
stock: 200,
- sales: 856,
- description: '纯棉面料,柔软舒适,经典百搭款式。',
+ sales: 890,
+ description: '特级石硖硖龙眼,传统工艺蒸汽烘干,果肉厚实无核,色泽自然。独立包装,干净卫生,可直接食用或用于煲汤、泡水,是日常养生佳品。',
specs: [
- { name: '颜色', values: ['白色', '灰色', '黑色', '蓝色'] },
- { name: '尺码', values: ['M', 'L', 'XL', 'XXL'] },
+ { name: '规格', values: ['250g', '500g', '1000g'] },
],
tags: ['热销'],
categoryId: 'cat_001',
- categoryName: '服装',
+ categoryName: '农产品',
},
{
id: 'goods_003',
- shopId: 'merchant_a',
- shopName: '商户A',
- name: '女士牛仔裤',
- cover: 'https://picsum.photos/400/400?random=6',
- images: [
- 'https://picsum.photos/800/800?random=6',
- 'https://picsum.photos/800/800?random=7',
- ],
- price: 199,
- originalPrice: 399,
+ shopId: 'merchant_003',
+ shopName: '九江双蒸',
+ name: '自然禾方化橘红陈皮无糖植物饮料350ml*9瓶整箱装',
+ cover: '/static/product/3/1.jpg',
+ images: ['/static/product/3/1.jpg'],
+ detailImage: '/static/product/3/2.jpg',
+ price: 50,
+ originalPrice: 75,
stock: 150,
- sales: 678,
- description: '高腰设计,显瘦修身,弹力面料,穿着舒适。',
+ sales: 567,
+ description: '严选化州橘红、新会陈皮等道地原料,无添加糖,慢火熬制。口感甘醇清润,带有天然草本香气,适合日常佐餐或需要润养时饮用。',
specs: [
- { name: '颜色', values: ['浅蓝', '深蓝', '黑色'] },
- { name: '尺码', values: ['25', '26', '27', '28', '29'] },
+ { name: '包装', values: ['9瓶装', '15瓶装'] },
],
- tags: ['推荐'],
- categoryId: 'cat_001',
- categoryName: '服装',
+ tags: ['新品'],
+ categoryId: 'cat_003',
+ categoryName: '美食饮品',
},
-
- // 数码类商品
{
id: 'goods_004',
- shopId: 'merchant_b',
- shopName: '商户B',
- name: '无线蓝牙耳机',
- cover: 'https://picsum.photos/400/400?random=8',
- images: [
- 'https://picsum.photos/800/800?random=8',
- 'https://picsum.photos/800/800?random=9',
- ],
- price: 299,
- originalPrice: 499,
- stock: 80,
- sales: 2345,
- description: '主动降噪,长续航,高音质,支持快充。',
+ shopId: 'merchant_004',
+ shopName: '仙泉酱油',
+ name: '沉香原木摆件老料虫漏原材料天然刮香',
+ cover: '/static/product/4/1.jpg',
+ images: ['/static/product/4/1.jpg'],
+ detailImage: '/static/product/4/2.jpg',
+ price: 152,
+ originalPrice: 299,
+ stock: 30,
+ sales: 123,
+ description: '产自芽庄或海南的虫漏沉香老料,由虫蚁啃噬后树脂自然醇化数十年而成。香气清甜带凉意,既可作雅致摆件,亦可刮取少量用于熏香、品茗,具有收藏价值。',
specs: [
- { name: '颜色', values: ['白色', '黑色'] },
+ { name: '重量', values: ['100g', '200g', '500g'] },
],
- tags: ['新品', '热销'],
- categoryId: 'cat_002',
- categoryName: '数码',
+ tags: ['新品'],
+ categoryId: 'cat_005',
+ categoryName: '文创工艺品',
},
{
id: 'goods_005',
- shopId: 'merchant_b',
- shopName: '商户B',
- name: '智能手表',
- cover: 'https://picsum.photos/400/400?random=10',
- images: [
- 'https://picsum.photos/800/800?random=10',
- 'https://picsum.photos/800/800?random=11',
- ],
- 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,
+ shopId: 'merchant_005',
+ shopName: '沟门前风味',
+ name: '罗非鱼新鲜冷冻食材烧烤红烧净膛烤鱼酒店食堂快',
+ cover: '/static/product/5/1.jpg',
+ images: ['/static/product/5/1.jpg'],
+ detailImage: '/static/product/5/2.jpg',
+ price: 80,
+ originalPrice: 120,
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,
- description: '精选优质坚果,营养丰富,送礼佳品。',
+ description: '精选优质淡水罗非鱼,单片急速冷冻,锁住鲜味。已去鳞、去鳃鳃、去内脏,处理干净,解冻即可烹饪。肉质细嫩少刺,适合香煎、红烧、烧烤,是酒店食堂高效备餐之选。',
specs: [
{ name: '规格', values: ['500g', '1000g'] },
],
- tags: ['推荐'],
- categoryId: 'cat_003',
- categoryName: '食品',
+ tags: ['热销'],
+ categoryId: 'cat_001',
+ 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',
- shopId: 'merchant_b',
- shopName: '商户B',
- name: '北欧风格台灯',
- cover: 'https://picsum.photos/400/400?random=16',
- images: [
- 'https://picsum.photos/800/800?random=16',
- 'https://picsum.photos/800/800?random=17',
- ],
- price: 159,
- originalPrice: 299,
- stock: 90,
- sales: 234,
- description: '简约设计,护眼光源,适合卧室书房。',
+ shopId: 'merchant_008',
+ shopName: '知味观',
+ name: '正宗化州拖罗饼金腿拖罗大饼广式月饼中秋特产',
+ cover: '/static/product/8/1.jpg',
+ images: ['/static/product/8/1.jpg'],
+ detailImage: '/static/product/8/2.jpg',
+ price: 30,
+ originalPrice: 48,
+ stock: 150,
+ sales: 567,
+ description: '化州非遗特产,以金黄酥脆的千层饼皮为特色。内馅选用优质金丝火腿、椰丝、白糖冬瓜等,口感丰富,咸甜交织,是中秋佳节不可或缺的传统美味。',
specs: [
- { name: '颜色', values: ['白色', '木色'] },
+ { name: '规格', values: ['单个装', '礼盒装'] },
],
tags: ['新品'],
- categoryId: 'cat_004',
- categoryName: '家居',
+ categoryId: 'cat_002',
+ categoryName: '非遗老字号',
},
{
id: 'goods_009',
- shopId: 'merchant_b',
- shopName: '商户B',
- name: '四件套床上用品',
- cover: 'https://picsum.photos/400/400?random=18',
- images: [
- 'https://picsum.photos/800/800?random=18',
- 'https://picsum.photos/800/800?random=19',
- ],
- price: 299,
- originalPrice: 599,
- stock: 150,
- sales: 789,
- description: '纯棉面料,柔软亲肤,多种花色可选。',
+ shopId: 'merchant_009',
+ shopName: '老美华',
+ name: '电白绿奇线香纯手工电白绿奇手工香电白绿奇楠老料',
+ cover: '/static/product/9/1.jpg',
+ images: ['/static/product/9/1.jpg'],
+ detailImage: '/static/product/9/2.jpg',
+ price: 45.6,
+ originalPrice: 68,
+ stock: 80,
+ sales: 234,
+ description: '采用茂名电白特产绿奇楠沉香老料,纯手工古法制作。香气清雅醇厚,带有凉甜韵味。燃烧持久,烟形婀婀娜,适用于居家熏香、瑜伽冥想、书房静心。',
specs: [
- { name: '尺寸', values: ['1.5m床', '1.8m床', '2.0m床'] },
- { name: '颜色', values: ['浅灰', '深灰', '米白', '粉色'] },
+ { name: '规格', values: ['10支装', '30支装'] },
+ ],
+ 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: ['热销'],
categoryId: 'cat_004',
- categoryName: '家居',
+ categoryName: '粮油副食',
},
-
- // 美妆类商品
{
- id: 'goods_010',
- shopId: 'merchant_a',
- shopName: '商户A',
- name: '保湿面霜套装',
- cover: 'https://picsum.photos/400/400?random=20',
- images: [
- 'https://picsum.photos/800/800?random=20',
- 'https://picsum.photos/800/800?random=21',
+ id: 'goods_011',
+ shopId: 'merchant_001',
+ shopName: '鑫洋食品',
+ name: '茂名特产籺籺寿桃籺籺菠萝叶籺籺电白高州籺籺',
+ cover: '/static/product/11/1.jpg',
+ images: ['/static/product/11/1.jpg'],
+ detailImage: '/static/product/11/2.jpg',
+ price: 15,
+ originalPrice: 25,
+ stock: 300,
+ sales: 678,
+ description: '茂名传统手工米糕,有寿桃形状的寿桃籺籺、用菠萝叶包裹的艾籺籺等。外皮软糯,内馅咸甜可选(如花生、绿豆、椰丝),是节日、喜庆场合的代表性小吃。',
+ specs: [
+ { name: '口味', values: ['花生馅', '绿豆馅', '椰丝馅'] },
],
- price: 399,
- originalPrice: 699,
- stock: 200,
- sales: 1567,
- description: '深层补水,改善肌肤,温和不刺激。',
- specs: [],
- tags: ['热销', '推荐'],
- categoryId: 'cat_005',
- categoryName: '美妆',
+ tags: ['热销'],
+ categoryId: 'cat_004',
+ 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: '文创工艺品',
+ },
+]
\ No newline at end of file
diff --git a/src/pages/goods/detail.vue b/src/pages/goods/detail.vue
index b66dbd4..1462327 100644
--- a/src/pages/goods/detail.vue
+++ b/src/pages/goods/detail.vue
@@ -140,9 +140,7 @@ function goToCart() {
商品详情
diff --git a/src/static/jz/1.jpg b/src/static/jz/1.jpg
new file mode 100644
index 0000000..c418d03
Binary files /dev/null and b/src/static/jz/1.jpg differ
diff --git a/src/static/jz/2.jpg b/src/static/jz/2.jpg
new file mode 100644
index 0000000..dcb5d87
Binary files /dev/null and b/src/static/jz/2.jpg differ
diff --git a/src/static/jz/3.jpg b/src/static/jz/3.jpg
new file mode 100644
index 0000000..164e796
Binary files /dev/null and b/src/static/jz/3.jpg differ
diff --git a/src/static/jz/4.jpg b/src/static/jz/4.jpg
new file mode 100644
index 0000000..12be08b
Binary files /dev/null and b/src/static/jz/4.jpg differ
diff --git a/src/static/jz/5.jpg b/src/static/jz/5.jpg
new file mode 100644
index 0000000..66220af
Binary files /dev/null and b/src/static/jz/5.jpg differ
diff --git a/src/static/product/1/1.jpg b/src/static/product/1/1.jpg
new file mode 100644
index 0000000..84110b2
Binary files /dev/null and b/src/static/product/1/1.jpg differ
diff --git a/src/static/product/1/2.jpg b/src/static/product/1/2.jpg
new file mode 100644
index 0000000..14886f2
Binary files /dev/null and b/src/static/product/1/2.jpg differ
diff --git a/src/static/product/10/1.jpg b/src/static/product/10/1.jpg
new file mode 100644
index 0000000..23c1b99
Binary files /dev/null and b/src/static/product/10/1.jpg differ
diff --git a/src/static/product/10/2.jpg b/src/static/product/10/2.jpg
new file mode 100644
index 0000000..2d2b21a
Binary files /dev/null and b/src/static/product/10/2.jpg differ
diff --git a/src/static/product/11/1.jpg b/src/static/product/11/1.jpg
new file mode 100644
index 0000000..adfb93e
Binary files /dev/null and b/src/static/product/11/1.jpg differ
diff --git a/src/static/product/11/2.jpg b/src/static/product/11/2.jpg
new file mode 100644
index 0000000..4099490
Binary files /dev/null and b/src/static/product/11/2.jpg differ
diff --git a/src/static/product/12/1.jpg b/src/static/product/12/1.jpg
new file mode 100644
index 0000000..58561f2
Binary files /dev/null and b/src/static/product/12/1.jpg differ
diff --git a/src/static/product/12/2.jpg b/src/static/product/12/2.jpg
new file mode 100644
index 0000000..5a91a1c
Binary files /dev/null and b/src/static/product/12/2.jpg differ
diff --git a/src/static/product/13/1.jpg b/src/static/product/13/1.jpg
new file mode 100644
index 0000000..e67bef5
Binary files /dev/null and b/src/static/product/13/1.jpg differ
diff --git a/src/static/product/13/2.jpg b/src/static/product/13/2.jpg
new file mode 100644
index 0000000..c74dde7
Binary files /dev/null and b/src/static/product/13/2.jpg differ
diff --git a/src/static/product/14/1.jpg b/src/static/product/14/1.jpg
new file mode 100644
index 0000000..9f35d79
Binary files /dev/null and b/src/static/product/14/1.jpg differ
diff --git a/src/static/product/14/2.jpg b/src/static/product/14/2.jpg
new file mode 100644
index 0000000..29bdaa9
Binary files /dev/null and b/src/static/product/14/2.jpg differ
diff --git a/src/static/product/15/1.jpg b/src/static/product/15/1.jpg
new file mode 100644
index 0000000..ecddccc
Binary files /dev/null and b/src/static/product/15/1.jpg differ
diff --git a/src/static/product/15/2.jpg b/src/static/product/15/2.jpg
new file mode 100644
index 0000000..1320092
Binary files /dev/null and b/src/static/product/15/2.jpg differ
diff --git a/src/static/product/16/1.jpg b/src/static/product/16/1.jpg
new file mode 100644
index 0000000..9e56164
Binary files /dev/null and b/src/static/product/16/1.jpg differ
diff --git a/src/static/product/16/2.jpg b/src/static/product/16/2.jpg
new file mode 100644
index 0000000..87c0651
Binary files /dev/null and b/src/static/product/16/2.jpg differ
diff --git a/src/static/product/17/1.jpg b/src/static/product/17/1.jpg
new file mode 100644
index 0000000..12d41f4
Binary files /dev/null and b/src/static/product/17/1.jpg differ
diff --git a/src/static/product/17/2.jpg b/src/static/product/17/2.jpg
new file mode 100644
index 0000000..f700239
Binary files /dev/null and b/src/static/product/17/2.jpg differ
diff --git a/src/static/product/2/1.jpg b/src/static/product/2/1.jpg
new file mode 100644
index 0000000..8ecd513
Binary files /dev/null and b/src/static/product/2/1.jpg differ
diff --git a/src/static/product/2/2.jpg b/src/static/product/2/2.jpg
new file mode 100644
index 0000000..e524dfb
Binary files /dev/null and b/src/static/product/2/2.jpg differ
diff --git a/src/static/product/2/3.jpg b/src/static/product/2/3.jpg
new file mode 100644
index 0000000..e81440a
Binary files /dev/null and b/src/static/product/2/3.jpg differ
diff --git a/src/static/product/3/1.jpg b/src/static/product/3/1.jpg
new file mode 100644
index 0000000..99322f5
Binary files /dev/null and b/src/static/product/3/1.jpg differ
diff --git a/src/static/product/3/2.jpg b/src/static/product/3/2.jpg
new file mode 100644
index 0000000..10d94d6
Binary files /dev/null and b/src/static/product/3/2.jpg differ
diff --git a/src/static/product/4/1.jpg b/src/static/product/4/1.jpg
new file mode 100644
index 0000000..e986973
Binary files /dev/null and b/src/static/product/4/1.jpg differ
diff --git a/src/static/product/4/2.jpg b/src/static/product/4/2.jpg
new file mode 100644
index 0000000..5756678
Binary files /dev/null and b/src/static/product/4/2.jpg differ
diff --git a/src/static/product/5/1.jpg b/src/static/product/5/1.jpg
new file mode 100644
index 0000000..ef99d99
Binary files /dev/null and b/src/static/product/5/1.jpg differ
diff --git a/src/static/product/5/2.jpg b/src/static/product/5/2.jpg
new file mode 100644
index 0000000..6504ae5
Binary files /dev/null and b/src/static/product/5/2.jpg differ
diff --git a/src/static/product/6/1.jpg b/src/static/product/6/1.jpg
new file mode 100644
index 0000000..3d09b74
Binary files /dev/null and b/src/static/product/6/1.jpg differ
diff --git a/src/static/product/6/2.jpg b/src/static/product/6/2.jpg
new file mode 100644
index 0000000..f41671a
Binary files /dev/null and b/src/static/product/6/2.jpg differ
diff --git a/src/static/product/6/3.jpg b/src/static/product/6/3.jpg
new file mode 100644
index 0000000..8a084ab
Binary files /dev/null and b/src/static/product/6/3.jpg differ
diff --git a/src/static/product/7/1.jpg b/src/static/product/7/1.jpg
new file mode 100644
index 0000000..2084af8
Binary files /dev/null and b/src/static/product/7/1.jpg differ
diff --git a/src/static/product/7/2.jpg b/src/static/product/7/2.jpg
new file mode 100644
index 0000000..d82e81e
Binary files /dev/null and b/src/static/product/7/2.jpg differ
diff --git a/src/static/product/8/1.jpg b/src/static/product/8/1.jpg
new file mode 100644
index 0000000..00ae530
Binary files /dev/null and b/src/static/product/8/1.jpg differ
diff --git a/src/static/product/8/2.jpg b/src/static/product/8/2.jpg
new file mode 100644
index 0000000..2b68fea
Binary files /dev/null and b/src/static/product/8/2.jpg differ
diff --git a/src/static/product/9/1.jpg b/src/static/product/9/1.jpg
new file mode 100644
index 0000000..0c37d43
Binary files /dev/null and b/src/static/product/9/1.jpg differ
diff --git a/src/static/product/9/2.jpg b/src/static/product/9/2.jpg
new file mode 100644
index 0000000..8db5e1a
Binary files /dev/null and b/src/static/product/9/2.jpg differ
diff --git a/src/typings/mall.ts b/src/typings/mall.ts
index ae131d0..fe8f45e 100644
--- a/src/typings/mall.ts
+++ b/src/typings/mall.ts
@@ -16,6 +16,7 @@ export interface Goods {
name: string // 商品名称
cover: string // 封面图
images: string[] // 商品图片
+ detailImage:string // 详请图片
price: number // 价格
originalPrice: number // 原价
stock: number // 库存