Commit a8a6e640 by 李伟康

commit

1 parent 7ea18f29
...@@ -412,16 +412,12 @@ export default { ...@@ -412,16 +412,12 @@ export default {
onReachBottom () { onReachBottom () {
let { total, pageNum, list } = this let { total, pageNum, list } = this
this.$refs.scrollView.loading = false this.$refs.scrollView.loading = false
if (list.length == total) { if (list.length == total || Math.ceil(total / 10) < pageNum) {
this.$refs.scrollView.finished = true this.$refs.scrollView.finished = true
return return
} }
if (Math.ceil(total / 10) > pageNum) { this.pageNum = pageNum + 1
this.pageNum = pageNum + 1 this.getList()
this.getList()
} else {
this.$refs.scrollView.finished = true
}
}, },
scan () { scan () {
// let resultStr = 't=2&c=3483845737948516352' // 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!