diff --git a/components/navigation/navigationBar.vue b/components/navigation/navigationBar.vue index 1173686..750dbbc 100644 --- a/components/navigation/navigationBar.vue +++ b/components/navigation/navigationBar.vue @@ -31,6 +31,10 @@ type: String, default: '#fff' }, + navigatePath: { + type: String, + default: '000' + }, }, data() { return { @@ -40,8 +44,8 @@ methods: { back() { console.log('返回'); - if (this.title == '通告详情') { - this.$emit('goIndex') + if (this.navigatePath != '000') { + this.$tab.navigateTo(this.navigatePath) } else { uni.navigateBack() } diff --git a/pages/notice/detail.vue b/pages/notice/detail.vue index 3e413ab..460b8c5 100644 --- a/pages/notice/detail.vue +++ b/pages/notice/detail.vue @@ -1,6 +1,6 @@