onReachBottom
//上拉
onReachBottom() {
console.log("上拉")
this.page=++this.page
uni.request({
url: `${this.$api}/search/list?qq=40699904&keywords=${this.keywords}&page=${this.page}&pageSize=${this.pageSize}`,
method: 'POST',
data: {},
success: res => {
if (res.statusCode === 200) {
this.data=this.data.concat(res.data.data.rows) //数组拼接
}
},
fail: err => {},
complete: () => {}
})
}