From 09d137249b4ee41603a8e4becc41923b99f13e95 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 20 Jan 2022 11:31:49 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web

---
 src/components/mobilePopupOurOnce/index.vue |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/src/components/mobilePopupOurOnce/index.vue b/src/components/mobilePopupOurOnce/index.vue
index 00a3331..097ce3b 100644
--- a/src/components/mobilePopupOurOnce/index.vue
+++ b/src/components/mobilePopupOurOnce/index.vue
@@ -80,8 +80,20 @@
       let buts = this.onceData.buts;
       let b = [];
       for (let k in buts) {
+        if (buts[k] == "实景") {
+          continue;
+        }
         b.push({
           name: buts[k],
+        });
+      }
+      if (this.ourData.panoramaurl) {
+        b.push({
+          name: "实景",
+        });
+      } else {
+        b = b.filter((res) => {
+          return res.name != "实景";
         });
       }
       return b;
@@ -116,10 +128,10 @@
         //固定窗口
         // that.$store.dispatch("SET_OPENWIDOWFIXED", d);
       } else if (val == "实景") {
-        this.$store.commit(
-          "MSET_OPENMOBILEPANORAMA",
-          "https://www.kuleiman.com/110487/index.html?m=1"
-        );
+        this.$store.commit("MSET_OPENMOBILEPANORAMA", this.ourData.panoramaurl);
+        // if(this.ourData.panoramaurl){
+        // }
+        // console.log(this.ourData.panoramaurl);
       } else if (val == "图集") {
         let imgsDom = document.getElementById("mobileBigImgs" + this.icon + "");
         imgsDom.click();
@@ -143,6 +155,7 @@
           address: result.address,
           introduce: result.introduce,
           video: result.videourl,
+          panoramaurl: result.panoramaurl, //全景
         };
         this.ourData = d;
       });

--
Gitblit v1.9.3