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

@@ -75,8 +75,9 @@ import { reactive, inject, watch, ref, onMounted, computed } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
import dictLabel from '@/components/dict-Label/dict-Label.vue';
import { storeToRefs } from 'pinia';
const { isMiniProgram } = storeToRefs(useUserStore());
import useUserStore from '@/stores/useUserStore';
const { isMiniProgram } = storeToRefs(useUserStore());
const { checkAuth } = useUserStore();
import useLocationStore from '@/stores/useLocationStore';
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
const { $api, navTo, vacanciesTo, navBack } = inject('globalFunction');
@@ -111,6 +112,9 @@ onLoad((options) => {
});
function companyCollection() {
if (!checkAuth()) {
return
}
if (dataType.value === 2) {
// 第三方数据收藏逻辑
const id = companyInfo.value.id;

View File

@@ -112,6 +112,7 @@ import { storeToRefs } from 'pinia';
const { longitudeVal, latitudeVal } = storeToRefs(useLocationStore());
import useUserStore from '@/stores/useUserStore';
const { isMiniProgram } = storeToRefs(useUserStore());
const { checkAuth } = useUserStore();
import { playTextDirectly } from '@/hook/useTTSPlayer-all-in-one';
const isExpanded = ref(false);
@@ -204,6 +205,10 @@ function expand() {
// 取消/预约招聘会
function applyExhibitors() {
if (!checkAuth()) {
return
}
const fairId = fairInfo.value.zphID;
if (fairInfo.value.isCollection) {
$api.createRequest(`/app/fair/collection/${fairId}`, {}, 'DELETE').then((resData) => {

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;