驳回原因显示bug

This commit is contained in:
BAKEYi 2026-04-30 14:56:42 +08:00
parent 5bb78163b4
commit 0130ad939d
1 changed files with 21 additions and 22 deletions

View File

@ -135,31 +135,30 @@ export default {
return; return;
} }
// type request.post('/sj/userSjAuth/details', {
let type; type: this.identity // 1=2=
if (this.identity == 1) { }).then(result => {
type = 2; // console.log('申请详情接口返回数据:', result);
} else if (this.identity == 2) { if (result.code === 200) {
type = 3; // if (result.data) {
} else { if (result.data.back_text) {
console.error('未知的用户类型identity:', this.identity); this.backMag = result.data.back_text;
this.backMag = '用户类型错误,请联系客服'; console.log('设置backMag为:', this.backMag);
return; } else {
} this.backMag = '未知原因,请联系客服';
console.log('接口返回无back_text字段');
console.log('请求参数 type:', type); }
} else {
request.post('/user/getuser', {type}).then(result => { //
console.log('接口返回数据:', result); console.log('接口返回成功但data为空');
if (result.data && result.data.back_text) { this.backMag = '暂无驳回原因信息';
this.backMag = result.data.back_text; }
console.log('设置backMag为:', this.backMag);
} else { } else {
this.backMag = '未知原因,请联系客服'; this.backMag = '获取驳回原因失败,请联系客服';
console.log('接口返回无back_text字段'); console.log('接口返回错误:', result?.msg || '未知错误');
} }
}).catch(err => { }).catch(err => {
console.error('获取用户信息失败:', err); console.error('获取申请详情失败:', err);
this.backMag = '获取驳回原因失败,请联系客服'; this.backMag = '获取驳回原因失败,请联系客服';
}).finally(() => { }).finally(() => {
console.log('getUserInfo执行完成'); console.log('getUserInfo执行完成');