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
26bb5e78
Commit
26bb5e78
authored
Mar 24, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加培训视频
parent
b384f1bd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
6 deletions
+17
-6
src/app/my/file-upload/file-upload.component.html
+3
-3
src/app/my/file-upload/file-upload.component.scss
+4
-0
src/app/my/file-upload/file-upload.component.ts
+8
-3
src/app/my/menu-item/menu-item.component.ts
+1
-0
src/app/my/my-routing.module.ts
+1
-0
src/assets/images/trainVideo.png
+0
-0
No files found.
src/app/my/file-upload/file-upload.component.html
View file @
26bb5e78
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
<i
class=
"iconfont icon-pdf"
*
ngIf=
"!judgmentFile(fileUploadItem.filePath)"
></i>
<i
class=
"iconfont icon-pdf"
*
ngIf=
"!judgmentFile(fileUploadItem.filePath)"
></i>
<img
src=
"assets/images/videoIcon.png"
alt=
"视频"
*
ngIf=
"judgmentFile(fileUploadItem.filePath)"
style=
" width: 26px;
<img
src=
"assets/images/videoIcon.png"
alt=
"视频"
*
ngIf=
"judgmentFile(fileUploadItem.filePath)"
style=
" width: 26px;
margin-right: 6px;"
>
margin-right: 6px;"
>
<span
title=
"{{fileUploadItem.itemName}}"
>
{{fileUploadItem.itemName}}
</span>
</div>
</div>
<div
title=
"{{fileUploadItem.itemName}}"
>
{{fileUploadItem.itemName}}
</div>
<div
style=
"flex-basis: 30px;text-align: right;"
>
<div
style=
"position: absolute;right: 5px;top: 6px;"
>
<i
class=
"iconfont icon-xiazai"
style=
"margin-right: 0;"
*
ngIf=
"!judgmentFile(fileUploadItem.filePath)"
></i>
<i
class=
"iconfont icon-xiazai"
*
ngIf=
"!judgmentFile(fileUploadItem.filePath)"
></i>
<img
src=
"assets/images/playIcon.png"
alt=
"播放"
*
ngIf=
"judgmentFile(fileUploadItem.filePath)"
style=
" width: 26px;"
>
<img
src=
"assets/images/playIcon.png"
alt=
"播放"
*
ngIf=
"judgmentFile(fileUploadItem.filePath)"
style=
" width: 26px;"
>
</div>
</div>
</a>
</a>
...
...
src/app/my/file-upload/file-upload.component.scss
View file @
26bb5e78
...
@@ -48,6 +48,8 @@
...
@@ -48,6 +48,8 @@
border-bottom
:
1px
solid
#dcdcdc
;
border-bottom
:
1px
solid
#dcdcdc
;
padding
:
4px
20px
;
padding
:
4px
20px
;
position
:
relative
;
position
:
relative
;
height
:
42px
;
line-height
:
42px
;
.icon-xiazai
{
.icon-xiazai
{
font-size
:
22px
;
font-size
:
22px
;
color
:
#ec2d37
;
color
:
#ec2d37
;
...
@@ -56,7 +58,9 @@
...
@@ -56,7 +58,9 @@
a
{
a
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
color
:
#000
;
color
:
#000
;
height
:
100%
;
.iconfont
{
.iconfont
{
color
:
#ec2d37
;
color
:
#ec2d37
;
font-size
:
22px
;
font-size
:
22px
;
...
...
src/app/my/file-upload/file-upload.component.ts
View file @
26bb5e78
...
@@ -9,7 +9,7 @@ import { ActivatedRoute } from "@angular/router";
...
@@ -9,7 +9,7 @@ import { ActivatedRoute } from "@angular/router";
})
})
export
class
FileUploadComponent
implements
OnInit
{
export
class
FileUploadComponent
implements
OnInit
{
fileUploadItemList
:
Array
<
any
>
;
fileUploadItemList
:
Array
<
any
>
;
// 判断是文件下载还是教育培训
// 判断是文件下载还是教育培训
还是培训视频
type
:
string
;
type
:
string
;
categoryList
:
Array
<
any
>
;
categoryList
:
Array
<
any
>
;
selectedCategoryId
:
any
;
selectedCategoryId
:
any
;
...
@@ -19,14 +19,19 @@ export class FileUploadComponent implements OnInit {
...
@@ -19,14 +19,19 @@ export class FileUploadComponent implements OnInit {
ngOnInit
()
{
ngOnInit
()
{
this
.
type
=
this
.
activatedRoute
.
snapshot
.
data
[
0
][
'type'
];
this
.
type
=
this
.
activatedRoute
.
snapshot
.
data
[
0
][
'type'
];
this
.
fileUploadType
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
fileUploadType
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
fileUploadType
:
null
;
if
(
this
.
type
===
'trainingVideo'
){
this
.
fileUploadType
=
true
;
}
else
{
this
.
fileUploadType
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
fileUploadType
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
fileUploadType
:
null
;
}
this
.
dropOptionsQuery
();
this
.
dropOptionsQuery
();
if
(
this
.
type
===
'fileUpload'
)
{
if
(
this
.
type
===
'fileUpload'
)
{
this
.
fileUpload
(
3
,
0
,
19
,
'yd_download_file_type'
,
this
.
selectedCategoryId
);
this
.
fileUpload
(
3
,
0
,
19
,
'yd_download_file_type'
,
this
.
selectedCategoryId
);
}
else
if
(
this
.
type
===
'training'
)
{
}
else
if
(
this
.
type
===
'training'
)
{
this
.
fileUpload
(
3
,
0
,
23
,
'yd_trainning_file_type'
,
this
.
selectedCategoryId
);
this
.
fileUpload
(
3
,
0
,
23
,
'yd_trainning_file_type'
,
this
.
selectedCategoryId
);
}
else
if
(
this
.
type
===
'trainingVideo'
)
{
this
.
fileUpload
(
3
,
0
,
23
,
'yd_trainning_file_type'
,
'trainingVideo'
);
}
}
}
}
// 判断是不是视频文件
// 判断是不是视频文件
judgmentFile
(
picUrl
)
{
judgmentFile
(
picUrl
)
{
...
...
src/app/my/menu-item/menu-item.component.ts
View file @
26bb5e78
...
@@ -92,6 +92,7 @@ export class MenuItemComponent implements OnInit {
...
@@ -92,6 +92,7 @@ export class MenuItemComponent implements OnInit {
{
no
:
6
,
subtitle
:
'培训课件'
,
icon
:
'train'
,
path
:
''
,
routerLink
:
'training'
,
showSubMenu
:
true
},
{
no
:
6
,
subtitle
:
'培训课件'
,
icon
:
'train'
,
path
:
''
,
routerLink
:
'training'
,
showSubMenu
:
true
},
{
no
:
10
,
subtitle
:
'职业类别'
,
icon
:
'job'
,
path
:
'https://www.ydinsurance.cn/occupationQry/'
,
routerLink
:
''
,
showSubMenu
:
true
},
{
no
:
10
,
subtitle
:
'职业类别'
,
icon
:
'job'
,
path
:
'https://www.ydinsurance.cn/occupationQry/'
,
routerLink
:
''
,
showSubMenu
:
true
},
{
no
:
11
,
subtitle
:
'文件下载'
,
icon
:
'download'
,
path
:
'https://www.ydinsurance.cn/?page_id=13957'
,
routerLink
:
'fileUpload'
,
showSubMenu
:
true
},
{
no
:
11
,
subtitle
:
'文件下载'
,
icon
:
'download'
,
path
:
'https://www.ydinsurance.cn/?page_id=13957'
,
routerLink
:
'fileUpload'
,
showSubMenu
:
true
},
{
no
:
36
,
subtitle
:
'培训视频'
,
icon
:
'trainVideo'
,
path
:
''
,
routerLink
:
'trainingVideo'
,
showSubMenu
:
true
},
],
],
isShow
:
true
isShow
:
true
},{
},{
...
...
src/app/my/my-routing.module.ts
View file @
26bb5e78
...
@@ -79,6 +79,7 @@ const myRoutes: Routes = [
...
@@ -79,6 +79,7 @@ const myRoutes: Routes = [
{
path
:
'material/:itemId'
,
component
:
MkMaterialDetailComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'material/:itemId'
,
component
:
MkMaterialDetailComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'fileUpload'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'fileUpload'
}]
},
{
path
:
'fileUpload'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'fileUpload'
}]
},
{
path
:
'training'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'training'
}]
},
{
path
:
'training'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'training'
}]
},
{
path
:
'trainingVideo'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'trainingVideo'
}]
},
{
path
:
'importantAnnouncement'
,
component
:
ImportantAnnouncementComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'importantAnnouncement'
,
component
:
ImportantAnnouncementComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'salesDetail'
,
component
:
SalesDetailComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'salesDetail'
,
component
:
SalesDetailComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'importantAnnouncement/:id'
,
component
:
AnnouncementDetailComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'importantAnnouncement/:id'
,
component
:
AnnouncementDetailComponent
,
canActivate
:
[
AuthGuard
]
},
...
...
src/assets/images/trainVideo.png
0 → 100644
View file @
26bb5e78
2.62 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