From 0f2e9f548f1ca150c612834d5e96cabdadced2ab Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Sat, 12 Apr 2025 16:35:11 +0800
Subject: [PATCH] feat: 飞行建议
---
src/components/CommonWeather.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/components/CommonWeather.vue b/src/components/CommonWeather.vue
index 7a28ab6..473e729 100644
--- a/src/components/CommonWeather.vue
+++ b/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 >= 5" :class="[isFly === '建议飞行' ? 'qk' : isFly === '禁止飞行' ? 'redqk' : 'yellowqk']">{{
+ <span v-if="flylevel >= 5" :class="[isFly === '适合飞行' ? 'qk' : isFly === '禁止飞行' ? 'redqk' : 'yellowqk']">{{
isFly
}}</span>
</div>
@@ -37,8 +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.replace(/0+$/, "")
+ flylevel.value = res.data.data.adcode.replace(/0+$/, "").length
+
})
}
@@ -58,7 +59,7 @@
<style scoped lang="scss">
.time-weather {
margin-left: 45px;
- width: 350px;
+ // width: 350px;
font-size: 14px;
height: 36px;
line-height: 36px;
--
Gitblit v1.9.3