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 class="icon-box"><u-icon name="arrow-rightward" color="#fff" size="8"></u-icon></view>
|
||||||
</view>
|
</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"/>
|
<image src="@/static/images/img_nodata.png" mode="scaleToFill"/>
|
||||||
<view class="text">暂无数据</view>
|
<view class="text">暂无数据</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -203,6 +204,7 @@ export default {
|
|||||||
isNext: false,
|
isNext: false,
|
||||||
townConfig: {},
|
townConfig: {},
|
||||||
townList: [],
|
townList: [],
|
||||||
|
townLoaded: false,
|
||||||
randomSeed: null,
|
randomSeed: null,
|
||||||
hotelBanner: [],
|
hotelBanner: [],
|
||||||
goodCityId: '',
|
goodCityId: '',
|
||||||
@@ -519,6 +521,8 @@ export default {
|
|||||||
}
|
}
|
||||||
getAncientTownList(params).then(res => {
|
getAncientTownList(params).then(res => {
|
||||||
this.townList = res.data.records
|
this.townList = res.data.records
|
||||||
|
}).finally(() => {
|
||||||
|
this.townLoaded = true
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user