From 1959cd3c60bacacfb512484a9297eb932735fbd8 Mon Sep 17 00:00:00 2001 From: chen Date: Sat, 19 Sep 2026 16:07:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(commission):=20=E8=B4=A6=E6=88=B7=E8=B5=84?= =?UTF-8?q?=E4=BA=A7=E5=8D=A1=E7=89=87=E5=B0=86dmepa=E4=BB=B7=E5=80=BC?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=BA=E7=9B=B4=E6=8E=A5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?dmepa=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uniapp/pages/commission/components/account-info.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/uniapp/pages/commission/components/account-info.vue b/uniapp/pages/commission/components/account-info.vue index 5631c86..6370ab6 100644 --- a/uniapp/pages/commission/components/account-info.vue +++ b/uniapp/pages/commission/components/account-info.vue @@ -55,16 +55,16 @@ - + - dmepa价值(元) + dmepa数量 {{ state.showMoney - ? agentInfo?.madow_value || userInfo?.madow_value || '0.00' + ? formatMadow(agentInfo?.madow || userInfo?.madow) : '***' }} @@ -102,6 +102,13 @@ showMoney: false, }); + function formatMadow(val) { + if (val === '' || val === null || val === undefined || val === '--') return '0'; + const num = Number(val); + if (isNaN(num)) return '0'; + return num % 1 === 0 ? String(Math.round(num)) : String(Number(num.toFixed(2))); + } + function formatVoucher(val) { if (val === '' || val === null || val === undefined || val === '--') return '0'; const num = Number(val);