feat: 添加交易状况组件并优化统计数据展示,支持环比增长率显示

This commit is contained in:
lrl
2025-07-18 15:06:27 +08:00
parent a442eab9ea
commit 27a7e84def
8 changed files with 362 additions and 54 deletions

View File

@@ -120,6 +120,7 @@ const loadOverview = () => {
totalTitle: '昨日数据',
totalValue: orderComparison.value?.reference?.orderPayPrice || 0,
value: orderComparison.value?.orderPayPrice || 0,
showGrowthRate: true,
},
{
icon: SvgCakeIcon,
@@ -127,6 +128,7 @@ const loadOverview = () => {
totalTitle: '总访问量',
totalValue: userComparison.value?.reference?.visitUserCount || 0,
value: userComparison.value?.visitUserCount || 0,
showGrowthRate: true,
},
{
icon: SvgDownloadIcon,
@@ -134,6 +136,7 @@ const loadOverview = () => {
totalTitle: '总订单量',
totalValue: orderComparison.value?.orderPayCount || 0,
value: orderComparison.value?.reference?.orderPayCount || 0,
// 不显示环比增长率
},
{
icon: SvgBellIcon,
@@ -141,6 +144,7 @@ const loadOverview = () => {
totalTitle: '总会员注册量',
totalValue: userComparison.value?.registerUserCount || 0,
value: userComparison.value?.reference?.registerUserCount || 0,
showGrowthRate: true,
},
];
};