mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化代码
This commit is contained in:
parent
783d6b0aa3
commit
84eabb958a
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user