From 738e73df7079fc54531f0a205c2741b80daba879 Mon Sep 17 00:00:00 2001 From: hanguangpu01 Date: Thu, 30 Apr 2026 10:36:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(login):=20=E6=B7=BB=E5=8A=A0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=AA=8C=E8=AF=81=E6=A3=80=E6=9F=A5=E5=88=B0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=B7=B3=E8=BD=AC=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在招聘会模块跳转前添加登录验证 - 在通知页面跳转前添加登录验证 - 在机构相关页面跳转前添加登录验证 - 确保未登录用户无法访问受保护的页面 - 统一页面跳转逻辑的登录验证处理 --- pages/index/components/index-one.vue | 33 ++++++++++++++++++---------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/pages/index/components/index-one.vue b/pages/index/components/index-one.vue index cced401..c203464 100644 --- a/pages/index/components/index-one.vue +++ b/pages/index/components/index-one.vue @@ -756,7 +756,9 @@ const helpTaskClick = () =>{ } //招聘会模块跳转 const handleJobFairClick = () => { - navTo('/pages/careerfair/careerfair'); + if (checkLogin()) { + navTo('/pages/careerfair/careerfair'); + } }; const list = ref([]); const pageState = reactive({ @@ -948,20 +950,27 @@ const handleNearbyClick = (options ) => { // #endif }; const handleNoticeClick = () =>{ - uni.navigateTo({ - url:'/packageB/notice/index' - }) -} -function handleInstitutionClick(type){ - if(type=='evaluate'){ + if (checkLogin()) { uni.navigateTo({ - url:'/packageB/institution/evaluationAgency' - }) - }else if (type=='training'){ - uni.navigateTo({ - url:'/packageB/institution/trainingInstitution' + url:'/packageB/notice/index' }) } +} +function handleInstitutionClick(type){ + + if (checkLogin()) { + if(type=='evaluate'){ + uni.navigateTo({ + url:'/packageB/institution/evaluationAgency' + }) + }else if (type=='training'){ + uni.navigateTo({ + url:'/packageB/institution/trainingInstitution' + }) + } + + } + } // 处理服务功能点击