diff --git a/src/project/fengdu/AppMine/myIntegral.vue b/src/project/fengdu/AppMine/myIntegral.vue index f2fe142..607abc7 100644 --- a/src/project/fengdu/AppMine/myIntegral.vue +++ b/src/project/fengdu/AppMine/myIntegral.vue @@ -3,17 +3,17 @@
-

4233

+

{{info.integral || '0'}}

积分总额

-
{{ info['家庭积分'] || '0' }}
+
{{ info.serialNo || '0'}}
积分排行
-
{{ info['剩余总分'] || '0' }}
+
{{ info.totalIntegral|| '0'}}
历史累计获取
@@ -22,10 +22,10 @@
-

{{ item.residentName + ':' }}{{ item.eventDesc }}

+

{{ item.integralRuleName + ':' }}{{ item.eventDesc }}

   {{ item.doTime }}
-
+
{{ (item.integralCalcType == 1 ? '+' : '-') + item.changeIntegral }}
@@ -49,12 +49,19 @@ export default { } }, mounted() { - this.getList() + this.getToatl() }, methods: { - getList() {// 积分明细列表 - let url = `/app/appvillagerintegraldetail/IntegralList?residentId=${this.user.residentId}&queryType=0¤t=${this.current}&size=10` //积分明细 - this.$instance.post(url).then(res => { + getToatl() { + this.$instance.post(`/app/appintegraluser/integralUserInfoFD`).then(res => { + if (res?.data) { + this.info = res.data + this.getList() + } + }) + }, + getList() { + this.$instance.post(`/app/appintegraldetail/list?integralUserId=${this.info.id}¤t=${this.current}&size=10`).then(res => { if (res?.data) { if (this.current > res.data.pages) { return @@ -64,6 +71,10 @@ export default { }) }, }, + onReachBottom() { + this.current++ + this.getList() + } }