|
|
|
@ -95,7 +95,8 @@ |
|
|
|
|
if (uni.getStorageSync('searchList')) { |
|
|
|
|
this.searchList = uni.getStorageSync('searchList') |
|
|
|
|
this.searchList = Array.from(new Set(this.searchList)); |
|
|
|
|
this.searchList=this.searchList.length>0?this.searchList.slice(0,6):[] |
|
|
|
|
// this.searchList=this.searchList.length>0?this.searchList.slice(0,6):[], |
|
|
|
|
this.searchList=this.searchList.length>0?this.searchList:[] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
@ -171,7 +172,6 @@ |
|
|
|
|
this.searchList = Array.from(new Set(this.searchList)); |
|
|
|
|
uni.setStorageSync('searchList', this.searchList) |
|
|
|
|
} |
|
|
|
|
console.log(this.merchantId); |
|
|
|
|
uni.redirectTo({ |
|
|
|
|
url: `/pages/goods/list?search=${this.searchValue}&categoryId=${this.category_id}&merchantId=${this.merchantId}&from=${this.from}` |
|
|
|
|
}) |
|
|
|
|