mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-11 06:07:24 +08:00
优化公告显示
This commit is contained in:
parent
0165443216
commit
e6640da31a
@ -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,
|
||||||
|
|||||||
@ -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
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user