优化公告显示

This commit is contained in:
java110 2022-01-04 15:54:36 +08:00
parent 0165443216
commit e6640da31a
2 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,8 @@
data() { data() {
return { return {
notice: {}, notice: {},
noticeId: '' noticeId: '',
communityId:''
}; };
}, },
@ -41,6 +42,7 @@
context.onLoad(options); context.onLoad(options);
let _noticeId = options.noticeId; let _noticeId = options.noticeId;
this.noticeId = _noticeId; this.noticeId = _noticeId;
this.communityId = options.communityId;
this._loadNoticeDetail(); this._loadNoticeDetail();
}, },
onShow: function() { onShow: function() {
@ -52,7 +54,6 @@
_loadNoticeDetail: function() { _loadNoticeDetail: function() {
let that = this; let that = this;
that.communityId = context.getUserInfo().communityId;
context.request({ context.request({
header: context.getHeaders(), header: context.getHeaders(),
url: constant.url.GetNoticeListUrl, url: constant.url.GetNoticeListUrl,

View File

@ -104,7 +104,7 @@
gotoDetail: function(_notice) { gotoDetail: function(_notice) {
let that = this; let that = this;
this.vc.navigateTo({ this.vc.navigateTo({
url: "/pages/notice/detail/detail?noticeId=" + _notice.noticeId url: "/pages/notice/detail/detail?noticeId=" + _notice.noticeId+"&communityId="+that.communityId
}); });
}, },
} }