解决订单发现的问题

master
lemon橪 2022-05-18 15:30:17 +08:00
parent 75365c428d
commit ebf0d585fc
1 changed files with 6 additions and 4 deletions

View File

@ -326,10 +326,10 @@ export default {
// this.loadData(this.status); // this.loadData(this.status);
}, },
onShow() { onShow() {
if (this.tabCurrentIndex) { if (!this.tabCurrentIndex) {
this.initData(this.tabCurrentIndex);
} else {
this.initData(0); this.initData(0);
} else {
} }
// this.loadData(this.status); // this.loadData(this.status);
}, },
@ -341,6 +341,7 @@ export default {
*/ */
let status = Number(options.status); let status = Number(options.status);
this.status = status; this.status = status;
this.tabCurrentIndex = status; this.tabCurrentIndex = status;
// if (status == 0) { // if (status == 0) {
// this.loadData(status); // this.loadData(status);
@ -434,6 +435,7 @@ export default {
*/ */
loadData(index) { loadData(index) {
this.params.pageNumber = this.navList[index].pageNumber; this.params.pageNumber = this.navList[index].pageNumber;
// this.params.tag = this.orderStatus[index].orderStatus;
getOrderList(this.params).then((res) => { getOrderList(this.params).then((res) => {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
if (!res.data.success) { if (!res.data.success) {