From 3631ece69a516efb9376b27203dea9870fcdf375 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 28 十月 2024 14:19:13 +0800 Subject: [PATCH] 业务场景 默认值,高亮当前选 --- src/components/chat/components/playBar/PlayBar.vue | 12 ++++++------ src/stores/chatRoom.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/chat/components/playBar/PlayBar.vue b/src/components/chat/components/playBar/PlayBar.vue index 9d22026..21e61fd 100644 --- a/src/components/chat/components/playBar/PlayBar.vue +++ b/src/components/chat/components/playBar/PlayBar.vue @@ -1,10 +1,11 @@ <template> - <div class="playInput hl_input rounded-b-[22px] input-border input-shadow" :class="{ 'rounded-t-[22px]': !currentGroupTypeIsShow }"> + <div class="playInput hl_input rounded-[22px] input-border input-shadow" > <!-- 搴旂敤鍦烘櫙 --> - <div v-if="!currentGroupTypeIsShow" class="application-scenarios absolute bottom-[114%] left-4"> + <div class="application-scenarios absolute bottom-[114%] left-4"> <div class="flex-items-center space-x-2"> <div - class="border border-gray-400 border-solid h-8 flex-items-center px-3 py-2 rounded-2xl cursor-pointer space-x-1 hover:bg-[#c5e0ff] hover:text-[#1c86ff]" + class="border border-gray-400 border-solid h-8 flex-items-center px-3 py-2 rounded-2xl cursor-pointer space-x-1 hover:bg-[#cae3ff]" + :class="{ 'bg-[#c5e0ff]': activeGroupType === item, '!text-[#1c86ff]': activeGroupType === item }" v-for="item in groupTypeList" @click="groupTypeClick(item)" > @@ -14,8 +15,7 @@ </div> </div> <!-- 褰撳墠搴旂敤鍦烘櫙 --> - <div - v-else + <!-- <div class="bg-[#f9fafb] rounded-t-[22px] absolute bottom-[100%] left-0 w-full input-border h-11 flex-items-center justify-between text-[14px]" style="padding: 4px 4px 4px 18px; border-bottom: none" > @@ -29,7 +29,7 @@ class="ywifont ywicon-guanbi mr-3 rounded-sm p-1 hover:bg-[#eaebec] cursor-pointer" ></span> </el-tooltip> - </div> + </div> --> <div class="assembly flex"> <el-button title="鎻掍欢鑿滃崟" class="label flex items-center cursor-pointer" link> <img src="/static/images/wave/PlugIn.png" class="set-icon box-border" /> diff --git a/src/stores/chatRoom.ts b/src/stores/chatRoom.ts index 31f8d3b..278d76b 100644 --- a/src/stores/chatRoom.ts +++ b/src/stores/chatRoom.ts @@ -54,7 +54,7 @@ /** @description 褰撳墠鑱婂ぉ瀹� groupType */ export const activeGroupType = computed({ get: () => { - const result = getRoomConfig(activeRoomId.value, 'activeGroupType'); + const result = getRoomConfig(activeRoomId.value, 'activeGroupType') ??'涓氬姟鍦烘櫙'; return result; }, set: (value) => { -- Gitblit v1.9.3