Commit c5c457b4 by Sweet Zhang

样式调整

parent f7cd2de9
......@@ -70,6 +70,11 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
if (this.canplay) {
this.queryVideoPlayback(1);
setTimeout(() => {
this.video.nativeElement.addEventListener('ended', () => { //播放完成的函数
clearInterval(this.timer);
clearInterval(this.timer2);
console.log('播放完成的函数')
});
this.video.nativeElement.addEventListener('pause', () => { //暂停开始执行的函数
clearInterval(this.timer);
clearInterval(this.timer2);
......@@ -198,7 +203,7 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
} else {
this.fileId = val.fileId;
this.filePathQuery(val.learningStatus, this.fileId);
this.router.navigate(['/courseDetail','undefined',this.fileId],{replaceUrl:true});
this.router.navigate(['/courseDetail','0',this.fileId],{replaceUrl:true});
document.body.scroll({top:0,
left: 0,
behavior: 'smooth'})
......
......@@ -17,7 +17,7 @@
</div>
</div>
</div>
<div class="closeBtn">
<!-- <div class="closeBtn">
<i class="iconfont icon-jia" (click)="close()"></i>
</div>
</div> -->
</div>
\ No newline at end of file
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