一体机的登录修复

This commit is contained in:
francis-fh
2026-06-04 14:45:22 +08:00
parent bdd42bd790
commit 087c686d81
3 changed files with 65 additions and 32 deletions

View File

@@ -78,7 +78,7 @@
<!-- <view class="h5-action-btn press-button" @click="handleH5SalaryClick">
<view class="btn-text">薪酬信息</view>
</view> -->
<view class="h5-action-btn press-button" @click="handelGoResumeGuide()">
<view class="h5-action-btn press-button" @click="handleServiceClick('resume-creation')">
<view class="btn-text">简历指导</view>
</view>
@@ -937,18 +937,8 @@ const handleLoginSuccess = () => {
// onLoad 函数已移至下方,包含筛选参数处理
// 处理附近工作点击
const handleNearbyClick = (options ) => {
// #ifdef MP-WEIXIN
if (checkLogin()) {
navTo('/packageA/pages/nearby/nearby');
}
// #endif
// #ifdef H5
const token = options.token || uni.getStorageSync('zkr-token');
if (token) {
navTo('/packageA/pages/nearby/nearby');
}
// #endif
const handleNearbyClick = () => {
navTo('/packageA/pages/nearby/nearby');
};
const handleNoticeClick = () =>{
if (checkLogin()) {
@@ -976,20 +966,12 @@ function handleInstitutionClick(type){
}
// 处理服务功能点击
const handleServiceClick = (serviceType) => {
if (checkLogin()) {
const noLoginRequired = ['resume-creation'];
if (noLoginRequired.includes(serviceType) || checkLogin()) {
navToService(serviceType);
}
};
// H5的简历指导跳转
const handelGoResumeGuide = () => {
const token = uni.getStorageSync('zkr-token');
// myToken.value = token;
if (token) {
// navTo()
navTo('/pages/resume-guide/resume-guide');
}
}
// 处理直播按钮点击
const handleLiveClick = () => {
// #ifdef MP-WEIXIN