specil 8.9
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user