From 899430f4cd14ca8f7b3daccd60b45e1f82adcee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Thu, 24 Feb 2022 17:21:32 +0800 Subject: [PATCH] 27610 --- src/mods/AppIntegralApply/AppIntegralApply.vue | 2 +- src/mods/AppIntegralApply/add.vue | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/mods/AppIntegralApply/AppIntegralApply.vue b/src/mods/AppIntegralApply/AppIntegralApply.vue index d093235..23a4092 100644 --- a/src/mods/AppIntegralApply/AppIntegralApply.vue +++ b/src/mods/AppIntegralApply/AppIntegralApply.vue @@ -86,7 +86,7 @@ export default { this.getList() }) }, - onshow() { + onShow() { uni.$on('updateList', () => { this.current = 1 this.getList() diff --git a/src/mods/AppIntegralApply/add.vue b/src/mods/AppIntegralApply/add.vue index 12152bf..340498c 100644 --- a/src/mods/AppIntegralApply/add.vue +++ b/src/mods/AppIntegralApply/add.vue @@ -76,8 +76,6 @@ export default { }) }, onShow() {}, - - mounted() {}, methods: { submit() { if (this.flag) return @@ -119,7 +117,6 @@ export default { }) .then((res) => { if (res.code == 0) { - this.flag = false this.$u.toast('提交成功') uni.$emit('updateList') setTimeout(() => { @@ -128,10 +125,8 @@ export default { } }) .catch(() => { - this.$u.toast('提交失败') - }) - .finally(() => { this.flag = false + this.$u.toast('提交失败') }) } })