Commit a8a6e640 by 李伟康

commit

1 parent 7ea18f29
......@@ -412,16 +412,12 @@ export default {
onReachBottom () {
let { total, pageNum, list } = this
this.$refs.scrollView.loading = false
if (list.length == total) {
if (list.length == total || Math.ceil(total / 10) < pageNum) {
this.$refs.scrollView.finished = true
return
}
if (Math.ceil(total / 10) > pageNum) {
this.pageNum = pageNum + 1
this.getList()
} else {
this.$refs.scrollView.finished = true
}
this.pageNum = pageNum + 1
this.getList()
},
scan () {
// let resultStr = 't=2&c=3483845737948516352'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!