mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
去掉调整弹兴趣
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
<img src="@/components/VideoPlayer/images/loading.svg" alt="loading"/>
|
||||
</div>
|
||||
<!-- 控制栏 -->
|
||||
<div class="player-controls-container" @click="videoDom.focus({preventScroll: true})">
|
||||
<div v-show="!isShowLoading" class="player-controls-container" @click="videoDom.focus({preventScroll: true})">
|
||||
<div v-show="isShowVolumeHint" class="player-volumeHint">
|
||||
<span class="player-volumeHint-text">当前音量:{{volumePercent}}%</span>
|
||||
</div>
|
||||
@@ -275,6 +275,7 @@ export default {
|
||||
isCursorStatic: false, // 鼠标是否长时间静止不动
|
||||
isMousedownProgress: false, // 鼠标是否按下了进度条(并未松开)
|
||||
isPlaying: false, // 是否正在播放
|
||||
loadingError:false,//加载错误提示
|
||||
isShowLoading: false, // 是否显示加载框
|
||||
isShowVolumeHint: false, // 是否显示音量提示条(键盘触发)
|
||||
timeoutVolumeHint: 0, // 音量提示条多久ms后隐藏
|
||||
@@ -289,7 +290,9 @@ export default {
|
||||
isInit:false, // 是否初始化过
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
created() {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.videoDom = this.$refs.video;
|
||||
this.videoDom.focus({preventScroll: true});
|
||||
@@ -337,6 +340,8 @@ export default {
|
||||
}
|
||||
// 根据视频的readyState判断下一帧是否已加载,并控制loading的显示
|
||||
this.isShowLoading = this.videoDom.readyState < 3;
|
||||
//if()
|
||||
//console.log(this.videoDom.readyState,'this.videoDom.readyState');
|
||||
}, 1000);
|
||||
// 视频dom监听器,用于控制鼠标的显示
|
||||
this.videoDom.addEventListener("mousemove", () => {
|
||||
|
||||
@@ -615,7 +615,7 @@
|
||||
//检查引导页
|
||||
this.checkAndShowGuide();
|
||||
}
|
||||
this.$refs.userCollection.show();
|
||||
//this.$refs.userCollection.show();
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo','studyTaskCount']),
|
||||
|
||||
Reference in New Issue
Block a user