优化代码

This commit is contained in:
2025-12-24 10:08:38 +08:00
parent 03176aabdc
commit 18793b3e6d
143 changed files with 17043 additions and 10119 deletions

View File

@@ -5,7 +5,7 @@
<view @tap.stop="toChooseLocation" class="flex-y-center" slot="left">
<i class="iconfont icon-dingwei mr-sm"></i>
<view class=" max-400 ellipsis">
{{location.address ?location.address : isLoad ? '定位失败' : '定位中...'}}
{{location.address || location.city || (location.lat ? '未知地点' : (isLoad ? '定位失败' : '定位中...'))}}
</view>
</view>
</uni-nav-bar>
@@ -57,7 +57,7 @@
<view class="about-info flex-center abs" :style="{background:primaryColor}">
<image mode="aspectFill" lazy-load class="weather-img ml-sm mr-md"
:src="`${weather_img}${time_key}/${detail.weather.observe.weather_code}.png`">
</image>
</image>
</view>
</view>