Commit b6caea33 by Sweet Zhang

目录问题修改

parent a3dc4e21
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
[src]="fileUploadItem?.filePath" [src]="fileUploadItem?.filePath"
controls="true" controls="true"
[poster]="fileUploadItem?.fileFirstImg" [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 标签。
</video> </video>
<img *ngIf="!canplay" [src]="fileUploadItem?.fileFirstImg" alt="" srcset=""> <img *ngIf="!canplay" [src]="fileUploadItem?.fileFirstImg" alt="" srcset="" style="height: 200px;">
</div> </div>
<div class="courseTitle"> <div class="courseTitle">
<h4>{{fileUploadItem?.itemName}}</h4> <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>
<div class="courseIntroContent"> <div class="courseIntroContent">
<div class="tab"> <div class="tab">
......
...@@ -48,14 +48,14 @@ export class CourseDetailComponent implements OnInit,OnDestroy { ...@@ -48,14 +48,14 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
if (type === 3) { if (type === 3) {
this.lecturerQuery(this.fileUploadItem.fileLecturerId); this.lecturerQuery(this.fileUploadItem.fileLecturerId);
} else if (type == 2) { } else if (type == 2) {
this.filePathQuery(this.status, null,this.fileUploadItem.mdDropOptionCode) this.filePathQuery(null, null,this.fileUploadItem.mdDropOptionCode)
} else { } else {
this.filePathQuery(this.status, this.fileId) this.filePathQuery(this.status, this.fileId)
} }
} }
filePathQuery(status, fileId,code=null) { filePathQuery(status, fileId,code=null) {
if(status==='undefined'){ if(status=='undefined' || status == '0'){
status = undefined; status = undefined;
} }
this.myService.filePath('3', '0', '23', 'yd_trainning_file_type', code, this.customerId, status, fileId).subscribe(res => { 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 { ...@@ -178,8 +178,9 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
if (val.learningStatus == '3') { if (val.learningStatus == '3') {
this.state.modal1 = true; this.state.modal1 = true;
} else { } else {
this.filePathQuery(val.learningStatus, val.fileId); this.fileId = val.fileId;
this.router.navigate(['/courseDetail','undefined',val.fileId],{replaceUrl:true}); this.filePathQuery(val.learningStatus, this.fileId);
this.router.navigate(['/courseDetail','undefined',this.fileId],{replaceUrl:true});
document.body.scroll({top:0, document.body.scroll({top:0,
left: 0, left: 0,
behavior: 'smooth'}) behavior: 'smooth'})
......
...@@ -29,7 +29,7 @@ export class TrainingRecordsComponent implements OnInit { ...@@ -29,7 +29,7 @@ export class TrainingRecordsComponent implements OnInit {
} }
ngOnInit() { 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'){ if(this.type=== 'yd_trainning_file_type'){
const code = this.activatedRoute.snapshot.routeConfig.path; const code = this.activatedRoute.snapshot.routeConfig.path;
this.filePathQuery(null,code) 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