diff --git a/components/ai-chat-message/ai-chat-message.json b/components/ai-chat-message/ai-chat-message.json deleted file mode 100644 index d806736..0000000 --- a/components/ai-chat-message/ai-chat-message.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "component": true, - "usingComponents": { - "ns-loading": "../ns-loading/ns-loading" - } -} \ No newline at end of file diff --git a/components/hover-nav/hover-nav.vue b/components/hover-nav/hover-nav.vue index 3ef65a7..ab51db7 100644 --- a/components/hover-nav/hover-nav.vue +++ b/components/hover-nav/hover-nav.vue @@ -109,6 +109,7 @@ export default { }); }, methods: { + /** * 初始化多语言配置 */ @@ -130,12 +131,14 @@ export default { this.currentLangIndex = 0; } }, + /** * 电话联系客服 */ call() { this.customerService.makePhoneCall(this.tel); }, + /** * 切换中英文语言,并刷新当前页面(保留所有参数) */ @@ -153,12 +156,12 @@ export default { openAIChat() { this.$util.redirectTo(this.$util.AI_CHAT_PAGE_URL); }, + + /** + * 打开客服选择对话框 + */ openCustomerSelectPopup() { - if (this.customerService) { - this.customerService.openCustomerSelectPopupDialog(); - } else { - uni.showToast({ title: '客服初始化中,请稍后重试', icon: 'none' }); - } + this.customerService.openCustomerSelectPopupDialog(); } } } diff --git a/components/ai-chat-message/ai-chat-message.vue b/pages_tool/ai-chat/ai-chat-message.vue similarity index 80% rename from components/ai-chat-message/ai-chat-message.vue rename to pages_tool/ai-chat/ai-chat-message.vue index c24fab4..edcf3a8 100644 --- a/components/ai-chat-message/ai-chat-message.vue +++ b/pages_tool/ai-chat/ai-chat-message.vue @@ -1,25 +1,18 @@