feat: 快速预定栏调整

This commit is contained in:
2025-09-25 18:47:12 +08:00
parent 48a07c64d5
commit ab88cf6067
2 changed files with 28 additions and 29 deletions

View File

@@ -3,29 +3,6 @@ import DHWQ from "@/pages/login/images/dhwq.png";
import TM from "@/pages/login/images/tm.png";
import WSMM from "@/pages/login/images/wsmm.png";
/// 客户端类型
export const ClientType = {
// 智念
ZHINIAN: "ZHINIAN",
// 朵花
DUOHUA: "DUOHUA",
// 天沐
TIANMU: "TIANMU",
};
/// 获取当前客户端类型
export const currentClientType = (name) => {
switch (name) {
case '智念':
return ClientType.ZHINIAN;
case '朵花':
return ClientType.DUOHUA;
case '天沐':
return ClientType.TIANMU;
default:
return ClientType.ZHINIAN;
}
};
/**
* 客户端配置管理模块
@@ -63,12 +40,34 @@ const processConfigs = (configs) => {
export const CLIENT_CONFIGS = processConfigs(rawConfigs);
// 获取当前用户端配置
export const getCurrentConfig = () => CLIENT_CONFIGS.duohua;
export const getCurrentConfig = () => CLIENT_CONFIGS.tianmu;
export const clientId = getCurrentConfig().clientId;
export const appId = getCurrentConfig().appId;
/// 客户端类型
export const ClientType = {
// 智念
ZHINIAN: "ZHINIAN",
// 朵花
DUOHUA: "DUOHUA",
// 天沐
TIANMU: "TIANMU",
};
/// 获取当前客户端类型
export const currentClientType = () => {
switch (getCurrentConfig().name) {
case '智念':
return ClientType.ZHINIAN;
case '朵花':
return ClientType.DUOHUA;
case '天沐':
return ClientType.TIANMU;
default:
return ClientType.ZHINIAN;
}
};
// 环境配置 - 智念客户端使用测试环境,其他客户端使用生产环境
export const isProd = currentClientType(getCurrentConfig().name) !== ClientType.ZHINIAN;
export const isProd = currentClientType() !== ClientType.ZHINIAN;

View File

@@ -39,7 +39,7 @@ onMounted(() => {
const initData = () => {
itemList.value =
currentClientType === ClientType.TIANMU
currentClientType() === ClientType.TIANMU
? [
{
icon: "https://oss.nianxx.cn/mp/static/quick/quick_icon_yuding.png",