|
@@ -28,9 +28,10 @@
|
|
rel="tooltip"
|
|
rel="tooltip"
|
|
data-original-title="播放"
|
|
data-original-title="播放"
|
|
>
|
|
>
|
|
|
|
+ <!-- 鼠标移入的显示 -->
|
|
|
|
+ <div class="hoverTit">自动导览</div>
|
|
<a>
|
|
<a>
|
|
<img
|
|
<img
|
|
- title="自动导览"
|
|
|
|
:src="require('@/assets/images/icon/play.png')"
|
|
:src="require('@/assets/images/icon/play.png')"
|
|
width="24"
|
|
width="24"
|
|
height="24"
|
|
height="24"
|
|
@@ -38,6 +39,9 @@
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div id="pause" class="ui-icon" style="display: none">
|
|
<div id="pause" class="ui-icon" style="display: none">
|
|
|
|
+ <!-- 鼠标移入的显示 -->
|
|
|
|
+ <div class="hoverTit">自动导览</div>
|
|
|
|
+
|
|
<a>
|
|
<a>
|
|
<img
|
|
<img
|
|
rel="tooltip"
|
|
rel="tooltip"
|
|
@@ -71,8 +75,11 @@
|
|
rel="tooltip"
|
|
rel="tooltip"
|
|
title="场景导览"
|
|
title="场景导览"
|
|
>
|
|
>
|
|
|
|
+ <!-- 鼠标移入的显示 -->
|
|
|
|
+ <div class="hoverTit">导览列表</div>
|
|
|
|
+
|
|
<img
|
|
<img
|
|
- title="导览列表"
|
|
|
|
|
|
+ title=""
|
|
class="icon icon-inside"
|
|
class="icon icon-inside"
|
|
:src="
|
|
:src="
|
|
require(`@/assets/images/icon/auto${
|
|
require(`@/assets/images/icon/auto${
|
|
@@ -83,18 +90,18 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div
|
|
<div
|
|
- title="全景漫游"
|
|
|
|
data-original-title="全景漫游"
|
|
data-original-title="全景漫游"
|
|
id="gui-modes-inside"
|
|
id="gui-modes-inside"
|
|
rel="tooltip"
|
|
rel="tooltip"
|
|
>
|
|
>
|
|
|
|
+ <!-- 鼠标移入的显示 -->
|
|
|
|
+ <div class="hoverTit">自由漫游</div>
|
|
|
|
+
|
|
<img
|
|
<img
|
|
- title="自由漫游"
|
|
|
|
class="icon icon-inside"
|
|
class="icon icon-inside"
|
|
:src="require('@/assets/images/icon/inside.png')"
|
|
:src="require('@/assets/images/icon/inside.png')"
|
|
/>
|
|
/>
|
|
<img
|
|
<img
|
|
- title="自由漫游"
|
|
|
|
class="icon icon-inside active"
|
|
class="icon icon-inside active"
|
|
:src="require('@/assets/images/icon/inside_active.png')"
|
|
:src="require('@/assets/images/icon/inside_active.png')"
|
|
/>
|
|
/>
|
|
@@ -105,13 +112,13 @@
|
|
id="gui-modes-dollhouse"
|
|
id="gui-modes-dollhouse"
|
|
rel="tooltip"
|
|
rel="tooltip"
|
|
>
|
|
>
|
|
|
|
+ <!-- 鼠标移入的显示 -->
|
|
|
|
+ <div class="hoverTit">三维视角</div>
|
|
<img
|
|
<img
|
|
- title="三维视角"
|
|
|
|
class="icon icon-inside"
|
|
class="icon icon-inside"
|
|
:src="require('@/assets/images/icon/dollhouse.png')"
|
|
:src="require('@/assets/images/icon/dollhouse.png')"
|
|
/>
|
|
/>
|
|
<img
|
|
<img
|
|
- title="三维视角"
|
|
|
|
class="icon icon-inside active"
|
|
class="icon icon-inside active"
|
|
:src="require('@/assets/images/icon/dollhouse_active.png')"
|
|
:src="require('@/assets/images/icon/dollhouse_active.png')"
|
|
/>
|
|
/>
|
|
@@ -122,13 +129,13 @@
|
|
rel="tooltip"
|
|
rel="tooltip"
|
|
title="顶部俯视"
|
|
title="顶部俯视"
|
|
>
|
|
>
|
|
|
|
+ <!-- 鼠标移入的显示 -->
|
|
|
|
+ <div class="hoverTit">平面视角</div>
|
|
<img
|
|
<img
|
|
- title="平面视角"
|
|
|
|
class="icon icon-inside"
|
|
class="icon icon-inside"
|
|
:src="require('@/assets/images/icon/floor.png')"
|
|
:src="require('@/assets/images/icon/floor.png')"
|
|
/>
|
|
/>
|
|
<img
|
|
<img
|
|
- title="平面视角"
|
|
|
|
class="active icon icon-inside active"
|
|
class="active icon icon-inside active"
|
|
:src="require('@/assets/images/icon/floor_active.png')"
|
|
:src="require('@/assets/images/icon/floor_active.png')"
|
|
/>
|
|
/>
|
|
@@ -220,12 +227,17 @@
|
|
<!-- 左侧按钮 -->
|
|
<!-- 左侧按钮 -->
|
|
<img class="logo" src="@/assets/img/logo.png" alt="" />
|
|
<img class="logo" src="@/assets/img/logo.png" alt="" />
|
|
<div class="rowBox">
|
|
<div class="rowBox">
|
|
- <div class="row" v-for="item in rightList" :key="item.id">
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="row"
|
|
|
|
+ @click="meanInd = item.id"
|
|
|
|
+ v-for="item in rightList"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ >
|
|
<img
|
|
<img
|
|
:src="
|
|
:src="
|
|
require(`@/assets/img/${item.img}${
|
|
require(`@/assets/img/${item.img}${
|
|
meanInd === item.id ? 'Ac' : ''
|
|
meanInd === item.id ? 'Ac' : ''
|
|
- }.jpg`)
|
|
|
|
|
|
+ }.png`)
|
|
"
|
|
"
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
@@ -234,10 +246,10 @@
|
|
</div>
|
|
</div>
|
|
<div class="bottBtn">
|
|
<div class="bottBtn">
|
|
<!-- 分享 -->
|
|
<!-- 分享 -->
|
|
- <div class="share" @click="shareShow = true">
|
|
|
|
|
|
+ <div class="share" @click="meanInd = -1">
|
|
<img
|
|
<img
|
|
title="分享"
|
|
title="分享"
|
|
- :src="require(`@/assets/img/share${shareShow ? 'Ac' : ''}.png`)"
|
|
|
|
|
|
+ :src="require(`@/assets/img/share${meanInd===-1 ? 'Ac' : ''}.png`)"
|
|
alt=""
|
|
alt=""
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
@@ -282,29 +294,36 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 分享组件 -->
|
|
<!-- 分享组件 -->
|
|
- <Share v-if="shareShow" @close='shareShow=false' :smBtn='smBtn'/>
|
|
|
|
|
|
+ <Share v-if="meanInd===-1" @close="meanInd = null" :smBtn="smBtn" />
|
|
|
|
+ <!-- 地图导航组件 -->
|
|
|
|
+ <MapNav v-else-if="meanInd===1" @close="meanInd = null" :smBtn="smBtn" />
|
|
|
|
+ <!-- 精品文物组件 -->
|
|
|
|
+ <Antique v-else-if="meanInd===2" @close="meanInd = null" :smBtn="smBtn" />
|
|
|
|
+ <!-- 热点列表组件 -->
|
|
|
|
+ <Hotspot v-else-if="meanInd===3" @close="meanInd = null" :smBtn="smBtn" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
//引入组件
|
|
//引入组件
|
|
-import Share from './compomemt/share.vue'
|
|
|
|
|
|
+import Share from "./compomemt/share.vue";
|
|
|
|
+import MapNav from "./compomemt/mapNav";
|
|
|
|
+import Antique from "./compomemt/antique.vue";
|
|
|
|
+import Hotspot from "./compomemt/hotspot";
|
|
export default {
|
|
export default {
|
|
- components: {Share},
|
|
|
|
|
|
+ components: { Share, MapNav, Antique, Hotspot },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
isGuide: true,
|
|
isGuide: true,
|
|
bgmPlay: false,
|
|
bgmPlay: false,
|
|
// 右侧菜单数据
|
|
// 右侧菜单数据
|
|
smBtn: false,
|
|
smBtn: false,
|
|
- meanInd: 1,
|
|
|
|
|
|
+ meanInd: null,
|
|
rightList: [
|
|
rightList: [
|
|
{ id: 1, name: "地图导航", img: "navigation" },
|
|
{ id: 1, name: "地图导航", img: "navigation" },
|
|
{ id: 2, name: "精品文物", img: "antique" },
|
|
{ id: 2, name: "精品文物", img: "antique" },
|
|
{ id: 3, name: "热点列表", img: "hotspot" },
|
|
{ id: 3, name: "热点列表", img: "hotspot" },
|
|
],
|
|
],
|
|
- // 分享
|
|
|
|
- shareShow: false,
|
|
|
|
};
|
|
};
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -347,7 +366,49 @@ export default {
|
|
color: #edd3b0;
|
|
color: #edd3b0;
|
|
outline: none;
|
|
outline: none;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+// 鼠标移入显示的文字和图片
|
|
|
|
+#gui-modes-inside {
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+#gui-modes-dollhouse {
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+#gui-modes-floorplan {
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+.hoverTit {
|
|
|
|
+ pointer-events: none;
|
|
|
|
+ transition: all 0.5s;
|
|
|
|
+ opacity: 0;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
+ top: -40px;
|
|
|
|
+ width: 80px;
|
|
|
|
+ height: 37px;
|
|
|
|
+ line-height: 30px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ background: url("../../assets/img/hoverTit.png");
|
|
|
|
+ background-size: 100% 100%;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ color: #fff6d2;
|
|
|
|
+}
|
|
|
|
+#play:hover {
|
|
|
|
+ .hoverTit {
|
|
|
|
+ opacity: 1;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+#pause:hover {
|
|
|
|
+ .hoverTit {
|
|
|
|
+ opacity: 1;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+#gui-modes-map > div:hover {
|
|
|
|
+ .hoverTit {
|
|
|
|
+ opacity: 1;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+// -------------
|
|
.rightMenu {
|
|
.rightMenu {
|
|
position: fixed;
|
|
position: fixed;
|
|
top: 0;
|
|
top: 0;
|
|
@@ -356,7 +417,7 @@ export default {
|
|
transition: all 0.3s;
|
|
transition: all 0.3s;
|
|
z-index: 999;
|
|
z-index: 999;
|
|
height: 100%;
|
|
height: 100%;
|
|
- background-color: rgba(119,73,38,.8);
|
|
|
|
|
|
+ background-color: rgba(119, 73, 38, 0.8);
|
|
text-align: center;
|
|
text-align: center;
|
|
.smBtn {
|
|
.smBtn {
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -368,7 +429,7 @@ export default {
|
|
left: -18px;
|
|
left: -18px;
|
|
width: 18px;
|
|
width: 18px;
|
|
height: 60px;
|
|
height: 60px;
|
|
- background-color: rgba(119,73,38,.8);
|
|
|
|
|
|
+ background-color: rgba(119, 73, 38, 0.8);
|
|
border-radius: 5px 0 0 5px;
|
|
border-radius: 5px 0 0 5px;
|
|
}
|
|
}
|
|
.logo {
|
|
.logo {
|
|
@@ -390,8 +451,8 @@ export default {
|
|
height: 30%;
|
|
height: 30%;
|
|
margin-bottom: 25px;
|
|
margin-bottom: 25px;
|
|
& > img {
|
|
& > img {
|
|
- max-width: 164px;
|
|
|
|
- max-height: 164px;
|
|
|
|
|
|
+ max-width: 140px;
|
|
|
|
+ max-height: 140px;
|
|
object-fit: cover;
|
|
object-fit: cover;
|
|
height: calc(100% - 30px);
|
|
height: calc(100% - 30px);
|
|
}
|
|
}
|