BUG 28069

This commit is contained in:
aixianling
2022-03-07 11:28:33 +08:00
parent 3e61cfb498
commit 8e1fedb603

View File

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