一般会在数据没有渲染的时候,留一个转啊转
WXML:
<!-- loading start -->
<view class="body-view">
<loading hidden="{{hidden}}">
加载中...
</loading>
</view>
<!-- / loading end -->
<!--加载更多页脚-->
<template name="loadindFooter">
<view class="loading-view" hidden="{{hideFooter}}">
<image src="../../image/loading.gif" style="height:26px;26px"/>
<text style="font-size:20px">正在加载</text>
</view>
</template>
// 判断是否还有更多数据
<!-- prompt message start -->
<text class="{{tipShow ? 'promptShow' : 'promptHide'}}">没有更多内容了</text>
<!-- / prompt message end -->
文章来源:刘俊涛的博客
地址:http://www.cnblogs.com/lovebing
欢迎关注,有问题一起学习欢迎留言、评论。