|
@@ -20,6 +20,7 @@
|
|
|
<!-- 曲苑 -->
|
|
|
<template v-if="isQY">
|
|
|
<div
|
|
|
+ v-if="!$isMobile || ($isMobile && qyHover)"
|
|
|
:class="['qy', qyHover && 'hover']"
|
|
|
@mouseover="qyHover = true"
|
|
|
@click="openNewWindow"
|
|
@@ -35,11 +36,20 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
+ v-if="$isMobile"
|
|
|
+ class="hotspot-icon spot-qy"
|
|
|
+ @click="qyHover = !qyHover"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://4dkk.4dage.com/720yun_fd_manage/fodder/20231211_110554663.png?x-oss-process=image/resize,w_128,q_80"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
v-if="qyHover"
|
|
|
class="qy-hover-bg"
|
|
|
/>
|
|
|
|
|
|
- <div
|
|
|
+ <!-- <div
|
|
|
:class="['ssz', sszHover && 'hover']"
|
|
|
@mouseover="sszHover = true"
|
|
|
@click="sszDetailVisbile = true"
|
|
@@ -57,7 +67,7 @@
|
|
|
<div
|
|
|
v-if="sszHover"
|
|
|
class="ssz-hover-bg"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
|
|
|
<!-- label 详情 -->
|
|
|
<div
|
|
@@ -81,7 +91,7 @@
|
|
|
<p>戏台藻井</p>
|
|
|
</div>
|
|
|
|
|
|
- <div
|
|
|
+ <!-- <div
|
|
|
v-if="sszDetailVisbile"
|
|
|
:class="['hotspot-dialog-1__info box']"
|
|
|
>
|
|
@@ -100,12 +110,42 @@
|
|
|
src="@/assets/images/hotspot-relic/image23-min.jpg"
|
|
|
>
|
|
|
<p>沙石柱</p>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</template>
|
|
|
|
|
|
<!-- 航运 -->
|
|
|
<template v-if="isHY">
|
|
|
+ <template v-if="$isMobile">
|
|
|
+ <div
|
|
|
+ class="hotspot-icon spot-hy"
|
|
|
+ @click="hyHover = !hyHover"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://4dkk.4dage.com/720yun_fd_manage/fodder/20231211_110554663.png?x-oss-process=image/resize,w_128,q_80"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div
|
|
|
+ class="hotspot-icon spot-hy2"
|
|
|
+ @click="hy2Hover = !hy2Hover"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://4dkk.4dage.com/720yun_fd_manage/fodder/20231211_110554663.png?x-oss-process=image/resize,w_128,q_80"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div
|
|
|
+ class="hotspot-icon spot-hy3"
|
|
|
+ @click="hy3Hover = !hy3Hover"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://4dkk.4dage.com/720yun_fd_manage/fodder/20231211_110554663.png?x-oss-process=image/resize,w_128,q_80"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
<div
|
|
|
+ v-if="!$isMobile || ($isMobile && hyHover)"
|
|
|
:class="['hy', hyHover && 'hover']"
|
|
|
@mouseover="hyHover = true"
|
|
|
@click="() => {
|
|
@@ -130,6 +170,7 @@
|
|
|
/>
|
|
|
|
|
|
<div
|
|
|
+ v-if="!$isMobile || ($isMobile && hy2Hover)"
|
|
|
:class="['hy2', hy2Hover && 'hover']"
|
|
|
@mouseover="hy2Hover = true"
|
|
|
@click="() => {
|
|
@@ -154,6 +195,7 @@
|
|
|
/>
|
|
|
|
|
|
<div
|
|
|
+ v-if="!$isMobile || ($isMobile && hy3Hover)"
|
|
|
:class="['hy3', hy3Hover && 'hover']"
|
|
|
@mouseover="hy3Hover = true"
|
|
|
@click="hy3DetailVisbile = true"
|
|
@@ -212,6 +254,7 @@
|
|
|
<video
|
|
|
autoplay
|
|
|
controls
|
|
|
+ class="hzcc-video"
|
|
|
src="@/assets/videos/hotspot-relic/hzcc.mp4"
|
|
|
@play="stopBgAudio"
|
|
|
@ended="startBgAudio"
|
|
@@ -252,6 +295,16 @@
|
|
|
<!-- 河畅 -->
|
|
|
<template v-if="isHC">
|
|
|
<div
|
|
|
+ v-if="$isMobile"
|
|
|
+ class="hotspot-icon spot-hc"
|
|
|
+ @click="thhHover = !thhHover"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://4dkk.4dage.com/720yun_fd_manage/fodder/20231211_110554663.png?x-oss-process=image/resize,w_128,q_80"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="!$isMobile || ($isMobile && thhHover)"
|
|
|
:class="['thh', thhHover && 'hover']"
|
|
|
@mouseover="thhHover = true"
|
|
|
@click="thhDetailVisbile = true"
|
|
@@ -287,21 +340,15 @@
|
|
|
"
|
|
|
>
|
|
|
<img
|
|
|
+ class="box3-min"
|
|
|
draggable="false"
|
|
|
src="@/assets/images/box3-min.png"
|
|
|
>
|
|
|
<video
|
|
|
autoplay
|
|
|
controls
|
|
|
+ class="hc-video"
|
|
|
src="@/assets/videos/scene-3-hover.mp4"
|
|
|
- style="
|
|
|
- position: absolute;
|
|
|
- top: 50px;
|
|
|
- left: 30px;
|
|
|
- width: calc(100% - 60px);
|
|
|
- height: calc(100% - 80px);
|
|
|
- object-fit: cover;
|
|
|
- "
|
|
|
@play="stopBgAudio"
|
|
|
@ended="startBgAudio"
|
|
|
/>
|
|
@@ -320,6 +367,17 @@
|
|
|
<!-- 大都揽胜 -->
|
|
|
<template v-if="isDDLS">
|
|
|
<div
|
|
|
+ v-if="$isMobile"
|
|
|
+ class="hotspot-icon spot-qss"
|
|
|
+ @click="qssHover = !qssHover"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://4dkk.4dage.com/720yun_fd_manage/fodder/20231211_110554663.png?x-oss-process=image/resize,w_128,q_80"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div
|
|
|
+ v-if="!$isMobile || ($isMobile && qssHover)"
|
|
|
:class="['qss', qssHover && 'hover']"
|
|
|
@mouseover="qssHover = true"
|
|
|
@click="qssDetailVisbile = true"
|
|
@@ -377,6 +435,17 @@
|
|
|
>
|
|
|
|
|
|
<div
|
|
|
+ v-if="$isMobile"
|
|
|
+ class="hotspot-icon spot-dmd"
|
|
|
+ @click="dmdHover = !dmdHover"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://4dkk.4dage.com/720yun_fd_manage/fodder/20231211_110554663.png?x-oss-process=image/resize,w_128,q_80"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div
|
|
|
+ v-if="!$isMobile || ($isMobile && dmdHover)"
|
|
|
:class="['dmd', dmdHover && 'hover']"
|
|
|
@mouseover="dmdHover = true"
|
|
|
@click="dmdDetailVisbile = true"
|
|
@@ -436,8 +505,19 @@
|
|
|
|
|
|
<!-- 雄伟帝都 -->
|
|
|
<template v-if="isHYM">
|
|
|
+ <div
|
|
|
+ v-if="$isMobile"
|
|
|
+ class="hotspot-icon spot-hym"
|
|
|
+ @click="hymHover = !hymHover"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ src="https://4dkk.4dage.com/720yun_fd_manage/fodder/20231211_110554663.png?x-oss-process=image/resize,w_128,q_80"
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+
|
|
|
<!-- 雄伟帝都-内城门 -->
|
|
|
<div
|
|
|
+ v-if="!$isMobile || ($isMobile && hymHover)"
|
|
|
:class="['hym-ncm', hymHover && 'hover']"
|
|
|
@mouseover="hymHover = true"
|
|
|
@click="hymDetailVisbile = true"
|
|
@@ -475,6 +555,7 @@
|
|
|
>
|
|
|
<img
|
|
|
draggable="false"
|
|
|
+ class="hym-photo"
|
|
|
src="@/assets/images/box_2-min.png"
|
|
|
>
|
|
|
<p>元大都和义门复原图</p>
|
|
@@ -544,11 +625,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, computed, reactive, inject } from "vue"
|
|
|
+import { ref, computed, inject } from "vue"
|
|
|
import MsgContent from "./MsgContent.vue"
|
|
|
import { useStore } from "vuex"
|
|
|
import { useRoute, useRouter } from "vue-router"
|
|
|
|
|
|
+const $isMobile = inject('$isMobile')
|
|
|
const store = useStore()
|
|
|
const startBgAudio = inject("startBgAudio")
|
|
|
const stopBgAudio = inject("stopBgAudio")
|
|
@@ -580,9 +662,9 @@ const hy3DetailVisbile = ref(false)
|
|
|
const qyHover = ref(false)
|
|
|
const qyDetailVisbile = ref(false)
|
|
|
const sszHover = ref(false)
|
|
|
-const sszDetailVisbile = ref(false)
|
|
|
+// const sszDetailVisbile = ref(false)
|
|
|
|
|
|
-const openedBoxList = reactive([])
|
|
|
+// const openedBoxList = reactive([])
|
|
|
|
|
|
// 曲苑
|
|
|
const isQY = computed(() => ["_niQSUEYt"].includes(props.relicInfo.name))
|
|
@@ -603,10 +685,10 @@ const isDDLS = computed(() =>
|
|
|
["_Frw1X3B8", "_IR4EkN4Z"].includes(props.relicInfo.name)
|
|
|
)
|
|
|
|
|
|
-const openNewWindow = () => {
|
|
|
+const openNewWindow = async() => {
|
|
|
store.dispatch('openIframePage', {
|
|
|
- url: 'https://houseoss.4dkankan.com/project/yzdyh-dadu/game/index.html',
|
|
|
- style: 'width: 375px; height: 812px'
|
|
|
+ url: 'http://192.168.0.44:8082' || 'https://houseoss.4dkankan.com/project/yzdyh-dadu/game/index.html',
|
|
|
+ style: $isMobile ? 'width: 100vh; height: 100%' : 'width: 375px; height: 812px'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -763,6 +845,76 @@ const close = () => {
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
+.hc-video {
|
|
|
+ position: absolute;
|
|
|
+ top: 50px;
|
|
|
+ left: 30px;
|
|
|
+ width: calc(100% - 60px);
|
|
|
+ height: calc(100% - 80px);
|
|
|
+ object-fit: cover;
|
|
|
+}
|
|
|
+.hzcc-video {
|
|
|
+ width: 856px;
|
|
|
+}
|
|
|
+.hym-photo {
|
|
|
+ width: 1273px;
|
|
|
+}
|
|
|
+.box3-min {
|
|
|
+ width: 1061px;
|
|
|
+}
|
|
|
+.hotspot-icon {
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ overflow: hidden;
|
|
|
+ z-index: 2;
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
+
|
|
|
+ img {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: inherit;
|
|
|
+ animation-name: hotspot-icon-animation;
|
|
|
+ animation-timing-function: steps(24, end);
|
|
|
+ animation-duration: 1s;
|
|
|
+ animation-iteration-count: infinite;
|
|
|
+ }
|
|
|
+ &.spot-qy {
|
|
|
+ margin: -100px 0 0 200px;
|
|
|
+ }
|
|
|
+ &.spot-hc {
|
|
|
+ margin-top: -160px;
|
|
|
+ }
|
|
|
+ &.spot-hy {
|
|
|
+ margin: 60px 0 0 -150px;
|
|
|
+ }
|
|
|
+ &.spot-hy2 {
|
|
|
+ margin: 180px 0 0 350px;
|
|
|
+ }
|
|
|
+ &.spot-hy3 {
|
|
|
+ margin: 70px 0 0 350px;
|
|
|
+ }
|
|
|
+ &.spot-hym {
|
|
|
+ margin: -200px 0 0 100px;
|
|
|
+ }
|
|
|
+ &.spot-dmd {
|
|
|
+ margin: -100px 0 0 -20px;
|
|
|
+ }
|
|
|
+ &.spot-qss {
|
|
|
+ margin: -100px 0 0 140px;
|
|
|
+ }
|
|
|
+}
|
|
|
+@keyframes hotspot-icon-animation {
|
|
|
+ 0% {
|
|
|
+ translate: 0 0;
|
|
|
+ }
|
|
|
+ 100% {
|
|
|
+ translate: 0 -100%;
|
|
|
+ }
|
|
|
+}
|
|
|
.hotspot-dialog-1 {
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
@@ -775,6 +927,7 @@ const close = () => {
|
|
|
position: absolute;
|
|
|
top: 57%;
|
|
|
left: 46.5%;
|
|
|
+ width: 56px;
|
|
|
z-index: 2;
|
|
|
|
|
|
&.move {
|
|
@@ -803,49 +956,49 @@ const close = () => {
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
- width: 100vw;
|
|
|
- height: 100vh;
|
|
|
- }
|
|
|
- .icon-1 {
|
|
|
- left: 53%;
|
|
|
- bottom: 40%;
|
|
|
- }
|
|
|
- .icon-2 {
|
|
|
- right: 2.5%;
|
|
|
- bottom: 54%;
|
|
|
- }
|
|
|
- .icon-3 {
|
|
|
- left: 31%;
|
|
|
- bottom: 30%;
|
|
|
- }
|
|
|
- .icon-4 {
|
|
|
- right: 38%;
|
|
|
- bottom: 42.5%;
|
|
|
- }
|
|
|
- .icon-5 {
|
|
|
- left: 40%;
|
|
|
- bottom: 42%;
|
|
|
- }
|
|
|
- .icon-6 {
|
|
|
- bottom: 26.5%;
|
|
|
- right: 18.5%;
|
|
|
- }
|
|
|
- .icon-7 {
|
|
|
- left: 47%;
|
|
|
- bottom: 32%;
|
|
|
- }
|
|
|
- .icon-8 {
|
|
|
- bottom: 34.5%;
|
|
|
- right: 14%;
|
|
|
- }
|
|
|
- .icon-9 {
|
|
|
- left: 28%;
|
|
|
- bottom: 30.5%;
|
|
|
- }
|
|
|
- .icon-10 {
|
|
|
- right: 16%;
|
|
|
- bottom: 36.5%;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
}
|
|
|
+ // .icon-1 {
|
|
|
+ // left: 53%;
|
|
|
+ // bottom: 40%;
|
|
|
+ // }
|
|
|
+ // .icon-2 {
|
|
|
+ // right: 2.5%;
|
|
|
+ // bottom: 54%;
|
|
|
+ // }
|
|
|
+ // .icon-3 {
|
|
|
+ // left: 31%;
|
|
|
+ // bottom: 30%;
|
|
|
+ // }
|
|
|
+ // .icon-4 {
|
|
|
+ // right: 38%;
|
|
|
+ // bottom: 42.5%;
|
|
|
+ // }
|
|
|
+ // .icon-5 {
|
|
|
+ // left: 40%;
|
|
|
+ // bottom: 42%;
|
|
|
+ // }
|
|
|
+ // .icon-6 {
|
|
|
+ // bottom: 26.5%;
|
|
|
+ // right: 18.5%;
|
|
|
+ // }
|
|
|
+ // .icon-7 {
|
|
|
+ // left: 47%;
|
|
|
+ // bottom: 32%;
|
|
|
+ // }
|
|
|
+ // .icon-8 {
|
|
|
+ // bottom: 34.5%;
|
|
|
+ // right: 14%;
|
|
|
+ // }
|
|
|
+ // .icon-9 {
|
|
|
+ // left: 28%;
|
|
|
+ // bottom: 30.5%;
|
|
|
+ // }
|
|
|
+ // .icon-10 {
|
|
|
+ // right: 16%;
|
|
|
+ // bottom: 36.5%;
|
|
|
+ // }
|
|
|
&.qy {
|
|
|
background: url("@/assets/images/hotspot-relic/bg_quyuan-min.jpg") no-repeat
|
|
|
center / cover;
|
|
@@ -1033,14 +1186,18 @@ const close = () => {
|
|
|
position: absolute;
|
|
|
top: 10vh;
|
|
|
left: 25%;
|
|
|
- z-index: 3;
|
|
|
+ z-index: 4;
|
|
|
|
|
|
img:first-child {
|
|
|
position: absolute;
|
|
|
top: -33px;
|
|
|
right: -33px;
|
|
|
+ width: 72px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+ img:last-child {
|
|
|
+ width: 409px;
|
|
|
+ }
|
|
|
}
|
|
|
.dmd {
|
|
|
position: absolute;
|
|
@@ -1114,6 +1271,7 @@ const close = () => {
|
|
|
position: absolute;
|
|
|
top: 64px;
|
|
|
left: 41px;
|
|
|
+ width: 72px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
&__info {
|
|
@@ -1146,7 +1304,7 @@ const close = () => {
|
|
|
);
|
|
|
}
|
|
|
p {
|
|
|
- top: -8px;
|
|
|
+ top: -16px;
|
|
|
}
|
|
|
img:first-child {
|
|
|
top: -40px;
|
|
@@ -1156,6 +1314,7 @@ const close = () => {
|
|
|
position: absolute;
|
|
|
top: -10px;
|
|
|
right: -33px;
|
|
|
+ width: 72px;
|
|
|
cursor: pointer;
|
|
|
z-index: 2;
|
|
|
}
|