From c5d1a8fa28cb86a7b5f7a3b818a240fd6ab68dcb Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期六, 19 七月 2025 16:13:55 +0800
Subject: [PATCH] 前端
---
small-program/pages/sorting/sorting.vue | 29 +++++++++++++++++++----------
1 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/small-program/pages/sorting/sorting.vue b/small-program/pages/sorting/sorting.vue
index d01a6ba..99002d5 100644
--- a/small-program/pages/sorting/sorting.vue
+++ b/small-program/pages/sorting/sorting.vue
@@ -201,15 +201,18 @@
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.form.days = res.data.totalDays
- this.form.price = Number(this.form.price) / 100
- if (!this.form.multifileList) {
- this.form.multifileList = []
- }
+
})
} else {
this.form.linkPhone = this.userInfo.telephone
@@ -271,7 +274,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
+ }
+
})
}
},
@@ -300,7 +306,10 @@
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