liuyg
2022-01-17 3fb39294edcd16fb9a7c07e5dddb452c64c9cecd
+活动加标题
2 files modified
80 ■■■■■ changed files
src/components/mobileCloseRouterMany/index.vue 21 ●●●●● patch | view | raw | blame | history
src/store/modules/mobile.js 59 ●●●● patch | view | raw | blame | history
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;
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); //移动
    },
  },