Administrator 4 gadi atpakaļ
vecāks
revīzija
fa5606b767

+ 8 - 2
src/main/resources/static/js/supplier-center/shop/release.js

@@ -54,7 +54,7 @@ var releaseContainer = new Vue({
             twoClassifyName:'',
             threeClassifyName:'',
             brandName:'',
-            commodityType:''
+            commodityType:1
         },
         params:{
             param:[],//相关参数
@@ -192,6 +192,12 @@ var releaseContainer = new Vue({
                         _this.releaseParams.commodityTyp = data.commodityType;
                         _this.GetFistClassFn(_this.releaseParams.commodityTyp);
                     }
+                    if(_this.classificationTwoList!=''){
+                        _this.GetTwoClassFn(data.bigTypeID);
+                    }
+                    if (_this.classificationThreeList){
+                        _this.GetThreeClassFn(data.smallTypeID);
+                    }
                     if(data.searchKey != null){
                         _this.setSearchKeyArray(data.searchKey);
                     }
@@ -1076,6 +1082,6 @@ var releaseContainer = new Vue({
                 _this.GetEditReleaseProductInfo(_this.productId);
             }
         }
-         _this.GetFistClassFn(1)
+         _this.GetFistClassFn(_this.releaseParams.commodityType)
     }
 });