修复订单刷新bug
This commit is contained in:
parent
3aecf9afa3
commit
e6bd059d9f
|
@ -127,12 +127,12 @@ export default {
|
||||||
this.pageConfig = getApp().globalData.pageConfig;
|
this.pageConfig = getApp().globalData.pageConfig;
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
if (this.refreshGet && this.getTabIndex == this.tabIndex) {
|
||||||
|
this.switchTab(this.tabIndex);
|
||||||
|
}
|
||||||
if (this.getTabIndex != this.tabIndex) {
|
if (this.getTabIndex != this.tabIndex) {
|
||||||
this.tabIndex = this.getTabIndex;
|
this.tabIndex = this.getTabIndex;
|
||||||
}
|
}
|
||||||
if (this.refreshGet) {
|
|
||||||
this.switchTab(this.tabIndex);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
onHide() {},
|
onHide() {},
|
||||||
|
|
|
@ -115,12 +115,12 @@ export default {
|
||||||
},
|
},
|
||||||
onLoad() {},
|
onLoad() {},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
if (this.refreshOrder && this.orderTabIndex == this.tabIndex) {
|
||||||
|
this.switchTab(this.tabIndex);
|
||||||
|
}
|
||||||
if (this.orderTabIndex != this.tabIndex) {
|
if (this.orderTabIndex != this.tabIndex) {
|
||||||
this.tabIndex = this.orderTabIndex;
|
this.tabIndex = this.orderTabIndex;
|
||||||
}
|
}
|
||||||
if (this.refreshOrder) {
|
|
||||||
this.switchTab(this.tabIndex);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
onHide() {},
|
onHide() {},
|
||||||
|
|
Loading…
Reference in New Issue