|
@@ -1,5 +1,8 @@
|
|
<template>
|
|
<template>
|
|
- <div :class="['pano-view', (msgVisible || isShowHotspotDetail2) && 'reduceZ']">
|
|
|
|
|
|
+ <div
|
|
|
|
+ :class="['pano-view', (msgVisible || isShowHotspotDetail2) && 'reduceZ']"
|
|
|
|
+ @click="handleClick"
|
|
|
|
+ >
|
|
<button
|
|
<button
|
|
class="logo"
|
|
class="logo"
|
|
>
|
|
>
|
|
@@ -419,6 +422,9 @@ const msgVisible = ref(false)
|
|
const curMsgIndex = ref(0)
|
|
const curMsgIndex = ref(0)
|
|
const showGuide = ref(false)
|
|
const showGuide = ref(false)
|
|
const showShipGame = ref(false)
|
|
const showShipGame = ref(false)
|
|
|
|
+const showScreensaver = ref(false)
|
|
|
|
+let screensaverTime = 0
|
|
|
|
+let screensaverTimer = null
|
|
|
|
|
|
const charactorSpeackPositionLeft = ref(false)
|
|
const charactorSpeackPositionLeft = ref(false)
|
|
|
|
|
|
@@ -737,6 +743,8 @@ function skipCameraIntro(showAction) {
|
|
}
|
|
}
|
|
onUnmounted(() => {
|
|
onUnmounted(() => {
|
|
skipCameraIntro()
|
|
skipCameraIntro()
|
|
|
|
+
|
|
|
|
+ clearInterval(screensaverTimer)
|
|
})
|
|
})
|
|
onBeforeRouteUpdate(() => {
|
|
onBeforeRouteUpdate(() => {
|
|
skipCameraIntro(false)
|
|
skipCameraIntro(false)
|
|
@@ -916,7 +924,7 @@ const currentVr = computed(() => {
|
|
case 0:
|
|
case 0:
|
|
switch (cameraIdx.value) {
|
|
switch (cameraIdx.value) {
|
|
case 0:
|
|
case 0:
|
|
- return 'fd720_kdDO8sPe6'
|
|
|
|
|
|
+ return 'fd720_64h5h2hzd'
|
|
case 1:
|
|
case 1:
|
|
return 'fd720_CKI5Ly4eo'
|
|
return 'fd720_CKI5Ly4eo'
|
|
default:
|
|
default:
|
|
@@ -980,6 +988,9 @@ const hotspotIndex = ref(null)
|
|
// window.addEventListener('message', (e) => {
|
|
// window.addEventListener('message', (e) => {
|
|
// console.log('parent window: received message!', e)
|
|
// console.log('parent window: received message!', e)
|
|
// })
|
|
// })
|
|
|
|
+window.clearScreenSaver = () => {
|
|
|
|
+ screensaverTime = 0
|
|
|
|
+}
|
|
window.showHotspotDetail2 = function(hotspotInfo) {
|
|
window.showHotspotDetail2 = function(hotspotInfo) {
|
|
console.log('parent window: 展示热点高亮')
|
|
console.log('parent window: 展示热点高亮')
|
|
console.log(hotspotInfo)
|
|
console.log(hotspotInfo)
|
|
@@ -1104,10 +1115,21 @@ onMounted(() => {
|
|
store.commit('setPanoData', res)
|
|
store.commit('setPanoData', res)
|
|
console.log('catalogTopology', store.getters.catalogTopology)
|
|
console.log('catalogTopology', store.getters.catalogTopology)
|
|
})
|
|
})
|
|
|
|
+
|
|
|
|
+ screensaverTimer = setInterval(() => {
|
|
|
|
+ if (!showScreensaver.value && !isShowSceneIntroVideoStart.value) {
|
|
|
|
+ screensaverTime++
|
|
|
|
+ console.log(screensaverTime)
|
|
|
|
+ }
|
|
|
|
+ }, 1000)
|
|
})
|
|
})
|
|
/**
|
|
/**
|
|
* end of 获取全景图somedata.json并处理
|
|
* end of 获取全景图somedata.json并处理
|
|
*/
|
|
*/
|
|
|
|
+
|
|
|
|
+const handleClick = () => {
|
|
|
|
+ screensaverTime = 0
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|