From b5c3c34b8194008711cc957045d0809888cc1ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 12 Nov 2025 16:09:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(BasicComponents):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=B5=84=E9=87=91=E6=A0=BC=E5=BC=8F=E5=8C=96=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=AD=97=E7=AC=A6=E4=B8=B2=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将formatFundsRmb函数修改为接受字符串输入并转换为数值,确保金额计算正确 --- frontend/packages/BasicComponents/InfoCardCollection/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/packages/BasicComponents/InfoCardCollection/index.vue b/frontend/packages/BasicComponents/InfoCardCollection/index.vue index d3f3fe9..0b3ba48 100644 --- a/frontend/packages/BasicComponents/InfoCardCollection/index.vue +++ b/frontend/packages/BasicComponents/InfoCardCollection/index.vue @@ -153,7 +153,8 @@ export default { } return (index % 3) + 1 }, - formatFundsRmb (amount) { + formatFundsRmb (str) { + const amount = Number(str) / 10000; if (amount === undefined || amount === null) return '未知' if (amount < 10) return '0w-10w' else if (amount < 20) return '10w-20w'