1
mayisheng
2022-08-15 81f54040c2cb65537c6c6e1db8358a39a57dea0d
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
            })