From f8fb3d881d08d9c6dd0c6556f29c502374347f74 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 6 Jun 2026 23:40:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(mall):=20=E4=BF=AE=E5=A4=8D=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E8=B4=A6=E6=88=B7=E5=85=85=E5=80=BC=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 首页运营数据的账户充值金额从分转换为元后展示 - 同步修复 Vue3 与 Vben 的 antd、ele、antdv-next 三端 --- .../src/views/mall/home/modules/operation-data-card.vue | 3 ++- .../src/views/mall/home/modules/operation-data-card.vue | 3 ++- .../src/views/mall/home/modules/operation-data-card.vue | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/views/mall/home/modules/operation-data-card.vue b/apps/web-antd/src/views/mall/home/modules/operation-data-card.vue index a0f46c2aa..5a93497d2 100644 --- a/apps/web-antd/src/views/mall/home/modules/operation-data-card.vue +++ b/apps/web-antd/src/views/mall/home/modules/operation-data-card.vue @@ -3,6 +3,7 @@ import { onActivated, onMounted, reactive } from 'vue'; import { useRouter } from 'vue-router'; import { CountTo } from '@vben/common-ui'; +import { fenToYuan } from '@vben/utils'; import { Card } from 'ant-design-vue'; @@ -78,7 +79,7 @@ async function loadProductData() { /** 查询钱包充值数据 */ async function loadWalletRechargeData() { const paySummary = await getWalletRechargePrice(); - data.rechargePrice.value = paySummary.rechargePrice; + data.rechargePrice.value = Number(fenToYuan(paySummary.rechargePrice || 0)); } /** 跳转到对应页面 */ diff --git a/apps/web-antdv-next/src/views/mall/home/modules/operation-data-card.vue b/apps/web-antdv-next/src/views/mall/home/modules/operation-data-card.vue index 6495a33d2..545b01d02 100644 --- a/apps/web-antdv-next/src/views/mall/home/modules/operation-data-card.vue +++ b/apps/web-antdv-next/src/views/mall/home/modules/operation-data-card.vue @@ -3,6 +3,7 @@ import { onActivated, onMounted, reactive } from 'vue'; import { useRouter } from 'vue-router'; import { CountTo } from '@vben/common-ui'; +import { fenToYuan } from '@vben/utils'; import { Card } from 'antdv-next'; @@ -78,7 +79,7 @@ async function loadProductData() { /** 查询钱包充值数据 */ async function loadWalletRechargeData() { const paySummary = await getWalletRechargePrice(); - data.rechargePrice.value = paySummary.rechargePrice; + data.rechargePrice.value = Number(fenToYuan(paySummary.rechargePrice || 0)); } /** 跳转到对应页面 */ diff --git a/apps/web-ele/src/views/mall/home/modules/operation-data-card.vue b/apps/web-ele/src/views/mall/home/modules/operation-data-card.vue index 4e98089db..a232e9846 100644 --- a/apps/web-ele/src/views/mall/home/modules/operation-data-card.vue +++ b/apps/web-ele/src/views/mall/home/modules/operation-data-card.vue @@ -3,6 +3,7 @@ import { onActivated, onMounted, reactive } from 'vue'; import { useRouter } from 'vue-router'; import { CountTo } from '@vben/common-ui'; +import { fenToYuan } from '@vben/utils'; import { ElCard } from 'element-plus'; @@ -78,7 +79,7 @@ async function loadProductData() { /** 查询钱包充值数据 */ async function loadWalletRechargeData() { const paySummary = await getWalletRechargePrice(); - data.rechargePrice.value = paySummary.rechargePrice; + data.rechargePrice.value = Number(fenToYuan(paySummary.rechargePrice || 0)); } /** 跳转到对应页面 */