liuyg
2021-12-16 fe5f10521f4b533bdedc32b141dc0995ec24980d
+细节
3 files modified
36 ■■■■■ changed files
src/components/mobileLeftNav/index.vue 10 ●●●● patch | view | raw | blame | history
src/components/mobilemap/index.vue 24 ●●●●● patch | view | raw | blame | history
src/store/modules/mobile.js 2 ●●● patch | view | raw | blame | history
src/components/mobileLeftNav/index.vue
@@ -39,12 +39,6 @@
  },
  data() {
    return {
      popupWindow1: false,
      url1: "/img/job/one.jpg",
      srcList1: [
        "https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg",
        "https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg",
      ],
      icons: "el-icon-d-arrow-right",
      navStyle: {
        right: "0px",
@@ -154,8 +148,6 @@
      return list;
    },
    leftNavClick(item) {
      // console.log(item);
      this.popupWindow1 = false;
      item.flag = !item.flag;
      if (item.flag == true) {
        item.img = item.checked;
@@ -164,7 +156,7 @@
        item.img = item.normal;
        this[item.layer].show = false;
      }
      this.$store.dispatch("closeWindowsDom"); //关闭弹窗
      this.$store.dispatch("closeMobileWindowsDom"); //关闭弹窗
    },
    initialize(viewer) {
      var that = this;
src/components/mobilemap/index.vue
@@ -19,20 +19,11 @@
</template>
<script>
import { mapGetters } from "vuex";
import { location } from "../../position/position";
export default {
  name: "mobilemapBox",
  data() {
    return {
      DC: "",
      positions: "",
      url: "/img/job/one.jpg",
      srcList: [
        "https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg",
        "https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg",
      ],
      popupFlag: false,
      popupWindow: false,
      bigPopup: {
        width: 0,
        height: 0,
@@ -158,7 +149,7 @@
        if (!that.iconHide) {
          that.$store.commit("MSET_ICONHIDE", true);
        }
        that.$store.dispatch("closeWindowsDom"); //关闭弹窗
        that.$store.dispatch("closeMobileWindowsDom"); //关闭弹窗
        // if (!that.MobileWindowsHide && that.popupsDom) {
        //   that.popupsDom.closeOur();
        //   that.$store.commit("MSET_MOBILEWINDOWSHIDE", true);
@@ -258,19 +249,6 @@
        query: { ...(query || {}), position, lntLat },
      };
      that.$store.dispatch("setMobileWindows", d);
    },
    getLocation() {
      // let _that = this;
      // let geolocation = location.initMap("map-container"); //定位
      // AMap.event.addListener(geolocation, "complete", (result) => {
      //   console.log(result);
      //   // console.log("hhha");
      //   // _that.lat = result.position.lat;
      //   // _that.lng = result.position.lng;
      //   // _that.province = result.addressComponent.province;
      //   // _that.city = result.addressComponent.city;
      //   // _that.district = result.addressComponent.district;
      // });
    },
  },
};
src/store/modules/mobile.js
@@ -54,7 +54,7 @@
            );
            commit("MSET_POPUPDOM", popupsDom)
        },
        closeWindowsDom({ state, commit }) {
        closeMobileWindowsDom({ state, commit }) {
            if (!state.MobileWindowsHide && state.popupsDom) {
                state.popupsDom.closeOur();
                commit("MSET_MOBILEWINDOWSHIDE", true);