diff --git a/apiRc/jobSkill.js b/apiRc/jobSkill.js index 4c9f8ac..8741153 100644 --- a/apiRc/jobSkill.js +++ b/apiRc/jobSkill.js @@ -13,6 +13,16 @@ export function getJobSkillDetail(params) { }) } +// 获取技能权重 +export function getJobSkillWeight(params) { + return request({ + url: '/jobSkillDet/getJobSkillWeight', + method: 'get', + params, + baseUrlType: 'zytp' + }) +} + // 暂未使用 - 如果需要在 CareerPath.vue 中点击路径职位查看详细技能信息时使用 // 使用场景:获取职业路径中某个职位的详细技能信息(包含技能分数、类型等) // export function getJobPathSkill(data) { diff --git a/apiRc/login.js b/apiRc/login.js index c085b13..eb70902 100644 --- a/apiRc/login.js +++ b/apiRc/login.js @@ -1,7 +1,7 @@ /* * @Date: 2025-10-31 11:06:15 * @LastEditors: shirlwang - * @LastEditTime: 2025-11-03 15:51:28 + * @LastEditTime: 2025-12-16 16:29:33 */ import request from '@/utilsRc/request' @@ -13,6 +13,14 @@ export function login(data) { params: data, }) } +// 登录方法 +export function loginByUserId(data) { + return request({ + method: 'get', + url: '/ksSso/getTjmhTokenById?userId='+data, + // params: data, + }) +} export function smsLogin(data) { return request({ method: 'post', diff --git a/apiRc/user/user.js b/apiRc/user/user.js index 7e43b26..8721ef1 100644 --- a/apiRc/user/user.js +++ b/apiRc/user/user.js @@ -1,15 +1,14 @@ /* * @Date: 2025-01-XX - * @LastEditors: - * @LastEditTime: + * @LastEditors: shirlwang + * @LastEditTime: 2025-12-16 16:35:06 */ import request from '@/utilsRc/request' // 获取用户信息(职业规划推荐用) export function appUserInfo() { return request({ - url: '/app/user/appUserInfo', - method: 'get', - baseUrlType: 'user' // 使用用户接口专用baseUrl + fullUrl: 'https://www.xjksly.cn/api/ks/app/user/appUserInfo', + method: 'get' }) } diff --git a/common/globalFunction.js b/common/globalFunction.js index 8402cc1..8a183eb 100644 --- a/common/globalFunction.js +++ b/common/globalFunction.js @@ -51,7 +51,7 @@ const prePage = () => { } // export const urls ='http://10.110.145.145/images/train/' -export const urls ='http://222.80.110.161:11111/images/train/' +export const urls ='https://www.xjksly.cn/images/train/' /** * 页面跳转封装,支持 query 参数传递和返回回调 @@ -69,9 +69,28 @@ export const navTo = function(url, { const userStore = useUserStore(); if (needLogin && !userStore.hasLogin) { - uni.navigateTo({ - url: '/pages/complete-info/complete-info' - }); + const pages = getCurrentPages(); + if (pages.length >= 10) { + uni.redirectTo({ + url: '/pages/complete-info/complete-info', + fail: (err) => { + console.error('页面跳转失败:', err); + } + }); + } else { + uni.navigateTo({ + url: '/pages/complete-info/complete-info', + fail: (err) => { + console.error('页面跳转失败:', err); + uni.redirectTo({ + url: '/pages/complete-info/complete-info', + fail: (err2) => { + console.error('redirectTo也失败:', err2); + } + }); + } + }); + } return; } @@ -86,9 +105,30 @@ export const navTo = function(url, { currentPage.__onBackCallback__ = onBack; } - uni.navigateTo({ - url: finalUrl - }); + const pages = getCurrentPages(); + if (pages.length >= 10) { + // 页面栈已满,使用redirectTo替代 + uni.redirectTo({ + url: finalUrl, + fail: (err) => { + console.error('页面跳转失败:', err); + } + }); + } else { + uni.navigateTo({ + url: finalUrl, + fail: (err) => { + console.error('页面跳转失败:', err); + // 失败后尝试redirectTo + uni.redirectTo({ + url: finalUrl, + fail: (err2) => { + console.error('redirectTo也失败:', err2); + } + }); + } + }); + } }; export const navBack = function({ diff --git a/components/CustomTabBar/CustomTabBar.vue b/components/CustomTabBar/CustomTabBar.vue index 762dbab..105766b 100644 --- a/components/CustomTabBar/CustomTabBar.vue +++ b/components/CustomTabBar/CustomTabBar.vue @@ -114,15 +114,15 @@ const generateTabbarList = () => { // 求职者用户(包括未登录状态):显示招聘会 // H5端隐藏招聘会 // #ifndef H5 - baseItems.splice(1, 0, { - id: 1, - text: '招聘会', - path: '/pages/careerfair/careerfair', - iconPath: '/static/tabbar/post.png', - selectedIconPath: '/static/tabbar/posted.png', - centerItem: false, - badge: readMsg.badges[1]?.count || 0, - }); + // baseItems.splice(1, 0, { + // id: 1, + // text: '招聘会', + // path: '/pages/careerfair/careerfair', + // iconPath: '/static/tabbar/post.png', + // selectedIconPath: '/static/tabbar/posted.png', + // centerItem: false, + // badge: readMsg.badges[1]?.count || 0, + // }); // #endif } diff --git a/components/wxAuthLogin/WxAuthLogin.vue b/components/wxAuthLogin/WxAuthLogin.vue index 668956a..8c0ba6b 100644 --- a/components/wxAuthLogin/WxAuthLogin.vue +++ b/components/wxAuthLogin/WxAuthLogin.vue @@ -139,13 +139,15 @@ const validateRole = () => { const getPhoneNumber = (e) => { console.log('获取手机号:', e); - + console.log('userType.value', userType.value) // 验证角色是否已选择 - if (!validateRole()) { - return; - } + if (e.detail.errMsg === 'getPhoneNumber:ok') { + if (userType.value === null) { + $api.msg('请先选择您的角色'); + return true; + } uni.login({ provider: 'weixin', success: (loginRes) => { diff --git a/config.js b/config.js index 4bdfd0c..972541c 100644 --- a/config.js +++ b/config.js @@ -1,16 +1,23 @@ +/* + * @Descripttion: + * @Author: lip + * @Date: 2025-12-04 13:40:08 + * @LastEditors: lip + */ export default { // baseUrl: 'http://39.98.44.136:8080', // 测试 - baseUrl: 'http://222.80.110.161:11111/api/ks', // 正式环境 + baseUrl: 'https://www.xjksly.cn/api/ks', // 测试 + // baseUrl: 'https://www.xjksly.cn/api/ks', // 测试 // baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 测试 // LCBaseUrl:'http://10.110.145.145:9100',//内网端口 // LCBaseUrlInner:'http://10.110.145.145:10100',//招聘、培训、帮扶 // imgBaseUrl:'http://10.110.145.145/images', //图片基础url // trainVideoImgUrl:'http://10.110.145.145:9100/file/file/minio', - LCBaseUrl:'http://222.80.110.161:11111/prod-api',//内网端口 - LCBaseUrlInner:'http://222.80.110.161:11111/prod-psout-api',//招聘、培训、帮扶 - imgBaseUrl:'http://222.80.110.161:11111/images', //图片基础url - trainVideoImgUrl:'http://222.80.110.161:11111/prod-api/file/file/minio', + LCBaseUrl:'https://www.xjksly.cn/prod-api',//内网端口 + LCBaseUrlInner:'https://www.xjksly.cn/prod-psout-api',//招聘、培训、帮扶 + imgBaseUrl:'https://www.xjksly.cn/images', //图片基础url + trainVideoImgUrl:'https://www.xjksly.cn/prod-api/file/file/minio', // sseAI+ // StreamBaseURl: 'http://39.98.44.136:8000', StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai', @@ -25,11 +32,11 @@ export default { // 只使用本地缓寸的数据 OnlyUseCachedDB: true, // 使用模拟定位 - UsingSimulatedPositioning: true, + UsingSimulatedPositioning: false, // 应用信息 appInfo: { // 应用名称 - name: "青岛市就业服务", + name: "喀什市就业服务", // 地区名 areaName: '喀什', // AI名称 diff --git a/hook/useColumnCount.js b/hook/useColumnCount.js index d7a228b..d96017e 100644 --- a/hook/useColumnCount.js +++ b/hook/useColumnCount.js @@ -19,37 +19,47 @@ export function useColumnCount(onChange = () => {}) { // columnCount.value = count < 2 ? 2 : count // } // } - const calcColumn = () => { - // 使用新的API替代已废弃的getSystemInfoSync - let width - // #ifdef MP-WEIXIN - const mpSystemInfo = uni.getWindowInfo() - width = mpSystemInfo.windowWidth - // #endif - // #ifndef MP-WEIXIN - const otherSystemInfo = uni.getSystemInfoSync() - width = otherSystemInfo.windowWidth - // #endif - - let count = 2 - if (width >= 1000) { - count = 5 - } else if (width >= 750) { - count = 4 - } else if (width >= 500) { - count = 3 - } else { - count = 2 - } - - if (count !== columnCount.value) { - columnCount.value = count - } - - // 计算间距:count=2 => 1,count=5 => 2,中间线性插值 - const spacing = 2 - (count - 2) * (1 / 3) - // console.log('列数:', count, '间距:', spacing.toFixed(2)) - columnSpace.value = spacing + const calcColumn = () => { + // 使用新的API替代已废弃的getSystemInfoSync + let width + // #ifdef MP-WEIXIN + const mpSystemInfo = uni.getWindowInfo() + width = mpSystemInfo.windowWidth + // #endif + // #ifndef MP-WEIXIN + const otherSystemInfo = uni.getSystemInfoSync() + width = otherSystemInfo.windowWidth + // #endif + + let count = 2 + if (width >= 1000) { + // #ifdef H5 + count = 3 // H5端最多显示3列 + // #endif + // #ifndef H5 + count = 5 + // #endif + } else if (width >= 750) { + // #ifdef H5 + count = 3 // H5端最多显示3列 + // #endif + // #ifndef H5 + count = 4 + // #endif + } else if (width >= 500) { + count = 3 + } else { + count = 2 + } + + if (count !== columnCount.value) { + columnCount.value = count + } + + // 计算间距:count=2 => 1,count=5 => 2,中间线性插值 + const spacing = 2 - (count - 2) * (1 / 3) + // console.log('列数:', count, '间距:', spacing.toFixed(2)) + columnSpace.value = spacing } onMounted(() => { diff --git a/packageA/pages/UnitDetails/UnitDetails.vue b/packageA/pages/UnitDetails/UnitDetails.vue index e7d4088..2cf6817 100644 --- a/packageA/pages/UnitDetails/UnitDetails.vue +++ b/packageA/pages/UnitDetails/UnitDetails.vue @@ -39,8 +39,8 @@ 在招职位 -