Compare commits

..

No commits in common. "dad6a4734360624e5b7049c5d4cfb640eb9d7b25" and "f3d84c93499139b5e97abdf19e8f720277ed8818" have entirely different histories.

3 changed files with 27 additions and 83 deletions

View File

@ -3,7 +3,6 @@ import DHWQ from "@/pages/login/images/dhwq.png";
import TM from "@/pages/login/images/tm.png"; import TM from "@/pages/login/images/tm.png";
import WSMM from "@/pages/login/images/wsmm.png"; import WSMM from "@/pages/login/images/wsmm.png";
/** /**
* 客户端配置管理模块 * 客户端配置管理模块
* *
@ -44,30 +43,5 @@ export const getCurrentConfig = () => CLIENT_CONFIGS.tianmu;
export const clientId = getCurrentConfig().clientId; export const clientId = getCurrentConfig().clientId;
export const appId = getCurrentConfig().appId; 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() !== ClientType.ZHINIAN; export const isProd = getCurrentConfig().name !== '智念';

View File

@ -435,7 +435,6 @@ const getMainPageData = async () => {
agentId.value = res.data.agentId; agentId.value = res.data.agentId;
setTimeoutScrollToBottom(); setTimeoutScrollToBottom();
} }
appStore.setSceneId(""); // sceneId,
}; };
/// ============================= /// =============================

View File

@ -24,7 +24,6 @@
<script setup> <script setup>
import { onMounted, ref } from "vue"; import { onMounted, ref } from "vue";
import { currentClientType, ClientType } from "@/constant/base";
const itemList = ref([]); const itemList = ref([]);
const emits = defineEmits(["replySent"]); const emits = defineEmits(["replySent"]);
@ -38,35 +37,7 @@ onMounted(() => {
}); });
const initData = () => { const initData = () => {
itemList.value = itemList.value = [
currentClientType() === ClientType.TIANMU
? [
{
icon: "https://oss.nianxx.cn/mp/static/quick/quick_icon_yuding.png",
title: "快速预定",
content: "预定门票、房间、餐食",
type: "Command.quickBooking",
},
{
icon: "https://oss.nianxx.cn/mp/static/quick/quick_icon_find.png",
title: "探索发现",
content: "探索玩法、出片佳地",
type: "Command.discovery",
},
{
icon: "https://oss.nianxx.cn/mp/static/quick/quick_icon_call.png",
title: "反馈意见",
content: "有意见告诉沐沐",
type: "Command.feedbackCard",
},
{
icon: "https://oss.nianxx.cn/mp/static/quick/quick_icon_order.png",
title: "订单/工单",
content: "我的订单/工单",
type: "MyOrder",
},
]
: [
{ {
icon: "https://oss.nianxx.cn/mp/static/quick/quick_icon_yuding.png", icon: "https://oss.nianxx.cn/mp/static/quick/quick_icon_yuding.png",
title: "快速预定", title: "快速预定",