specil 8.9

This commit is contained in:
2020-08-09 14:23:59 +08:00
parent 228e34d8fc
commit 9631e9f827
8 changed files with 59 additions and 33 deletions

View File

@@ -13,12 +13,15 @@ export default {
name:"search",
data(){
return{
type: '', // 1 商家达人社区 2 商品
keyword: "",
searchwordlist: [],
}
},
created() {
this.getWordList();
// type: 2 商品 1: 其他
onLoad(option) {
this.type = option.type;
if(option.type == 2) this.getWordList();
},
// 点击搜索按钮
onNavigationBarButtonTap(e) {
@@ -44,13 +47,18 @@ export default {
this.$u.toast('搜索内容不可为空');
return false;
}
let params = {
value: value,
type: this.type,
}
if(this.type == 2) {
Object.assign(params, {
order: 'goods_salenum'
})
}
this.$u.route({
url: "/pageB/search/out",
params: {
value: value,
type: "shop",
order: 'goods_salenum'
}
params: params,
})
}
}