<view class="cu-load loading" v-show="loading"></view>
<view class="cu-load" v-show="nomore">
<text class="text-center text-gray text-sm">没有更多数据</text>
</view>
onReachBottom() {
this.loading = true;
this.nomore = false;
if (timer != null) {
clearTimeout(timer);
}
timer = setTimeout(() => {
this.pageNum++;
this.getlist(this.id);
}, 1000);
},
getlist执行完了没有数据显示没有更多数据这个div,,但是页面不会直接展示出来,,非要向下滑动一下才会显示,请问这个怎么解决
0 个回复