From 2a77cc82340d6f040ca2a3ed4a77c08bc8e9069b Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 31 Mar 2023 10:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=88=97=E8=A1=A8=E9=A1=B5?= =?UTF-8?q?=E9=9C=80=E6=9B=B4=E6=96=B0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../conv/AppPhotoReport/AppPhotoReport.vue | 18 ++++++------------ .../fengdu/AppPhotoReport/AppPhotoReport.vue | 18 ++++++------------ 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/src/mods/conv/AppPhotoReport/AppPhotoReport.vue b/src/mods/conv/AppPhotoReport/AppPhotoReport.vue index a365e13..f01b8af 100644 --- a/src/mods/conv/AppPhotoReport/AppPhotoReport.vue +++ b/src/mods/conv/AppPhotoReport/AppPhotoReport.vue @@ -61,20 +61,15 @@ export default { ...mapState(['user']) }, + onShow() { + this.current = 1 + this.isMore = false + this.getList() + }, onLoad() { this.$loading() - this.$dict.load(['clapEventStatus']).then(() => { - this.getList() - }) - - uni.$on('update', () => { - this.current = 1 - this.isMore = false - - this.getList() - }) + this.$dict.load(['clapEventStatus']) }, - methods: { toReport() { this.$linkTo('./PhotoForm') @@ -137,7 +132,6 @@ export default { }).catch(() => 0) } }, - onReachBottom() { this.getList() } diff --git a/src/project/fengdu/AppPhotoReport/AppPhotoReport.vue b/src/project/fengdu/AppPhotoReport/AppPhotoReport.vue index 2a9a3d3..a6404c1 100644 --- a/src/project/fengdu/AppPhotoReport/AppPhotoReport.vue +++ b/src/project/fengdu/AppPhotoReport/AppPhotoReport.vue @@ -61,20 +61,15 @@ export default { ...mapState(['user']) }, + onShow() { + this.current = 1 + this.isMore = false + this.getList() + }, onLoad() { this.$loading() - this.$dict.load(['clapEventStatus']).then(() => { - this.getList() - }) - - uni.$on('update', () => { - this.current = 1 - this.isMore = false - - this.getList() - }) + this.$dict.load(['clapEventStatus']) }, - methods: { toReport() { this.$linkTo('./PhotoForm') @@ -137,7 +132,6 @@ export default { }).catch(() => 0) } }, - onReachBottom() { this.getList() }