|
|
@@ -25,6 +25,7 @@ export default defineComponent({
|
|
|
const { kankanInited, guidePlaying, hotList, hotListVisible, bgMusicDom, bgMusicPlaying } =
|
|
|
storeToRefs(baseStore);
|
|
|
const guideVisible = ref(false);
|
|
|
+ const guideToolsVisible = ref(false);
|
|
|
const rulesRef = ref<IRulesMethods>();
|
|
|
|
|
|
const handlePlayGuide = async () => {
|
|
|
@@ -93,6 +94,7 @@ export default defineComponent({
|
|
|
guidePlaying,
|
|
|
bgMusicDom,
|
|
|
bgMusicPlaying,
|
|
|
+ guideToolsVisible,
|
|
|
rulesRef,
|
|
|
toggle,
|
|
|
openHotList,
|
|
|
@@ -117,22 +119,26 @@ export default defineComponent({
|
|
|
})}
|
|
|
>
|
|
|
<div class="pinBottom left">
|
|
|
- <div id="play" class="ui-icon" onClick={this.handlePlayGuide}>
|
|
|
- <a>
|
|
|
- {!this.guidePlaying ? (
|
|
|
- <img src="images/play.png" />
|
|
|
- ) : (
|
|
|
- <img title="暂停" src="images/pause.png" />
|
|
|
- )}
|
|
|
- </a>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- id="pullTab"
|
|
|
- class={className({ opened: this.guideVisible })}
|
|
|
- onClick={() => (this.guideVisible = !this.guideVisible)}
|
|
|
- >
|
|
|
- <img class="icon icon-inside" src="images/auto.png" title="导览" />
|
|
|
- </div>
|
|
|
+ {this.guideToolsVisible && (
|
|
|
+ <>
|
|
|
+ <div id="play" class="ui-icon" onClick={this.handlePlayGuide}>
|
|
|
+ <a>
|
|
|
+ {!this.guidePlaying ? (
|
|
|
+ <img src="images/play.png" />
|
|
|
+ ) : (
|
|
|
+ <img title="暂停" src="images/pause.png" />
|
|
|
+ )}
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ id="pullTab"
|
|
|
+ class={className({ opened: this.guideVisible })}
|
|
|
+ onClick={() => (this.guideVisible = !this.guideVisible)}
|
|
|
+ >
|
|
|
+ <img class="icon icon-inside" src="images/auto.png" title="导览" />
|
|
|
+ </div>
|
|
|
+ </>
|
|
|
+ )}
|
|
|
{Boolean(this.hotList.length) && (
|
|
|
<div id="hotList" onClick={this.openHotList}>
|
|
|
<img class="icon icon-inside" src="images/hotlist.png" title="热点列表" />
|
|
|
@@ -189,7 +195,11 @@ export default defineComponent({
|
|
|
</>
|
|
|
)}
|
|
|
|
|
|
- <Guide open={this.guideVisible} playing={this.guidePlaying} />
|
|
|
+ <Guide
|
|
|
+ open={this.guideVisible}
|
|
|
+ playing={this.guidePlaying}
|
|
|
+ onShowTools={() => (this.guideToolsVisible = true)}
|
|
|
+ />
|
|
|
<Rules ref="rulesRef" />
|
|
|
</>
|
|
|
);
|