默认
This commit is contained in:
parent
6984ea9374
commit
f9fa80665b
@ -21,7 +21,8 @@ export default {
|
||||
// type: 2 商品 1: 其他
|
||||
onLoad(option) {
|
||||
this.type = option.type;
|
||||
this.getWordList();
|
||||
this.getWordList();
|
||||
this.curent = option.curent || 0
|
||||
},
|
||||
// 点击搜索按钮
|
||||
onNavigationBarButtonTap(e) {
|
||||
@ -51,7 +52,8 @@ export default {
|
||||
}
|
||||
let params = {
|
||||
value: value,
|
||||
type: this.type,
|
||||
type: this.type,
|
||||
curent:this.curent
|
||||
}
|
||||
if(this.type == 2) {
|
||||
this.$u.route({
|
||||
|
@ -54,6 +54,8 @@ export default {
|
||||
this.value = option.value
|
||||
this.setViewHeight();
|
||||
this.ShopSearch()
|
||||
this.setNavSearchInput(this.value);
|
||||
|
||||
},
|
||||
onNavigationBarSearchInputConfirmed(value) {
|
||||
this.value = value.text
|
||||
@ -95,7 +97,6 @@ export default {
|
||||
// 排序方式 goods_salenum:销量 evaluation_count:评价 goods_price_asc:价格从低到高 goods_price_desc:价格从高到低
|
||||
async ShopSearch({ load = 'reload' } = {}) {
|
||||
console.log(this.value);
|
||||
this.setNavSearchInput(this.value);
|
||||
const sort = this.setOrderSort();
|
||||
const res = await this.$u.api.ShopSearch({
|
||||
keyword: this.value,
|
||||
|
Loading…
Reference in New Issue
Block a user