From 55cc52c046cb9fa232356f9b447e179833afa796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E8=BE=89?= <13935151924@163.com> Date: Mon, 27 Oct 2025 12:39:33 +0800 Subject: [PATCH] 111 --- packageA/pages/post/post.vue | 44 +++++++++++++------------ pages.json | 8 ++--- pages/complete-info/complete-info.vue | 31 ++++++++++++++---- pages/index/components/index-one.vue | 47 +++++++++++++++++++++++++-- pages/job/publishJob.vue | 9 ++--- pages/mine/mine.vue | 36 +++++++++++++++++--- 6 files changed, 133 insertions(+), 42 deletions(-) diff --git a/packageA/pages/post/post.vue b/packageA/pages/post/post.vue index f74187a..c004d3e 100644 --- a/packageA/pages/post/post.vue +++ b/packageA/pages/post/post.vue @@ -16,27 +16,29 @@ - - - - {{ jobInfo.jobTitle }} - - - - + + + - - - + {{ jobInfo.jobTitle }} + + + + + + + + + + + + 来源  + {{ jobInfo.dataSource }} - - - 来源  - {{ jobInfo.dataSource }} @@ -503,11 +505,11 @@ for i in 0..100 .content{ padding: 0 28rpx height: 100% + padding-top: 28rpx .content-top{ - background: #FFFFFF; box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04); border-radius: 20rpx 20rpx 20rpx 20rpx; - padding: 52rpx 32rpx 34rpx 32rpx + padding: 24rpx position: relative overflow: hidden .top-salary{ diff --git a/pages.json b/pages.json index abeb8e1..5727bdc 100644 --- a/pages.json +++ b/pages.json @@ -196,10 +196,10 @@ }, { "path": "pages/UnitDetails/UnitDetails", "style": { - "navigationBarTitleText": "单位详情", - "navigationBarBackgroundColor": "#4778EC", - "navigationBarTextStyle": "white", - "navigationStyle": "custom" + "navigationBarTitleText": "单位详情" + // "navigationBarBackgroundColor": "#4778EC", + // "navigationBarTextStyle": "white" + // "navigationStyle": "custom" } }, { "path": "pages/exhibitors/exhibitors", diff --git a/pages/complete-info/complete-info.vue b/pages/complete-info/complete-info.vue index 3c67aa5..df3f720 100644 --- a/pages/complete-info/complete-info.vue +++ b/pages/complete-info/complete-info.vue @@ -613,14 +613,31 @@ function complete() { experiencesList: experiencesList }; - $api.createRequest('/app/user/registerUser', requestData, 'post').then((resData) => { + $api.createRequest('/registerUser', requestData, 'post').then(async (resData) => { $api.msg('完成'); - // 获取用户信息并存储到store中 - getUserResume().then((userInfo) => { - console.log('用户信息已存储到store:', userInfo); - uni.reLaunch({ - url: '/pages/index/index', - }); + + // 如果接口返回了token,需要重新保存token + if (resData.token) { + try { + await loginSetToken(resData.token); + console.log('Token已更新:', resData.token); + } catch (error) { + console.error('更新Token失败:', error); + } + } + + // 保存成功后,重新获取用户信息并更新缓存 + try { + await getUserResume(); + console.log('用户信息已更新到缓存'); + } catch (error) { + console.error('获取用户信息失败:', error); + // 即使获取用户信息失败,也不影响页面跳转 + } + + // 跳转到首页 + uni.reLaunch({ + url: '/pages/index/index', }); }); } else { diff --git a/pages/index/components/index-one.vue b/pages/index/components/index-one.vue index 9fafb48..f01a469 100644 --- a/pages/index/components/index-one.vue +++ b/pages/index/components/index-one.vue @@ -42,6 +42,13 @@ 职位名称、薪资要求等 + + + + + + 直播 + @@ -688,6 +695,11 @@ const handleServiceClick = (serviceType) => { } }; +// 处理直播按钮点击 +const handleLiveClick = () => { + $api.msg('该功能正在开发中'); +}; + // 跳转到测试页面 const navToTestPage = () => { navTo('/pages/test/homepage-test'); @@ -1107,17 +1119,19 @@ defineExpose({ loadData }); padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; + .container-search padding: 16rpx 24rpx display: flex justify-content: space-between + align-items: center .search-input display: flex align-items: center; - width: 100% + flex: 1 height: 80rpx; line-height: 80rpx - margin-right: 24rpx + margin-right: 16rpx background: #FFFFFF; border-radius: 75rpx 75rpx 75rpx 75rpx; .iconsearch @@ -1128,6 +1142,35 @@ defineExpose({ loadData }); font-size: 28rpx; color: #B5B5B5; width: 100% + .live-button + display: flex + align-items: center + justify-content: center + width: 90rpx + height: 42rpx + background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%) + border-radius: 40rpx + box-shadow: 0 3rpx 8rpx rgba(255, 107, 107, 0.2) + transition: all 0.2s ease + flex-shrink: 0 + + &:active + transform: scale(0.96) + box-shadow: 0 2rpx 6rpx rgba(255, 107, 107, 0.25) + + .live-icon + margin-right: 8rpx + display: flex + align-items: center + justify-content: center + + .live-text + font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif + font-weight: 500 + font-size: 24rpx + color: #FFFFFF + text-align: center + white-space: nowrap .chart font-family: 'PingFangSC-Medium', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif; width: 170rpx; diff --git a/pages/job/publishJob.vue b/pages/job/publishJob.vue index bc95082..4f60be8 100644 --- a/pages/job/publishJob.vue +++ b/pages/job/publishJob.vue @@ -9,6 +9,10 @@ + + 招聘公司 + {{formData.companyName}} + 岗位名称 - - 招聘公司 - {{formData.companyName}} - + 招聘公司 diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue index f293a01..aa9f5e1 100644 --- a/pages/mine/mine.vue +++ b/pages/mine/mine.vue @@ -3,7 +3,7 @@ - + @@ -100,7 +100,8 @@ 已开启 - 退出登录 + 求职帮 + 退出登录