Fix:5954 【商城小程序】进入趣游页面时会短暂出现“暂无数据”后才加载出内容
This commit is contained in:
@@ -114,7 +114,8 @@
|
||||
<view class="icon-box"><u-icon name="arrow-rightward" color="#fff" size="8"></u-icon></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="v4-nodata" v-if="townList.length === 0">
|
||||
<goo-skeleton v-if="!townLoaded" :show-avatar="false"/>
|
||||
<view class="v4-nodata" v-else-if="townList.length === 0">
|
||||
<image src="@/static/images/img_nodata.png" mode="scaleToFill"/>
|
||||
<view class="text">暂无数据</view>
|
||||
</view>
|
||||
@@ -203,6 +204,7 @@ export default {
|
||||
isNext: false,
|
||||
townConfig: {},
|
||||
townList: [],
|
||||
townLoaded: false,
|
||||
randomSeed: null,
|
||||
hotelBanner: [],
|
||||
goodCityId: '',
|
||||
@@ -519,6 +521,8 @@ export default {
|
||||
}
|
||||
getAncientTownList(params).then(res => {
|
||||
this.townList = res.data.records
|
||||
}).finally(() => {
|
||||
this.townLoaded = true
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user