| | |
| | | }, |
| | | 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", |
| | |
| | | return list; |
| | | }, |
| | | leftNavClick(item) { |
| | | // console.log(item); |
| | | this.popupWindow1 = false; |
| | | item.flag = !item.flag; |
| | | if (item.flag == true) { |
| | | item.img = item.checked; |
| | |
| | | item.img = item.normal; |
| | | this[item.layer].show = false; |
| | | } |
| | | this.$store.dispatch("closeWindowsDom"); //关闭弹窗 |
| | | this.$store.dispatch("closeMobileWindowsDom"); //关闭弹窗 |
| | | }, |
| | | initialize(viewer) { |
| | | var that = this; |
| | |
| | | </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, |
| | |
| | | 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); |
| | |
| | | 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; |
| | | // }); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | ); |
| | | commit("MSET_POPUPDOM", popupsDom) |
| | | }, |
| | | closeWindowsDom({ state, commit }) { |
| | | closeMobileWindowsDom({ state, commit }) { |
| | | if (!state.MobileWindowsHide && state.popupsDom) { |
| | | state.popupsDom.closeOur(); |
| | | commit("MSET_MOBILEWINDOWSHIDE", true); |