From 714ffbb8690cb4d1eea49e259da2415a3790eb26 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 23 Feb 2023 15:49:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qujing/AppMine/integralInfo.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/project/qujing/AppMine/integralInfo.vue b/src/project/qujing/AppMine/integralInfo.vue index 1bc257b..efe0345 100644 --- a/src/project/qujing/AppMine/integralInfo.vue +++ b/src/project/qujing/AppMine/integralInfo.vue @@ -4,7 +4,7 @@

我的积分

-

142

+

{{total}}

@@ -35,11 +35,13 @@ export default { }, current: 1, pages: 2, - list: [] + list: [], + total: '' } }, onLoad() { this.getList() + this.getTotal() }, methods: { getList() { @@ -50,6 +52,13 @@ export default { this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records } }) + }, + getTotal() { + this.$instance.post(`/app/appwechatuserqujing/queryUserIntegral`).then(res => { + if (res.code == 0) { + this.total = res.data.integral || 0 + } + }) } }, onReachBottom() {