mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-11 14:17:25 +08:00
调整首页 小区文化加载
This commit is contained in:
parent
15d4861559
commit
03162f245e
@ -130,7 +130,23 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function(options) {
|
||||
let _that = this;
|
||||
console.log(context);
|
||||
context.getOwner(function (_owner) {
|
||||
let _communityId = '';
|
||||
if (_owner == null) {
|
||||
_communityId = '7020181217000001'
|
||||
} else {
|
||||
_communityId = _owner.communityId;
|
||||
}
|
||||
_that.setData({
|
||||
communityId: _communityId
|
||||
});
|
||||
|
||||
//查询小区文化
|
||||
_that._loadActivites();
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
@ -150,23 +166,6 @@ Page({
|
||||
location: wx.getStorageSync('location')
|
||||
});
|
||||
_that._judgeBindOwner();
|
||||
|
||||
context.getOwner(function (_owner) {
|
||||
let _communityId = '';
|
||||
if(_owner == null ){
|
||||
_communityId = '7020181217000001'
|
||||
}else{
|
||||
_communityId = _owner.communityId;
|
||||
}
|
||||
_that.setData({
|
||||
communityId: _communityId
|
||||
});
|
||||
|
||||
//查询小区文化
|
||||
_that._loadActivites();
|
||||
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
_judgeBindOwner:function(){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user