forked from drone/command-center-dashboard

张含笑
2025-04-12 0f2e9f548f1ca150c612834d5e96cabdadced2ab
src/components/CommonWeather.vue
@@ -6,7 +6,7 @@
         <img src="@/assets/images/home/homeLeft/tq.png" alt="" />
         <span class="tq">{{ weather }}</span>
         <span class="tq">风速:{{ windVelocity }} </span>
         <span v-if="flylevel > 6" :class="[isFly === '建议飞行' ? 'qk' : isFly === '禁止飞行' ? 'redqk' : 'yellowqk']">{{
         <span v-if="flylevel >= 5" :class="[isFly === '适合飞行' ? 'qk' : isFly === '禁止飞行' ? 'redqk' : 'yellowqk']">{{
            isFly
         }}</span>
      </div>
@@ -37,7 +37,9 @@
      weather.value = res.data.data.weather
      isFly.value = res.data.data.flightAdvice
      windVelocity.value = res.data.data.windPower
      flylevel.value = res.data.data.adcode.length
      flylevel.value = res.data.data.adcode.replace(/0+$/, "").length
   })
}
@@ -57,13 +59,14 @@
<style scoped lang="scss">
.time-weather {
   margin-left: 45px;
   width: 350px;
   // width: 350px;
   font-size: 14px;
   height: 36px;
   line-height: 36px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   color: #e7f5ff;
   .line {
      border: 1px solid #ffffff;
      height: 10px;
@@ -76,7 +79,6 @@
      }
      .tq {
         margin: 0 5px;
         color: #e7f5ff;
      }
      .qk {
         margin-left: 5px;