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/packaging-worker/packaging-worker.vue | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/small-program/pages/packaging-worker/packaging-worker.vue b/small-program/pages/packaging-worker/packaging-worker.vue
index 3e044c9..deb0d78 100644
--- a/small-program/pages/packaging-worker/packaging-worker.vue
+++ b/small-program/pages/packaging-worker/packaging-worker.vue
@@ -211,16 +211,19 @@
this.$u.api.getDetail({
orderId: option.id
}).then(res => {
- this.info = res.data
- for (const key in this.form) {
- this.form[key] = res.data[key]
+ if (res.code === 200) {
+ this.info = res.data
+ for (const key in this.form) {
+ this.form[key] = res.data[key]
+ }
+ this.form.days = res.data.totalDays
+ this.form.price = Number(this.form.price) / 100
+ if (!this.form.multifileList) {
+ this.form.multifileList = []
+ }
+ // this.clickType()
}
- this.form.days = res.data.totalDays
- this.form.price = Number(this.form.price) / 100
- if (!this.form.multifileList) {
- this.form.multifileList = []
- }
- // this.clickType()
+
})
} else {
this.form.linkPhone = this.userInfo.telephone
@@ -283,7 +286,10 @@
type: this.form.type,
workType: this.form.workType
}).then(res => {
- this.form.estimatedAccount = res.data
+ if (res.code === 200) {
+ this.form.estimatedAccount = res.data
+ }
+
})
}
},
@@ -320,7 +326,9 @@
this.$u.api.getCategoryList({
type: 0
}).then(res => {
- this.cateList = [res.data]
+ if (res.code === 200) {
+ this.cateList = [res.data]
+ }
})
},
uploadImg() {
--
Gitblit v1.9.3