|
@@ -68,7 +68,7 @@
|
|
|
:style="{ paddingLeft: navigationShow ? '15px' : '315px', paddingRight: sidebarShow ? '15px' : '315px' }"
|
|
:style="{ paddingLeft: navigationShow ? '15px' : '315px', paddingRight: sidebarShow ? '15px' : '315px' }"
|
|
|
>
|
|
>
|
|
|
<!-- 左侧菜单栏 - 收缩 -->
|
|
<!-- 左侧菜单栏 - 收缩 -->
|
|
|
- <div v-if="!navigationShow" class="catalogue-bar" @click="toggleNavigationShow">
|
|
|
|
|
|
|
+ <div v-if="!navigationShow && !isFullScreen" class="catalogue-bar" @click="toggleNavigationShow">
|
|
|
<SvgIcon icon-class="catalogue" size="54" />
|
|
<SvgIcon icon-class="catalogue" size="54" />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -97,7 +97,7 @@
|
|
|
</main>
|
|
</main>
|
|
|
|
|
|
|
|
<!-- 右侧菜单栏 - 收缩 -->
|
|
<!-- 右侧菜单栏 - 收缩 -->
|
|
|
- <aside v-if="!sidebarShow" class="sidebar-bar">
|
|
|
|
|
|
|
+ <aside v-if="!sidebarShow && !isFullScreen" class="sidebar-bar">
|
|
|
<aside class="toolbar">
|
|
<aside class="toolbar">
|
|
|
<div class="toolbar-special">
|
|
<div class="toolbar-special">
|
|
|
<img :src="require('@/assets/icon/sidebar-fullscreen.png')" alt="全屏" @click="fullScreen" />
|
|
<img :src="require('@/assets/icon/sidebar-fullscreen.png')" alt="全屏" @click="fullScreen" />
|
|
@@ -212,11 +212,7 @@
|
|
|
<el-image v-if="shouldShowItem(chapter, item)" :src="item.file_url" fit="contain" />
|
|
<el-image v-if="shouldShowItem(chapter, item)" :src="item.file_url" fit="contain" />
|
|
|
<div class="mark">
|
|
<div class="mark">
|
|
|
<span class="word">{{ item.file_name }}</span>
|
|
<span class="word">{{ item.file_name }}</span>
|
|
|
- <el-link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- class="el-icon-place linkLocation"
|
|
|
|
|
- @click="handleLocation(item, 3)"
|
|
|
|
|
- ></el-link>
|
|
|
|
|
|
|
+ <el-link type="primary" class="el-icon-place linkLocation" @click="handleLocation(item, 3)" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-else-if="parseInt(drawerType) === 1">
|
|
<template v-else-if="parseInt(drawerType) === 1">
|
|
@@ -230,11 +226,7 @@
|
|
|
/>
|
|
/>
|
|
|
<div class="mark">
|
|
<div class="mark">
|
|
|
<span class="word"></span>
|
|
<span class="word"></span>
|
|
|
- <el-link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- class="el-icon-place linkLocation"
|
|
|
|
|
- @click="handleLocation(item, 3)"
|
|
|
|
|
- ></el-link>
|
|
|
|
|
|
|
+ <el-link type="primary" class="el-icon-place linkLocation" @click="handleLocation(item, 3)" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-else-if="parseInt(drawerType) === 2">
|
|
<template v-else-if="parseInt(drawerType) === 2">
|
|
@@ -246,11 +238,7 @@
|
|
|
/>
|
|
/>
|
|
|
<div class="mark">
|
|
<div class="mark">
|
|
|
<span class="word">{{ item.file_name }}</span>
|
|
<span class="word">{{ item.file_name }}</span>
|
|
|
- <el-link
|
|
|
|
|
- type="primary"
|
|
|
|
|
- class="el-icon-place linkLocation"
|
|
|
|
|
- @click="handleLocation(item, 3)"
|
|
|
|
|
- ></el-link>
|
|
|
|
|
|
|
+ <el-link type="primary" class="el-icon-place linkLocation" @click="handleLocation(item, 3)" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</li>
|
|
</li>
|
|
@@ -553,6 +541,7 @@ export default {
|
|
|
book_id: '',
|
|
book_id: '',
|
|
|
activeBookChapterId: '',
|
|
activeBookChapterId: '',
|
|
|
multimediaLoadingStates: true,
|
|
multimediaLoadingStates: true,
|
|
|
|
|
+ isFullScreen: false, // 是否全屏状态
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -612,6 +601,18 @@ export default {
|
|
|
if (!this.isBook) {
|
|
if (!this.isBook) {
|
|
|
this.getProjectInfo();
|
|
this.getProjectInfo();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // 监听全屏事件
|
|
|
|
|
+ document.addEventListener('fullscreenchange', () => {
|
|
|
|
|
+ if (document.fullscreenElement) {
|
|
|
|
|
+ this.isFullScreen = true;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.isFullScreen = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ beforeDestroy() {
|
|
|
|
|
+ document.removeEventListener('fullscreenchange', () => {});
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
getProjectBaseInfo() {
|
|
getProjectBaseInfo() {
|
|
@@ -823,7 +824,7 @@ export default {
|
|
|
this[handle](param);
|
|
this[handle](param);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (barLevel == 2) {
|
|
|
|
|
|
|
+ if (barLevel === 2) {
|
|
|
this.twoCurToolbarIcon = icon;
|
|
this.twoCurToolbarIcon = icon;
|
|
|
} else {
|
|
} else {
|
|
|
this.curToolbarIcon = icon;
|
|
this.curToolbarIcon = icon;
|