pifa
fanfan 3 months ago
parent ee3343133a
commit 1a9235a23a
  1. 4
      pages/search/index.vue

@ -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}`
})

Loading…
Cancel
Save