完成个人页面

This commit is contained in:
lip
2025-11-06 13:03:43 +08:00
parent b31fcd34c7
commit 5d52ca004f
5 changed files with 2090 additions and 23 deletions

View File

@@ -1,18 +1,18 @@
<!-- <!--
* @Date: 2025-10-16 15:15:47 * @Date: 2025-10-16 15:15:47
* @LastEditors: shirlwang * @LastEditors: lip
* @LastEditTime: 2025-11-05 16:52:15 * @LastEditTime: 2025-11-06 13:01:17
--> -->
<template> <template>
<!-- @scroll="handleScroll" @scrolltolower="scrollBottom" --> <!-- @scroll="handleScroll" @scrolltolower="scrollBottom" -->
<scroll-view :scroll-y="true" class="container" style="background-image: url('../../../packageRc/static/pageBg.png');"> <scroll-view :scroll-y="true" class="container" style="background-image: url('../../../packageRc/static/pageBg.png');">
<view style="padding: 40rpx 28rpx;"> <view style="padding: 40rpx 28rpx;">
<view class="kinggang"> <view class="kinggang">
<view> <view @click="navTo('/packageA/pages/myResume/myResume')">
<image src="../../../packageRc/static/kinggang1.png"/> <image src="../../../packageRc/static/kinggang1.png"/>
<view>信息维护</view> <view>信息维护</view>
</view> </view>
<view> <view @click="navTo('/packageA/pages/Intendedposition/Intendedposition')">
<image src="../../../packageRc/static/kinggang5.png"/> <image src="../../../packageRc/static/kinggang5.png"/>
<view>投递记录</view> <view>投递记录</view>
</view> </view>
@@ -24,7 +24,7 @@
<image src="../../../packageRc/static/kinggang3.png"/> <image src="../../../packageRc/static/kinggang3.png"/>
<view>虚拟面试</view> <view>虚拟面试</view>
</view> </view>
<view> <view @click="goCa">
<image src="../../../packageRc/static/kinggang4.png"/> <image src="../../../packageRc/static/kinggang4.png"/>
<view>素质测评</view> <view>素质测评</view>
</view> </view>
@@ -38,7 +38,7 @@
<view class="title-item" :class="{active: activeTitle == 1}" @click="activeTitle = 1,getJobRecommed()"><view>推荐岗位</view></view> <view class="title-item" :class="{active: activeTitle == 1}" @click="activeTitle = 1,getJobRecommed()"><view>推荐岗位</view></view>
<view class="title-item" :class="{active: activeTitle == 2}" @click="activeTitle = 2,getJobList()"><view>热门岗位</view></view> <view class="title-item" :class="{active: activeTitle == 2}" @click="activeTitle = 2,getJobList()"><view>热门岗位</view></view>
</view> </view>
<view v-for="(item, index) in jobList" :key="index" class="job-list"> <view v-for="(item, index) in jobList" :key="index" @click="nextDetail(item)" class="job-list">
<view class="top-line"> <view class="top-line">
<view class="salary">{{item.minSalary}}-{{item.maxSalary}}/</view> <view class="salary">{{item.minSalary}}-{{item.maxSalary}}/</view>
<view class="time"><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发布日期{{ item.postingDate }}</view> <view class="time"><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发布日期{{ item.postingDate }}</view>
@@ -98,10 +98,14 @@ onMounted(()=>{
getJobRecommed() getJobRecommed()
}) })
function goCa(){
if (checkLogin()) {
const userInfo = uni.getStorageSync('userInfo')
navTo(`/packageCa/search/search?userId=${userInfo.userId}&name=${userInfo.name}`);
}
}
function viewMore() { function viewMore() {
// uni.navigateTo({ navTo(`/packageRc/pages/jobList/jobList`);
// url: '/pages/jobList/jobList'
// })
} }
function tiao(){ function tiao(){
console.log('尝试导航到待办详情页面'); console.log('尝试导航到待办详情页面');
@@ -168,6 +172,26 @@ function changeJobType(val){
getJobList() getJobList()
} }
} }
// 登录检查函数
import { storeToRefs } from 'pinia';
const { userInfo, hasLogin, token } = storeToRefs(useUserStore());
const checkLogin = () => {
const tokenValue = uni.getStorageSync('token') || '';
if (!tokenValue || !hasLogin.value) {
// 未登录,打开授权弹窗
wxAuthLoginRef.value?.open();
return false;
}
return true;
};
// 跳转到详情页面
function nextDetail(job) {
// 登录检查
if (checkLogin()) {
navTo(`/packageA/pages/post/post?jobId=${encodeURIComponent(job.jobId)}`);
}
}
</script> </script>

File diff suppressed because it is too large Load Diff

View File

@@ -386,6 +386,12 @@
"style": { "style": {
"navigationBarTitleText": "毕业生追踪" "navigationBarTitleText": "毕业生追踪"
} }
},
{
"path": "pages/jobList/jobList",
"style": {
"navigationBarTitleText": "岗位列表"
}
}, },
{ {
"path": "pages/daiban/daiban", "path": "pages/daiban/daiban",

View File

@@ -1038,6 +1038,7 @@ import { getToken } from '@/utilsRc/auth.js';
// 跳转到高校毕业页面 // 跳转到高校毕业页面
function goRc(){ function goRc(){
if (checkLogin()) { if (checkLogin()) {
navTo('/packageRc/pages/index/index');
let token = getToken(); let token = getToken();
if( token != null && token != '' && token != undefined ){ if( token != null && token != '' && token != undefined ){
if(storeRc.state.user.type == 'person'){ if(storeRc.state.user.type == 'person'){

View File

@@ -1,8 +1,7 @@
{ {
"description": "项目配置文件。", "description": "项目配置文件。",
"packOptions": { "packOptions": {
"ignore": [], "ignore": []
"include": []
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
@@ -10,21 +9,28 @@
"postcss": true, "postcss": true,
"minified": true, "minified": true,
"newFeature": true, "newFeature": true,
"bigPackageSizeSupport": true, "bigPackageSizeSupport": true
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"condition": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "3.10.3", "libVersion": "3.5.7",
"appid": "wx9d1cbc11c8c40ba7", "appid": "wx9d1cbc11c8c40ba7",
"projectname": "qingdao-employment-service", "projectname": "qingdao-employment-service",
"condition": {}, "condition": {
"editorSetting": { "search": {
"tabIndent": "insertSpaces", "current": -1,
"tabSize": 2 "list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"current": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
} }
} }