|
@@ -175,6 +175,7 @@ var productList = new Vue({
|
|
|
return el;
|
|
|
})
|
|
|
_self.brandLists = _self.defaultBrandLists.slice(0,6)
|
|
|
+ console.log('defaultBrandLists',_self.defaultBrandLists)
|
|
|
}else {
|
|
|
console.log('查询品牌列表异常')
|
|
|
}
|
|
@@ -340,16 +341,20 @@ var productList = new Vue({
|
|
|
// 获取对应品牌列表
|
|
|
this.getCommoditySearchQUeryBrand();
|
|
|
// 设置选中的品牌
|
|
|
- if(this.hrefBrandId){
|
|
|
- const brandIdsArray = this.hrefBrandId.split(',')
|
|
|
- this.params.brandIds = this.hrefBrandId +',';
|
|
|
- this.isChoiceBrandText = true
|
|
|
- const names = brandIdsArray.map(function (item) {
|
|
|
- const find = _self.defaultBrandLists.find(el => el.brandId === item*1)
|
|
|
- return find && find.name
|
|
|
- })
|
|
|
- this.choiceBrandText = names.join(',').slice(0,15)
|
|
|
- }
|
|
|
+ setTimeout(()=>{
|
|
|
+ if(this.hrefBrandId){
|
|
|
+ const brandIdsArray = this.hrefBrandId.split(',')
|
|
|
+ this.params.brandIds = this.hrefBrandId +',';
|
|
|
+ this.isChoiceBrandText = true
|
|
|
+ const names = brandIdsArray.map(function (item) {
|
|
|
+ const find = _self.defaultBrandLists.find(el => el.id === item*1)
|
|
|
+ return find && find.name
|
|
|
+ })
|
|
|
+ this.choiceBrandText = names.join(',').slice(0,15)
|
|
|
+ }
|
|
|
+ console.log('aaaaa',_self.defaultBrandLists)
|
|
|
+ },500)
|
|
|
+
|
|
|
},
|
|
|
mounted: function () {
|
|
|
var _self = this;
|