Ver Fonte

确认订单修改bug

zhengjinyi há 4 anos atrás
pai
commit
5b20359a12
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/main/resources/static/js/shopping/confirm.js

+ 2 - 1
src/main/resources/static/js/shopping/confirm.js

@@ -147,6 +147,7 @@ var shoppingConfirm = new Vue({
                             }else{
                                 _self.isBeansShow = false;
                             }
+                            _self.changeDeductibleFreight();
                             break;
                         case -1:
                             if( _self.userBeans >= 3000 ){
@@ -424,7 +425,7 @@ var shoppingConfirm = new Vue({
                     console.log('商品总价-------->',_self.totalPrice);
                     console.log('邮费------------>',_self.payInfo.freight);
                     console.log('采美豆换算金额--->',_self.freightBeansMoney);
-                    _self.payInfo.orderShouldPayFee = (_self.totalPrice*10 + _self.payInfo.freight*10 - _self.freightBeansMoney*10)/10;
+                    _self.payInfo.orderShouldPayFee = ((_self.totalPrice + _self.payInfo.freight)*100 - _self.freightBeansMoney*100)/100;
                     console.log('最终支付金额---->',_self.payInfo.orderShouldPayFee)
                 }else{
                     _self.payInfo.orderShouldPayFee = _self.totalPrice ;