帮扶点击事件误删修复

This commit is contained in:
francis_fh
2026-01-19 10:25:58 +08:00
parent e444f07dc4
commit afcb29c51c
2 changed files with 22 additions and 7 deletions

View File

@@ -11,7 +11,6 @@
<view class="auth-header"> <view class="auth-header">
<image class="auth-logo" src="@/static/logo2-S.png" mode="aspectFit"></image> <image class="auth-logo" src="@/static/logo2-S.png" mode="aspectFit"></image>
<view class="auth-title">欢迎使用就业服务</view> <view class="auth-title">欢迎使用就业服务</view>
<view class="auth-subtitle">需要您授权手机号登录</view>
</view> </view>
<!-- 角色选择 --> <!-- 角色选择 -->

View File

@@ -78,7 +78,7 @@
<!-- <view class="h5-action-btn press-button" @click="handleH5SalaryClick"> <!-- <view class="h5-action-btn press-button" @click="handleH5SalaryClick">
<view class="btn-text">薪酬信息</view> <view class="btn-text">薪酬信息</view>
</view> --> </view> -->
<view class="h5-action-btn press-button" @click="handleServiceClick('resume-creation')"> <view class="h5-action-btn press-button" @click="handelGoResumeGuide()">
<view class="btn-text">简历指导</view> <view class="btn-text">简历指导</view>
</view> </view>
@@ -747,10 +747,9 @@ const handleLoginSuccess = () => {
getIsFourLevelLinkagePurview() getIsFourLevelLinkagePurview()
}; };
// H5环境下从URL获取token并自动登录 // H5环境下从URL获取token并自动登录
onLoad((options) => { onLoad(() => {
// #ifdef H5 // #ifdef H5
const token = options.token || uni.getStorageSync('zkr-token'); const token = uni.getStorageSync('zkr-token');
myToken.value = token;
if (token) { if (token) {
useUserStore().loginSetToken(token); useUserStore().loginSetToken(token);
} }
@@ -758,10 +757,18 @@ onLoad((options) => {
}); });
// 处理附近工作点击 // 处理附近工作点击
const handleNearbyClick = () => { const handleNearbyClick = (options ) => {
// #ifdef MP-WEIXIN
if (checkLogin()) { if (checkLogin()) {
navTo('/pages/nearby/nearby'); navTo('/pages/nearby/nearby');
} }
// #endif
// #ifdef H5
const token = options.token || uni.getStorageSync('zkr-token');
if (token) {
navTo('/pages/nearby/nearby');
}
// #endif
}; };
// 处理服务功能点击 // 处理服务功能点击
@@ -770,7 +777,16 @@ const handleServiceClick = (serviceType) => {
navToService(serviceType); 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 = () => { const handleLiveClick = () => {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN