|
|
@@ -209,7 +209,7 @@
|
|
|
>
|
|
|
<img class="normal" :src="i.normalIcon" alt="" />
|
|
|
<img class="active" :src="i.activeIcon" alt="" />
|
|
|
- <div class="tip-box">{{ i.name }}</div>
|
|
|
+ <!-- <div class="tip-box">{{ i.name }}</div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</transition>
|
|
|
@@ -369,12 +369,12 @@ export default {
|
|
|
activeName: "关闭展览路线",
|
|
|
type: "route",
|
|
|
},
|
|
|
- {
|
|
|
+ /** {
|
|
|
normalIcon: require("@/assets/image/icon/new-icon/icon_screen.svg"),
|
|
|
activeIcon: require("@/assets/image/icon/new-icon/icon_screen_active.svg"),
|
|
|
name: "全屏",
|
|
|
type: "fullScreen",
|
|
|
- },
|
|
|
+ }, */
|
|
|
{
|
|
|
normalIcon: require("@/assets/image/icon/new-icon/icon_mod.svg"),
|
|
|
activeIcon: require("@/assets/image/icon/new-icon/icon_mod_active.svg"),
|
|
|
@@ -418,6 +418,10 @@ export default {
|
|
|
handler: () => {
|
|
|
if (!this.openType) {
|
|
|
this.openType = 'immersive'
|
|
|
+ this.setData({ showGuide: true, guideIsPlay: false, isCollapse: true });
|
|
|
+ if (!this.tourList.length) {
|
|
|
+ this.tourList = window.player ? player?.model?.heroLocations : [];
|
|
|
+ }
|
|
|
} else this.exitImmersive()
|
|
|
}
|
|
|
},
|
|
|
@@ -473,9 +477,6 @@ export default {
|
|
|
} else {
|
|
|
// 导览结束
|
|
|
player.director.tourInProgress && (player.director.stopTour(), player.director.endTourProgress());
|
|
|
- if (this.isCollapse) {
|
|
|
- this.setData({ showGuide: false, isCollapse: false });
|
|
|
- }
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
@@ -594,9 +595,17 @@ export default {
|
|
|
item.handler()
|
|
|
return
|
|
|
}
|
|
|
- if (!["route", "fullScreen", "controls"].includes(type)) {
|
|
|
+ if (!["route", "fullScreen", "controls", "guide"].includes(type)) {
|
|
|
if (this.openType != type) {
|
|
|
this.openType = type;
|
|
|
+
|
|
|
+ if (type === 'immersive') {
|
|
|
+ this.setData({ showGuide: true, isCollapse: true });
|
|
|
+ if (!this.tourList.length) {
|
|
|
+ this.tourList = window.player ? player?.model?.heroLocations : [];
|
|
|
+ }
|
|
|
+ return
|
|
|
+ }
|
|
|
} else {
|
|
|
this.openType = null;
|
|
|
}
|
|
|
@@ -606,11 +615,7 @@ export default {
|
|
|
// }
|
|
|
switch (item.type) {
|
|
|
case "guide":
|
|
|
- if (this.guideIsPlay) {
|
|
|
- this.setData({ guideIsPlay: false });
|
|
|
- return;
|
|
|
- }
|
|
|
- this.setData({ showGuide: true, guideIsPlay: true });
|
|
|
+ this.setData({ showGuide: true, guideIsPlay: !this.guideIsPlay });
|
|
|
if (!this.tourList.length) {
|
|
|
this.tourList = window.player ? player?.model?.heroLocations : [];
|
|
|
}
|
|
|
@@ -1236,7 +1241,7 @@ export default {
|
|
|
right: auto;
|
|
|
left: 10px;
|
|
|
bottom: auto;
|
|
|
- top: @mobileIconSize*6.7;
|
|
|
+ top: calc(@mobileIconSize*3 + 0.6667rem);
|
|
|
.button-item {
|
|
|
width: @mobileIconSize;
|
|
|
height: @mobileIconSize;
|