Commit b6caea33 by Sweet Zhang

目录问题修改

parent a3dc4e21
......@@ -4,14 +4,14 @@
[src]="fileUploadItem?.filePath"
controls="true"
[poster]="fileUploadItem?.fileFirstImg"
width="100%" height="200px" preload="none" (contextmenu)="menuPrevent()" x5-playsinline="true" playsinline="true" webkit-playsinline="true" disablePictureInPicture>
width="100%" height="200px" preload="none" (contextmenu)="menuPrevent()" x5-playsinline="true" playsinline="true" webkit-playsinline="true" x5-video-player-type="h5" disablePictureInPicture>
您的浏览器不支持 video 标签。
</video>
<img *ngIf="!canplay" [src]="fileUploadItem?.fileFirstImg" alt="" srcset="">
<img *ngIf="!canplay" [src]="fileUploadItem?.fileFirstImg" alt="" srcset="" style="height: 200px;">
</div>
<div class="courseTitle">
<h4>{{fileUploadItem?.itemName}}</h4>
<span class="viewpdf" *ngIf="fileUploadItem?.filePath && fileUploadItem?.filePath.indexOf('.pdf') > -1" [routerLink]="['/pdfView',fileId]">立即阅读</span>
<span class="viewpdf" *ngIf="fileUploadItem?.filePath && fileUploadItem?.filePath.indexOf('.pdf') > -1" [routerLink]="['/pdfView',fileId]" (click)="saveVideoPlayback()">立即阅读</span>
</div>
<div class="courseIntroContent">
<div class="tab">
......
......@@ -48,14 +48,14 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
if (type === 3) {
this.lecturerQuery(this.fileUploadItem.fileLecturerId);
} else if (type == 2) {
this.filePathQuery(this.status, null,this.fileUploadItem.mdDropOptionCode)
this.filePathQuery(null, null,this.fileUploadItem.mdDropOptionCode)
} else {
this.filePathQuery(this.status, this.fileId)
}
}
filePathQuery(status, fileId,code=null) {
if(status==='undefined'){
if(status=='undefined' || status == '0'){
status = undefined;
}
this.myService.filePath('3', '0', '23', 'yd_trainning_file_type', code, this.customerId, status, fileId).subscribe(res => {
......@@ -178,8 +178,9 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
if (val.learningStatus == '3') {
this.state.modal1 = true;
} else {
this.filePathQuery(val.learningStatus, val.fileId);
this.router.navigate(['/courseDetail','undefined',val.fileId],{replaceUrl:true});
this.fileId = val.fileId;
this.filePathQuery(val.learningStatus, this.fileId);
this.router.navigate(['/courseDetail','undefined',this.fileId],{replaceUrl:true});
document.body.scroll({top:0,
left: 0,
behavior: 'smooth'})
......
......@@ -29,7 +29,7 @@ export class TrainingRecordsComponent implements OnInit {
}
ngOnInit() {
this.status = this.activatedRoute.snapshot.params['status'];
this.status = this.activatedRoute.snapshot.params['status'] ? this.activatedRoute.snapshot.params['status'] : '0';
if(this.type=== 'yd_trainning_file_type'){
const code = this.activatedRoute.snapshot.routeConfig.path;
this.filePathQuery(null,code)
......

809 Bytes | W: | H:

4.15 KB | W: | H:

src/assets/images/indexIcons/ydCollege.png
src/assets/images/indexIcons/ydCollege.png
src/assets/images/indexIcons/ydCollege.png
src/assets/images/indexIcons/ydCollege.png
  • 2-up
  • Swipe
  • Onion skin
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