YaolongHan 4 년 전
부모
커밋
7c062311ee
1개의 변경된 파일21개의 추가작업 그리고 0개의 파일을 삭제
  1. 21 0
      src/App.vue

+ 21 - 0
src/App.vue

@@ -58,6 +58,18 @@ export default {
       });
     },
     getMap() {
+             //如果项目为 南昌八一路 长春重庆路 青岛台东路 则不走楼层缓存接口
+        // if(this.plazaIds == "1001064" || this.plazaIds == "1001065" || this.plazaIds == "1001066"){
+        //     let arr = ["b2","b1","f1","f2","f3","f4","f5","f6","g80"];
+        //     setFloor({ plazaId: this.plazaIds }, arr)
+        //     .then(res => {
+        //       console.log("缓存楼层", res);
+        //     })
+        //     .catch(error => {
+        //       console.log("缓存楼层", error);
+        //     });
+        //     return
+        //   }
       window.fengmapData = new SFengParser(
         `fengMap${this.id}`,
         `${this.mapServerURL}/fmap/${this.fmapID}`,
@@ -82,6 +94,15 @@ export default {
         if (dataArr.length) {
           //如果项目为 南昌八一路 长春重庆路 青岛台东路 则不走楼层缓存接口
           if(this.plazaIds == "1001064" || this.plazaIds == "1001065" || this.plazaIds == "1001066"){
+            let arr = ["b2","b1","f1","f2","f3","f4","f5","f6","g80"];
+            alert('12313')
+            setFloor({ plazaId: this.plazaIds }, arr)
+            .then(res => {
+              console.log("缓存楼层", res);
+            })
+            .catch(error => {
+              console.log("缓存楼层", error);
+            });
             return
           }
           setFloor({ plazaId: this.plazaIds }, dataArr)