success: function(res) {
let goodslist = that.data.page == 1 ? [] : that.data.goodslist;
let page = res.data.result.length <= 0 ? that.data.page : ++that.data.page;
goodslist.push(...res.data.result)
that.setData({
goodslist,
page
})
}
onReachBottom() {
this.loadingData();
},
转载于:https://www.cnblogs.com/Glant/p/11126505.html