| | |
| | | : item.name == '图集' |
| | | ? 'el-icon-data-board' |
| | | : item.name == '去这' |
| | | ? 'el-icon-finished' |
| | | ? quzheD |
| | | ? 'el-icon-loading' |
| | | : 'el-icon-finished' |
| | | : item.name == '视频' || item.name == '返回' |
| | | ? 'el-icon-video-camera-solid' |
| | | : '' |
| | |
| | | watch: { |
| | | MobileWindowChangeData() { |
| | | this.$store.dispatch("MSET_GETAUDIOBEGIN", "notOpen"); |
| | | this.quzheD = false; |
| | | //数据更改 |
| | | // this.fullscreenLoading = true; |
| | | if (!this.MobileWindowsHide) { |
| | |
| | | seebut: [], |
| | | center: [], |
| | | panoramaurl: "", |
| | | quzheD: false, //是否点击了去这,并不能再按,以及不应用路线导航 |
| | | }; |
| | | }, |
| | | methods: { |
| | |
| | | let query = this.query.query; |
| | | // console.log(query); |
| | | if (val == "去这") { |
| | | if (that.quzheD) { |
| | | console.log("不可点击"); |
| | | return; |
| | | } |
| | | that.quzheD = true; |
| | | // return; |
| | | //定位 |
| | | // console.log(this.query.query); |
| | |
| | | fn: function (datas) { |
| | | //获取回调路径 |
| | | that.routerS.push(datas); |
| | | that.quzheD = false; |
| | | if (once) { |
| | | once = false; |
| | | //加载第一条线路 |
| | |
| | | import axios from "axios"; |
| | | let httpName = window.location.protocol + "//" + window.location.hostname; |
| | | let url = httpName + "/apis"; |
| | | setTimeout(() => { |
| | | console.log(window.location); |
| | | console.log(url); |
| | | }, 3000); |
| | | // setTimeout(() => { |
| | | // console.log(window.location); |
| | | // console.log(url); |
| | | // }, 3000); |
| | | const service = axios.create({ |
| | | // baseURL: 'http://192.168.0.107:83', |
| | | // baseURL: "http://192.168.0.107:80", |
| | |
| | | commit("MSET_POPUPDOM", popupsDom); |
| | | }, |
| | | closeMobileWindowsDom({ state, commit, dispatch }) { |
| | | commit("CLOSE_NOWPOSITION");//中断定位获取 |
| | | if (!state.MobileWindowsHide && state.popupsDom) { |
| | | state.popupsDom.closeOur(); |
| | | commit("MSET_MOBILEWINDOWSHIDE", true); |
| | |
| | | const mobilePosition = { |
| | | state: {}, |
| | | state: { getSPosition: null }, |
| | | mutations: { |
| | | GET_NOWPOSITION(state, val) { |
| | | let outData = |
| | |
| | | if (navigator.geolocation) { |
| | | console.log("支持navigator.geolocation-111111111111111"); |
| | | try { |
| | | navigator.geolocation.getCurrentPosition(function (position) { |
| | | console.log(position); |
| | | var lat = position.coords.latitude; |
| | | var lon = position.coords.longitude; |
| | | console.log("成功返回经纬度信息"); |
| | | console.log(lon, lat); |
| | | outData([lon, lat]); |
| | | }); |
| | | state.getSPosition = navigator.geolocation.getCurrentPosition( |
| | | function (position) { |
| | | console.log(position); |
| | | var lat = position.coords.latitude; |
| | | var lon = position.coords.longitude; |
| | | console.log("成功返回经纬度信息"); |
| | | console.log(lon, lat); |
| | | outData([lon, lat]); |
| | | } |
| | | ); |
| | | } catch { |
| | | console.log("支持navigator.geolocation-需要HTTPS"); |
| | | } |
| | |
| | | return "不支持navigator.geolocation"; |
| | | } |
| | | }, |
| | | CLOSE_NOWPOSITION(state) { |
| | | state.getSPosition = null; |
| | | }, |
| | | }, |
| | | actions: {}, |
| | | }; |