Commit f4572d82 by 李伟康

修复分页BUG

1 parent 70d0fea6
...@@ -148,6 +148,7 @@ export default { ...@@ -148,6 +148,7 @@ export default {
this.hideLoading() this.hideLoading()
} }
this.flag = true this.flag = true
this.$refs.scrollView.loading = false
}, },
handleViewImage (i) { handleViewImage (i) {
this.paperInfo = i this.paperInfo = i
...@@ -185,14 +186,17 @@ export default { ...@@ -185,14 +186,17 @@ export default {
let { total, params: { pageNum }, list, $refs: { let { total, params: { pageNum }, list, $refs: {
scrollView scrollView
} } = this } } = this
scrollView.loading = false scrollView.loading = true
if (list.length == total) { if (list.length == total) {
return scrollView.finished = true return scrollView.finished = true
} }
if (Math.ceil(total / 10) > pageNum) { if (Math.ceil(total / 10) > pageNum) {
this.params.pageNum = pageNum + 1 this.params.pageNum = pageNum + 1
this.getActivityReportLogList() this.getActivityReportLogList()
} else scrollView.finished = true } else {
scrollView.finished = true
scrollView.loading = false
}
}, },
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!