From 0b19ef8de03de18815d759a965481e461ed5db37 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 22 八月 2025 20:58:07 +0800
Subject: [PATCH] 优化
---
small-program/pages/sorting/sorting.vue | 32 +++++++++++++++++++++-----------
1 files changed, 21 insertions(+), 11 deletions(-)
diff --git a/small-program/pages/sorting/sorting.vue b/small-program/pages/sorting/sorting.vue
index d01a6ba..6e86272 100644
--- a/small-program/pages/sorting/sorting.vue
+++ b/small-program/pages/sorting/sorting.vue
@@ -139,6 +139,7 @@
:show="show"
color="#00BC12"
mode="range"
+ :allowSameDay="true"
@close="show = false"
@confirm="confirmDate" />
@@ -201,15 +202,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
@@ -254,7 +258,7 @@
uni.showToast({ title: '缂栬緫鎴愬姛', icon: 'success', mask: true, duration: 2000 })
setTimeout(() => {
uni.navigateBack({ delta: 1 });
- uni.$emit('refresh')
+ // uni.$emit('refresh')
}, 1500)
}
})
@@ -271,7 +275,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 +307,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