更新
This commit is contained in:
parent
69f8e68c73
commit
bd1a57cf9c
@ -541,7 +541,7 @@
|
|||||||
this.initData();
|
this.initData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initData(re, stop){
|
initData(re=false, stop=false){
|
||||||
if(!stop) this.getStoreCategory();
|
if(!stop) this.getStoreCategory();
|
||||||
if (this.tabsCurr==2&&this.subCurr==0) this.storeMerchantList(re, stop);
|
if (this.tabsCurr==2&&this.subCurr==0) this.storeMerchantList(re, stop);
|
||||||
else this.getProductslist(re, stop);
|
else this.getProductslist(re, stop);
|
||||||
@ -578,8 +578,7 @@
|
|||||||
uni.$once('searchValue', (e) => {
|
uni.$once('searchValue', (e) => {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.where.keyword = e;
|
this.where.keyword = e;
|
||||||
if(this.tabsCurr==2&&this.subCurr==0) this.storeMerchantList(true);
|
this.initData(true);
|
||||||
this.getProductslist(true);
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -638,10 +637,11 @@
|
|||||||
this.getProductslist(true);
|
this.getProductslist(true);
|
||||||
},
|
},
|
||||||
getStoreCategory() {
|
getStoreCategory() {
|
||||||
|
this.store_category = [];
|
||||||
if (this.tabsCurr == 1) getStoreCategory(259).then(res => {
|
if (this.tabsCurr == 1) getStoreCategory(259).then(res => {
|
||||||
this.initStoreCate(res);
|
this.initStoreCate(res);
|
||||||
})
|
})
|
||||||
if (this.tabsCurr == 2 && this.subCurr==0) merClassifly().then(res => {
|
else if (this.tabsCurr == 2 && this.subCurr==0) merClassifly().then(res => {
|
||||||
this.store_category = [{
|
this.store_category = [{
|
||||||
category_name: '全部',
|
category_name: '全部',
|
||||||
merchant_category_id: '',
|
merchant_category_id: '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user