|
|
@ -38,9 +38,6 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
|
|
|
this.getImgList(); |
|
|
|
|
|
}, |
|
|
|
|
|
// 下拉刷新 |
|
|
// 下拉刷新 |
|
|
onPullDownRefresh() { |
|
|
onPullDownRefresh() { |
|
|
//TODO 此處待優化 |
|
|
//TODO 此處待優化 |
|
|
@ -52,7 +49,6 @@ |
|
|
}, |
|
|
}, |
|
|
// 上划加载更多 |
|
|
// 上划加载更多 |
|
|
onReachBottom() { |
|
|
onReachBottom() { |
|
|
console.log(2222) |
|
|
|
|
|
if (this.imgList.length > 3) { |
|
|
if (this.imgList.length > 3) { |
|
|
this.pageNum += 1 |
|
|
this.pageNum += 1 |
|
|
this.getImgList() |
|
|
this.getImgList() |
|
|
@ -67,10 +63,7 @@ |
|
|
pageSize: this.pageSize |
|
|
pageSize: this.pageSize |
|
|
}) |
|
|
}) |
|
|
if (res.data.code === 200) { |
|
|
if (res.data.code === 200) { |
|
|
console.log('res',res) |
|
|
this.imgList.push(...res.data.rows) |
|
|
for (let i = 0; i < res.data.rows.length; i++) { |
|
|
|
|
|
this.imgList = res.data.rows |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: res.data.msg, |
|
|
title: res.data.msg, |
|
|
|