店铺搜索

This commit is contained in:
2020-08-15 19:04:18 +08:00
parent 94dc78555a
commit 33e8942180
4 changed files with 20 additions and 5 deletions

View File

@@ -15,11 +15,16 @@ export default {
return{
type: '', // 1 商家达人社区 2 商品
keyword: "",
searchwordlist: [],
searchwordlist: [],
sid:0
}
},
// type: 1 商品 2: 其他
onLoad(option) {
console.log(option.id)
if(option.id != undefined || option.id){
this.sid = option.id
}
this.type = option.type;
this.curent = option.curent || 0
this.getWordList();
@@ -75,6 +80,10 @@ export default {
params: params,
})
}else{
if(this.sid !=0 ){
params.sid = this.sid
console.log(this.sid)
}
this.$u.route({
url: "/pageB/search/searchGoods",
params: params,