fix(mall): 修复首页账户充值金额单位显示错误
- 首页运营数据的账户充值金额从分转换为元后展示 - 同步修复 Vue3 与 Vben 的 antd、ele、antdv-next 三端pull/882/MERGE
parent
ff3c7884cc
commit
0e46f09779
|
|
@ -26,6 +26,7 @@ import * as ProductSpuApi from '@/api/mall/product/spu'
|
||||||
import * as TradeStatisticsApi from '@/api/mall/statistics/trade'
|
import * as TradeStatisticsApi from '@/api/mall/statistics/trade'
|
||||||
import * as PayStatisticsApi from '@/api/mall/statistics/pay'
|
import * as PayStatisticsApi from '@/api/mall/statistics/pay'
|
||||||
import { CardTitle } from '@/components/Card'
|
import { CardTitle } from '@/components/Card'
|
||||||
|
import { fenToYuan } from '@/utils'
|
||||||
|
|
||||||
/** 运营数据卡片 */
|
/** 运营数据卡片 */
|
||||||
defineOptions({ name: 'OperationDataCard' })
|
defineOptions({ name: 'OperationDataCard' })
|
||||||
|
|
@ -78,7 +79,7 @@ const getProductData = async () => {
|
||||||
/** 查询钱包充值数据 */
|
/** 查询钱包充值数据 */
|
||||||
const getWalletRechargeData = async () => {
|
const getWalletRechargeData = async () => {
|
||||||
const paySummary = await PayStatisticsApi.getWalletRechargePrice()
|
const paySummary = await PayStatisticsApi.getWalletRechargePrice()
|
||||||
data.rechargePrice.value = paySummary.rechargePrice
|
data.rechargePrice.value = Number(fenToYuan(paySummary.rechargePrice || 0))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue