优化公告显示

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() {
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,

View File

@ -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
});
},
}