From edb50cb0dc65061d5ce9f8d4ff26fcee12b09eee Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期六, 19 七月 2025 15:07:01 +0800
Subject: [PATCH] 调接口
---
small-program/pages/demand-hall/demand-hall.vue | 40 ++++++++++++++++++++++++++++------------
1 files changed, 28 insertions(+), 12 deletions(-)
diff --git a/small-program/pages/demand-hall/demand-hall.vue b/small-program/pages/demand-hall/demand-hall.vue
index 1467814..52e4b0d 100644
--- a/small-program/pages/demand-hall/demand-hall.vue
+++ b/small-program/pages/demand-hall/demand-hall.vue
@@ -213,6 +213,13 @@
} else {
this.typeViewId = 0
}
+ if (!this.isOnce) {
+ this.commentStatus = ''
+ this.orderList = []
+ this.next = true
+ this.page = 1
+ this.getOrderList()
+ }
},
data() {
return {
@@ -242,7 +249,8 @@
next: true,
page: 1,
- orderList: []
+ orderList: [],
+ isOnce: true
};
},
async onLoad() {
@@ -265,12 +273,15 @@
startJobs(orderId) {
this.$u.api.begin({ orderId })
.then(res => {
- this.status = ''
- this.commentStatus = ''
- this.orderList = []
- this.next = true
- this.page = 1
- this.getOrderList()
+ if (res.code === 200) {
+ this.status = ''
+ this.commentStatus = ''
+ this.orderList = []
+ this.next = true
+ this.page = 1
+ this.getOrderList()
+ }
+
})
},
jumpDesc(item) {
@@ -302,11 +313,14 @@
this.$u.api.cancelOrder({
orderId: this.orderId
}).then(res => {
- this.show = false
- this.orderList = []
- this.next = true
- this.page = 1
- this.getOrderList()
+ if (res.code === 200) {
+ this.show = false
+ this.orderList = []
+ this.next = true
+ this.page = 1
+ this.getOrderList()
+ }
+
})
},
phoneCall(phoneNumber) {
@@ -327,6 +341,8 @@
queryLgt: this.longitude
}
}).then(res => {
+ if (res.code !== 200) return;
+ this.isOnce = false
res.data.records.forEach(item => {
// 璁㈤鍗�
if (item.type === 2) {
--
Gitblit v1.9.3