From e6640da31acd03c6d72c91e3d13e9a3fda3b8cb2 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 4 Jan 2022 15:54:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=AC=E5=91=8A=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/notice/detail/detail.vue | 5 +++-- pages/notice/index.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/notice/detail/detail.vue b/pages/notice/detail/detail.vue index 42af2fb..a5b70a6 100755 --- a/pages/notice/detail/detail.vue +++ b/pages/notice/detail/detail.vue @@ -31,7 +31,8 @@ data() { return { notice: {}, - noticeId: '' + noticeId: '', + communityId:'' }; }, @@ -41,6 +42,7 @@ context.onLoad(options); let _noticeId = options.noticeId; this.noticeId = _noticeId; + this.communityId = options.communityId; this._loadNoticeDetail(); }, onShow: function() { @@ -52,7 +54,6 @@ _loadNoticeDetail: function() { let that = this; - that.communityId = context.getUserInfo().communityId; context.request({ header: context.getHeaders(), url: constant.url.GetNoticeListUrl, diff --git a/pages/notice/index.vue b/pages/notice/index.vue index c37674a..e8f723a 100755 --- a/pages/notice/index.vue +++ b/pages/notice/index.vue @@ -104,7 +104,7 @@ gotoDetail: function(_notice) { let that = this; this.vc.navigateTo({ - url: "/pages/notice/detail/detail?noticeId=" + _notice.noticeId + url: "/pages/notice/detail/detail?noticeId=" + _notice.noticeId+"&communityId="+that.communityId }); }, }