1
This commit is contained in:
parent
cd8f2588e6
commit
4619e3474d
@ -109,7 +109,8 @@
|
|||||||
'': '全部',
|
'': '全部',
|
||||||
2: '进行中',
|
2: '进行中',
|
||||||
3: '已完成',
|
3: '已完成',
|
||||||
1: '待审核'
|
1: '待审核',
|
||||||
|
98:'已撤回'
|
||||||
};
|
};
|
||||||
return statusMap[status] || '未知状态';
|
return statusMap[status] || '未知状态';
|
||||||
},
|
},
|
||||||
@ -119,7 +120,8 @@
|
|||||||
const typeMap = {
|
const typeMap = {
|
||||||
1: 'warning',
|
1: 'warning',
|
||||||
2: 'warning',
|
2: 'warning',
|
||||||
3: 'success'
|
3: 'success',
|
||||||
|
98:'error'
|
||||||
};
|
};
|
||||||
return typeMap[status] || 'info';
|
return typeMap[status] || 'info';
|
||||||
},
|
},
|
||||||
|
|||||||
@ -193,7 +193,7 @@
|
|||||||
this.isEditing = true;
|
this.isEditing = true;
|
||||||
} else {
|
} else {
|
||||||
// 保存修改
|
// 保存修改
|
||||||
this.isLoading = true;
|
this.isLoading = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let images = [...(this.detailObj.images || [])];
|
let images = [...(this.detailObj.images || [])];
|
||||||
@ -223,6 +223,9 @@
|
|||||||
title: '修改成功',
|
title: '修改成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
});
|
});
|
||||||
|
uni.redirectTo({
|
||||||
|
url: '/pages/mySeekHelp/index'
|
||||||
|
});
|
||||||
|
|
||||||
this.isEditing = false;
|
this.isEditing = false;
|
||||||
this.tempImagePath = '';
|
this.tempImagePath = '';
|
||||||
@ -250,7 +253,7 @@
|
|||||||
} else {
|
} else {
|
||||||
// 撤回操作
|
// 撤回操作
|
||||||
try {
|
try {
|
||||||
this.isLoading = true;
|
this.isLoading = false;
|
||||||
const res = await put(`/api/v1/app_auth/reciprocities/${this.detailObj.id}`, {status: 98});
|
const res = await put(`/api/v1/app_auth/reciprocities/${this.detailObj.id}`, {status: 98});
|
||||||
|
|
||||||
if (res && res.success) {
|
if (res && res.success) {
|
||||||
@ -258,7 +261,9 @@
|
|||||||
title: '撤回成功',
|
title: '撤回成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
});
|
});
|
||||||
uni.navigateBack();
|
uni.redirectTo({
|
||||||
|
url: '/pages/mySeekHelp/index'
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
throw new Error(res.message || '撤回失败');
|
throw new Error(res.message || '撤回失败');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user