diff --git a/constant/base.js b/constant/base.js index 49d47e8..ec472ef 100644 --- a/constant/base.js +++ b/constant/base.js @@ -1,28 +1,42 @@ +import DH from "@/pages/login/images/dh.png"; +import DHWQ from "@/pages/login/images/dhwq.png"; +import TM from "@/pages/login/images/tm.png"; +import WSMM from "@/pages/login/images/wsmm.png"; + // 小程序特有相关: 同时更改manifest.json和 project.config.json文件中的appid; // 所有用户端的配置 export const CLIENT_CONFIGS = { // 智念用户端 zhinian: { - clientId: '2', - appId: 'wx5e79df5996572539' + clientId: "2", + appId: "wx5e79df5996572539", + placeholder: "快告诉智念您再想什么~", + loginDesc: "您好,欢迎来到智念科技", + logo: DH, + subLogo: DHWQ, }, // 朵花用户端 duohua: { - clientId: '2', - appId: 'wx23f86d809ae80259' + clientId: "2", + appId: "wx23f86d809ae80259", + placeholder: "快告诉朵朵您再想什么~", + loginDesc: "您好,欢迎来到朵花温泉", + logo: DH, + subLogo: DHWQ, }, // 天沐用户端 tianmu: { - clientId: '4', - appId: 'wx0be424e1d22065a9' - } + clientId: "4", + appId: "wx0be424e1d22065a9", + placeholder: "快告诉沐沐您再想什么~", + loginDesc: "您好,欢迎来到天沐温泉", + logo: TM, + subLogo: WSMM, + }, }; // 获取当前用户端配置 -const getCurrentConfig = () => { - return CLIENT_CONFIGS.zhinian; -}; +export const getCurrentConfig = () => CLIENT_CONFIGS.tianmu; export const clientId = getCurrentConfig().clientId; export const appId = getCurrentConfig().appId; - diff --git a/manifest.json b/manifest.json index 424edf2..10087de 100644 --- a/manifest.json +++ b/manifest.json @@ -1,105 +1,105 @@ { - "name": "YGTianmuCS", - "appid": "__UNI__BB03E8A", - "description": "", - "versionName": "1.0.0", - "versionCode": "100", - "transformPx": false, - /* 5+App特有相关 */ - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 + "name" : "YGTianmuCS", + "appid" : "__UNI__BB03E8A", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + "safearea" : { + "bottom" : { + "offset" : "auto" // 自动适配安全区域 + } + }, + /* 模块配置 */ + "modules" : {}, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : { + "oauth" : {} + } + } }, - "safearea": { - "bottom": { - "offset": "auto" // 自动适配安全区域 - } - }, - /* 模块配置 */ - "modules": {}, - /* 应用发布信息 */ - "distribute": { - /* android打包配置 */ - "android": { - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios": {}, - /* SDK配置 */ - "sdkConfigs": { - "oauth": {} - } - } - }, - /* 快应用特有相关 */ - "quickapp": {}, - /* 小程序特有相关 同时更改 project.config.json文件 + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 同时更改 project.config.json文件 智念:wx5e79df5996572539 朵花:wx23f86d809ae80259 */ - "mp-weixin": { - "appid": "wx5e79df5996572539", - "setting": { - "urlCheck": false + "mp-weixin" : { + "appid" : "wx0be424e1d22065a9", + "setting" : { + "urlCheck" : false + }, + "usingComponents" : true, + "requiredPrivateInfos" : [ "getLocation" ], + "permission" : { + "scope.userLocation" : { + "desc" : "用于获取当前所在城市信息" + } + }, + "plugins" : { + "WechatSI" : { + "version" : "0.3.6", + "provider" : "wx069ba97219f66d99" + } + }, + "__usePrivacyCheck__" : true }, - "usingComponents": true, - "requiredPrivateInfos": ["getLocation"], - "permission": { - "scope.userLocation": { - "desc": "用于获取当前所在城市信息" - } + "mp-alipay" : { + "usingComponents" : true }, - "plugins": { - "WechatSI": { - "version": "0.3.6", - "provider": "wx069ba97219f66d99" - } + "mp-baidu" : { + "usingComponents" : true }, - "__usePrivacyCheck__": true - }, - "mp-alipay": { - "usingComponents": true - }, - "mp-baidu": { - "usingComponents": true - }, - "mp-toutiao": { - "usingComponents": true, - "usePrivacyCheck": true - }, - "uniStatistics": { - "enable": false - }, - "vueVersion": "3", - "h5": { - "router": { - "base": "./", - "mode": "hash" + "mp-toutiao" : { + "usingComponents" : true, + "usePrivacyCheck" : true }, - "devServer": { - "https": false + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "3", + "h5" : { + "router" : { + "base" : "./", + "mode" : "hash" + }, + "devServer" : { + "https" : false + } } - } } diff --git a/pages/chat/ChatInputArea.vue b/pages/chat/ChatInputArea.vue index e71e0cd..edf381e 100644 --- a/pages/chat/ChatInputArea.vue +++ b/pages/chat/ChatInputArea.vue @@ -60,8 +60,9 @@