diff --git a/components/balance-list/balance-list.vue b/components/balance-list/balance-list.vue index de701d2..480819c 100644 --- a/components/balance-list/balance-list.vue +++ b/components/balance-list/balance-list.vue @@ -12,7 +12,7 @@ - {{ item.isAdd ? '+' : '-' }}{{ Number(item.money).toFixed(2) }} + {{ item.isAdd ? '+' : '-' }}{{ numberUtil.formatMoneyWithThousand(item.money) }} @@ -39,7 +39,7 @@ 已全额退款 余额 {{ - Number(item.balance).toFixed(2) + numberUtil.formatMoneyWithThousand(item.balance) }} @@ -58,6 +58,10 @@ import { reactive } from 'vue' +import { + numberUtil +} from '@/utils/common.js' + // 定义组件属性 const props = defineProps({ list: { diff --git a/components/shopping/jingdong/shopping-card.vue b/components/shopping/jingdong/shopping-card.vue index 1f8321e..bb8c7c1 100644 --- a/components/shopping/jingdong/shopping-card.vue +++ b/components/shopping/jingdong/shopping-card.vue @@ -1,5 +1,5 @@