|
@@ -22,7 +22,7 @@ export default defineComponent({
|
|
|
const baseStore = useBaseStore();
|
|
const baseStore = useBaseStore();
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
const { isFullscreen, isSupported, toggle } = useFullscreen();
|
|
const { isFullscreen, isSupported, toggle } = useFullscreen();
|
|
|
- const { kankanInited, guidePlaying, hotList, bgMusicDom, bgMusicPlaying } =
|
|
|
|
|
|
|
+ const { kankanInited, guidePlaying, hotList, hotListVisible, bgMusicDom, bgMusicPlaying } =
|
|
|
storeToRefs(baseStore);
|
|
storeToRefs(baseStore);
|
|
|
const guideVisible = ref(false);
|
|
const guideVisible = ref(false);
|
|
|
const rulesRef = ref<IRulesMethods>();
|
|
const rulesRef = ref<IRulesMethods>();
|
|
@@ -35,10 +35,10 @@ export default defineComponent({
|
|
|
player.pause();
|
|
player.pause();
|
|
|
} else {
|
|
} else {
|
|
|
player.play();
|
|
player.play();
|
|
|
|
|
+ guideVisible.value = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
baseStore.setState('guidePlaying', !playing);
|
|
baseStore.setState('guidePlaying', !playing);
|
|
|
- guideVisible.value = !playing;
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const handleDollhouse = () => {
|
|
const handleDollhouse = () => {
|
|
@@ -51,7 +51,7 @@ export default defineComponent({
|
|
|
window.kankan.Camera.panorama();
|
|
window.kankan.Camera.panorama();
|
|
|
};
|
|
};
|
|
|
const openHotList = () => {
|
|
const openHotList = () => {
|
|
|
- baseStore.setState('hotListVisible', true);
|
|
|
|
|
|
|
+ baseStore.setState('hotListVisible', !hotListVisible.value);
|
|
|
};
|
|
};
|
|
|
const startMeasure = () => {
|
|
const startMeasure = () => {
|
|
|
rulesRef.value?.startMeasure();
|
|
rulesRef.value?.startMeasure();
|
|
@@ -86,6 +86,7 @@ export default defineComponent({
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
hotList,
|
|
hotList,
|
|
|
|
|
+ hotListVisible,
|
|
|
isSupported,
|
|
isSupported,
|
|
|
isFullscreen,
|
|
isFullscreen,
|
|
|
guideVisible,
|
|
guideVisible,
|
|
@@ -111,6 +112,7 @@ export default defineComponent({
|
|
|
<div
|
|
<div
|
|
|
class={className('pinBottom-container', {
|
|
class={className('pinBottom-container', {
|
|
|
open: this.guideVisible,
|
|
open: this.guideVisible,
|
|
|
|
|
+ playing: this.guidePlaying,
|
|
|
noScroll: !this.guidePlaying,
|
|
noScroll: !this.guidePlaying,
|
|
|
})}
|
|
})}
|
|
|
>
|
|
>
|
|
@@ -118,9 +120,9 @@ export default defineComponent({
|
|
|
<div id="play" class="ui-icon" onClick={this.handlePlayGuide}>
|
|
<div id="play" class="ui-icon" onClick={this.handlePlayGuide}>
|
|
|
<a>
|
|
<a>
|
|
|
{!this.guidePlaying ? (
|
|
{!this.guidePlaying ? (
|
|
|
- <img src="images/play.png" width="24" height="24" />
|
|
|
|
|
|
|
+ <img src="images/play.png" />
|
|
|
) : (
|
|
) : (
|
|
|
- <img title="暂停" src="images/pause.png" width="24" height="24" />
|
|
|
|
|
|
|
+ <img title="暂停" src="images/pause.png" />
|
|
|
)}
|
|
)}
|
|
|
</a>
|
|
</a>
|
|
|
</div>
|
|
</div>
|
|
@@ -129,13 +131,7 @@ export default defineComponent({
|
|
|
class={className({ opened: this.guideVisible })}
|
|
class={className({ opened: this.guideVisible })}
|
|
|
onClick={() => (this.guideVisible = !this.guideVisible)}
|
|
onClick={() => (this.guideVisible = !this.guideVisible)}
|
|
|
>
|
|
>
|
|
|
- <img
|
|
|
|
|
- class="icon icon-inside"
|
|
|
|
|
- src="images/auto.png"
|
|
|
|
|
- title="导览"
|
|
|
|
|
- data-default-url="images/auto.png"
|
|
|
|
|
- data-active-url="images/auto-suspend.png"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <img class="icon icon-inside" src="images/auto.png" title="导览" />
|
|
|
</div>
|
|
</div>
|
|
|
{Boolean(this.hotList.length) && (
|
|
{Boolean(this.hotList.length) && (
|
|
|
<div id="hotList" onClick={this.openHotList}>
|
|
<div id="hotList" onClick={this.openHotList}>
|