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
1a8c51a0
Commit
1a8c51a0
authored
Aug 16, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通过目录播放时修改url
parent
0085e0cd
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
6 deletions
+7
-6
src/app/my/course-detail/course-detail.component.html
+1
-1
src/app/my/course-detail/course-detail.component.ts
+3
-2
src/app/my/yd-college/yd-college.component.ts
+3
-3
src/assets/images/indexIcons/cffpAdvancedTraining.png
+0
-0
src/assets/images/indexIcons/cffpBridgingTraining.png
+0
-0
src/assets/images/indexIcons/cffpElementaryTraining.png
+0
-0
No files found.
src/app/my/course-detail/course-detail.component.html
View file @
1a8c51a0
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<p>
{{i + 1}}.
</p>
<p>
{{i + 1}}.
</p>
<p>
<p>
<span>
{{fileUploadItem?.itemName}}
</span>
<span>
{{fileUploadItem?.itemName}}
</span>
<span>
{{fileUploadItem?.
maxV
iewTime | secondsTransfer}}/{{fileUploadItem?.totalTime | secondsTransfer}}
</span>
<span>
{{fileUploadItem?.
v
iewTime | secondsTransfer}}/{{fileUploadItem?.totalTime | secondsTransfer}}
</span>
</p>
</p>
</div>
</div>
<div
style=
"display: flex;flex-direction:column;align-items:center;width:58px;"
>
<div
style=
"display: flex;flex-direction:column;align-items:center;width:58px;"
>
...
...
src/app/my/course-detail/course-detail.component.ts
View file @
1a8c51a0
import
{
AfterViewInit
,
Component
,
ElementRef
,
OnDestroy
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
AfterViewInit
,
Component
,
ElementRef
,
OnDestroy
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
ActivatedRoute
}
from
'@angular/router'
;
import
{
ActivatedRoute
,
Router
}
from
'@angular/router'
;
import
{
LifeCommonService
}
from
'src/app/common/life-common.service'
;
import
{
LifeCommonService
}
from
'src/app/common/life-common.service'
;
import
{
MyService
}
from
'../my.service'
;
import
{
MyService
}
from
'../my.service'
;
...
@@ -32,7 +32,7 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
...
@@ -32,7 +32,7 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
this
.
state
[
key
]
=
false
;
this
.
state
[
key
]
=
false
;
}
}
constructor
(
private
activatedRoute
:
ActivatedRoute
,
private
myService
:
MyService
,
private
lifeCommonService
:
LifeCommonService
)
{
}
constructor
(
private
router
:
Router
,
private
activatedRoute
:
ActivatedRoute
,
private
myService
:
MyService
,
private
lifeCommonService
:
LifeCommonService
)
{
}
ngOnInit
()
{
ngOnInit
()
{
this
.
fileId
=
this
.
activatedRoute
.
snapshot
.
params
.
fileId
;
this
.
fileId
=
this
.
activatedRoute
.
snapshot
.
params
.
fileId
;
...
@@ -176,6 +176,7 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
...
@@ -176,6 +176,7 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
this
.
state
.
modal1
=
true
;
this
.
state
.
modal1
=
true
;
}
else
{
}
else
{
this
.
filePathQuery
(
val
.
learningStatus
,
val
.
fileId
);
this
.
filePathQuery
(
val
.
learningStatus
,
val
.
fileId
);
this
.
router
.
navigate
([
'/courseDetail'
,
'undefined'
,
val
.
fileId
],{
replaceUrl
:
true
});
document
.
body
.
scroll
({
top
:
0
,
document
.
body
.
scroll
({
top
:
0
,
left
:
0
,
left
:
0
,
behavior
:
'smooth'
})
behavior
:
'smooth'
})
...
...
src/app/my/yd-college/yd-college.component.ts
View file @
1a8c51a0
...
@@ -11,10 +11,10 @@ export class YdCollegeComponent implements OnInit {
...
@@ -11,10 +11,10 @@ export class YdCollegeComponent implements OnInit {
{
no
:
23
,
name
:
'保险ABC'
,
icon
:
'insuranceABC'
,
link
:
''
,
path
:
`https://
${
window
.
location
.
host
}
/issue`
,
isOpen
:
true
},
{
no
:
23
,
name
:
'保险ABC'
,
icon
:
'insuranceABC'
,
link
:
''
,
path
:
`https://
${
window
.
location
.
host
}
/issue`
,
isOpen
:
true
},
{
no
:
24
,
name
:
'岗前训'
,
icon
:
'preJobTraining'
,
link
:
'/prejobTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
24
,
name
:
'岗前训'
,
icon
:
'preJobTraining'
,
link
:
'/prejobTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
25
,
name
:
'新人训'
,
icon
:
'newTraining'
,
link
:
'/newTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
25
,
name
:
'新人训'
,
icon
:
'newTraining'
,
link
:
'/newTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
26
,
name
:
'CFFP初级训'
,
icon
:
'cffpTraining'
,
link
:
'/cffpElementaryTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
26
,
name
:
'CFFP初级训'
,
icon
:
'cffp
Elementary
Training'
,
link
:
'/cffpElementaryTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
27
,
name
:
'提升训'
,
icon
:
'promotionTraining'
,
link
:
'/advanceTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
27
,
name
:
'提升训'
,
icon
:
'promotionTraining'
,
link
:
'/advanceTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
28
,
name
:
'CFFP衔接训'
,
icon
:
'cffpTraining'
,
link
:
'/cffpBridgingTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
28
,
name
:
'CFFP衔接训'
,
icon
:
'cffp
Bridging
Training'
,
link
:
'/cffpBridgingTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
29
,
name
:
'CFFP高阶训'
,
icon
:
'cffpTraining'
,
link
:
'/cffpAdvancedTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
29
,
name
:
'CFFP高阶训'
,
icon
:
'cffp
Advanced
Training'
,
link
:
'/cffpAdvancedTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
30
,
name
:
'产品培训'
,
icon
:
'productTraining'
,
link
:
'/productTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
30
,
name
:
'产品培训'
,
icon
:
'productTraining'
,
link
:
'/productTraining'
,
path
:
''
,
isOpen
:
true
},
{
no
:
31
,
name
:
'我的培训'
,
icon
:
'training'
,
link
:
'/myTraining'
,
path
:
''
,
isOpen
:
true
}
{
no
:
31
,
name
:
'我的培训'
,
icon
:
'training'
,
link
:
'/myTraining'
,
path
:
''
,
isOpen
:
true
}
]
]
...
...
src/assets/images/indexIcons/cffpAdvancedTraining.png
0 → 100644
View file @
1a8c51a0
5.31 KB
src/assets/images/indexIcons/cffpBridgingTraining.png
0 → 100644
View file @
1a8c51a0
4.65 KB
src/assets/images/indexIcons/cffpElementaryTraining.png
0 → 100644
View file @
1a8c51a0
4.74 KB
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