优化代码

This commit is contained in:
wuxw 2021-11-27 01:03:01 +08:00
parent 783d6b0aa3
commit 84eabb958a
3 changed files with 5 additions and 2 deletions

View File

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

View File

@ -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',

View File

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