Selaa lähdekoodia

确认订单修改bug

zhengjinyi 3 vuotta sitten
vanhempi
commit
e10629d0ef

+ 1 - 1
src/main/resources/static/js/product/detail.js

@@ -214,7 +214,7 @@ var productDetail = new Vue({
                 {
                     productId: _self.productId,
                     recommendType: _self.recommendType,
-                    identity: GLOBAL_USER_IDENTITY
+                    userId: _self.userId
                 },
                 function (response) {
                 if (response.code === 0 && response.data) {

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

@@ -146,8 +146,10 @@ var shoppingConfirm = new Vue({
                                 _self.isBeansShow = true;
                             }else{
                                 _self.freightBeansMoney = 0;
+                                _self.balance.isFreight = false;
                                 _self.isBeansShow = false;
                             }
+                            _self.useUserMoney();
                             _self.changeDeductibleFreight();
                             break;
                         case -1:
@@ -157,8 +159,10 @@ var shoppingConfirm = new Vue({
                                 _self.isBeansShow = true;
                             }else{
                                 _self.freightBeansMoney = 0;
+                                _self.balance.isFreight = false;
                                 _self.isBeansShow = false;
                             }
+                            _self.useUserMoney();
                             _self.changeDeductibleFreight();
                             break;
                     }
@@ -448,11 +452,11 @@ var shoppingConfirm = new Vue({
                         }
                     }
                 }else{
+                    _self.hanldUserBeans = 0;
                     _self.payInfo.orderShouldPayFee = _self.totalPrice ;
-                    _self.hanldUserBeans = 0
                 }
             }else{
-                _self.hanldUserBeans = 0
+                _self.hanldUserBeans = 0;
                 if(_self.balance.flag) {//
                     if(_self.balance.userMoney>=total) { // 全部抵扣
                         _self.payInfo.orderShouldPayFee = 0 ;