From 3fb39294edcd16fb9a7c07e5dddb452c64c9cecd Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 17 Jan 2022 16:29:00 +0800
Subject: [PATCH] +活动加标题

---
 src/store/modules/mobile.js                    |   59 ++++++++++++++---------------
 src/components/mobileCloseRouterMany/index.vue |   21 +++++++++-
 2 files changed, 48 insertions(+), 32 deletions(-)

diff --git a/src/components/mobileCloseRouterMany/index.vue b/src/components/mobileCloseRouterMany/index.vue
index 47186ad..437269a 100644
--- a/src/components/mobileCloseRouterMany/index.vue
+++ b/src/components/mobileCloseRouterMany/index.vue
@@ -4,6 +4,15 @@
     <div
       :class="[
         'mobileCloseRouterMany',
+        'mobileCloseRouterManyupTitle',
+        isOpenDrawALineMany ? 'mobileCloseActiveMany' : '',
+      ]"
+    >
+      {{ isOpenDrawALineMany }}
+    </div>
+    <div
+      :class="[
+        'mobileCloseRouterMany',
         isOpenDrawALineMany ? 'mobileCloseActiveMany' : '',
       ]"
       @click="mobileRouterCloseMany"
@@ -34,9 +43,10 @@
     ...mapGetters(["isOpenDrawALineMany"]),
   },
   // data() {
-  //   return {
+  // return {
+  // title: "",
   //     lengthS: 0,
-  //   };
+  // };
   // },
   // watch: {
   // isOpenDrawALine() {
@@ -73,6 +83,13 @@
   width: 0;
   height: 0;
 }
+.mobileCloseRouterManyupTitle {
+  bottom: 353px !important;
+  background-color: #fff !important;
+  color: #000 !important;
+  width: auto !important;
+  padding: 0 10px;
+}
 .mobileCloseRouterMany {
   position: fixed;
   width: 105px;
diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index 979e095..01217ab 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -302,7 +302,7 @@
       const nowHeight = Math.ceil(
         state.mviewer.camera.positionCartographic.height
       );
-      console.log(data);
+      // console.log(data);
       if (state.dimension == "3D") {
         Flys = [
           +data.lntLat[0] + 0.01197,
@@ -754,33 +754,33 @@
       });
       drawALineLayer.addOverlay(polyline);
       //如果是添加  给第一个点加入图标 和事件
-      if (value[1]) {
-        let post = Str.split(";")[0].split(",");
-        let position = new global.DC.Position(post[0], post[1]);
-        let billboard = new global.DC.Billboard(
-          position,
-          "img/dingwei/dingwei4.png"
-        ); //加入绘画点
-        billboard.setStyle({
-          pixelOffset: { x: 0, y: -17 }, //偏移像素
-        });
-        //订阅事件
-        billboard.on(global.DC.MouseEventType.CLICK, (e) => {
-          // console.log(e);
-          // return;
-          // 定制化窗体
-          let position = e.position,
-            lntLat = [e.overlay._position._lng, e.overlay._position._lat];
-          let windowData = {
-            position,
-            lntLat,
-            query: { ...(value[1] || {}), position, lntLat },
-            useJWD: true, //仅使用经纬度
-          };
-          dispatch("setMobileWindows", windowData);
-        });
-        drawALineLayer.addOverlay(billboard);
-      }
+      // if (value[1]) {
+      //   let post = Str.split(";")[0].split(",");
+      //   let position = new global.DC.Position(post[0], post[1]);
+      //   let billboard = new global.DC.Billboard(
+      //     position,
+      //     "img/dingwei/dingwei4.png"
+      //   ); //加入绘画点
+      //   billboard.setStyle({
+      //     pixelOffset: { x: 0, y: -17 }, //偏移像素
+      //   });
+      //   //订阅事件
+      //   billboard.on(global.DC.MouseEventType.CLICK, (e) => {
+      //     // console.log(e);
+      //     // return;
+      //     // 定制化窗体
+      //     let position = e.position,
+      //       lntLat = [e.overlay._position._lng, e.overlay._position._lat];
+      //     let windowData = {
+      //       position,
+      //       lntLat,
+      //       query: { ...(value[1] || {}), position, lntLat },
+      //       useJWD: true, //仅使用经纬度
+      //     };
+      //     dispatch("setMobileWindows", windowData);
+      //   });
+      //   drawALineLayer.addOverlay(billboard);
+      // }
 
       state.drawALineLayer = drawALineLayer;
       state.isOpenDrawALine = true;
@@ -888,9 +888,8 @@
         drawALineLayerMany.addOverlay(Labels);
         // console.log(point[k]);
       }
-
       state.drawALineLayerMany = drawALineLayerMany;
-      state.isOpenDrawALineMany = true;
+      state.isOpenDrawALineMany = value[2].name ? value[2].name : true;
       // commit("cameraSetView", state.navigationStartLngLat); //移动
     },
   },

--
Gitblit v1.9.3