feat: 移除很多启动配置项,现在不需要了

This commit is contained in:
2026-04-23 17:55:38 +08:00
parent 736c2feb4f
commit 607c09abe7
4 changed files with 9 additions and 64 deletions

View File

@@ -3,19 +3,7 @@
"clientId": "6", "clientId": "6",
"appId": "wx5e79df5996572539", "appId": "wx5e79df5996572539",
"name": "智念", "name": "智念",
"placeholder": "快告诉智念您在想什么~",
"loginDesc": "您好,欢迎来到智念科技",
"logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png", "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": {
"theme-color-800": "#0B7034", "theme-color-800": "#0B7034",
"theme-color-700": "#0B5C2D", "theme-color-700": "#0B5C2D",
@@ -28,19 +16,7 @@
"clientId": "11", "clientId": "11",
"appId": "wx6fcf7b3db3deee6c", "appId": "wx6fcf7b3db3deee6c",
"name": "智念助手", "name": "智念助手",
"placeholder": "快告诉智念助手您在想什么~",
"loginDesc": "您好,欢迎来到智念科技",
"logo": "https://one-feel-config-images-bucket.oss-cn-chengdu.aliyuncs.com/znjqzs.png", "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": {
"theme-color-800": "#174BB6", "theme-color-800": "#174BB6",
"theme-color-700": "#145EE1", "theme-color-700": "#145EE1",
@@ -53,19 +29,7 @@
"clientId": "2", "clientId": "2",
"appId": "wx23f86d809ae80259", "appId": "wx23f86d809ae80259",
"name": "朵朵", "name": "朵朵",
"placeholder": "快告诉朵朵您在想什么~",
"loginDesc": "您好,欢迎来到朵花温泉",
"logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png", "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": {
"theme-color-800": "#0B7034", "theme-color-800": "#0B7034",
"theme-color-700": "#0B5C2D", "theme-color-700": "#0B5C2D",
@@ -78,19 +42,7 @@
"clientId": "4", "clientId": "4",
"appId": "wx0be424e1d22065a9", "appId": "wx0be424e1d22065a9",
"name": "沐沐", "name": "沐沐",
"placeholder": "快告诉沐沐您在想什么~",
"loginDesc": "您好,欢迎来到天沐温泉",
"logo": "https://oss.nianxx.cn/mp/static/version_101/login/tm_logo.png", "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": {
"theme-color-800": "#174BB6", "theme-color-800": "#174BB6",
"theme-color-700": "#145EE1", "theme-color-700": "#145EE1",

View File

@@ -19,24 +19,18 @@
"clientId": "2", "clientId": "2",
"appId": "wx5e79df5996572539", "appId": "wx5e79df5996572539",
"name": "智念", "name": "智念",
"placeholder": "快告诉智念您在想什么~",
"loginDesc": "您好,欢迎来到智念科技",
"logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png" "logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png"
}, },
"duohua": { "duohua": {
"clientId": "2", "clientId": "2",
"appId": "wx23f86d809ae80259", "appId": "wx23f86d809ae80259",
"name": "朵花", "name": "朵花",
"placeholder": "快告诉朵朵您在想什么~",
"loginDesc": "您好,欢迎来到朵花温泉",
"logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png" "logo": "https://oss.nianxx.cn/mp/static/version_101/login/dh_logo.png"
}, },
"tianmu": { "tianmu": {
"clientId": "4", "clientId": "4",
"appId": "wx0be424e1d22065a9", "appId": "wx0be424e1d22065a9",
"name": "天沐", "name": "天沐",
"placeholder": "快告诉沐沐您在想什么~",
"loginDesc": "您好,欢迎来到天沐温泉",
"logo": "https://oss.nianxx.cn/mp/static/version_101/login/tm_logo.png" "logo": "https://oss.nianxx.cn/mp/static/version_101/login/tm_logo.png"
} }
} }
@@ -161,8 +155,6 @@ A: 在 `client-configs.json` 中添加新的客户端配置:
"clientId": "客户端ID", "clientId": "客户端ID",
"appId": "微信小程序AppID", "appId": "微信小程序AppID",
"name": "客户端显示名称", "name": "客户端显示名称",
"placeholder": "输入框占位符文本",
"loginDesc": "登录页面描述文本",
"logo": "@/pages/login/images/logo.png", "logo": "@/pages/login/images/logo.png",
} }
``` ```

View File

@@ -97,7 +97,10 @@ const emit = defineEmits([
const textareaRef = ref(null); const textareaRef = ref(null);
const recordingWaveBtnRef = 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 inputMessage = ref(props.modelValue || "");
const isFocused = ref(false); const isFocused = ref(false);
const keyboardHeight = ref(0); const keyboardHeight = ref(0);

View File

@@ -52,16 +52,14 @@ const initPageImages = computed(() => {
return props.mainPageDataModel?.initPageImages || {}; return props.mainPageDataModel?.initPageImages || {};
}); });
const config = getCurrentConfig();
const spriteStyle = computed(() => { const spriteStyle = computed(() => {
const images = initPageImages.value; const images = initPageImages.value;
return { return {
ipLargeImage: images.ipLargeImage ?? config.ipLargeImage, ipLargeImage: images.ipLargeImage,
frameWidth: images.ipLargeImageWidth ?? config.ipLargeImageWidth, frameWidth: images.ipLargeImageWidth,
frameHeight: images.ipLargeImageHeight ?? config.ipLargeImageHeight, frameHeight: images.ipLargeImageHeight,
totalFrames: images.ipLargeTotalFrames ?? config.ipLargeTotalFrames, totalFrames: images.ipLargeTotalFrames,
columns: images.ipLargeColumns ?? config.ipLargeColumns, columns: images.ipLargeColumns,
displayWidth: 158, displayWidth: 158,
}; };
}); });