From 7634a24c3ae0e05b724b83ee7734226cde155db6 Mon Sep 17 00:00:00 2001 From: francis_fh <13935151924@163.com> Date: Wed, 28 Jan 2026 17:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CustomTabBar/CustomTabBar.vue | 5 +++-- components/md-render/md-render.vue | 6 ++++-- pages.json | 2 +- pages/chat/chat.vue | 1 + utils/loginHelper.js | 14 ++++++-------- utils/markdownParser.js | 5 +++-- 6 files changed, 18 insertions(+), 15 deletions(-) diff --git a/components/CustomTabBar/CustomTabBar.vue b/components/CustomTabBar/CustomTabBar.vue index 7b1c1f7..a393352 100644 --- a/components/CustomTabBar/CustomTabBar.vue +++ b/components/CustomTabBar/CustomTabBar.vue @@ -59,7 +59,7 @@ const generateTabbarList = () => { }, { id: 2, - text: 'AI+', + text: '智能客服', path: '/pages/chat/chat', iconPath: '/static/tabbar/logo3.png', selectedIconPath: '/static/tabbar/logo3.png', @@ -175,7 +175,8 @@ const switchTab = (item, index) => { const loginRequiredPages = [ '/packageA/pages/job/publishJob', '/pages/mine/mine', - '/pages/mine/company-mine' + '/pages/mine/company-mine', + '/pages/msglog/msglog' ]; if (loginRequiredPages.includes(item.path)) { diff --git a/components/md-render/md-render.vue b/components/md-render/md-render.vue index 22fdd96..7568564 100644 --- a/components/md-render/md-render.vue +++ b/components/md-render/md-render.vue @@ -775,7 +775,8 @@ ol { /* 为v-html生成的a.custom-card标签添加基础样式 */ a.custom-card { - display: block !important; + display: flex !important; + flex-direction: column !important; margin-bottom: 22rpx !important; background: #FFFFFF !important; box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0,0,0,0.04) !important; @@ -787,7 +788,8 @@ ol { text-decoration: none !important; overflow: hidden !important; box-sizing: border-box !important; - width: 100% !important; + width: calc(100% - 0rpx) !important; + max-width: 100% !important; } /* 卡片标题样式 */ diff --git a/pages.json b/pages.json index 6987533..58fc301 100644 --- a/pages.json +++ b/pages.json @@ -39,7 +39,7 @@ { "path": "pages/chat/chat", "style": { - "navigationBarTitleText": "AI+", + "navigationBarTitleText": "智能客服", "navigationBarBackgroundColor": "#4778EC", "navigationBarTextStyle": "white", "enablePullDownRefresh": false diff --git a/pages/chat/chat.vue b/pages/chat/chat.vue index e43c8fa..1c42cab 100644 --- a/pages/chat/chat.vue +++ b/pages/chat/chat.vue @@ -61,6 +61,7 @@ {{ config.appInfo.areaName }}岗位推荐 + diff --git a/utils/loginHelper.js b/utils/loginHelper.js index 919567d..7197b5f 100644 --- a/utils/loginHelper.js +++ b/utils/loginHelper.js @@ -49,14 +49,12 @@ export function navigateToLoginPage(options = {}) { return; case 'h5': - if (loginType === 'idCard') { - // H5端身份证号码登录 - loginPage = '/pages/login/id-card-login'; - } else { - // H5端账号密码登录 - loginPage = '/pages/login/h5-login'; - } - break; + uni.showToast({ + title: '请先登录', + icon: 'none', + duration: 2000 + }); + return; case 'app': // App端使用微信授权登录 diff --git a/utils/markdownParser.js b/utils/markdownParser.js index c877742..59e91b0 100644 --- a/utils/markdownParser.js +++ b/utils/markdownParser.js @@ -55,10 +55,11 @@ const md = new MarkdownIt({ // 使用普通的href属性,微信小程序rich-text会将其转换为可点击链接 // 添加data-job-id属性,方便获取jobId // 为所有平台添加onclick事件,微信小程序可能会忽略,但H5端会生效 - let domContext = `
${result.jobTitle}
${result.salary}
${result.location}·${result.companyName}
${result.education}
${result.experience}
查看详情
` + // 内联基础样式确保在所有平台上正确显示(使用px单位以确保H5兼容性) + let domContext = `
${result.jobTitle}
${result.salary}
${result.location}·${result.companyName}
${result.education}
${result.experience}
查看详情
` if (result.data) { jobMoreMap.set(jobId, result.data) - domContext += `查看更多岗位
` + domContext += `查看更多岗位
` } return domContext }