소스 검색

联合丽格V1.0.2

zhengjinyi 2 년 전
부모
커밋
0ba41c260a
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 5
      src/main/resources/static/js/product/list.js

+ 4 - 5
src/main/resources/static/js/product/list.js

@@ -341,10 +341,6 @@ var productList = new Vue({
             this.userId = JSON.parse(userInfo).userId;
             this.shopID = JSON.parse(userInfo).shopId;
         }
-        // 获取列表数据
-        this.getListByKeyword();
-        // 获取对应品牌列表
-        this.getCommoditySearchQUeryBrand();
         // 设置选中的品牌
         setTimeout(()=>{
             if(this.hrefBrandId){
@@ -358,8 +354,11 @@ var productList = new Vue({
                 this.choiceBrandText = names.join(',').slice(0,15)
             }
             console.log('aaaaa',_self.defaultBrandLists)
+            // 获取列表数据
+            this.getListByKeyword();
+            // 获取对应品牌列表
+            this.getCommoditySearchQUeryBrand();
         },500)
-
     },
     mounted: function () {
         var _self = this;