|
@@ -1,6 +1,32 @@
|
|
<template>
|
|
<template>
|
|
<div class="pano-view">
|
|
<div class="pano-view">
|
|
<div id="pano" />
|
|
<div id="pano" />
|
|
|
|
+ <button class="return-home">
|
|
|
|
+ 返回home
|
|
|
|
+ </button>
|
|
|
|
+ <CameraDesc
|
|
|
|
+ v-if="isShowCameraDesc"
|
|
|
|
+ @close="isShowCameraDesc = false"
|
|
|
|
+ />
|
|
|
|
+ <CharacterDesc
|
|
|
|
+ v-if="isShowCharacterDesc"
|
|
|
|
+ @close="isShowCharacterDesc = false"
|
|
|
|
+ />
|
|
|
|
+ <div class="character-wrap">
|
|
|
|
+ <button
|
|
|
|
+ class="name"
|
|
|
|
+ @click="isShowCharacterDesc = true"
|
|
|
|
+ >
|
|
|
|
+ 金二胖
|
|
|
|
+ </button>
|
|
|
|
+ <img
|
|
|
|
+ class="character"
|
|
|
|
+ src="@/assets/images/character.jpg"
|
|
|
|
+ alt=""
|
|
|
|
+ draggable="false"
|
|
|
|
+ @click="isShowCameraDesc = true"
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -9,12 +35,15 @@ import { ref, computed, watch, onMounted } from "vue"
|
|
import { useRoute, useRouter, onBeforeRouteUpdate } from "vue-router"
|
|
import { useRoute, useRouter, onBeforeRouteUpdate } from "vue-router"
|
|
import { useStore } from "vuex"
|
|
import { useStore } from "vuex"
|
|
import * as krfn from "@/libs/pano-core/index.js"
|
|
import * as krfn from "@/libs/pano-core/index.js"
|
|
|
|
+import CameraDesc from '@/components/CameraDesc.vue'
|
|
|
|
+import CharacterDesc from '@/components/CharacterDesc.vue'
|
|
|
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
const store = useStore()
|
|
const store = useStore()
|
|
|
|
|
|
-
|
|
|
|
|
|
+const isShowCameraDesc = ref(false)
|
|
|
|
+const isShowCharacterDesc = ref(false)
|
|
|
|
|
|
/**
|
|
/**
|
|
* 全景图
|
|
* 全景图
|
|
@@ -89,5 +118,34 @@ setTimeout(() => {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
+ >button.return-home{
|
|
|
|
+ position: absolute;
|
|
|
|
+ width: 100px;
|
|
|
|
+ height: 100px;
|
|
|
|
+ top: 100px;
|
|
|
|
+ right: 100px;
|
|
|
|
+ background-color: red;
|
|
|
|
+ }
|
|
|
|
+ >.character-wrap{
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ width: 100px;
|
|
|
|
+ height: 100px;
|
|
|
|
+ >button.name{
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ z-index: 1;
|
|
|
|
+ }
|
|
|
|
+ >img{
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|