From 044f0e32ffe57fba31ca84b35d3c12def772ac20 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 18 Aug 2022 15:34:54 +0800 Subject: [PATCH] bug --- .../saas/AppNotification/AppNotification.vue | 16 ++++------------ src/project/saas/AppNotification/add.vue | 1 - src/project/saas/AppNotification/detail.vue | 7 +++---- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/project/saas/AppNotification/AppNotification.vue b/src/project/saas/AppNotification/AppNotification.vue index b4396371..109911ac 100644 --- a/src/project/saas/AppNotification/AppNotification.vue +++ b/src/project/saas/AppNotification/AppNotification.vue @@ -138,16 +138,8 @@ export default { this.current = 1; document.title = "通知公告"; this.$dict.load("announcementStatus"); - this.injectJWeixin(['sendChatMessage']).then(() => { - this.getList(); - }) - - uni.$on('refresh', () => { - this.current = 1 - this.status = '加载更多' - - this.getList() - }) + this.injectJWeixin(['sendChatMessage']) + this.getList(); }, onReachBottom() { @@ -213,13 +205,13 @@ export default { this.show = true; } else { uni.navigateTo({ - url: "/apps/AppNotification/detail?id=" + this.detail.id + "&flag=" + true + url: "./detail?id=" + this.detail.id + "&flag=" + true }) } }, handleAdd() { uni.navigateTo({ - url: "/apps/AppNotification/add" + url: "./add" }) }, change(val) { diff --git a/src/project/saas/AppNotification/add.vue b/src/project/saas/AppNotification/add.vue index 36e653d6..780c7c85 100644 --- a/src/project/saas/AppNotification/add.vue +++ b/src/project/saas/AppNotification/add.vue @@ -177,7 +177,6 @@ export default { }).then(res => { if (res.code == 0) { this.$u.toast(status == 1 ? "发布成功" : "保存成功"); - uni.$emit('refresh') uni.navigateBack({}) } }) diff --git a/src/project/saas/AppNotification/detail.vue b/src/project/saas/AppNotification/detail.vue index c750364e..bfab8971 100644 --- a/src/project/saas/AppNotification/detail.vue +++ b/src/project/saas/AppNotification/detail.vue @@ -73,10 +73,9 @@ export default { }, created() { - this.injectJWeixin(['sendChatMessage']).then(() => { - this.$loading() - this.getDetail() - }) + this.$loading() + this.getDetail() + this.injectJWeixin(['previewFile']) }, onShow() {