From c4625401128aaf386ecc142b703682c3c835066b Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 25 May 2022 18:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppCreditPoints/components/sysUserIntegral.vue | 5 ++--- src/apps/AppCreditPoints/giveIntegral.vue | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/apps/AppCreditPoints/components/sysUserIntegral.vue b/src/apps/AppCreditPoints/components/sysUserIntegral.vue index 7df2030c..a1608233 100644 --- a/src/apps/AppCreditPoints/components/sysUserIntegral.vue +++ b/src/apps/AppCreditPoints/components/sysUserIntegral.vue @@ -46,14 +46,13 @@ export default { }, created() { this.getInfo() - uni.$on("onShow", () => { - this.getInfo(); - }) uni.$on("reachBottom", () => { this.current++; this.getInfo() }) uni.$on('updateIntegral', () => { + this.current = 1 + this.list = [] this.getInfo() }) }, diff --git a/src/apps/AppCreditPoints/giveIntegral.vue b/src/apps/AppCreditPoints/giveIntegral.vue index 0817cf38..79378924 100644 --- a/src/apps/AppCreditPoints/giveIntegral.vue +++ b/src/apps/AppCreditPoints/giveIntegral.vue @@ -74,6 +74,9 @@ export default { this.flag = false this.$u.toast(res.msg) } + }).catch((err) => { + this.flag = false + this.$u.toast(err) }) }, handleSelectUser(v) {