Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_video
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
ww_video
Commits
6f580157
Commit
6f580157
authored
Aug 15, 2020
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add video cover
parent
224b81d4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
play.component.html
src/app/play/play.component.html
+1
-1
play.component.ts
src/app/play/play.component.ts
+1
-1
No files found.
src/app/play/play.component.html
View file @
6f580157
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#
videoNode
(
click
)="
playVideo
()"
>
#
videoNode
(
click
)="
playVideo
()"
>
</video>
</video>
<div
class=
"video-cover"
*
ngIf=
"initCover && !isPlaying"
>
<div
class=
"video-cover"
*
ngIf=
"initCover && !isPlaying"
>
<img
*
ngIf=
"initCover"
[
src
]="
initCover
"
<img
*
ngIf=
"initCover"
[
src
]="
this
.
data
.
contentObj
.
pic_id
"
style=
"width: 100%;
style=
"width: 100%;
height: 100%;
height: 100%;
object-fit: contain;
object-fit: contain;
...
...
src/app/play/play.component.ts
View file @
6f580157
...
@@ -44,7 +44,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
...
@@ -44,7 +44,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
// 获取数据
// 获取数据
const
getData
=
(
window
as
any
).
courseware
.
getData
;
const
getData
=
(
window
as
any
).
courseware
.
getData
;
getData
((
data
)
=>
{
getData
((
data
)
=>
{
console
.
log
(
333
,
data
);
console
.
log
(
4444
,
data
);
if
(
data
&&
typeof
data
===
'
object
'
)
{
if
(
data
&&
typeof
data
===
'
object
'
)
{
this
.
data
=
data
;
this
.
data
=
data
;
}
}
...
...
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