| | |
| | | <template> |
| | | <!-- 信息窗口每条信息dom mobilePopupOurOnce --> |
| | | <div class="mobilePopupOurOnce"> |
| | | <div |
| | | class="mobilePopupOurOnce_center" |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | coordinate (item) { |
| | | const arr = item.split(',') |
| | | |
| | | return { |
| | | lng: arr[0], |
| | | lat: arr[1] |
| | | } |
| | | }, |
| | | |
| | | openOnce (val) { |
| | | console.log(this.ourData) |
| | | const positionObj = this.coordinate(this.ourData.x) |
| | | if (!this.ourData.name) { |
| | | console.log('数据传输失败') |
| | | return |
| | |
| | | // // 定制化窗体 |
| | | const d = { |
| | | position: {}, |
| | | lntLat: that.ourData.lntLat, |
| | | lntLat: [positionObj.lng, positionObj.lat], |
| | | query: { ...this.ourData, seebut: this.seebut }, |
| | | useJWD: true, // 仅使用经纬度 |
| | | from: 'PopupOurOnce' |
| | |
| | | imgsDom.click() |
| | | } |
| | | }, |
| | | |
| | | // "校区建筑"↓ |
| | | getOnceCampus (id) { |
| | | console.log(id) |
| | | getChildNavDetail({ id: id }).then((res) => { |
| | | console.log(res, 5656) |
| | | var result = res.data.data[0].list |
| | |
| | | address: result.address, |
| | | introduce: result.introduce, |
| | | video: result.videourl, |
| | | panoramaurl: result.panoramaurl // 全景 |
| | | panoramaurl: result.panoramaurl, |
| | | x: result.x // 全景 |
| | | } |
| | | this.ourData = d |
| | | }) |