From 0d1999e55320c23c989c5bfb5bd9dbed32f861b1 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 9 Aug 2022 09:51:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppCreditPoints/AppGridIntegral.vue | 24 +++++--------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/apps/AppCreditPoints/AppGridIntegral.vue b/src/apps/AppCreditPoints/AppGridIntegral.vue index 5616eb56..8db22282 100644 --- a/src/apps/AppCreditPoints/AppGridIntegral.vue +++ b/src/apps/AppCreditPoints/AppGridIntegral.vue @@ -44,23 +44,14 @@ export default { }, created() { this.getInfo() - uni.$on("reachBottom2", () => { - this.current++; - this.getInfo() - }) - uni.$on('updateIntegral', () => { - this.current = 1 - this.list = [] - this.getInfo() - }) }, methods: { // 积分排行 getInfo() { - let {current, user: {id: userId}, info: {details}} = this + let {current, info: {details}} = this if (!details?.pages || current <= details.pages) { - this.$http.post('/app/appvillagerintegraldetail/sysUserIntegralList', null, { - params: {userId, current, size: 10} + this.$http.post('/app/appintegraluser/appGirdIntegral', null, { + params: {current, size: 10} }).then(res => { if (res?.data) { this.info = res.data @@ -69,13 +60,10 @@ export default { }) } }, - gotoGive() { - uni.navigateTo({url: "./giveIntegral"}) - } }, - destroyed() { - uni.$off("reachBottom2") - uni.$off("onShow") + onReachBottom() { + this.current++ + this.getInfo() } }