From 7f7a18803f8b5650a1a3eee87a060a5fae631f03 Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Sat, 31 Jan 2026 10:06:59 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E6=99=BA=E8=83=BD=E5=AE=A2?= =?UTF-8?q?=E6=9C=8D=E6=AD=A3=E5=B8=B8=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/customer-service.js | 24 ++++++++++++++++++------ manifest.json | 2 +- pages_tool/ai-chat/index.vue | 22 +++++++++++----------- site.js | 4 ++-- 4 files changed, 32 insertions(+), 20 deletions(-) diff --git a/common/js/customer-service.js b/common/js/customer-service.js index df71d59..071d3f3 100644 --- a/common/js/customer-service.js +++ b/common/js/customer-service.js @@ -174,27 +174,39 @@ export class CustomerService { break; case 'wxwork': console.log('【跳转企业微信客服】'); - this.openWxworkService(false, config, options); + // 修改:强制跳转到AI客服页面 + console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index'); + this.openDifyService(); break; case 'third': console.log('【跳转第三方客服】'); - this.openThirdService(config); + // 修改:强制跳转到AI客服页面 + console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index'); + this.openDifyService(); break; case 'miniprogram': console.log('【跳转第三方小程序客服】'); - this.openThirdService(config); + // 修改:强制跳转到AI客服页面 + console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index'); + this.openDifyService(); break; case 'niushop': console.log('【跳转牛商客服】'); - this.openNiushopService(niushop); + // 修改:强制跳转到AI客服页面 + console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index'); + this.openDifyService(); break; case 'weapp': console.log('【跳转微信官方客服】'); - this.openWeappService(config, options); + // 修改:强制跳转到AI客服页面 + console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index'); + this.openDifyService(); break; case 'aliapp': console.log('【跳转支付宝客服】'); - this.openAliappService(config); + // 修改:强制跳转到AI客服页面 + console.log('【强制跳转 AI 客服】目标路径: /pages_tool/ai-chat/index'); + this.openDifyService(); break; default: console.error('【未知客服类型】', config.type); diff --git a/manifest.json b/manifest.json index 4beada8..6a72520 100644 --- a/manifest.json +++ b/manifest.json @@ -104,7 +104,7 @@ }, "router" : { "mode" : "history", - "base" : "/hwappx/2811/" + "base" : "/hwappx/common/" }, "title" : "", "devServer" : { diff --git a/pages_tool/ai-chat/index.vue b/pages_tool/ai-chat/index.vue index 71acc38..76900e0 100644 --- a/pages_tool/ai-chat/index.vue +++ b/pages_tool/ai-chat/index.vue @@ -51,8 +51,12 @@ import { mapGetters, mapMutations } from 'vuex' import navigationHelper from '@/common/js/navigation'; import { EventSafety } from '@/common/js/event-safety'; +import aiChatMessage from './ai-chat-message.vue'; export default { + components: { + aiChatMessage + }, data() { return { initialMessages: [ @@ -100,7 +104,7 @@ export default { }, /// ---- others ---- containerHeight() { - return `calc(100vh - $ {this.navBarHeight + this.statusBarHeight}px)` + return `calc(100vh - ${this.navBarHeight + this.statusBarHeight}px)` }, wrapperPageStyle() { // #ifdef H5 @@ -122,12 +126,12 @@ export default { }, async onLoad(options) { - // ✅ 新增:权限校验(关键!防止非 AI 类型进入) - const hasAccess = this.checkAccessPermission(); - if (!hasAccess) { - // 如果校验失败,不继续初始化 - return; - } + // ✅ 修改:取消权限校验,允许所有客服类型访问此页面 + // const hasAccess = this.checkAccessPermission(); + // if (!hasAccess) { + // // 如果校验失败,不继续初始化 + // return; + // } this. $langConfig.title('AI智能客服'); this.initChat(); @@ -600,10 +604,6 @@ export default { display: flex; flex-direction: column; overflow: hidden; - top: 0; - left: 0; - right: 0; - bottom: 0; } /* 底部tabBar占位样式 */ diff --git a/site.js b/site.js index deb49f2..f6e98ae 100644 --- a/site.js +++ b/site.js @@ -1,4 +1,4 @@ module.exports = { - baseUrl: "https://xcx6.aigc-quickapp.com/",//修改域名 - uniacid: 2811,//后台对应uniacid + baseUrl: "https://dev.aigc-quickapp.com/",//修改域名 + uniacid: 1,//后台对应uniacid }; \ No newline at end of file