天气 Fix

This commit is contained in:
底层用户 2022-07-08 09:42:15 +08:00
parent d95b2708c3
commit 7803016119
2 changed files with 5 additions and 5 deletions

View File

@ -189,9 +189,9 @@
<div class="weather">
<span id="city_text">天气</span>&nbsp;
<span id="wea_text">加载失败</span>&nbsp;
<span id="tem_text">*</span>°C&nbsp;
<span id="win_text"></span>
<span id="win_speed">*</span>
<span id="tem_text"></span>
<span id="win_text">次数</span>
<span id="win_speed">超限</span>
</div>
</div>
</div>

View File

@ -174,9 +174,9 @@ function getWeather() {
.then(response => response.json())
.then(weather => {
$('#wea_text').html(weather.now.text)
$('#tem_text').html(weather.now.temp)
$('#tem_text').html(weather.now.temp+"°C&nbsp;")
$('#win_text').html(weather.now.windDir)
$('#win_speed').html(weather.now.windScale)
$('#win_speed').html(weather.now.windScale+"级")
})
})
})