修正 【兑换码批次】编辑立减金,加款对话框中,预估充值后剩余余额计算有误

This commit is contained in:
wangsongsole 2022-06-14 13:53:04 +08:00
parent 87a8b699fb
commit 83bde773ed
1 changed files with 4 additions and 1 deletions

View File

@ -120,7 +120,10 @@ export default ({ data, onChangeMoney }) => {
预估充值后剩余余额为
<span className='blue'>
{' '}
{Math.floor(stateData?.used_amount * 100) / 100 +
{Math.floor(
(stateData?.recharge_amount - stateData?.used_amount) * 100
) /
100 +
(stateData?.addNew ? stateData.addNew - 0 : 0)}{' '}
</span>