diff --git a/client-configs.json b/client-configs.json index adde700..e69aa7b 100644 --- a/client-configs.json +++ b/client-configs.json @@ -3,19 +3,7 @@ "clientId": "6", "appId": "wx5e79df5996572539", "name": "智念", - "placeholder": "快告诉智念您在想什么~", - "loginDesc": "您好,欢迎来到智念科技", "logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png", - "ipLargeImage": "https://oss.nianxx.cn/mp/static/version_101/zn/zn_large.png", - "ipLargeImageWidth": 395, - "ipLargeImageHeight": 335, - "ipLargeTotalFrames": 71, - "ipLargeColumns": 1, - "ipSmallImage": "https://oss.nianxx.cn/mp/static/version_101/dh/dh_small.png", - "ipSmallImageWidth": 128, - "ipSmallImageHeight": 128, - "ipSmallTotalFrames": 117, - "ipSmallColumns": 1, "theme": { "theme-color-800": "#0B7034", "theme-color-700": "#0B5C2D", @@ -28,19 +16,7 @@ "clientId": "11", "appId": "wx6fcf7b3db3deee6c", "name": "智念助手", - "placeholder": "快告诉智念助手您在想什么~", - "loginDesc": "您好,欢迎来到智念科技", "logo": "https://one-feel-config-images-bucket.oss-cn-chengdu.aliyuncs.com/znjqzs.png", - "ipLargeImage": "https://oss.nianxx.cn/mp/static/version_101/zn/zn_large.png", - "ipLargeImageWidth": 395, - "ipLargeImageHeight": 335, - "ipLargeTotalFrames": 71, - "ipLargeColumns": 1, - "ipSmallImage": "https://oss.nianxx.cn/mp/static/version_101/dh/dh_small.png", - "ipSmallImageWidth": 128, - "ipSmallImageHeight": 128, - "ipSmallTotalFrames": 117, - "ipSmallColumns": 1, "theme": { "theme-color-800": "#174BB6", "theme-color-700": "#145EE1", @@ -53,19 +29,7 @@ "clientId": "2", "appId": "wx23f86d809ae80259", "name": "朵朵", - "placeholder": "快告诉朵朵您在想什么~", - "loginDesc": "您好,欢迎来到朵花温泉", "logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png", - "ipLargeImage": "https://oss.nianxx.cn/mp/static/version_101/dh/dh_large.png", - "ipLargeImageWidth": 263, - "ipLargeImageHeight": 210, - "ipLargeTotalFrames": 147, - "ipLargeColumns": 1, - "ipSmallImage": "https://oss.nianxx.cn/mp/static/version_101/dh/dh_small.png", - "ipSmallImageWidth": 128, - "ipSmallImageHeight": 128, - "ipSmallTotalFrames": 117, - "ipSmallColumns": 1, "theme": { "theme-color-800": "#0B7034", "theme-color-700": "#0B5C2D", @@ -78,19 +42,7 @@ "clientId": "4", "appId": "wx0be424e1d22065a9", "name": "沐沐", - "placeholder": "快告诉沐沐您在想什么~", - "loginDesc": "您好,欢迎来到天沐温泉", "logo": "https://oss.nianxx.cn/mp/static/version_101/login/tm_logo.png", - "ipLargeImage": "https://oss.nianxx.cn/mp/static/version_101/tm/tm_large.png", - "ipLargeImageWidth": 395, - "ipLargeImageHeight": 335, - "ipLargeTotalFrames": 71, - "ipLargeColumns": 1, - "ipSmallImage": "https://oss.nianxx.cn/mp/static/version_101/tm/tm_small.png", - "ipSmallImageWidth": 128, - "ipSmallImageHeight": 128, - "ipSmallTotalFrames": 148, - "ipSmallColumns": 1, "theme": { "theme-color-800": "#174BB6", "theme-color-700": "#145EE1", diff --git a/scripts/README-update-appid.md b/scripts/README-update-appid.md index 2a02b6c..f4fa113 100644 --- a/scripts/README-update-appid.md +++ b/scripts/README-update-appid.md @@ -19,24 +19,18 @@ "clientId": "2", "appId": "wx5e79df5996572539", "name": "智念", - "placeholder": "快告诉智念您在想什么~", - "loginDesc": "您好,欢迎来到智念科技", "logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png" }, "duohua": { "clientId": "2", "appId": "wx23f86d809ae80259", "name": "朵花", - "placeholder": "快告诉朵朵您在想什么~", - "loginDesc": "您好,欢迎来到朵花温泉", "logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png" }, "tianmu": { "clientId": "4", "appId": "wx0be424e1d22065a9", "name": "天沐", - "placeholder": "快告诉沐沐您在想什么~", - "loginDesc": "您好,欢迎来到天沐温泉", "logo": "https://oss.nianxx.cn/mp/static/version_101/login/tm_logo.png" } } @@ -161,8 +155,6 @@ A: 在 `client-configs.json` 中添加新的客户端配置: "clientId": "客户端ID", "appId": "微信小程序AppID", "name": "客户端显示名称", - "placeholder": "输入框占位符文本", - "loginDesc": "登录页面描述文本", "logo": "@/pages/login/images/logo.png", } ``` diff --git a/src/pages/ChatMain/ChatInputArea/index.vue b/src/pages/ChatMain/ChatInputArea/index.vue index 6eaf4e8..d90861e 100644 --- a/src/pages/ChatMain/ChatInputArea/index.vue +++ b/src/pages/ChatMain/ChatInputArea/index.vue @@ -97,7 +97,10 @@ const emit = defineEmits([ const textareaRef = ref(null); const recordingWaveBtnRef = ref(null); -const placeholder = computed(() => getCurrentConfig().placeholder); +const placeholder = computed(() => { + const config = getCurrentConfig(); + return `快告诉${config.name}您在想什么~`; +}); const inputMessage = ref(props.modelValue || ""); const isFocused = ref(false); const keyboardHeight = ref(0); diff --git a/src/pages/ChatMain/ChatTopWelcome/index.vue b/src/pages/ChatMain/ChatTopWelcome/index.vue index 200b823..b1dd5a8 100644 --- a/src/pages/ChatMain/ChatTopWelcome/index.vue +++ b/src/pages/ChatMain/ChatTopWelcome/index.vue @@ -52,16 +52,14 @@ const initPageImages = computed(() => { return props.mainPageDataModel?.initPageImages || {}; }); -const config = getCurrentConfig(); - const spriteStyle = computed(() => { const images = initPageImages.value; return { - ipLargeImage: images.ipLargeImage ?? config.ipLargeImage, - frameWidth: images.ipLargeImageWidth ?? config.ipLargeImageWidth, - frameHeight: images.ipLargeImageHeight ?? config.ipLargeImageHeight, - totalFrames: images.ipLargeTotalFrames ?? config.ipLargeTotalFrames, - columns: images.ipLargeColumns ?? config.ipLargeColumns, + ipLargeImage: images.ipLargeImage, + frameWidth: images.ipLargeImageWidth, + frameHeight: images.ipLargeImageHeight, + totalFrames: images.ipLargeTotalFrames, + columns: images.ipLargeColumns, displayWidth: 158, }; });