MrShi
2025-08-21 0b33a3dcc3a7592c476d992e1b79a3bc837afb25
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
@@ -254,7 +257,7 @@
                        uni.showToast({ title: '编辑成功', icon: 'success', mask: true, duration: 2000 })
                        setTimeout(() => {
                           uni.navigateBack({ delta: 1 });
                           uni.$emit('refresh')
                           // uni.$emit('refresh')
                        }, 1500)
                     }
                  })
@@ -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() {