Commit f4572d82 by 李伟康

修复分页BUG

1 parent 70d0fea6
......@@ -148,6 +148,7 @@ export default {
this.hideLoading()
}
this.flag = true
this.$refs.scrollView.loading = false
},
handleViewImage (i) {
this.paperInfo = i
......@@ -185,14 +186,17 @@ export default {
let { total, params: { pageNum }, list, $refs: {
scrollView
} } = this
scrollView.loading = false
scrollView.loading = true
if (list.length == total) {
return scrollView.finished = true
}
if (Math.ceil(total / 10) > pageNum) {
this.params.pageNum = pageNum + 1
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!