|
@@ -394,7 +394,7 @@ wepy.component({
|
|
|
this.foldStatus = 'fold';
|
|
|
this.canSlideExpanel = false;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
checkHasUserInfo()
|
|
|
.then(userInfo => {
|
|
|
// let companyId =
|
|
@@ -412,9 +412,9 @@ wepy.component({
|
|
|
return this.getHistorySelectedArea();
|
|
|
})
|
|
|
.then(historyArea => {
|
|
|
- let historyAreaInfo = CompanyMapData.mapInfo.find(
|
|
|
- e => e.id == historyArea.spaceId
|
|
|
- );
|
|
|
+ // let historyAreaInfo = CompanyMapData.mapInfo.find(
|
|
|
+ // e => e.id == historyArea.spaceId
|
|
|
+ // );
|
|
|
return getMapInfoHttp(this.companyId).then(res => {
|
|
|
const result = JSON.parse(res.data);
|
|
|
const httpDdata = (result && result.content) || [];
|
|
@@ -483,30 +483,30 @@ wepy.component({
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // onShow() {
|
|
|
- // const lastSearchedSpace = wx.getStorageSync('lastSearchedSpace');
|
|
|
- // // 从搜索页面返回且搜索有效
|
|
|
- // if (lastSearchedSpace) {
|
|
|
- // let area = this.mapAreasInfo.find(item => {
|
|
|
- // return item.id == lastSearchedSpace.spaceId;
|
|
|
- // });
|
|
|
- // this.foldPanelFun();
|
|
|
- // this.doSelectArea(area);
|
|
|
- // // 清空,以免每次onshow时都执行(只需在从搜索页面返回时执行)
|
|
|
- // wx.removeStorageSync('lastSearchedSpace');
|
|
|
- // }
|
|
|
- // if (this.pageHide) {
|
|
|
- // this.pageHide = false;
|
|
|
- // }
|
|
|
- // },
|
|
|
-
|
|
|
- // onHide() {
|
|
|
- // this.pageHide = true;
|
|
|
- // },
|
|
|
- // onUnload() {
|
|
|
- // this.pageHide = true;
|
|
|
- // },
|
|
|
methods: {
|
|
|
+ /**
|
|
|
+ * 查询楼层信息
|
|
|
+ */
|
|
|
+ getFloorList(flag) {
|
|
|
+ let params = {
|
|
|
+ criteria: {
|
|
|
+ projectId: projectId
|
|
|
+ }
|
|
|
+ };
|
|
|
+ getFloorList(params).then(res => {});
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 获取地图信息
|
|
|
+ */
|
|
|
+ getMapInfo() {
|
|
|
+ let params = {
|
|
|
+ projectId: 'props.projectId',
|
|
|
+ floorId: 'proxyData.floorItem.id'
|
|
|
+ };
|
|
|
+ getMapInfo(params)
|
|
|
+ .then(res => {})
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
getMapSize() {
|
|
|
getScreenInfo().then(res => {
|
|
|
this.screenScale = res.screenScale;
|