浏览代码

联合丽格V1.0.2

zhengjinyi 1 年之前
父节点
当前提交
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;