fix(mall): 修复首页账户充值金额单位显示错误

- 首页运营数据的账户充值金额从分转换为元后展示
- 同步修复 Vue3 与 Vben 的 antd、ele、antdv-next 三端
pull/882/MERGE
YunaiV 2026-06-06 23:40:11 +08:00
parent ff3c7884cc
commit 0e46f09779
1 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ import * as ProductSpuApi from '@/api/mall/product/spu'
import * as TradeStatisticsApi from '@/api/mall/statistics/trade'
import * as PayStatisticsApi from '@/api/mall/statistics/pay'
import { CardTitle } from '@/components/Card'
import { fenToYuan } from '@/utils'
/** 运营数据卡片 */
defineOptions({ name: 'OperationDataCard' })
@ -78,7 +79,7 @@ const getProductData = async () => {
/** 查询钱包充值数据 */
const getWalletRechargeData = async () => {
const paySummary = await PayStatisticsApi.getWalletRechargePrice()
data.rechargePrice.value = paySummary.rechargePrice
data.rechargePrice.value = Number(fenToYuan(paySummary.rechargePrice || 0))
}
/**