From 81f54040c2cb65537c6c6e1db8358a39a57dea0d Mon Sep 17 00:00:00 2001
From: mayisheng <admin>
Date: Mon, 15 Aug 2022 16:14:01 +0800
Subject: [PATCH] 1
---
src/components/mobilePopupOurOnce/index.vue | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/components/mobilePopupOurOnce/index.vue b/src/components/mobilePopupOurOnce/index.vue
index d3e76a3..6836914 100644
--- a/src/components/mobilePopupOurOnce/index.vue
+++ b/src/components/mobilePopupOurOnce/index.vue
@@ -1,4 +1,5 @@
<template>
+ <!-- 信息窗口每条信息dom mobilePopupOurOnce -->
<div class="mobilePopupOurOnce">
<div
class="mobilePopupOurOnce_center"
@@ -100,8 +101,17 @@
}
},
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
@@ -119,7 +129,7 @@
// // 定制化窗体
const d = {
position: {},
- lntLat: that.ourData.lntLat,
+ lntLat: [positionObj.lng, positionObj.lat],
query: { ...this.ourData, seebut: this.seebut },
useJWD: true, // 仅使用经纬度
from: 'PopupOurOnce'
@@ -140,9 +150,9 @@
imgsDom.click()
}
},
+
// "校区建筑"↓
getOnceCampus (id) {
- console.log(id)
getChildNavDetail({ id: id }).then((res) => {
console.log(res, 5656)
var result = res.data.data[0].list
@@ -160,7 +170,8 @@
address: result.address,
introduce: result.introduce,
video: result.videourl,
- panoramaurl: result.panoramaurl // 全景
+ panoramaurl: result.panoramaurl,
+ x: result.x // 全景
}
this.ourData = d
})
--
Gitblit v1.9.3