From fe5f10521f4b533bdedc32b141dc0995ec24980d Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 16 Dec 2021 15:46:38 +0800
Subject: [PATCH] +细节

---
 src/components/mobilemap/index.vue     |   24 +-----------------------
 src/components/mobileLeftNav/index.vue |   10 +---------
 src/store/modules/mobile.js            |    2 +-
 3 files changed, 3 insertions(+), 33 deletions(-)

diff --git a/src/components/mobileLeftNav/index.vue b/src/components/mobileLeftNav/index.vue
index 03a92b6..b7cf11d 100644
--- a/src/components/mobileLeftNav/index.vue
+++ b/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;
diff --git a/src/components/mobilemap/index.vue b/src/components/mobilemap/index.vue
index cb27c45..c0550cf 100644
--- a/src/components/mobilemap/index.vue
+++ b/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;
-      // });
     },
   },
 };
diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index b456e2b..9caa9d4 100644
--- a/src/store/modules/mobile.js
+++ b/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);

--
Gitblit v1.9.3