feta : 新增实名认证判断 公司/岗位收藏 需要认证

招聘会预约        需要认证
外部岗位申请    需要认证
内部岗位申请    不需要认证
我的页面-认证状态 改为真实数据
This commit is contained in:
2025-12-25 15:09:09 +08:00
parent ff71c50b9c
commit 1b332fbad8
9 changed files with 785 additions and 15 deletions

View File

@@ -187,6 +187,7 @@ import { storeToRefs } from 'pinia';
import useUserStore from '@/stores/useUserStore';
import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one';
const { isMiniProgram, hasLogin } = storeToRefs(useUserStore());
const { checkAuth } = useUserStore();
const { $api, navTo, getLenPx, parseQueryParams, navBack, isEmptyObject } = inject('globalFunction');
import config from '@/config.js';
@@ -322,10 +323,14 @@ function getCompetivetuveness(jobId) {
}
}
// 申请岗位
// 申请岗位 第三方需要认证
function jobApply() {
if (dataType.value === 2) {
// 第三方数据申请逻辑
if (!checkAuth()) {
return
}
const params = {
jobid: jobInfo.value.id,
jobname: jobInfo.value.gwmc,
@@ -359,8 +364,11 @@ function jobApply() {
}
}
// 取消/收藏岗位
// 取消/收藏岗位 都需要认证
function jobCollection() {
if (!checkAuth()) {
return
}
if (dataType.value === 2) {
// 第三方数据收藏逻辑
const id = jobInfo.value.id;