|
@@ -15,14 +15,19 @@
|
|
|
></video>
|
|
|
<div
|
|
|
class="video-model"
|
|
|
- v-if="roomInfo.id != 'room9' && roomInfo.id != 'room8' && roomInfo.id != 'room7'"
|
|
|
+ v-if="roomInfo.id != 'room9' && roomInfo.id != 'room8' && roomInfo.id != 'room7'&& roomInfo.id != 'room10'"
|
|
|
></div>
|
|
|
<div class="content">
|
|
|
<div class="metting-info">
|
|
|
- <img
|
|
|
- class="logo"
|
|
|
- :src="roomInfo.icon"
|
|
|
- />
|
|
|
+ <div
|
|
|
+ @touchstart="startPressLogo"
|
|
|
+ @touchend="endPressLogo"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ class="logo"
|
|
|
+ :src="roomInfo.icon"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<div
|
|
|
@touchstart="startPress"
|
|
|
@touchend="endPress"
|
|
@@ -128,7 +133,10 @@
|
|
|
class="fotter"
|
|
|
:class="airIsOpen ? 'small' : 'fotter'"
|
|
|
>
|
|
|
- <div class="box" v-if="screenEquipList?.length">
|
|
|
+ <div
|
|
|
+ class="box"
|
|
|
+ v-if="screenEquipList?.length"
|
|
|
+ >
|
|
|
<Screen
|
|
|
:roomInfo="roomInfo"
|
|
|
:screenStatus="screenStatus"
|
|
@@ -136,7 +144,10 @@
|
|
|
></Screen>
|
|
|
</div>
|
|
|
<!--设备-->
|
|
|
- <div class="box" v-if="audioEquipList?.length">
|
|
|
+ <div
|
|
|
+ class="box"
|
|
|
+ v-if="audioEquipList?.length"
|
|
|
+ >
|
|
|
<Volumn
|
|
|
:audioStatus="audioStatus"
|
|
|
:equipList="audioEquipList"
|
|
@@ -178,6 +189,10 @@
|
|
|
teleport="#app"
|
|
|
>
|
|
|
<div>
|
|
|
+ <RoomMore
|
|
|
+ v-if="popupType == 'roomMore'"
|
|
|
+ :FORUMArr="FORUMArr"
|
|
|
+ ></RoomMore>
|
|
|
<LightMore
|
|
|
v-if="popupType == 'lamp'"
|
|
|
:equipList="lampEquipList"
|
|
@@ -208,9 +223,10 @@ import CurtainMore from './components/Curtain/CurtainMore.vue'
|
|
|
import Curtain from './components/Curtain/index.vue'
|
|
|
import Lamp from './components/Lamp/index.vue'
|
|
|
import LightMore from './components/Lamp/LightMore.vue'
|
|
|
+import RoomMore from './components/RoomMore/index.vue'
|
|
|
import Screen from './components/Screen/index.vue'
|
|
|
import Volumn from './components/Volumn/index.vue'
|
|
|
-import { ENV_CONFIG, lanageArr, roomSourceData } from './const'
|
|
|
+import { ENV_CONFIG, FORUMArr, lanageArr, roomSourceData } from './const'
|
|
|
|
|
|
const boxLine = require('@/assets/taiguv1/svg/box_line.png')
|
|
|
// import "vue3-video-play/dist/style.css";
|
|
@@ -468,7 +484,7 @@ const getLampScenceControlGroupId = () => {
|
|
|
category: 'SELTLG'
|
|
|
}
|
|
|
findForServe(params).then(res => {
|
|
|
- lampScenceControlGroup.value.id = res.data[0]?.id
|
|
|
+ lampScenceControlGroup.value.id = res.data[0] ?.id
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -652,6 +668,39 @@ const handleError = error => {
|
|
|
router.push('/error')
|
|
|
}
|
|
|
|
|
|
+//TODO: 8*************长按出培训室空间切换*************
|
|
|
+// 添加长按相关变量
|
|
|
+const pressTimerLogo = ref(null);
|
|
|
+const pressDurationLogo = 1000 * 10; // 长按时间阈值(10秒)
|
|
|
+
|
|
|
+// 开始按压图标
|
|
|
+const startPressLogo = () => {
|
|
|
+ const validIds = ['room7', 'room8', 'room9', 'room10'];
|
|
|
+ if (validIds.includes(roomInfo.value.id)) {
|
|
|
+ pressTimerLogo.value = setTimeout(() => {
|
|
|
+ // 设置popupType为roomMore
|
|
|
+ popupType.value = 'roomMore';
|
|
|
+ // 打开弹窗
|
|
|
+ isPopup.value = true;
|
|
|
+ }, pressDurationLogo);
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+// 结束按压图标
|
|
|
+const endPressLogo = () => {
|
|
|
+ if (pressTimerLogo.value) {
|
|
|
+ clearTimeout(pressTimerLogo.value);
|
|
|
+ pressTimerLogo.value = null;
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+// 在组件卸载时清理定时器
|
|
|
+onUnmounted(() => {
|
|
|
+ if (pressTimerLogo.value) {
|
|
|
+ clearTimeout(pressTimerLogo.value);
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
//TODO: 8*************长按刷新*************
|
|
|
|
|
|
// 添加长按相关变量
|