zhengjinyi 3 роки тому
батько
коміт
9db4558357
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      src/main/resources/static/js/shopping/confirm.js

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

@@ -760,10 +760,12 @@ var shoppingConfirm = new Vue({
             _self.userToken = globalUserData.token;
             // type:(1购物车提交[对应表cm_cart],2直接购买提交, 3协销下单)
             if(_self.type === 1) {
+                _self.productParam.cartType = 1;
                 _self.cartParam.productIds = _self.postageParam.productIds = _self.productIds = window.localStorage.getItem("shoppingProductIds");
                 // 获取列表数据
                 _self.getCartCreateOrderInfo();
-            }else if(this.type === 2){
+            }else if(_self.type === 2){
+                _self.productParam.cartType = 2;
                 _self.productParam.productId = _self.postageParam.productIds = _self.productIds = getUrlParam("productId");
                 _self.productParam.productCount = getUrlParam("count");
                 if(_self.productParam.productId && _self.productParam.productCount) {