From 4d0cece6f88fa97f5e299dc450d4707d3eec534e Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 18 Jan 2022 09:51:17 +0800
Subject: [PATCH] +
---
src/components/mobileLeftNav/index.vue | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/src/components/mobileLeftNav/index.vue b/src/components/mobileLeftNav/index.vue
index 4b94b26..768b558 100644
--- a/src/components/mobileLeftNav/index.vue
+++ b/src/components/mobileLeftNav/index.vue
@@ -169,6 +169,7 @@
this.$store.commit("MSET_ICONHIDE", !isif);
},
leftNavClick(item) {
+ // console.log(123132);
//判断并关闭已开启标签
let lnd = this.leftNavData;
for (let k in lnd) {
@@ -190,7 +191,7 @@
item.img = item.checked;
this[item.layer].show = true;
// console.log("飞入");
- this.flyTo(item);
+ // this.flyTo(item);
this.$store.dispatch("closeMobileWindowsDom"); //关闭弹窗
} else {
item.img = item.normal;
@@ -203,8 +204,16 @@
// console.log(posi);
let lntLat =
that.dimensionData.pitch == -45
- ? [posi.lng + 0.00917, posi.lat - 0.0188, 2100]
- : [posi.lng + 0.00917, posi.lat - 0.0038, 2400];
+ ? [posi.lng + 0.00917, posi.lat - 0.0188, 500]
+ : [posi.lng + 0.01197, posi.lat - 0.00055, 500];
+ // that.mviewer.camera.flyTo({
+ // destination: Cesium.Cartesian3.fromDegrees(
+ // lntLat[0],
+ // lntLat[1],
+ // lntLat[2]
+ // ),
+ // });
+ // return;
this.$store.dispatch("mapFlyTo", {
//飞入
lntLat: lntLat,
@@ -356,6 +365,7 @@
video: data[k].videourl || "",
from: "labels",
introduce: data[k].introduce,
+ panoramaurl: data[k].panoramaurl,
};
// 定制化窗体
that.openPopupS(
@@ -400,7 +410,7 @@
};
</script>
-<style scoped lang='scss'>
+<style scoped lang="scss">
.m-left-nav {
position: fixed;
bottom: 30px;
--
Gitblit v1.9.3