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)); } /** 跳转到对应页面 */