From 2cccbc949fd663981436b0e3da634491c24f2c19 Mon Sep 17 00:00:00 2001 From: lrl <252048765@qq.com> Date: Thu, 17 Jul 2025 09:55:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=95=B0=E6=8D=AE=E8=B5=8B=E5=80=BC=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新商品统计组件中的数据赋值方式,确保正确映射到统计卡片 - 修复了浏览量、访客数、支付件数等多个统计项的数据来源,提升数据准确性 --- .../product/components/product-summary.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/web-ele/src/views/mall/statistics/product/components/product-summary.vue b/apps/web-ele/src/views/mall/statistics/product/components/product-summary.vue index 3b8c16cdf..bc1562551 100644 --- a/apps/web-ele/src/views/mall/statistics/product/components/product-summary.vue +++ b/apps/web-ele/src/views/mall/statistics/product/components/product-summary.vue @@ -223,7 +223,7 @@ const loadOverview = () => { title: '商品浏览量', totalTitle: '昨日数据', totalValue: trendSummary.value?.reference?.browseCount, - value: trendSummary?.value?.browseUserCount || 0, + value: trendSummary.value?.value?.browseCount || 0, tooltip: '在选定条件下,所有商品详情页被访问的次数,一个人在统计时间内访问多次记为多次', }, @@ -232,7 +232,7 @@ const loadOverview = () => { title: '商品访客数', totalTitle: '昨日数据', totalValue: trendSummary.value?.reference?.browseUserCount || 0, - value: trendSummary?.value?.browseUserCount || 0, + value: trendSummary.value?.value?.browseUserCount || 0, tooltip: '在选定条件下,访问任何商品详情页的人数,一个人在统计时间范围内访问多次只记为一个', }, @@ -241,28 +241,28 @@ const loadOverview = () => { title: '支付件数', totalTitle: '昨日数据', totalValue: trendSummary.value?.reference?.orderPayCount || 0, - value: trendSummary?.value?.orderPayCount || 0, + value: trendSummary.value?.value?.orderPayCount || 0, }, { icon: SvgBellIcon, title: '支付金额', totalTitle: '昨日数据', totalValue: trendSummary.value?.reference?.afterSaleCount || 0, - value: trendSummary?.value?.orderPayPrice || 0, + value: trendSummary.value?.value?.orderPayPrice || 0, }, { icon: SvgBellIcon, title: '退款件数', totalTitle: '昨日数据', totalValue: trendSummary.value?.reference?.afterSaleCount || 0, - value: trendSummary?.value?.afterSaleCount || 0, + value: trendSummary.value?.value?.afterSaleCount || 0, }, { icon: SvgBellIcon, title: '退款金额', totalTitle: '昨日数据', totalValue: trendSummary.value?.reference?.afterSaleRefundPrice || 0, - value: trendSummary?.value?.afterSaleRefundPrice || 0, + value: trendSummary.value?.value?.afterSaleRefundPrice || 0, }, ]; };