优化代码

This commit is contained in:
java110 2021-09-27 17:33:22 +08:00
parent 1589991af5
commit f2d526be4e

View File

@ -86,6 +86,7 @@
},
_computedAmount: function(){
let amount = vc.component.prestoreAccount2Info.receivedAmount - vc.component.prestoreAccount2Info.totalAmount;
amount = amount.toFixed(2);
vc.component.prestoreAccount2Info.amount = amount < 0 ? 0 : amount;
},
clearPrestoreAccount2Info: function () {