Browse Source

生物安防

xsh 3 years ago
parent
commit
ff310a1d7a
1 changed files with 12 additions and 7 deletions
  1. 12 7
      src/views/MainLayout.vue

+ 12 - 7
src/views/MainLayout.vue

@@ -33,13 +33,13 @@
       <i class="maxTem" v-if="alarm.maxTem" @click="openShow(0)"></i>
       <i class="minTem" v-if="alarm.minTem" @click="openShow(1)"></i>
       <template v-if="Object.keys(weatherInfo).length > 0">
-        <i class="shan" v-if="weatherInfo[0].type_name.indexOf('电') != -1" @click="openShow(2)"></i>
-        <i class="wu" v-if="weatherInfo[0].type_name.indexOf('雾') != -1" @click="openShow(2)"></i>
-        <i class="hanchao" v-if="weatherInfo[0].type_name.indexOf('寒潮') != -1" @click="openShow(2)"></i>
-        <i class="taifeng" v-if="weatherInfo[0].type_name.indexOf('台风') != -1" @click="openShow(2)"></i>
-        <i class="dafeng" style="width: 24px; height: 24px" v-if="weatherInfo[0].type_name.indexOf('大风') != -1" @click="openShow(2)"></i>
-        <i class="byu" style="width: 24px; height: 24px" v-if="weatherInfo[0].type_name.indexOf('暴雨') != -1" @click="openShow(2)"></i>
-        <i class="bxue" style="width: 24px; height: 24px" v-if="weatherInfo[0].type_name.indexOf('暴雪') != -1" @click="openShow(2)"></i>
+        <i class="shan minSize" v-if="weatherInfo[0].type_name.indexOf('电') != -1" @click="openShow(2)"></i>
+        <i class="wu minSize" v-if="weatherInfo[0].type_name.indexOf('雾') != -1" @click="openShow(2)"></i>
+        <i class="hanchao minSize" v-if="weatherInfo[0].type_name.indexOf('寒潮') != -1" @click="openShow(2)"></i>
+        <i class="taifeng minSize" v-if="weatherInfo[0].type_name.indexOf('台风') != -1" @click="openShow(2)"></i>
+        <i class="dafeng minSize"  v-if="weatherInfo[0].type_name.indexOf('大风') != -1" @click="openShow(2)"></i>
+        <i class="byu minSize" v-if="weatherInfo[0].type_name.indexOf('暴雨') != -1" @click="openShow(2)"></i>
+        <i class="bxue minSize" v-if="weatherInfo[0].type_name.indexOf('暴雪') != -1" @click="openShow(2)"></i>
       </template>
     </div>
     <div class="time" v-show="isHome">{{currentTime}}</div>
@@ -844,4 +844,9 @@ export default {
     margin-top: 0;
     margin-bottom: 10px;
   }
+  .minSize {
+    width: 24px;
+    height: 24px;
+    cursor: pointer;
+  }
 </style>