Ver Fonte

确认订单 采美豆抵扣

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

+ 5 - 3
src/main/resources/static/js/shopping/confirm.js

@@ -420,10 +420,12 @@ var shoppingConfirm = new Vue({
             var _self = this;
             if(_self.balance.isFreight){
                 _self.hanldUserBeans = _self.freightBeansMoney*100;
-                console.log('freightBeansMoney',_self.freightBeansMoney);
                 if(_self.payInfo.freePostFlag == 1){
-                    _self.payInfo.orderShouldPayFee = _self.totalPrice + _self.payInfo.freight - _self.freightBeansMoney;
-                    console.log('最终支付金额',_self.payInfo.orderShouldPayFee)
+                    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;
+                    console.log('最终支付金额---->',_self.payInfo.orderShouldPayFee)
                 }else{
                     _self.payInfo.orderShouldPayFee = _self.totalPrice ;
                 }