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 @@