mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:49:19 +08:00
feat: 优化商品卡
This commit is contained in:
@@ -118,35 +118,76 @@ export const COST_STRUCTURE_PIE_COLORS = [
|
||||
'#14b8a6',
|
||||
] as const;
|
||||
|
||||
export const FUNNEL_STEPS = [
|
||||
{ name: 'GMV', value: 286.4 },
|
||||
{ name: '实收金额', value: 271.8 },
|
||||
{ name: '扣除成本', value: 220.4 },
|
||||
{ name: '扣除广告', value: 170.0 },
|
||||
{ name: '扣除佣金', value: 141.4 },
|
||||
{ name: '扣除物流', value: 107.8 },
|
||||
{ name: '毛利润', value: 68.2 },
|
||||
{ name: '净利润', value: 38.9 },
|
||||
] as const;
|
||||
/** 商品销量 TOP5(演示):件数、GMV、环比 */
|
||||
export type ProductSalesTopItem = {
|
||||
rank: number;
|
||||
name: string;
|
||||
sales: number;
|
||||
gmvWan: number;
|
||||
momPct: number;
|
||||
barColor: string;
|
||||
};
|
||||
|
||||
/** 漏斗图各层颜色(与 FUNNEL_STEPS 顺序一致) */
|
||||
export const FUNNEL_STAGE_COLORS = [
|
||||
'#ef4444',
|
||||
'#f97316',
|
||||
'#f59e0b',
|
||||
'#eab308',
|
||||
'#84cc16',
|
||||
'#22c55e',
|
||||
'#14b8a6',
|
||||
'#10b981',
|
||||
] as const;
|
||||
export const PRODUCT_SALES_TOP5: ProductSalesTopItem[] = [
|
||||
{
|
||||
rank: 1,
|
||||
name: '316不锈钢保温杯-女款 500ml',
|
||||
sales: 42_860,
|
||||
gmvWan: 42.6,
|
||||
momPct: 18.2,
|
||||
barColor: '#f59e0b',
|
||||
},
|
||||
{
|
||||
rank: 2,
|
||||
name: '大容量运动水壶 1.2L 吸管款',
|
||||
sales: 31_240,
|
||||
gmvWan: 28.9,
|
||||
momPct: 9.6,
|
||||
barColor: '#6366f1',
|
||||
},
|
||||
{
|
||||
rank: 3,
|
||||
name: '玻璃内胆保温壶 2.5L 家用',
|
||||
sales: 24_180,
|
||||
gmvWan: 36.2,
|
||||
momPct: -2.1,
|
||||
barColor: '#10b981',
|
||||
},
|
||||
{
|
||||
rank: 4,
|
||||
name: '儿童保温杯卡通款 350ml',
|
||||
sales: 19_650,
|
||||
gmvWan: 15.4,
|
||||
momPct: 6.8,
|
||||
barColor: '#a855f7',
|
||||
},
|
||||
{
|
||||
rank: 5,
|
||||
name: '情侣对杯礼盒 限定包装',
|
||||
sales: 15_920,
|
||||
gmvWan: 22.7,
|
||||
momPct: 14.0,
|
||||
barColor: '#ec4899',
|
||||
},
|
||||
];
|
||||
|
||||
/** 近12月:柱=GMV(万),折线=净利率(%)— 与原型 HTML 一致 */
|
||||
export const MONTHLY_GMV_NET_RATE = {
|
||||
months: ['4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月', '1月', '2月', '3月'],
|
||||
gmvWan: [168, 194, 282, 156, 172, 188, 201, 486, 218, 183, 248, 286],
|
||||
netRatePct: [12.3, 13.1, 11.8, 12.8, 13.4, 14.1, 13.9, 10.2, 13.8, 14.2, 14.8, 14.3],
|
||||
} as const;
|
||||
/** 平台销量 TOP5(演示):万件 + 占比 */
|
||||
export type PlatformSalesTopItem = {
|
||||
rank: number;
|
||||
label: string;
|
||||
short: string;
|
||||
salesWan: number;
|
||||
sharePct: number;
|
||||
color: string;
|
||||
};
|
||||
|
||||
export const PLATFORM_SALES_TOP5: PlatformSalesTopItem[] = [
|
||||
{ rank: 1, label: '拼多多', short: 'PDD', salesWan: 58.2, sharePct: 38.6, color: '#e02e24' },
|
||||
{ rank: 2, label: '抖音电商', short: '抖店', salesWan: 36.4, sharePct: 24.1, color: '#fe2c55' },
|
||||
{ rank: 3, label: '淘宝', short: 'TB', salesWan: 28.7, sharePct: 19.0, color: '#ff5000' },
|
||||
{ rank: 4, label: '京东', short: 'JD', salesWan: 21.3, sharePct: 14.1, color: '#e3393c' },
|
||||
{ rank: 5, label: '快手小店', short: 'KS', salesWan: 6.2, sharePct: 4.1, color: '#ff6600' },
|
||||
];
|
||||
|
||||
export const STORES = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user