|
@@ -31,6 +31,7 @@
|
|
|
class="ui-icon"
|
|
|
rel="tooltip"
|
|
|
data-original-title="播放"
|
|
|
+ @click="onClickPlay"
|
|
|
>
|
|
|
<!-- 鼠标移入的显示 -->
|
|
|
<!-- <div class="hoverTit">自动导览</div> -->
|
|
@@ -53,7 +54,6 @@
|
|
|
title=""
|
|
|
:src="require('@/assets/images/pause.png')"
|
|
|
data-original-title="暂停"
|
|
|
- :style="{opacity: '1',}"
|
|
|
>
|
|
|
</a>
|
|
|
</div>
|
|
@@ -95,7 +95,6 @@
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
- v-show="!isMobile"
|
|
|
id="gui-modes-inside"
|
|
|
data-original-title="全景漫游"
|
|
|
rel="tooltip"
|
|
@@ -108,7 +107,6 @@
|
|
|
>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-show="!isMobile"
|
|
|
id="gui-modes-dollhouse"
|
|
|
title="迷你模型"
|
|
|
data-original-title="迷你模型"
|
|
@@ -122,7 +120,6 @@
|
|
|
>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-show="!isMobile"
|
|
|
id="gui-modes-floorplan"
|
|
|
data-original-title="俯视图"
|
|
|
rel="tooltip"
|
|
@@ -180,14 +177,15 @@
|
|
|
<div class="pinBottom right hideTarget">
|
|
|
<div class="rightViewContainer clearfix">
|
|
|
<div
|
|
|
+ v-if="!isMobile"
|
|
|
class="ui-icon my-floor"
|
|
|
+ :class="{
|
|
|
+ active: currentSceneCode === '1265'
|
|
|
+ }"
|
|
|
@click="ChangeFloor('1265')"
|
|
|
>
|
|
|
<a>
|
|
|
<img
|
|
|
- :class="{
|
|
|
- active: currentSceneCode === '1265'
|
|
|
- }"
|
|
|
src="@/assets/images/floor-1.png"
|
|
|
alt=""
|
|
|
draggable="false"
|
|
@@ -195,14 +193,15 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div
|
|
|
+ v-if="!isMobile"
|
|
|
class="ui-icon my-floor"
|
|
|
+ :class="{
|
|
|
+ active: currentSceneCode === '1263'
|
|
|
+ }"
|
|
|
@click="ChangeFloor('1263')"
|
|
|
>
|
|
|
<a>
|
|
|
<img
|
|
|
- :class="{
|
|
|
- active: currentSceneCode === '1263'
|
|
|
- }"
|
|
|
src="@/assets/images/floor-2.png"
|
|
|
alt=""
|
|
|
draggable="false"
|
|
@@ -210,14 +209,15 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
<div
|
|
|
+ v-if="!isMobile"
|
|
|
class="ui-icon my-floor"
|
|
|
+ :class="{
|
|
|
+ active: currentSceneCode === '1264'
|
|
|
+ }"
|
|
|
@click="ChangeFloor('1264')"
|
|
|
>
|
|
|
<a>
|
|
|
<img
|
|
|
- :class="{
|
|
|
- active: currentSceneCode === '1264'
|
|
|
- }"
|
|
|
src="@/assets/images/floor-3.png"
|
|
|
alt=""
|
|
|
draggable="false"
|
|
@@ -225,6 +225,72 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
|
|
|
+ <div
|
|
|
+ v-if="isMobile"
|
|
|
+ class="floor-selector-wrap"
|
|
|
+ :class="{
|
|
|
+ expanded: isSelectingFloor,
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="ui-icon floor-mobile"
|
|
|
+ :style="{
|
|
|
+ opacity: (currentSceneCode === '1265' || isSelectingFloor) ? '1' : '0',
|
|
|
+ right: !isSelectingFloor ? '0' : currentSceneCode === '1265' ? '0' : 'calc(44px + 12px)',
|
|
|
+ }"
|
|
|
+ @click="onClickFloorBtnMobile('1265')"
|
|
|
+ >
|
|
|
+ <a>
|
|
|
+ <img
|
|
|
+ :class="{
|
|
|
+ active: currentSceneCode === '1265'
|
|
|
+ }"
|
|
|
+ src="@/assets/images/floor-1.png"
|
|
|
+ alt=""
|
|
|
+ draggable="false"
|
|
|
+ >
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="ui-icon floor-mobile"
|
|
|
+ :style="{
|
|
|
+ opacity: (currentSceneCode === '1263' || isSelectingFloor) ? '1' : '0',
|
|
|
+ right: !isSelectingFloor ? '0' : currentSceneCode === '1265' ? 'calc(44px + 12px)' : currentSceneCode === '1263' ? '0' : 'calc(44px * 2 + 12px * 2)',
|
|
|
+ }"
|
|
|
+ @click="onClickFloorBtnMobile('1263')"
|
|
|
+ >
|
|
|
+ <a>
|
|
|
+ <img
|
|
|
+ :class="{
|
|
|
+ active: currentSceneCode === '1263'
|
|
|
+ }"
|
|
|
+ src="@/assets/images/floor-2.png"
|
|
|
+ alt=""
|
|
|
+ draggable="false"
|
|
|
+ >
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="ui-icon floor-mobile"
|
|
|
+ :style="{
|
|
|
+ opacity: (currentSceneCode === '1264' || isSelectingFloor) ? '1' : '0',
|
|
|
+ right: !isSelectingFloor ? '0' : currentSceneCode === '1265' ? 'calc(44px * 2 + 12px * 2)' : currentSceneCode === '1263' ? 'calc(44px * 2 + 12px * 2)' : '0',
|
|
|
+ }"
|
|
|
+ @click="onClickFloorBtnMobile('1264')"
|
|
|
+ >
|
|
|
+ <a>
|
|
|
+ <img
|
|
|
+ :class="{
|
|
|
+ active: currentSceneCode === '1264'
|
|
|
+ }"
|
|
|
+ src="@/assets/images/floor-3.png"
|
|
|
+ alt=""
|
|
|
+ draggable="false"
|
|
|
+ >
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<!-- 音乐 -->
|
|
|
<div
|
|
|
id="volume"
|
|
@@ -243,9 +309,6 @@
|
|
|
<img
|
|
|
id="closeMusic"
|
|
|
style="display: none"
|
|
|
- :style="{
|
|
|
- opacity: '1',
|
|
|
- }"
|
|
|
src="../../assets/images/music.png"
|
|
|
alt=""
|
|
|
title="关闭音乐"
|
|
@@ -256,6 +319,7 @@
|
|
|
|
|
|
<!-- 全屏 -->
|
|
|
<div
|
|
|
+ v-show="!isMobile"
|
|
|
id="gui-fullscreen"
|
|
|
class="ui-icon wide"
|
|
|
data-placement="top"
|
|
@@ -297,6 +361,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
isGuide: false,
|
|
|
+ isSelectingFloor: false,
|
|
|
+ floorBtnCollapseTimeoutId: null,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -305,6 +371,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
+ isSelectingFloor: {
|
|
|
+ handler(vNew) {
|
|
|
+ clearTimeout(this.floorBtnCollapseTimeoutId)
|
|
|
+ if (vNew) {
|
|
|
+ this.floorBtnCollapseTimeoutId = setTimeout(() => {
|
|
|
+ this.isSelectingFloor = false
|
|
|
+ }, 2000)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
mounted() {
|
|
|
},
|
|
@@ -321,12 +397,23 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
ChangeFloor(sceneCode) {
|
|
|
- console.log(sceneCode)
|
|
|
- const locationQuerySection = new URLSearchParams(location.href.split('?')[1])
|
|
|
- locationQuerySection.set('m', sceneCode)
|
|
|
- const newLocation = location.href.split('?')[0] + '?' + locationQuerySection.toString()
|
|
|
- location.assign(newLocation)
|
|
|
- location.reload(true)
|
|
|
+ if (this.currentSceneCode !== sceneCode) {
|
|
|
+ const locationQuerySection = new URLSearchParams(location.href.split('?')[1])
|
|
|
+ locationQuerySection.set('m', sceneCode)
|
|
|
+ const newLocation = location.href.split('?')[0] + '?' + locationQuerySection.toString()
|
|
|
+ location.assign(newLocation)
|
|
|
+ location.reload(true)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onClickFloorBtnMobile(floorCode) {
|
|
|
+ if (!this.isSelectingFloor) {
|
|
|
+ } else {
|
|
|
+ this.ChangeFloor(floorCode)
|
|
|
+ }
|
|
|
+ this.isSelectingFloor = !this.isSelectingFloor
|
|
|
+ },
|
|
|
+ onClickPlay() {
|
|
|
+ console.log('sadfsfdsdfsdfgdfg')
|
|
|
}
|
|
|
},
|
|
|
}
|
|
@@ -407,7 +494,6 @@ export default {
|
|
|
img {
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
- opacity: 0.7;
|
|
|
}
|
|
|
}
|
|
|
#gui-modes-map {
|
|
@@ -456,40 +542,44 @@ export default {
|
|
|
> img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- opacity: 0.7;
|
|
|
- }
|
|
|
- > img.active {
|
|
|
- opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- > #gui-fullscreen, #gui-fullscreen-exit {
|
|
|
- > a {
|
|
|
- > img {
|
|
|
- opacity: 1;
|
|
|
- }
|
|
|
- }
|
|
|
+ .ui-icon.my-floor {
|
|
|
+ opacity: 0.7;
|
|
|
+ }
|
|
|
+ .ui-icon.my-floor.active {
|
|
|
+ opacity: 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
// ----------end of 右下方菜单---------------
|
|
|
|
|
|
// -------------移动端特殊样式---------------
|
|
|
-@button-margin: calc((100vw - 50px * 4) / 5);
|
|
|
.mobile {
|
|
|
.pinBottom.left {
|
|
|
+ left: 0;
|
|
|
+ bottom: 0;
|
|
|
> div {
|
|
|
> .viewContainer {
|
|
|
- margin-left: @button-margin;
|
|
|
+ flex-direction: column;
|
|
|
+ margin-left: 20px;
|
|
|
+ margin-bottom: 25px;
|
|
|
#play,
|
|
|
#pause {
|
|
|
- margin-right: @button-margin;
|
|
|
+ margin-top: 15px;
|
|
|
+ margin-right: 0;
|
|
|
+ width: 45px;
|
|
|
+ height: 60px;
|
|
|
img {
|
|
|
}
|
|
|
}
|
|
|
#gui-modes-map {
|
|
|
> div {
|
|
|
- margin-right: @button-margin;
|
|
|
+ margin-top: 15px;
|
|
|
+ margin-right: 0;
|
|
|
+ width: 45px;
|
|
|
+ height: 60px;
|
|
|
> img {
|
|
|
}
|
|
|
&.active {
|
|
@@ -503,10 +593,35 @@ export default {
|
|
|
}
|
|
|
|
|
|
.pinBottom.right {
|
|
|
+ position: fixed;
|
|
|
+ top: 130px;
|
|
|
+ bottom: initial;
|
|
|
.rightViewContainer {
|
|
|
- margin-right: @button-margin;
|
|
|
+ margin-right: 14px;
|
|
|
+ padding-bottom: 0;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: flex-end !important;
|
|
|
+ > .floor-selector-wrap {
|
|
|
+ height: 44px;
|
|
|
+ width: 44px;
|
|
|
+ position: relative;
|
|
|
+ margin-bottom: 10.5px;
|
|
|
+ > .floor-mobile {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
+ opacity: 0;
|
|
|
+ transition: all 0.5s;
|
|
|
+ }
|
|
|
+ &.expanded {
|
|
|
+ width: calc(44px * 3 + 12px * 2);
|
|
|
+ }
|
|
|
+ }
|
|
|
.ui-icon {
|
|
|
- margin-left: @button-margin;
|
|
|
+ width: 44px;
|
|
|
+ height: 44px;
|
|
|
+ margin-bottom: 10.5px;
|
|
|
+ margin-left: initial;
|
|
|
> a {
|
|
|
> img {
|
|
|
}
|