From dc6a04b0e99830c7790c8e14ced09e0991d99e92 Mon Sep 17 00:00:00 2001
From: wangsongsole
Date: Thu, 16 Jun 2022 14:59:18 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E3=80=90=E5=85=91?=
=?UTF-8?q?=E6=8D=A2=E7=A0=81=E7=AE=A1=E7=90=86=E3=80=91=E5=8A=A0=E6=AC=BE?=
=?UTF-8?q?=E5=AF=B9=E8=AF=9D=E6=A1=86=E4=B8=AD=EF=BC=8C=E9=A2=84=E4=BC=B0?=
=?UTF-8?q?=E5=BD=93=E5=89=8D=E5=89=A9=E4=BD=99=E4=BD=99=E9=A2=9D=E4=B8=BA?=
=?UTF-8?q?=E5=B0=8F=E6=95=B0=EF=BC=8C=E5=8A=A0=E6=AC=BE=E9=87=91=E9=A2=9D?=
=?UTF-8?q?=E4=B8=BA=E5=B0=8F=E6=95=B0=E6=97=B6=EF=BC=8C=E9=A2=84=E4=BC=B0?=
=?UTF-8?q?=E5=85=85=E5=80=BC=E5=90=8E=E5=89=A9=E4=BD=99=E5=89=A9=E4=BD=99?=
=?UTF-8?q?=E5=89=8D=E7=AB=AF=E4=BC=9A=E8=AE=A1=E7=AE=97=E7=9A=84=E7=B2=BE?=
=?UTF-8?q?=E5=BA=A6=E6=9C=89=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/knockGold/Dialog.jsx | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/components/knockGold/Dialog.jsx b/src/components/knockGold/Dialog.jsx
index 9a61ac38..67de1fe9 100644
--- a/src/components/knockGold/Dialog.jsx
+++ b/src/components/knockGold/Dialog.jsx
@@ -58,7 +58,9 @@ export default ({ data, onChangeMoney }) => {
预估当前剩余余额为
{' '}
- {stateData?.recharge_amount - stateData?.used_amount}{' '}
+ {(stateData?.recharge_amount - stateData?.used_amount).toFixed(
+ 2
+ )}{' '}
元
@@ -122,11 +124,11 @@ export default ({ data, onChangeMoney }) => {
预估充值后剩余余额为
{' '}
- {Math.floor(
- (stateData?.recharge_amount - stateData?.used_amount) * 100
- ) /
- 100 +
- (stateData?.addNew ? stateData.addNew - 0 : 0)}{' '}
+ {(
+ ((stateData?.recharge_amount - stateData?.used_amount) * 100) /
+ 100 +
+ (stateData?.addNew ? stateData.addNew - 0 : 0)
+ ).toFixed(2)}{' '}
元