登录流程bug修改

This commit is contained in:
FengHui
2026-04-10 19:46:42 +08:00
parent 3fe4dbe47f
commit 3d8e13c665
5 changed files with 98 additions and 37 deletions

View File

@@ -388,6 +388,24 @@ const wxLogin = () => {
});
// 登录成功后返回上一页
uni.navigateBack();
}).catch((error) => {
// 只有在非企业用户且确实需要简历信息时才显示错误
// 企业用户可能没有简历信息,这是正常的
if (userType.value !== 0) {
uni.showToast({
title: '获取用户信息失败',
icon: 'none',
duration: 2000
});
} else {
console.log('企业用户登录成功,简历信息可能为空');
uni.showToast({
title: '登录成功',
icon: 'success',
duration: 2000
});
uni.navigateBack();
}
});
}
});
@@ -439,12 +457,24 @@ const testLogin = () => {
});
// 登录成功后返回上一页
uni.navigateBack();
}).catch(() => {
uni.showToast({
title: '获取用户信息失败',
icon: 'none',
duration: 2000
});
}).catch((error) => {
// 只有在非企业用户且确实需要简历信息时才显示错误
// 企业用户可能没有简历信息,这是正常的
if (userType.value !== 0) {
uni.showToast({
title: '获取用户信息失败',
icon: 'none',
duration: 2000
});
} else {
console.log('企业用户测试登录成功,简历信息可能为空');
uni.showToast({
title: '测试登录成功',
icon: 'success',
duration: 2000
});
uni.navigateBack();
}
});
}).catch((err) => {
uni.hideLoading();