mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
在线课bug修改
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
:biBarrageXml="biBarrageXml"
|
||||
/>
|
||||
<!-- 加载动画 -->
|
||||
<div v-show="isShowLoading && isCrowd" class="player-loading" @click="videoDom.focus({preventScroll: true})">
|
||||
<div v-show="isShowLoading && isCrowd && isShowPlayer" class="player-loading" @click="videoDom.focus({preventScroll: true})">
|
||||
<img src="@/components/VideoPlayer/images/loading.svg" alt="loading"/>
|
||||
</div>
|
||||
<!-- 控制栏 -->
|
||||
@@ -274,6 +274,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isShowPlayer: true,//增加一个状态,判断加载动画
|
||||
timeFastBack : 15, //单位秒,每次增减15秒
|
||||
videoDom: null, //视频dom
|
||||
isShowCover: true, // 是否显示封面
|
||||
@@ -568,6 +569,7 @@ export default {
|
||||
},
|
||||
currentProgress: function () {
|
||||
// 进度条到终点时修改播放状态
|
||||
this.isShowPlayer = false
|
||||
this.$emit('onPlayerPlaying', this.videoDom.currentTime,this.videoDom.duration)
|
||||
if (this.currentProgress === 1) {
|
||||
this.isPlaying = false;
|
||||
|
||||
Reference in New Issue
Block a user