| | |
| | | import leftNavsData from './pc/leftNavsData' |
| | | const popupParams = { |
| | | state: { |
| | | ...leftNavsData.state, |
| | | popupBgUrl: null, |
| | | pupupQRUrl: null, |
| | | terminus: null, |
| | |
| | | closeMapClick: false, //关闭地图点击,防止新增标签误触 |
| | | }, |
| | | mutations: { |
| | | ...leftNavsData.mutations, |
| | | SET_POPUPBGURL(state, popupBgUrl) { |
| | | state.popupBgUrl = popupBgUrl |
| | | // console.log(popupBgUrl, "see33333") |
| | | if (!popupBgUrl) { |
| | | return; |
| | | } |
| | | state.popupBgUrl = popupBgUrl; |
| | | }, |
| | | SET_POPUPQRURL(state, pupupQRUrl) { |
| | | state.pupupQRUrl = pupupQRUrl |
| | |
| | | } |
| | | }, |
| | | actions: { |
| | | ...leftNavsData.actions, |
| | | openPopups({ |
| | | state, |
| | | commit, |
| | |
| | | commit("SET_STATENAME", value.item.mechanismname); |
| | | commit("SET_PANORAMAURL", value.item.panoramaurl); |
| | | commit("SET_INTRODUCETEXT", value.item.introduce); |
| | | var imgArr = value.item.tpurl.split(","); |
| | | var imgArr = []; |
| | | if (value.item.tpurl) { |
| | | imgArr = value.item.tpurl.split(","); |
| | | } |
| | | commit("SET_POPUPBGURL", imgArr[0]); |
| | | commit('SET_POPUPIMGATLAS', imgArr) |
| | | commit("SET_POPUPQRURL", value.item.codeurl); |
| | | commit("SET_POINTPOSITION", [ |
| | | Number(value.lng), |
| | |
| | | Number(-90), |
| | | Number(0), |
| | | ]); |
| | | commit('SET_POPUPIMGATLAS', imgArr) |
| | | commit("SET_DETAILSPOPUP", true); |
| | | }, |
| | | pcMoveView({ |