diff --git a/api/community/communityApi.js b/api/community/communityApi.js index f154e79..3864a20 100755 --- a/api/community/communityApi.js +++ b/api/community/communityApi.js @@ -113,13 +113,13 @@ export function getOwnerCommunitys(dataObj) { return new Promise( (resolve, reject) => { request({ - url: url.listCommunitys, + url: url.ownerCommunity, method: "GET", data: dataObj, //动态数据 success: function(res) { if (res.statusCode == 200) { - let _communtiys = res.data.communitys; + let _communtiys = res.data.data; resolve(_communitys); } }, diff --git a/constant/url.js b/constant/url.js index 24ef3aa..2d34534 100755 --- a/constant/url.js +++ b/constant/url.js @@ -136,6 +136,8 @@ export default { listRoomFee: baseUrl + "callComponent/listRoomFee/list", queryOwnerAccount: baseUrl + "app/account/queryOwnerAccount", queryOwnerAccountDetail: baseUrl + "app/account/queryOwnerAccountDetail", + ownerCommunity: baseUrl + "app/owner.ownerCommunity", + NEED_NOT_LOGIN_PAGE: [ '/pages/login/login', diff --git a/pages/changeOwnerCommunity/changeOwnerCommunity.vue b/pages/changeOwnerCommunity/changeOwnerCommunity.vue index 7eed462..29c4c10 100644 --- a/pages/changeOwnerCommunity/changeOwnerCommunity.vue +++ b/pages/changeOwnerCommunity/changeOwnerCommunity.vue @@ -47,6 +47,7 @@ }, _doChangeCommunity: function(_community) { uni.setStorageSync(mapping.CURRENT_COMMUNITY_INFO, JSON.stringify(_community)); + wx.setStorageSync(mapping.OWNER_INFO, _community); uni.navigateBack({ delta: 1 })