This commit is contained in:
qiuyuan 2025-08-08 19:39:12 +08:00
parent cd8f2588e6
commit 4619e3474d
2 changed files with 12 additions and 5 deletions

View File

@ -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';
}, },

View File

@ -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 || '撤回失败');
} }