|  |  |  | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | this.form.linkName = this.userInfo.name | 
|---|
|  |  |  | this.form.days = option.days | 
|---|
|  |  |  | this.form.startDate = option.startDate | 
|---|
|  |  |  | this.form.endDate = option.endDate | 
|---|
|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | uni.navigateBack({ delta: 1 }); | 
|---|
|  |  |  | uni.$emit('refresh') | 
|---|
|  |  |  | // uni.$emit('refresh') | 
|---|
|  |  |  | }, 1500) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | type: this.form.type, | 
|---|
|  |  |  | workType: this.form.workType | 
|---|
|  |  |  | }).then(res => { | 
|---|
|  |  |  | this.modify = true | 
|---|
|  |  |  | this.form.estimatedAccount = res.data | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | this.modify = true | 
|---|
|  |  |  | this.form.estimatedAccount = res.data | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$u.api.getCategoryList({ | 
|---|
|  |  |  | type: 0 | 
|---|
|  |  |  | }).then(res => { | 
|---|
|  |  |  | this.cateList = [res.data] | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | this.cateList = [res.data] | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | uploadImg() { | 
|---|