diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue index 88cae7e..0683258 100644 --- a/pages/order/myOrder.vue +++ b/pages/order/myOrder.vue @@ -326,10 +326,10 @@ export default { // this.loadData(this.status); }, onShow() { - if (this.tabCurrentIndex) { - this.initData(this.tabCurrentIndex); + if (!this.tabCurrentIndex) { + this.initData(0); } else { - this.initData(0); + } // this.loadData(this.status); }, @@ -340,7 +340,8 @@ export default { * 替换onLoad下代码即可 */ let status = Number(options.status); - this.status = status; + this.status = status; + this.tabCurrentIndex = status; // if (status == 0) { // this.loadData(status); @@ -434,6 +435,7 @@ export default { */ loadData(index) { this.params.pageNumber = this.navList[index].pageNumber; + // this.params.tag = this.orderStatus[index].orderStatus; getOrderList(this.params).then((res) => { uni.stopPullDownRefresh(); if (!res.data.success) {