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,7 +101,17 @@
        }
    },
    methods: {
        coordinate (item) {
            const arr = item.split(',')
            return {
                lng: arr[0],
                lat: arr[1]
            }
        },
        openOnce (val) {
            const positionObj = this.coordinate(this.ourData.x)
            if (!this.ourData.name) {
                console.log('数据传输失败')
                return
@@ -118,12 +129,12 @@
                    //   // 定制化窗体
                    const d = {
                        position: {},
                        lntLat: that.ourData.lntLat,
                        lntLat: [positionObj.lng, positionObj.lat],
                        query: { ...this.ourData, seebut: this.seebut },
                        useJWD: true, // 仅使用经纬度
                        from: 'PopupOurOnce'
                    }
                    that.popupsDom = that.$store.dispatch('setMobileWindows', d)
                    that.$store.dispatch('setMobileWindows', d)
                }, 500)
                // 固定窗口
                // that.$store.dispatch("SET_OPENWIDOWFIXED", d);
@@ -133,13 +144,17 @@
                // }
                // console.log(this.ourData.panoramaurl);
            } else if (val == '图集') {
                const imgsDom = document.getElementById('mobileBigImgs' + this.icon + '')
                const imgsDom = document.getElementById(
                    'mobileBigImgs' + this.icon + ''
                )
                imgsDom.click()
            }
        },
        // "校区建筑"↓
        getOnceCampus (id) {
            getChildNavDetail({ id: id }).then((res) => {
                console.log(res, 5656)
                var result = res.data.data[0].list
                const d = {
                    name: result.mechanismname,
@@ -155,7 +170,8 @@
                    address: result.address,
                    introduce: result.introduce,
                    video: result.videourl,
                    panoramaurl: result.panoramaurl // 全景
                    panoramaurl: result.panoramaurl,
                    x: result.x // 全景
                }
                this.ourData = d
            })