This commit is contained in:
luyuan 2020-08-11 16:03:12 +08:00
parent 6984ea9374
commit f9fa80665b
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 6 additions and 3 deletions

View File

@ -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({

View File

@ -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,