anxiaoxia hace 3 semanas
padre
commit
686b4c3664
Se han modificado 1 ficheros con 4 adiciones y 22 borrados
  1. 4 22
      src/views/envmonitor/taiguv1/index.vue

+ 4 - 22
src/views/envmonitor/taiguv1/index.vue

@@ -20,6 +20,8 @@
         <div class="content">
             <div class="metting-info">
                 <div
+                    @touchstart="startPressLogo"
+                    @touchend="endPressLogo"
                 >
                     <img
                         class="logo"
@@ -32,17 +34,6 @@
                     class="name"
                 >{{ roomInfo.name }}</div>
                 <div class="location">38/F</div>
-                <div
-                     v-if="roomInfo.id == 'room9' || roomInfo.id == 'room8' || roomInfo.id == 'room7' "
-                    class="logo-box"
-                    @touchstart="startPressLogo"
-                    @touchend="endPressLogo"
-                >
-                    <img
-                        class="logo"
-                        :src="roomInfo.icon"
-                    />
-                </div>
             </div>
 
             <div class="language-box">
@@ -56,14 +47,6 @@
                     {{ item.text }}
                 </div>
             </div>
-
-            <div
-              v-if="roomInfo.id == 'room9'"
-                style="width:50px;height:50px;background-color: red;margin-top:100px"
-                @touchstart="startPressLogo"
-                @touchend="endPressLogo"
-            ></div>
-
             <!-- 场景类型 -->
             <div class="mode-box">
                 <div
@@ -80,7 +63,6 @@
                     <span>{{ $t(`mode.${item.chineseName}`) }}</span>
                 </div>
             </div>
-
             <!-- 环境参数 -->
             <div class="env-box">
                 <img
@@ -328,7 +310,7 @@ const store = useStore()
 
 onMounted(async () => {
     console.log('========重新执行了');
-
+    
     //   TODO: 切换语言
     type.value = localStorage.getItem('lang') || 'zh-CN'
     locale.value = type.value
@@ -507,7 +489,7 @@ const getLampScenceControlGroupId = () => {
         category: 'SELTLG'
     }
     findForServe(params).then(res => {
-        lampScenceControlGroup.value.id = res.data[0] ?.id
+        lampScenceControlGroup.value.id = res.data[0]?.id
     })
 }