This commit is contained in:
yanran200730
2022-08-18 15:34:54 +08:00
parent 938fdc57d8
commit 044f0e32ff
3 changed files with 7 additions and 17 deletions

View File

@@ -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) {

View File

@@ -177,7 +177,6 @@ export default {
}).then(res => {
if (res.code == 0) {
this.$u.toast(status == 1 ? "发布成功" : "保存成功");
uni.$emit('refresh')
uni.navigateBack({})
}
})

View File

@@ -73,10 +73,9 @@ export default {
},
created() {
this.injectJWeixin(['sendChatMessage']).then(() => {
this.$loading()
this.getDetail()
})
this.$loading()
this.getDetail()
this.injectJWeixin(['previewFile'])
},
onShow() {