三分梦_0bc3

关注

前端工作总结248-uni-预加载问题

三分梦_0bc3

关注

阅读 106

2022-09-17

<u-loadmore :status="status" />

onReachBottom() {
console.log('触底~~~~')
if (this.pageNo >= this.pages){
this.status = 'nomore';
return;
}
this.status = 'loading';
this.pageNo = ++this.pageNo;
setTimeout(() => {
this.getData()
if (this.pageNo >= this.pages) {
this.status = 'nomore';
} else {
this.status = 'loading';
}
}, 2000)
}

相关推荐

IT程序员

前端工作总结249-uni-关闭onshow的加载方法uni.hideLoading

IT程序员 130 0 0

seuleyang

前端工作总结259-uni--菜单页面

seuleyang 202 0 0

圣杰

前端工作总结285-uni-ele-el-table修改宽度问题

圣杰 81 0 0

梅梅的时光

前端工作总结247-uni-拼接解决下拉刷新问题

梅梅的时光 139 0 0

爱做梦的夏夏

前端工作总结238-uni-设置请求参数

爱做梦的夏夏 36 0 0

年夜雪

前端工作总结240-uni-时间戳处理

年夜雪 124 0 0

Python百事通

前端工作总结241-uni-状态不同选择

Python百事通 145 0 0

暮晨夜雪

前端工作总结251-uni-获取时间参数

暮晨夜雪 172 0 0

草原小黄河

前端工作总结198-$router问题

草原小黄河 82 0 0

想溜了的蜗牛

前端工作总结236-uni-数据格式处理

想溜了的蜗牛 141 0 0

精彩评论(0)

0 0 举报