Commit 2bc4b1e6 by zhanghaozhe

bug

parent 93905627
...@@ -360,7 +360,7 @@ class FinalDepositOrder extends Component { ...@@ -360,7 +360,7 @@ class FinalDepositOrder extends Component {
if (useBalance) { if (useBalance) {
totalPrice -= parseFloat(this.state.user_account) totalPrice -= parseFloat(this.state.user_account)
} }
return totalPrice.toFixed(2) return totalPrice < 0 ? 0 : totalPrice.toFixed(2)
} }
moneyOff = (totalPrice, moneyOffRules = this.state.moneyOffRules) => { moneyOff = (totalPrice, moneyOffRules = this.state.moneyOffRules) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment