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)}{' '}