diff --git a/pages.json b/pages.json index 3cbd4fa..f06439e 100644 --- a/pages.json +++ b/pages.json @@ -465,8 +465,7 @@ { "path": "search/search", "style": { - "navigationBarTitleText": "生涯规划", - "navigationStyle": "custom" + "navigationBarTitleText": "生涯规划" } }, { @@ -502,36 +501,31 @@ { "path": "userCenter/professionPath", "style": { - "navigationBarTitleText": "职业路径", - "navigationStyle": "custom" + "navigationBarTitleText": "职业路径" } }, { "path": "userCenter/personDocument", "style": { - "navigationBarTitleText": "生涯档案", - "navigationStyle": "custom" + "navigationBarTitleText": "生涯档案" } }, { "path": "userCenter/careerCompass", "style": { - "navigationBarTitleText": "生涯罗盘", - "navigationStyle": "custom" + "navigationBarTitleText": "生涯罗盘" } }, { "path": "userCenter/learningPlan", "style": { - "navigationBarTitleText": "学业规划", - "navigationStyle": "custom" + "navigationBarTitleText": "学业规划" } }, { "path": "userCenter/smartTarget", "style": { - "navigationBarTitleText": "学业规划", - "navigationStyle": "custom" + "navigationBarTitleText": "学业规划" } }, { @@ -543,71 +537,61 @@ { "path": "pagesTest/testList", "style": { - "navigationBarTitleText": "生涯测评", - "navigationStyle": "custom" + "navigationBarTitleText": "生涯测评" } }, { "path": "pagesTest/customTestTitle", "style": { - "navigationBarTitleText": "自定义测评", - "navigationStyle": "custom" + "navigationBarTitleText": "自定义测评" } }, { "path": "pagesTest/interestTestTitle", "style": { - "navigationBarTitleText": "职业兴趣测评", - "navigationStyle": "custom" + "navigationBarTitleText": "职业兴趣测评" } }, { "path": "pagesTest/workValuesTestTitle", "style": { - "navigationBarTitleText": "工作价值观测评", - "navigationStyle": "custom" + "navigationBarTitleText": "工作价值观测评" } }, { "path": "pagesTest/personalTestTitle", "style": { - "navigationBarTitleText": "人格测评", - "navigationStyle": "custom" + "navigationBarTitleText": "人格测评" } }, { "path": "testReport/workValuesTestReport", "style": { - "navigationBarTitleText": "工作价值观测评报告", - "navigationStyle": "custom" + "navigationBarTitleText": "工作价值观测评报告" } }, { "path": "testReport/multipleAbilityTestReport", "style": { - "navigationBarTitleText": "多元能力测评报告", - "navigationStyle": "custom" + "navigationBarTitleText": "多元能力测评报告" } }, { "path": "testReport/generalCareerTestReport", "style": { - "navigationBarTitleText": "通用职业能力测评报告", - "navigationStyle": "custom" + "navigationBarTitleText": "通用职业能力测评报告" } }, { "path": "testReport/personalTestReport", "style": { - "navigationBarTitleText": "人格测评报告", - "navigationStyle": "custom" + "navigationBarTitleText": "人格测评报告" } }, { "path": "testReport/interestTestReport", "style": { - "navigationBarTitleText": "职业兴趣测评报告", - "navigationStyle": "custom" + "navigationBarTitleText": "职业兴趣测评报告" } } ] diff --git a/pages/index/components/index-one.vue b/pages/index/components/index-one.vue index 08e698f..9439c10 100644 --- a/pages/index/components/index-one.vue +++ b/pages/index/components/index-one.vue @@ -709,7 +709,31 @@ const handleServiceClick = (serviceType) => { // 处理直播按钮点击 const handleLiveClick = () => { - $api.msg('该功能正在开发中'); + // #ifdef MP-WEIXIN + const feedId = "sphKH1AEeLfTJJE"; + + // 使用微信原生 API 打开视频号主页 + if (typeof wx !== "undefined" && wx.openChannelsUserProfile) { + wx.openChannelsUserProfile({ + finderUserName: feedId, + success: (res) => { + console.log("打开视频号成功", res); + }, + fail: (err) => { + console.error("打开视频号失败", err); + $api.msg(err.errMsg || "无法打开直播,请稍后重试"); + }, + }); + } else { + // 如果 API 不存在,提示用户更新微信版本 + $api.msg("请更新微信版本以使用该功能"); + } + // #endif + + // #ifndef MP-WEIXIN + // 非微信小程序环境提示 + $api.msg("该功能仅在微信小程序中可用"); + // #endif }; // 跳转到测试页面