anxiaoxia 3 tygodni temu
rodzic
commit
021c69653a
1 zmienionych plików z 21 dodań i 4 usunięć
  1. 21 4
      src/views/envmonitor/taiguv1/index.vue

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

@@ -20,8 +20,6 @@
         <div class="content">
             <div class="metting-info">
                 <div
-                    @touchstart="startPressLogo"
-                    @touchend="endPressLogo"
                 >
                     <img
                         class="logo"
@@ -34,6 +32,16 @@
                     class="name"
                 >{{ roomInfo.name }}</div>
                 <div class="location">38/F</div>
+                <div
+                     v-if="roomInfo.id == 'room9'"
+                    @touchstart="startPressLogo"
+                    @touchend="endPressLogo"
+                >
+                    <img
+                        class="logo"
+                        :src="roomInfo.icon"
+                    />
+                </div>
             </div>
 
             <div class="language-box">
@@ -47,6 +55,14 @@
                     {{ 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
@@ -63,6 +79,7 @@
                     <span>{{ $t(`mode.${item.chineseName}`) }}</span>
                 </div>
             </div>
+
             <!-- 环境参数 -->
             <div class="env-box">
                 <img
@@ -310,7 +327,7 @@ const store = useStore()
 
 onMounted(async () => {
     console.log('========重新执行了');
-    
+
     //   TODO: 切换语言
     type.value = localStorage.getItem('lang') || 'zh-CN'
     locale.value = type.value
@@ -489,7 +506,7 @@ const getLampScenceControlGroupId = () => {
         category: 'SELTLG'
     }
     findForServe(params).then(res => {
-        lampScenceControlGroup.value.id = res.data[0]?.id
+        lampScenceControlGroup.value.id = res.data[0] ?.id
     })
 }