From 09e00d2c3aefa702a349d5e6c02b8abdf47b83d0 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 18 Jan 2022 09:36:27 +0800
Subject: [PATCH] +实时判断显影全景按钮
---
src/components/mobilePopupOurOnce/index.vue | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/components/mobilePopupOurOnce/index.vue b/src/components/mobilePopupOurOnce/index.vue
index 00a3331..26dea4b 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;
@@ -143,6 +155,7 @@
address: result.address,
introduce: result.introduce,
video: result.videourl,
+ panoramaurl: result.panoramaurl, //全景
};
this.ourData = d;
});
--
Gitblit v1.9.3