From 0ab342328331679e55ca8dc4c123bf6a2778870a Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 7 Apr 2023 14:43:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fengdu/AppMine/myIntegral.vue | 36 +++++++++++++++++------ 1 file changed, 27 insertions(+), 9 deletions(-) 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() + } }