上拉加载:判断是否还有下一页数据
// 上拉加载
onReachBottom(){
// 判断是否还有下一页数据
if(this.queryObj.pagenum*this.queryObj.pagesize > this.total){
return uni.$showMsg('数据加载完毕!')
}
// 判断是否正在请求其它数据,如果是,则不发起额外请求
if(this.isLoding) return
// 先让页码自增加1
this.queryObj.pagenum++
this.getGoodsList()
}