|
@@ -1,29 +1,50 @@
|
|
<template>
|
|
<template>
|
|
<div class="panocon">
|
|
<div class="panocon">
|
|
<template v-if="showInfo">
|
|
<template v-if="showInfo">
|
|
- <iframe allowfullscreen="true" v-if="activeItem.type == '4dkk'" :src="`/spc.html?m=${activeItem.sceneCode}&lang=zh`" frameborder="0"></iframe>
|
|
|
|
- <div v-show="activeItem.type != '4dkk'" id="pano"></div>
|
|
|
|
|
|
+ <iframe allowfullscreen="true" v-if="activeItem.type=='4dkk'"
|
|
|
|
+ :src="`/spc.html?m=${activeItem.sceneCode}&lang=zh`" frameborder="0"></iframe>
|
|
|
|
+ <div v-show="activeItem.type!='4dkk'" id="pano"></div>
|
|
|
|
|
|
- <div class="pano-logo" v-if="showInfo.isLogo && activeItem.type != '4dkk'">
|
|
|
|
- <img :src="showInfo.logo || require('@/assets/images/default/img_logoshow@2x.png')" alt="" />
|
|
|
|
|
|
+ <div class="pano-logo" v-if="showInfo.isLogo&&activeItem.type!='4dkk'">
|
|
|
|
+ <img :src="showInfo.logo||require('@/assets/images/default/img_logoshow@2x.png')" alt="" />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="oper-tips" :class="{ hidetips: !showTips }" v-if="localRemind">
|
|
|
|
- <img :src="showInfo.pcIcon || require('@/assets/images/default/show/img_tipspc_default.png')" alt="" />
|
|
|
|
|
|
+
|
|
|
|
+ <div
|
|
|
|
+ class="oper-tips"
|
|
|
|
+ :class="{ hidetips: !showTips }"
|
|
|
|
+ v-if="localRemind"
|
|
|
|
+ >
|
|
|
|
+ <img
|
|
|
|
+ :src="
|
|
|
|
+ showInfo.pcIcon ||
|
|
|
|
+ require('@/assets/images/default/show/img_tipspc_default.png')
|
|
|
|
+ "
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<list v-if="canLoad" @select="handleSelect" :select="activeItem"></list>
|
|
<list v-if="canLoad" @select="handleSelect" :select="activeItem"></list>
|
|
- <password :bg="showInfo.icon" :show="showPassword" @submit="handlePassword" @close="showPassword = false" />
|
|
|
|
|
|
+ <password
|
|
|
|
+ :bg="showInfo.icon"
|
|
|
|
+ :show="showPassword"
|
|
|
|
+ @submit="handlePassword"
|
|
|
|
+ @close="showPassword = false"
|
|
|
|
+ />
|
|
<popup :title="'简介'" :show="showIntro" @close="showIntro = false">
|
|
<popup :title="'简介'" :show="showIntro" @close="showIntro = false">
|
|
<div slot="content" class="introcon">
|
|
<div slot="content" class="introcon">
|
|
{{ showInfo.description || "暂无简介" }}
|
|
{{ showInfo.description || "暂无简介" }}
|
|
</div>
|
|
</div>
|
|
</popup>
|
|
</popup>
|
|
|
|
|
|
- <preview :item="currentHotspot" :show="showPreview" @close="(showPreview = false), (currentHotspot = '')" />
|
|
|
|
|
|
+ <preview
|
|
|
|
+ :item="currentHotspot"
|
|
|
|
+ :show="showPreview"
|
|
|
|
+ @close="showPreview = false"
|
|
|
|
+ />
|
|
|
|
|
|
- <ul class="aside" v-if="activeItem.type != '4dkk'">
|
|
|
|
- <li :class="{ ismuted: item.id == 'bgm' && !isMusic }" v-for="(item, i) in aside" :key="i">
|
|
|
|
|
|
+ <ul class="aside" v-if="activeItem.type!='4dkk'">
|
|
|
|
+ <li v-for="(item, i) in aside" :key="i">
|
|
<span @click="handleItem(item)">
|
|
<span @click="handleItem(item)">
|
|
<i class="iconfont" :class="item.icon"></i>
|
|
<i class="iconfont" :class="item.icon"></i>
|
|
</span>
|
|
</span>
|
|
@@ -32,21 +53,23 @@
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<div class="hasDel" v-if="loadFinish">
|
|
<div class="hasDel" v-if="loadFinish">
|
|
- <div>
|
|
|
|
- <img :src="$noresult" alt="" />
|
|
|
|
- <p>作品已被删除</p>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <img :src="$noresult" alt="">
|
|
|
|
+ <p>作品已被删除</p>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import * as krfn from "@/core/index.js";
|
|
import * as krfn from "@/core/index.js";
|
|
-import { getPanoInfo, checkPassword, checkWork } from "@/api";
|
|
|
|
|
|
+import { getPanoInfo, checkPassword,checkWork } from "@/api";
|
|
import password from "./popup/password";
|
|
import password from "./popup/password";
|
|
import preview from "./popup/preview";
|
|
import preview from "./popup/preview";
|
|
-import { $smallWaiting } from "@/components/shared/loading";
|
|
|
|
|
|
+import { $smallWaiting } from '@/components/shared/loading'
|
|
|
|
+
|
|
|
|
|
|
import popup from "./popup/";
|
|
import popup from "./popup/";
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
@@ -69,13 +92,11 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- bgmAudio: "",
|
|
|
|
- isMusic: false,
|
|
|
|
showPreview: false,
|
|
showPreview: false,
|
|
- isFullscreen: false,
|
|
|
|
|
|
+ isFullscreen:false,
|
|
showTips: false,
|
|
showTips: false,
|
|
canLoad: false,
|
|
canLoad: false,
|
|
- loadFinish: false,
|
|
|
|
|
|
+ loadFinish:false,
|
|
showPassword: false,
|
|
showPassword: false,
|
|
showIntro: false,
|
|
showIntro: false,
|
|
localRemind: false,
|
|
localRemind: false,
|
|
@@ -102,41 +123,37 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
onFullScreen() {
|
|
onFullScreen() {
|
|
- let element = document.documentElement;
|
|
|
|
- if (this.isFullscreen) {
|
|
|
|
- if (document.exitFullscreen) {
|
|
|
|
- document.exitFullscreen();
|
|
|
|
- } else if (document.webkitCancelFullScreen) {
|
|
|
|
- document.webkitCancelFullScreen();
|
|
|
|
- } else if (document.mozCancelFullScreen) {
|
|
|
|
- document.mozCancelFullScreen();
|
|
|
|
- } else if (document.msExitFullscreen) {
|
|
|
|
- document.msExitFullscreen();
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- if (element.requestFullscreen) {
|
|
|
|
- element.requestFullscreen();
|
|
|
|
- } else if (element.webkitRequestFullScreen) {
|
|
|
|
- element.webkitRequestFullScreen();
|
|
|
|
- } else if (element.mozRequestFullScreen) {
|
|
|
|
- element.mozRequestFullScreen();
|
|
|
|
- } else if (element.msRequestFullscreen) {
|
|
|
|
- element.msRequestFullscreen();
|
|
|
|
|
|
+ let element = document.documentElement;
|
|
|
|
+ if (this.isFullscreen) {
|
|
|
|
+ if (document.exitFullscreen) {
|
|
|
|
+ document.exitFullscreen();
|
|
|
|
+ } else if (document.webkitCancelFullScreen) {
|
|
|
|
+ document.webkitCancelFullScreen();
|
|
|
|
+ } else if (document.mozCancelFullScreen) {
|
|
|
|
+ document.mozCancelFullScreen();
|
|
|
|
+ } else if (document.msExitFullscreen) {
|
|
|
|
+ document.msExitFullscreen();
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ if (element.requestFullscreen) {
|
|
|
|
+ element.requestFullscreen();
|
|
|
|
+ } else if (element.webkitRequestFullScreen) {
|
|
|
|
+ element.webkitRequestFullScreen();
|
|
|
|
+ } else if (element.mozRequestFullScreen) {
|
|
|
|
+ element.mozRequestFullScreen();
|
|
|
|
+ } else if (element.msRequestFullscreen) {
|
|
|
|
+ element.msRequestFullscreen();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- // 改变当前全屏状态
|
|
|
|
- this.isFullscreen = !this.isFullscreen;
|
|
|
|
- },
|
|
|
|
|
|
+ // 改变当前全屏状态
|
|
|
|
+ this.isFullscreen = !this.isFullscreen;
|
|
|
|
+ },
|
|
handleItem(data) {
|
|
handleItem(data) {
|
|
- if (data.id == "bgm") {
|
|
|
|
- this.isMusic = !this.isMusic;
|
|
|
|
- localStorage.setItem("g_bgmstatus", this.isMusic ? "open" : "close");
|
|
|
|
- }
|
|
|
|
if (data.id == "about") {
|
|
if (data.id == "about") {
|
|
this.showIntro = true;
|
|
this.showIntro = true;
|
|
}
|
|
}
|
|
if (data.id == "full") {
|
|
if (data.id == "full") {
|
|
- this.onFullScreen();
|
|
|
|
|
|
+ this.onFullScreen()
|
|
}
|
|
}
|
|
if (data.id == "vr") {
|
|
if (data.id == "vr") {
|
|
var krpano = document.getElementById("krpanoSWFObject");
|
|
var krpano = document.getElementById("krpanoSWFObject");
|
|
@@ -154,7 +171,7 @@ export default {
|
|
if (res.code == 0) {
|
|
if (res.code == 0) {
|
|
this.showPassword = false;
|
|
this.showPassword = false;
|
|
this.canLoad = true;
|
|
this.canLoad = true;
|
|
- }
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
);
|
|
);
|
|
},
|
|
},
|
|
@@ -176,13 +193,14 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- tmp = this.$unique(tmp);
|
|
|
|
|
|
+ tmp = this.$unique(tmp)
|
|
|
|
|
|
this.showInfo.catalogs = tmp;
|
|
this.showInfo.catalogs = tmp;
|
|
let rootmp = [];
|
|
let rootmp = [];
|
|
tmp.forEach((item) => {
|
|
tmp.forEach((item) => {
|
|
this.showInfo.catalogRoot.forEach((sub) => {
|
|
this.showInfo.catalogRoot.forEach((sub) => {
|
|
- sub.children = this.$unique(sub.children);
|
|
|
|
|
|
+
|
|
|
|
+ sub.children = this.$unique(sub.children)
|
|
|
|
|
|
if (sub.children.indexOf(item.id) > -1) {
|
|
if (sub.children.indexOf(item.id) > -1) {
|
|
rootmp.push(sub);
|
|
rootmp.push(sub);
|
|
@@ -190,16 +208,18 @@ export default {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
- rootmp = this.$unique(rootmp);
|
|
|
|
|
|
|
|
- let sortArr = this.showInfo.catalogRoot.map((item) => item.name);
|
|
|
|
- rootmp.sort((a, b) => {
|
|
|
|
- return sortArr.indexOf(a.name) - sortArr.indexOf(b.name);
|
|
|
|
- });
|
|
|
|
|
|
+ rootmp = this.$unique(rootmp)
|
|
|
|
+
|
|
|
|
+ let sortArr = this.showInfo.catalogRoot.map(item=>item.name)
|
|
|
|
+ rootmp.sort((a,b)=>{
|
|
|
|
+ return sortArr.indexOf(a.name) - sortArr.indexOf(b.name)
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
|
|
this.showInfo.catalogRoot = rootmp.map((item) => {
|
|
this.showInfo.catalogRoot = rootmp.map((item) => {
|
|
let temp = [];
|
|
let temp = [];
|
|
- item.children = this.$unique(item.children);
|
|
|
|
|
|
+ item.children = this.$unique(item.children)
|
|
item.children.forEach((sub) => {
|
|
item.children.forEach((sub) => {
|
|
tmp.forEach((jj) => {
|
|
tmp.forEach((jj) => {
|
|
if (jj.id == sub) {
|
|
if (jj.id == sub) {
|
|
@@ -213,15 +233,15 @@ export default {
|
|
};
|
|
};
|
|
});
|
|
});
|
|
|
|
|
|
- this.showInfo.catalogs = tmp;
|
|
|
|
|
|
+ this.showInfo.catalogs = tmp
|
|
|
|
|
|
- let cid = "c_" + this.$randomWord(true, 8, 8);
|
|
|
|
|
|
+ let cid = 'c_'+this.$randomWord(true,8,8)
|
|
|
|
|
|
if (this.showInfo.catalogRoot.length <= 0) {
|
|
if (this.showInfo.catalogRoot.length <= 0) {
|
|
this.showInfo.catalogRoot.push({
|
|
this.showInfo.catalogRoot.push({
|
|
- id: "r_" + this.$randomWord(true, 8, 8),
|
|
|
|
|
|
+ id: 'r_'+this.$randomWord(true,8,8),
|
|
name: "全部场景",
|
|
name: "全部场景",
|
|
- children: [cid],
|
|
|
|
|
|
+ children:[cid]
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -233,39 +253,36 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
if (this.showInfo.firstScene) {
|
|
if (this.showInfo.firstScene) {
|
|
- this.showInfo.firstScene = this.showInfo.scenes.find((item) => item.sceneCode == this.showInfo.firstScene.sceneCode);
|
|
|
|
|
|
+ this.showInfo.firstScene = this.showInfo.scenes.find(item=>item.sceneCode==this.showInfo.firstScene.sceneCode)
|
|
}
|
|
}
|
|
|
|
|
|
this.$store.commit("SetShowInfo", this.showInfo);
|
|
this.$store.commit("SetShowInfo", this.showInfo);
|
|
},
|
|
},
|
|
|
|
|
|
getSceneInfo() {
|
|
getSceneInfo() {
|
|
- checkWork("", (data) => {
|
|
|
|
|
|
+ checkWork("",data=>{
|
|
if (data.data) {
|
|
if (data.data) {
|
|
- getPanoInfo("", (res) => {
|
|
|
|
- this.$store.commit("SetShowInfo", res);
|
|
|
|
- this.fixData();
|
|
|
|
- this.loadFinish = true;
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- this.loadFinish = true;
|
|
|
|
|
|
+ getPanoInfo(
|
|
|
|
+ "",
|
|
|
|
+ (res) => {
|
|
|
|
+ this.$store.commit("SetShowInfo", res);
|
|
|
|
+ this.fixData()
|
|
|
|
+ this.loadFinish = true
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ } else{
|
|
|
|
+ this.loadFinish = true
|
|
}
|
|
}
|
|
- });
|
|
|
|
- },
|
|
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- isMusic: {
|
|
|
|
- handler: function(newVal) {
|
|
|
|
- newVal ? this.bgmAudio.play() : this.bgmAudio.pause();
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
currentHotspot: {
|
|
currentHotspot: {
|
|
deep: true,
|
|
deep: true,
|
|
- handler: function(newVal) {
|
|
|
|
|
|
+ handler: function (newVal) {
|
|
if (newVal) {
|
|
if (newVal) {
|
|
if (newVal.hotspotType == "link") {
|
|
if (newVal.hotspotType == "link") {
|
|
window.open(newVal.hyperlink, "_blank");
|
|
window.open(newVal.hyperlink, "_blank");
|
|
- this.currentHotspot = "";
|
|
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (newVal.hotspotType == "scene") {
|
|
if (newVal.hotspotType == "scene") {
|
|
@@ -279,7 +296,7 @@ export default {
|
|
canLoad(newVal) {
|
|
canLoad(newVal) {
|
|
if (newVal) {
|
|
if (newVal) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- this.showTips = this.localRemind;
|
|
|
|
|
|
+ this.showTips = this.localRemind
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.showTips = false;
|
|
this.showTips = false;
|
|
}, this.showInfo.remindTime * 1000);
|
|
}, this.showInfo.remindTime * 1000);
|
|
@@ -289,90 +306,23 @@ export default {
|
|
showInfo: {
|
|
showInfo: {
|
|
deep: true,
|
|
deep: true,
|
|
immediate: true,
|
|
immediate: true,
|
|
- handler: function(newVal) {
|
|
|
|
|
|
+ handler: function (newVal) {
|
|
if (newVal) {
|
|
if (newVal) {
|
|
- document.title = newVal.name || "无标题";
|
|
|
|
- let locoR = "localRemind" + newVal.id;
|
|
|
|
|
|
+ document.title = newVal.name || '无标题'
|
|
|
|
+ let locoR = "localRemind"+newVal.id
|
|
if (!newVal.description) {
|
|
if (!newVal.description) {
|
|
- this.aside.shift();
|
|
|
|
- }
|
|
|
|
- if (newVal.bgMusic) {
|
|
|
|
- this.aside.push({
|
|
|
|
- id: "bgm",
|
|
|
|
- icon: "iconbs_nav_sound",
|
|
|
|
- });
|
|
|
|
- this.bgmAudio = new Audio();
|
|
|
|
- this.bgmAudio.src = newVal.bgMusic;
|
|
|
|
- this.bgmAudio.loop = true;
|
|
|
|
- this.bgmAudio.autoplay = true;
|
|
|
|
-
|
|
|
|
- let playingfn = () => {
|
|
|
|
- this.isMusic = true;
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- let pausedingfn = () => {
|
|
|
|
- this.isMusic = false;
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- if (this.bgmAudio.paused) {
|
|
|
|
- this.isMusic = false;
|
|
|
|
- localStorage.setItem("g_bgmstatus", this.isMusic ? "open" : "close");
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- document.addEventListener(
|
|
|
|
- "WeixinJSBridgeReady",
|
|
|
|
- () => {
|
|
|
|
- this.bgmAudio.play();
|
|
|
|
- },
|
|
|
|
- false
|
|
|
|
- );
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- let onclick = () => {
|
|
|
|
- document.removeEventListener("click", onclick);
|
|
|
|
- document.removeEventListener("touchstart", onclick);
|
|
|
|
- if (this.bgmAudio.paused) {
|
|
|
|
- this.bgmAudio.play();
|
|
|
|
- }
|
|
|
|
- };
|
|
|
|
- document.addEventListener("click", onclick);
|
|
|
|
- document.addEventListener("touchstart", onclick);
|
|
|
|
-
|
|
|
|
- this.bgmAudio.removeEventListener("playing", playingfn);
|
|
|
|
- this.bgmAudio.removeEventListener("paused", pausedingfn);
|
|
|
|
-
|
|
|
|
- this.bgmAudio.addEventListener("paused", pausedingfn);
|
|
|
|
- this.bgmAudio.addEventListener("playing", playingfn);
|
|
|
|
-
|
|
|
|
- this.bgmAudio.addEventListener("canplay", () => {
|
|
|
|
- this.bgmAudio.play();
|
|
|
|
- localStorage.setItem("g_bgmstatus", this.isMusic ? "open" : "close");
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- document.addEventListener("visibilitychange", () => {
|
|
|
|
- let data = document.hidden;
|
|
|
|
- if (data) {
|
|
|
|
- this.isMusic = false;
|
|
|
|
- } else {
|
|
|
|
- let status = localStorage.getItem("g_bgmstatus");
|
|
|
|
- if (status === "open") {
|
|
|
|
- this.isMusic = true;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ this.aside.shift()
|
|
}
|
|
}
|
|
- if (newVal.isRemind == 1) {
|
|
|
|
- this.localRemind = localStorage.getItem(locoR) == 1 ? false : true;
|
|
|
|
|
|
+ if (newVal.isRemind==1) {
|
|
|
|
+ this.localRemind = localStorage.getItem(locoR) == 1 ? false : true
|
|
localStorage.setItem(locoR, 1);
|
|
localStorage.setItem(locoR, 1);
|
|
- } else {
|
|
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
this.localRemind = true;
|
|
this.localRemind = true;
|
|
localStorage.setItem(locoR, 0);
|
|
localStorage.setItem(locoR, 0);
|
|
}
|
|
}
|
|
if (this.showInfo.firstScene) {
|
|
if (this.showInfo.firstScene) {
|
|
- if (this.showInfo.firstScene.type == "4dkk") {
|
|
|
|
|
|
+ if (this.showInfo.firstScene.type == '4dkk') {
|
|
this.localRemind = false;
|
|
this.localRemind = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -382,19 +332,19 @@ export default {
|
|
},
|
|
},
|
|
activeItem: {
|
|
activeItem: {
|
|
handler(newVal) {
|
|
handler(newVal) {
|
|
- this.currentHotspot = "";
|
|
|
|
|
|
+ this.currentHotspot = ''
|
|
$("#pano").empty();
|
|
$("#pano").empty();
|
|
window.vrInitFn = () => {
|
|
window.vrInitFn = () => {
|
|
- $smallWaiting.hide();
|
|
|
|
|
|
+ $smallWaiting.hide()
|
|
var krpano = document.getElementById("krpanoSWFObject");
|
|
var krpano = document.getElementById("krpanoSWFObject");
|
|
__krfn.utils.initHotspot(krpano, newVal && newVal.someData, false);
|
|
__krfn.utils.initHotspot(krpano, newVal && newVal.someData, false);
|
|
};
|
|
};
|
|
window.vrViewFn = () => {
|
|
window.vrViewFn = () => {
|
|
try {
|
|
try {
|
|
- let tmp = newVal.initVisual || {};
|
|
|
|
|
|
+ let tmp = newVal.initVisual||{};
|
|
var krpano = document.getElementById("krpanoSWFObject");
|
|
var krpano = document.getElementById("krpanoSWFObject");
|
|
- krpano.set("view.vlookat", tmp.vlookat || 0);
|
|
|
|
- krpano.set("view.hlookat", tmp.hlookat || 0);
|
|
|
|
|
|
+ krpano.set("view.vlookat", tmp.vlookat||0);
|
|
|
|
+ krpano.set("view.hlookat", tmp.hlookat||0);
|
|
krpano.set("autorotate.enabled", Boolean(this.showInfo.isAuto));
|
|
krpano.set("autorotate.enabled", Boolean(this.showInfo.isAuto));
|
|
} catch (error) {
|
|
} catch (error) {
|
|
error;
|
|
error;
|
|
@@ -405,13 +355,13 @@ export default {
|
|
"events[skin_events].onloadcomplete": "js(window.vrInitFn());",
|
|
"events[skin_events].onloadcomplete": "js(window.vrInitFn());",
|
|
};
|
|
};
|
|
if (newVal) {
|
|
if (newVal) {
|
|
- if (newVal.type == "4dkk") {
|
|
|
|
- removepano("#pano");
|
|
|
|
- $("#pano").empty();
|
|
|
|
- return;
|
|
|
|
|
|
+ if (newVal.type=='4dkk') {
|
|
|
|
+ removepano("#pano");
|
|
|
|
+ $("#pano").empty();
|
|
|
|
+ return
|
|
}
|
|
}
|
|
removepano("#pano");
|
|
removepano("#pano");
|
|
- $smallWaiting.show();
|
|
|
|
|
|
+ $smallWaiting.show()
|
|
|
|
|
|
embedpano({
|
|
embedpano({
|
|
// xml: "%HTMLPATH%/static/template/tour.xml",
|
|
// xml: "%HTMLPATH%/static/template/tour.xml",
|
|
@@ -431,8 +381,8 @@ export default {
|
|
window.__krfn = __krfn;
|
|
window.__krfn = __krfn;
|
|
|
|
|
|
this.$bus.on("clickHotspot", (data) => {
|
|
this.$bus.on("clickHotspot", (data) => {
|
|
- let someData = this.activeItem.someData;
|
|
|
|
- if (typeof someData == "string") {
|
|
|
|
|
|
+ let someData = this.activeItem.someData
|
|
|
|
+ if (typeof someData == 'string') {
|
|
someData = JSON.parse(this.activeItem.someData);
|
|
someData = JSON.parse(this.activeItem.someData);
|
|
}
|
|
}
|
|
let idx = someData.hotspots.findIndex((item) => item.name == data);
|
|
let idx = someData.hotspots.findIndex((item) => item.name == data);
|
|
@@ -448,20 +398,20 @@ export default {
|
|
.panocon {
|
|
.panocon {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
- .hasDel {
|
|
|
|
|
|
+ .hasDel{
|
|
background: #fff;
|
|
background: #fff;
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
position: relative;
|
|
- > div {
|
|
|
|
|
|
+ >div{
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 50%;
|
|
top: 50%;
|
|
left: 50%;
|
|
left: 50%;
|
|
- transform: translate(-50%, -50%);
|
|
|
|
|
|
+ transform: translate(-50%,-50%);
|
|
color: #909090;
|
|
color: #909090;
|
|
text-align: center;
|
|
text-align: center;
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
- > p {
|
|
|
|
|
|
+ >p{
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -470,7 +420,7 @@ export default {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
- > iframe {
|
|
|
|
|
|
+ >iframe{
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
@@ -526,23 +476,6 @@ export default {
|
|
transform: translate(-50%, -50%);
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- &.ismuted {
|
|
|
|
- position: relative;
|
|
|
|
- &::before {
|
|
|
|
- content: "";
|
|
|
|
- pointer-events: none;
|
|
|
|
- display: inline-block;
|
|
|
|
- width: 1px;
|
|
|
|
- height: 46%;
|
|
|
|
- position: absolute;
|
|
|
|
- left: 30%;
|
|
|
|
- top: 30%;
|
|
|
|
- transform: rotate(-45deg);
|
|
|
|
- transform-origin: top;
|
|
|
|
- z-index: 99;
|
|
|
|
- background: #fff;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.introcon {
|
|
.introcon {
|