From a489e2498840d7c293ede2cb96c261c7c8d50f81 Mon Sep 17 00:00:00 2001
From: jinhhanhan <1683105490@qq.com>
Date: Fri, 6 Feb 2026 17:18:58 +0800
Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E6=94=B9=E4=BA=86=E4=BC=81?=
=?UTF-8?q?=E4=B8=9A=E5=BE=AE=E4=BF=A1=E5=AE=A2=E6=9C=8D=EF=BC=8C=E6=99=BA?=
=?UTF-8?q?=E8=83=BD=E5=AE=A2=E6=9C=8D=E7=9A=84=E6=82=AC=E6=B5=AE=E6=8C=89?=
=?UTF-8?q?=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/js/customer-service.js | 18 ++++++++++++++++++
components/hover-nav/hover-nav.vue | 15 +++++++++++++--
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/common/js/customer-service.js b/common/js/customer-service.js
index 1e59c59..019a940 100644
--- a/common/js/customer-service.js
+++ b/common/js/customer-service.js
@@ -488,6 +488,24 @@ export class CustomerService {
return config?.type === 'weapp';
}
+ /**
+ * 判断是否为智能客服
+ * @returns {Boolean}
+ */
+ isAIKefu() {
+ const config = this.getPlatformConfig();
+ return config?.type === 'aikefu';
+ }
+
+ /**
+ * 判断是否为企业微信客服
+ * @returns {Boolean}
+ */
+ isWxworkKefu() {
+ const config = this.getPlatformConfig();
+ return config?.type === 'wxwork' || config?.type === 'qyweixin';
+ }
+
/**
* 判断是否需要同时显示小程序系统客服
* @returns {Boolean}
diff --git a/components/hover-nav/hover-nav.vue b/components/hover-nav/hover-nav.vue
index 9837224..51ca961 100644
--- a/components/hover-nav/hover-nav.vue
+++ b/components/hover-nav/hover-nav.vue
@@ -30,7 +30,9 @@
@click="handleUnifiedKefuClick"
:style="{ backgroundImage: currentKefuImg ? `url(${currentKefuImg})` : '', backgroundSize: '100% 100%' }"
>
-
+ 🤖
+ 💬
+
@@ -40,7 +42,8 @@
@click="handleUnifiedKefuClick"
:style="{ backgroundImage: currentKefuImg ? `url(${currentKefuImg})` : '', backgroundSize: '100% 100%' }"
>
- 🤖
+ 🤖
+ 💬
@@ -127,6 +130,14 @@ export default {
const customerService = createCustomerService(this);
return customerService.isWeappOfficialKefu();
},
+ isAIKefu() {
+ const customerService = createCustomerService(this);
+ return customerService.isAIKefu();
+ },
+ isWxworkKefu() {
+ const customerService = createCustomerService(this);
+ return customerService.isWxworkKefu();
+ },
showWeappSystemKefu() {
const customerService = createCustomerService(this);
return customerService.shouldShowExtraWeappSystemKefu();