liuyg
2021-12-31 e40ee62d3e9b71ffe3432d32a53a00c4097b5708
src/components/mobileCortrolSearch/index.vue
@@ -5,7 +5,8 @@
        ><el-button
          slot="append"
          class="iconSearch"
          icon="el-icon-search"
          icon="el-icon-search icon"
          @click="search"
        ></el-button>
      </el-input>
    </div>
@@ -20,6 +21,7 @@
    return {
      viewer: null,
      DC: null,
      input: "",
    };
  },
  created() {
@@ -30,6 +32,11 @@
    initialize(viewer) {
      viewer.scene.globe.depthTestAgainstTerrain = false;
      this.viewer = viewer;
    },
    search() {
      let that = this;
      this.$store.commit("MSET_BIGPOPUP", { search: true, value: that.input });
      that.input = "";
    },
  },
};
@@ -56,10 +63,12 @@
      height: 30px;
      padding-top: 0;
      padding-bottom: 0;
      background-color: rgb(33, 150, 243);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      color: #fff;
    }
  }
}