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