mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
优化代码
This commit is contained in:
parent
783d6b0aa3
commit
84eabb958a
@ -113,13 +113,13 @@ export function getOwnerCommunitys(dataObj) {
|
|||||||
return new Promise(
|
return new Promise(
|
||||||
(resolve, reject) => {
|
(resolve, reject) => {
|
||||||
request({
|
request({
|
||||||
url: url.listCommunitys,
|
url: url.ownerCommunity,
|
||||||
method: "GET",
|
method: "GET",
|
||||||
data: dataObj,
|
data: dataObj,
|
||||||
//动态数据
|
//动态数据
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
let _communtiys = res.data.communitys;
|
let _communtiys = res.data.data;
|
||||||
resolve(_communitys);
|
resolve(_communitys);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -136,6 +136,8 @@ export default {
|
|||||||
listRoomFee: baseUrl + "callComponent/listRoomFee/list",
|
listRoomFee: baseUrl + "callComponent/listRoomFee/list",
|
||||||
queryOwnerAccount: baseUrl + "app/account/queryOwnerAccount",
|
queryOwnerAccount: baseUrl + "app/account/queryOwnerAccount",
|
||||||
queryOwnerAccountDetail: baseUrl + "app/account/queryOwnerAccountDetail",
|
queryOwnerAccountDetail: baseUrl + "app/account/queryOwnerAccountDetail",
|
||||||
|
ownerCommunity: baseUrl + "app/owner.ownerCommunity",
|
||||||
|
|
||||||
|
|
||||||
NEED_NOT_LOGIN_PAGE: [
|
NEED_NOT_LOGIN_PAGE: [
|
||||||
'/pages/login/login',
|
'/pages/login/login',
|
||||||
|
|||||||
@ -47,6 +47,7 @@
|
|||||||
},
|
},
|
||||||
_doChangeCommunity: function(_community) {
|
_doChangeCommunity: function(_community) {
|
||||||
uni.setStorageSync(mapping.CURRENT_COMMUNITY_INFO, JSON.stringify(_community));
|
uni.setStorageSync(mapping.CURRENT_COMMUNITY_INFO, JSON.stringify(_community));
|
||||||
|
wx.setStorageSync(mapping.OWNER_INFO, _community);
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user