解决订单发现的问题

This commit is contained in:
lemon橪
2022-05-18 15:30:17 +08:00
parent 75365c428d
commit ebf0d585fc

View File

@@ -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) {