发布岗位提示

This commit is contained in:
FengHui
2026-05-14 18:35:18 +08:00
parent 55e6d25851
commit 1a5b10b316
4 changed files with 33 additions and 8 deletions

View File

@@ -200,6 +200,21 @@ const switchTab = (item, index) => {
const storeUserInfo = userInfo.value || {};
const currentUserInfo = storeUserInfo.id ? storeUserInfo : cachedUserInfo;
// 检查是否有未处理的候选人(仅对企业用户生效)
const pendCount = Number(currentUserInfo.pendCount) || 0;
const isCompanyUser = Number(currentUserInfo.isCompanyUser) || 0;
if (isCompanyUser === 0 && pendCount > 0) {
// 企业用户且有未处理的候选人,提示用户
uni.showModal({
title: '提示',
content: '您已发布的岗位有未处理的候选人,请在后台处理后再发布岗位。',
showCancel: false,
confirmText: '我知道了',
});
currentItem.value = item.id;
return;
}
// 判断企业信息字段company是否为null或undefined
if (!currentUserInfo.company || currentUserInfo.company === null) {
// 企业信息为空,跳转到企业信息补全页面