diff --git a/src/apps/AppResidentActivitie/Add.vue b/src/apps/AppResidentActivitie/Add.vue index d371382a..5a6e5e28 100644 --- a/src/apps/AppResidentActivitie/Add.vue +++ b/src/apps/AppResidentActivitie/Add.vue @@ -20,8 +20,7 @@
- - +
@@ -94,7 +93,7 @@ export default { second: false, timestamp: true, }, - isShow: false + isShow: false, } }, computed: { ...mapState(['user']) }, @@ -107,7 +106,7 @@ export default { this.getDetail() }) - if(!o.id) { + if (!o.id) { this.isShow = true } if (!this.indexDetail) { @@ -196,7 +195,11 @@ export default { if (res.code == 0) { this.flag = false this.$u.toast('发布成功') - uni.$emit('updateList') + if (!this.indexDetail) { + uni.$emit('updateList') + } else { + uni.$emit('updateGetDetail') + } setTimeout(() => { uni.navigateBack() }, 600) @@ -257,7 +260,7 @@ export default { height: 112px; line-height: 112px; overflow: hidden; - text-overflow:ellipsis; + text-overflow: ellipsis; white-space: nowrap; color: #303133 !important; font-size: 30px; diff --git a/src/apps/AppResidentActivitie/Detail.vue b/src/apps/AppResidentActivitie/Detail.vue index f99d1a00..99843039 100644 --- a/src/apps/AppResidentActivitie/Detail.vue +++ b/src/apps/AppResidentActivitie/Detail.vue @@ -143,13 +143,16 @@ export default { this.$dict.load(['villageActivityStatus']).then(() => { this.getDetail() }) - - uni.$on('refresh', () => { - this.getListInit() - }) }, onShow() { document.title = '活动详情' + uni.$on('refresh', () => { + this.getListInit() + }) + + uni.$on('updateGetDetail', () => { + this.getDetail() + }) }, methods: { getDetail() {