Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
c5c457b4
Commit
c5c457b4
authored
Aug 26, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式调整
parent
f7cd2de9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/app/my/course-detail/course-detail.component.ts
+6
-1
src/app/my/news-detail/news-detail.component.html
+3
-2
No files found.
src/app/my/course-detail/course-detail.component.ts
View file @
c5c457b4
...
...
@@ -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'
})
...
...
src/app/my/news-detail/news-detail.component.html
View file @
c5c457b4
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment