From eb71fd6eacc6cac2e704f57c472e181cbb20990c Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 22 Dec 2021 16:04:52 +0800
Subject: [PATCH] +位置和细节,左侧导航栏接口,点击弹窗

---
 src/components/mobileWindow/index.vue |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/components/mobileWindow/index.vue b/src/components/mobileWindow/index.vue
index 42a25d3..48516c1 100644
--- a/src/components/mobileWindow/index.vue
+++ b/src/components/mobileWindow/index.vue
@@ -70,13 +70,15 @@
       //   this.fullscreenLoading = true;
       if (!this.MobileWindowsHide) {
         // console.log("地图点击弹窗数据请求参数", this.query);
-        this.title = this.query.query.name;
-        if (this.query.query.bgImg) {
-          this.srcList = this.query.query.bgImg.split(",");
+        let queryData = this.query.query;
+        // console.log(queryData);
+        this.title = queryData.name;
+        if (queryData.bgImg) {
+          this.srcList = queryData.bgImg.split(",");
           this.url = this.srcList[0];
         }
-        if (this.query.query.seebut) {
-          this.seebut = this.query.query.seebut;
+        if (queryData.seebut) {
+          this.seebut = queryData.seebut;
           for (let k in this.seebut) {
             if (this.seebut[k].name == "定位") {
               this.seebut.splice(k, k + 1);
@@ -99,12 +101,12 @@
           ];
         }
         this.center = [];
-        for (let k in this.query.query) {
+        for (let k in queryData) {
           for (let n in this.getCenter) {
-            if (k == this.getCenter[n].name && this.query.query[k]) {
+            if (k == this.getCenter[n].name && queryData[k]) {
               this.center.push({
                 name: this.getCenter[n].value,
-                value: this.query.query[k] ? this.query.query[k] : "暂无",
+                value: queryData[k] ? queryData[k] : "暂无",
               });
             }
           }
@@ -144,9 +146,9 @@
   methods: {
     openOnce(val) {
       let that = this;
-      // console.log(val, this.onceData);
       if (val == "去这") {
         //定位
+        console.log(this.query.query);
       } else if (val == "实景") {
         this.$store.commit(
           "MSET_OPENMOBILEPANORAMA",

--
Gitblit v1.9.3