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