From 1d11357e7d8d3b352838472eac048944238987a7 Mon Sep 17 00:00:00 2001 From: zoujing Date: Tue, 26 May 2026 13:03:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=80=E4=BA=9B=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E7=BB=9F=E4=B8=80=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constant/local.js | 14 ++++++++++++++ src/pages/ChatMain/ChatGuide/index.vue | 3 ++- src/pages/ChatMain/ChatInputArea/index.vue | 5 ++--- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 src/constant/local.js diff --git a/src/constant/local.js b/src/constant/local.js new file mode 100644 index 0000000..3cd1365 --- /dev/null +++ b/src/constant/local.js @@ -0,0 +1,14 @@ +import { getCurrentConfig, currentClientType, ClientType } from "@/constant/base"; +/// 根据不同的端配置不同的文案等常量 + +export const chatInputPlaceholder = () => { + const config = getCurrentConfig(); + return `快告诉${config.name}您在想什么~`; +} + +export const chatGuideSubTitle = () => { + if (currentClientType() === ClientType.XIAOQI) { + return "这里什么都没有哦"; + } + return "陪您畅玩小七孔"; +} \ No newline at end of file diff --git a/src/pages/ChatMain/ChatGuide/index.vue b/src/pages/ChatMain/ChatGuide/index.vue index 978fac6..917b7b6 100644 --- a/src/pages/ChatMain/ChatGuide/index.vue +++ b/src/pages/ChatMain/ChatGuide/index.vue @@ -17,6 +17,7 @@ diff --git a/src/pages/ChatMain/ChatInputArea/index.vue b/src/pages/ChatMain/ChatInputArea/index.vue index 9dab1c0..b9d1e1b 100644 --- a/src/pages/ChatMain/ChatInputArea/index.vue +++ b/src/pages/ChatMain/ChatInputArea/index.vue @@ -119,7 +119,7 @@