|
|
@@ -58,7 +58,8 @@ Page({
|
|
|
options: {
|
|
|
id: 0,
|
|
|
status: ''
|
|
|
- }
|
|
|
+ },
|
|
|
+ detail_status: 0
|
|
|
// btn_message: ''
|
|
|
},
|
|
|
/**
|
|
|
@@ -134,13 +135,10 @@ Page({
|
|
|
showCancel: false,
|
|
|
confirmText: '知道了',
|
|
|
success: () => {
|
|
|
- const hwOrderAPI = this.data.hwOrderAPI
|
|
|
- hwOrderAPI.status = 5
|
|
|
this.setData({
|
|
|
- status: 2,
|
|
|
- hwOrderAPI
|
|
|
+ detail_status: 5
|
|
|
})
|
|
|
- putStorageSync(`orderDetail_${this.data.id}`, this.data.id, hwOrderAPI.status)
|
|
|
+ putStorageSync(`orderDetail_${this.data.id}`, this.data.id)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
@@ -375,10 +373,6 @@ Page({
|
|
|
orderId: options.id
|
|
|
}).then(res => {
|
|
|
if (res.errCode === 0) {
|
|
|
- const id = getStorageSync(`orderDetail_${this.data.id}`)
|
|
|
- if (id) {
|
|
|
- res.data.hwOrderAPI.status = 2
|
|
|
- }
|
|
|
this.setData({
|
|
|
...res.data.hwRequirementAPI,
|
|
|
hwOrderAPI: res.data.hwOrderAPI,
|
|
|
@@ -396,6 +390,10 @@ Page({
|
|
|
hwRequirementId: options.id
|
|
|
}).then(res => {
|
|
|
if (res.errCode === 0) {
|
|
|
+ const id = getStorageSync(`orderDetail_${res.data.hwRequirementAPI.id}`)
|
|
|
+ if (id) {
|
|
|
+ res.data.hwRequirementAPI.detail_status = 5
|
|
|
+ }
|
|
|
this.setData({
|
|
|
...res.data.hwRequirementAPI,
|
|
|
displayCancel: res.data.displayCancel || null,
|