优化代码
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user