diff --git a/src/mods/AppCreditPoints/AppCreditPoints.vue b/src/mods/AppCreditPoints/AppCreditPoints.vue index ff877bf..bb3c1a4 100644 --- a/src/mods/AppCreditPoints/AppCreditPoints.vue +++ b/src/mods/AppCreditPoints/AppCreditPoints.vue @@ -121,9 +121,9 @@ export default { // 积分明细列表 getList() { // var url = `/app/appvillagerintegraldetail/IntegralList?residentId=00255e188d1225f3fe022cb4eed44a84&type=${this.tabIndex}¤t=${this.current}&size=10` //积分明细 - var url = `/app/appvillagerintegraldetail/IntegralList?residentId=${this.user.residentId}&type=${this.tabIndex}¤t=${this.current}&size=10` //积分明细 + let url = `/app/appvillagerintegraldetail/IntegralList?residentId=${this.user.residentId}&type=${this.tabIndex}¤t=${this.current}&size=10` //积分明细 this.$instance.post(url).then(res => { - if (res.code === 0) { + if (res?.data) { if (this.current > res.data.pages) { return } @@ -134,8 +134,10 @@ export default { }, onReachBottom() { if (!this.showDetail) return - this.current = this.current + 1; - this.getList() + if (this.list.length < 50) { + this.current++; + this.getList() + } }, }