Commit 39398e21 authored by Chen Jiping's avatar Chen Jiping

Merge branch 'master' of http://vcs.ireadabc.com/template/JMXS03

parents 955b6477 15d621e1
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div class='title sub-title' id='title2'></div> <div class='title sub-title' id='title2'></div>
</div> </div>
<div class="video-container"> <div class="video-container">
<video id="video" class="video" src="" muted></video> <video id="video" class="video" src=""></video>
</div> </div>
<div class="page-bar" style="position: absolute; bottom: 0.5rem; z-index: 99; left: 8.0rem;"> <div class="page-bar" style="position: absolute; bottom: 0.5rem; z-index: 99; left: 8.0rem;">
......
...@@ -130,6 +130,12 @@ class PlayView { ...@@ -130,6 +130,12 @@ class PlayView {
if(_this.curIndex > _this.unlock){ if(_this.curIndex > _this.unlock){
_this.unlock = _this.curIndex; _this.unlock = _this.curIndex;
} }
if(_this.curIndex >= this.data.videoArr.length){
// 视频都播放完了,显示下一页按钮
window.courseware.nextPage();
}
// 监听视频播放结束 // 监听视频播放结束
_this.refreshBtnStatus(); _this.refreshBtnStatus();
}); });
...@@ -162,6 +168,7 @@ class PlayView { ...@@ -162,6 +168,7 @@ class PlayView {
_this.refreshBtnStatus(); _this.refreshBtnStatus();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment