Commit 25048958 authored by xiejb's avatar xiejb

客户商品 更多加载问题

parent 250ab639
...@@ -225,6 +225,7 @@ export default { ...@@ -225,6 +225,7 @@ export default {
} else { } else {
// 加载成功后下一页自增1 // 加载成功后下一页自增1
_this.currentPage++ _this.currentPage++
_this.finished = false
} }
} else { } else {
_this.$toast(rt.msg) _this.$toast(rt.msg)
......
...@@ -240,11 +240,12 @@ export default { ...@@ -240,11 +240,12 @@ export default {
// 重置加载更多提示 // 重置加载更多提示
_this.loading = false _this.loading = false
// 若当前加载的页数没有满足每页的数量代表完全加载 // 若当前加载的页数没有满足每页的数量代表完全加载
if (rt.data.length < 10) { if (rt.data.length < _this.pageSize) {
_this.finished = true _this.finished = true
} else { } else {
// 加载成功后下一页自增1 // 加载成功后下一页自增1
_this.currentPage++ _this.currentPage++
_this.finished = false
} }
} else { } else {
_this.$toast(rt.msg) _this.$toast(rt.msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment