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
cda2b258
Commit
cda2b258
authored
Aug 29, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程详情页面
parent
c5c457b4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
src/app/my/course-detail/course-detail.component.ts
+2
-1
src/app/my/more-features/more-features.component.ts
+1
-1
src/app/my/my-routing.module.ts
+1
-1
src/app/my/yd-college/yd-college.component.ts
+1
-1
No files found.
src/app/my/course-detail/course-detail.component.ts
View file @
cda2b258
...
...
@@ -141,8 +141,8 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
fileId
:
this
.
fileId
,
}
if
(
type
===
2
){
param
[
'playbackStatus'
]
=
param
[
'totalTime'
]
==
param
[
'viewTime'
]
?
1
:
2
;
param
[
'totalTime'
]
=
param
[
'viewTime'
]
=
0
;
param
[
'playbackStatus'
]
=
2
;
}
else
{
param
[
'totalTime'
]
=
this
.
video
.
nativeElement
.
duration
;
param
[
'viewTime'
]
=
this
.
video
.
nativeElement
.
currentTime
;
...
...
@@ -151,6 +151,7 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
clearInterval
()
}
}
this
.
status
=
param
[
'playbackStatus'
]
==
'2'
?
'1'
:
this
.
status
;
this
.
myService
.
saveVideoPlayback
(
param
).
subscribe
(
res
=>
{
...
...
src/app/my/more-features/more-features.component.ts
View file @
cda2b258
...
...
@@ -54,7 +54,7 @@ export class MoreFeaturesComponent implements OnInit,OnDestroy {
{
no
:
24
,
name
:
'岗前训'
,
icon
:
'preJobTraining'
,
link
:
'/preJobTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
25
,
name
:
'新人训'
,
icon
:
'newTraining'
,
link
:
'/newTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
27
,
name
:
'CFFP初级训'
,
icon
:
'cffpTraining'
,
link
:
'/cffpElementaryTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
26
,
name
:
'提升训'
,
icon
:
'promotionTraining'
,
link
:
'/
advance
Training'
,
path
:
''
,
isOpen
:
true
},
{
no
:
26
,
name
:
'提升训'
,
icon
:
'promotionTraining'
,
link
:
'/
promotion
Training'
,
path
:
''
,
isOpen
:
true
},
{
no
:
27
,
name
:
'CFFP衔接训'
,
icon
:
'cffpTraining'
,
link
:
'/cffpBridgingTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
27
,
name
:
'CFFP高阶训'
,
icon
:
'cffpTraining'
,
link
:
'/cffpAdvancedTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
28
,
name
:
'产品培训'
,
icon
:
'productTraining'
,
link
:
'/productTraining'
,
path
:
''
,
isOpen
:
true
},
...
...
src/app/my/my-routing.module.ts
View file @
cda2b258
...
...
@@ -93,7 +93,7 @@ const myRoutes: Routes = [
{
path
:
'trainingVideo'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'trainingVideo'
,
title
:
'视频培训'
}]
},
{
path
:
'preJobTraining'
,
component
:
TrainingRecordsComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'yd_trainning_file_type'
,
title
:
'岗前训'
}]
},
{
path
:
'newTraining'
,
component
:
TrainingRecordsComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'yd_trainning_file_type'
,
title
:
'新人训'
}]
},
{
path
:
'
advance
Training'
,
component
:
TrainingRecordsComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'yd_trainning_file_type'
,
title
:
'提升训'
}]
},
{
path
:
'
promotion
Training'
,
component
:
TrainingRecordsComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'yd_trainning_file_type'
,
title
:
'提升训'
}]
},
{
path
:
'cffpElementaryTraining'
,
component
:
TrainingRecordsComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'yd_trainning_file_type'
,
title
:
'CFFP初级训'
}]
},
{
path
:
'cffpBridgingTraining'
,
component
:
TrainingRecordsComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'yd_trainning_file_type'
,
title
:
'CFFP衔接训'
}]
},
{
path
:
'cffpAdvancedTraining'
,
component
:
TrainingRecordsComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'yd_trainning_file_type'
,
title
:
'CFFP高阶训'
}]
},
...
...
src/app/my/yd-college/yd-college.component.ts
View file @
cda2b258
...
...
@@ -12,7 +12,7 @@ export class YdCollegeComponent implements OnInit {
{
no
:
24
,
name
:
'岗前训'
,
icon
:
'preJobTraining'
,
link
:
'/preJobTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
25
,
name
:
'新人训'
,
icon
:
'newTraining'
,
link
:
'/newTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
26
,
name
:
'CFFP初级训'
,
icon
:
'cffpElementaryTraining'
,
link
:
'/cffpElementaryTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
27
,
name
:
'提升训'
,
icon
:
'promotionTraining'
,
link
:
'/
advance
Training'
,
path
:
''
,
isOpen
:
true
},
{
no
:
27
,
name
:
'提升训'
,
icon
:
'promotionTraining'
,
link
:
'/
promotion
Training'
,
path
:
''
,
isOpen
:
true
},
{
no
:
28
,
name
:
'CFFP衔接训'
,
icon
:
'cffpBridgingTraining'
,
link
:
'/cffpBridgingTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
29
,
name
:
'CFFP高阶训'
,
icon
:
'cffpAdvancedTraining'
,
link
:
'/cffpAdvancedTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
30
,
name
:
'产品培训'
,
icon
:
'productTraining'
,
link
:
'/productTraining'
,
path
:
''
,
isOpen
:
true
},
...
...
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