|
@@ -0,0 +1,95 @@
|
|
|
+<template>
|
|
|
+ <div class="poi-info">
|
|
|
+ <div class="content-wrap">
|
|
|
+ <video
|
|
|
+ src="@/assets/videos/video.mp4"
|
|
|
+ controls
|
|
|
+ playsinline
|
|
|
+ webkit-playsinline="true"
|
|
|
+ x5-video-player-type="h5"
|
|
|
+ />
|
|
|
+ <p v-for="(item, index) in info.text" :key="index" v-html="item"></p>
|
|
|
+ <img
|
|
|
+ class="photo"
|
|
|
+ :src="require(`@/assets/images/poiImages/${info.name}.jpg`)"
|
|
|
+ alt=""
|
|
|
+ draggable="false"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="splitter" />
|
|
|
+ <button class="close" @click="router.go(-1)" />
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+// import { ref, computed, watch, onMounted, inject } from "vue";
|
|
|
+import { useRoute, useRouter } from "vue-router";
|
|
|
+// import { useStore } from "vuex";
|
|
|
+
|
|
|
+const route = useRoute();
|
|
|
+const router = useRouter();
|
|
|
+// const store = useStore();
|
|
|
+
|
|
|
+// const $env = inject("$env");
|
|
|
+
|
|
|
+const info = JSON.parse(decodeURIComponent(route.query.poiInfo));
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+.poi-info {
|
|
|
+ pointer-events: initial;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background: rgba(0, 0, 0, 0.8);
|
|
|
+ backdrop-filter: blur(10px);
|
|
|
+ > .content-wrap {
|
|
|
+ height: calc(100% - 80px - 32px - 32px);
|
|
|
+ overflow: auto;
|
|
|
+ width: 92%;
|
|
|
+ margin-left: 4%;
|
|
|
+ margin-top: 32px;
|
|
|
+ margin-bottom: 32px;
|
|
|
+ > video {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ > p {
|
|
|
+ font-family: Microsoft YaHei, Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 23px;
|
|
|
+ }
|
|
|
+ > img.photo {
|
|
|
+ margin-top: 10px;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ > .splitter {
|
|
|
+ height: 0px;
|
|
|
+ border: 1px solid;
|
|
|
+ opacity: 0.3;
|
|
|
+ border-image: linear-gradient(
|
|
|
+ 90deg,
|
|
|
+ rgba(215, 215, 215, 0),
|
|
|
+ rgba(215, 215, 215, 1),
|
|
|
+ rgba(215, 215, 215, 0)
|
|
|
+ )
|
|
|
+ 2 2;
|
|
|
+ }
|
|
|
+ > button.close {
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ bottom: 38px;
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ background-image: url(@/assets/images/btn-close.png);
|
|
|
+ background-size: cover;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: center center;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|