Merge branch 'main' of https://gitlab.guxuan.icu/Leo_Ding/JinShan_uniapp
This commit is contained in:
commit
d710c820a7
@ -39,7 +39,7 @@
|
||||
<view class="weather-content">
|
||||
<view class="weather-main">
|
||||
<view class="current-weather">
|
||||
<image class="weather-icon" :src="weather.weather ? getWeatherIcon(weather.weather) : '/static/imgs/weather/default.png'" mode="aspectFit"></image>
|
||||
<image class="weather-icon" :src="weather.weather ? getWeatherIcon(weather.weather) : ''" mode="aspectFit"></image>
|
||||
</image>
|
||||
<text class="current-temp">{{weather.real}}°</text>
|
||||
</view>
|
||||
@ -216,7 +216,7 @@
|
||||
};
|
||||
|
||||
// 默认图标
|
||||
const defaultIcon = '/static/imgs/weather/default.png';
|
||||
const defaultIcon = '';
|
||||
|
||||
// 遍历天气关键词,匹配最合适的图标
|
||||
for (const key in weatherMap) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user