bug
This commit is contained in:
@@ -138,16 +138,8 @@ export default {
|
|||||||
this.current = 1;
|
this.current = 1;
|
||||||
document.title = "通知公告";
|
document.title = "通知公告";
|
||||||
this.$dict.load("announcementStatus");
|
this.$dict.load("announcementStatus");
|
||||||
this.injectJWeixin(['sendChatMessage']).then(() => {
|
this.injectJWeixin(['sendChatMessage'])
|
||||||
this.getList();
|
this.getList();
|
||||||
})
|
|
||||||
|
|
||||||
uni.$on('refresh', () => {
|
|
||||||
this.current = 1
|
|
||||||
this.status = '加载更多'
|
|
||||||
|
|
||||||
this.getList()
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
@@ -213,13 +205,13 @@ export default {
|
|||||||
this.show = true;
|
this.show = true;
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/apps/AppNotification/detail?id=" + this.detail.id + "&flag=" + true
|
url: "./detail?id=" + this.detail.id + "&flag=" + true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/apps/AppNotification/add"
|
url: "./add"
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
change(val) {
|
change(val) {
|
||||||
|
|||||||
@@ -177,7 +177,6 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$u.toast(status == 1 ? "发布成功" : "保存成功");
|
this.$u.toast(status == 1 ? "发布成功" : "保存成功");
|
||||||
uni.$emit('refresh')
|
|
||||||
uni.navigateBack({})
|
uni.navigateBack({})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -73,10 +73,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.injectJWeixin(['sendChatMessage']).then(() => {
|
this.$loading()
|
||||||
this.$loading()
|
this.getDetail()
|
||||||
this.getDetail()
|
this.injectJWeixin(['previewFile'])
|
||||||
})
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
Reference in New Issue
Block a user