Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_daily-conversation
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_daily-conversation
Commits
81b4a115
Commit
81b4a115
authored
Aug 12, 2020
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:自适应并且换了背景图
parent
e9593722
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
23 deletions
+52
-23
play.component.html
src/app/play/play.component.html
+26
-23
play.component.scss
src/app/play/play.component.scss
+26
-0
player-bg.png
src/assets/player-bg.png
+0
-0
No files found.
src/app/play/play.component.html
View file @
81b4a115
<div
class=
"p-content"
>
<div
class=
"body-bg"
></div>
<div
class=
"p-conversation-box"
nz-row
nzGutter=
"16"
nzType=
"flex"
>
<div
class=
"player-border"
>
<div
nz-col
nzSpan=
"8"
*
ngFor=
"let item of data.contentObj.list; index as i;"
>
<div
class=
"p-content"
>
<div
class=
"p-conversation"
[
style
.
border-color
]="
colorArr
[
i
]"
(
click
)="
curItem=
item;
curIndex=
i;"
>
<div
class=
"p-conversation-box"
nz-row
nzGutter=
"16"
nzType=
"flex"
>
{{item.text}}
<div
nz-col
nzSpan=
"8"
*
ngFor=
"let item of data.contentObj.list; index as i;"
>
<div
class=
"p-conversation"
[
style
.
border-color
]="
colorArr
[
i
]"
(
click
)="
curItem=
item;
curIndex=
i;"
>
{{item.text}}
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"p-popup-box"
[@
fadePopup
]
*
ngIf=
"curItem"
<div
class=
"p-popup-box"
[@
fadePopup
]
*
ngIf=
"curItem"
[
style
.
border-color
]="
colorArr
[
curIndex
]"
>
[
style
.
border-color
]="
colorArr
[
curIndex
]"
>
<div
class=
"i-close"
(
click
)="
onClosePopup
()"
>
<div
class=
"i-close"
(
click
)="
onClosePopup
()"
>
<i
class=
"anticon anticon-close"
></i>
<i
class=
"anticon anticon-close"
></i>
</div>
<div
class=
"i-text"
>
{{curItem.text}}
</div>
<div
class=
"position-relative"
>
<div
class=
"p-options"
nz-row
nzGutter=
"16"
nzType=
"flex"
*
ngIf=
"!curOption"
>
<div
nz-col
[
nzSpan
]="
optionCol
"
*
ngFor=
"let item of curItem.options; index as i;"
(
click
)="
curOption=
item;"
>
<div
class=
"p-option"
[
style
.
background-image
]="'
url
('+
item
.
pic_id
+')'"
></div>
</div>
</div>
</div>
<div
class=
"p-cur-option"
[@
zoomOption
]
*
ngIf=
"curOption"
(
click
)="
curOption=
null;"
<div
class=
"i-text"
>
{{curItem.text}}
</div>
[
style
.
background-image
]="'
url
('+
curOption
.
pic_id
+')'"
<div
class=
"position-relative"
>
>
<div
class=
"p-options"
nz-row
nzGutter=
"16"
nzType=
"flex"
*
ngIf=
"!curOption"
>
<div
nz-col
[
nzSpan
]="
optionCol
"
*
ngFor=
"let item of curItem.options; index as i;"
(
click
)="
curOption=
item;"
>
<div
class=
"p-option"
[
style
.
background-image
]="'
url
('+
item
.
pic_id
+')'"
></div>
</div>
</div>
<div
class=
"p-cur-option"
[@
zoomOption
]
*
ngIf=
"curOption"
(
click
)="
curOption=
null;"
[
style
.
background-image
]="'
url
('+
curOption
.
pic_id
+')'"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
src/app/play/play.component.scss
View file @
81b4a115
@import
"../style/common_mixin.scss"
;
@import
"../style/common_mixin.scss"
;
.body-bg
{
position
:
absolute
;
top
:
0px
;
left
:
0px
;
right
:
0px
;
bottom
:
0px
;
background-image
:
url('../../assets/player-bg.png')
!
important
;
background-size
:
100%
;
}
.player-border
{
position
:
absolute
;
left
:
calc
((
100%
-
100vh
*
1
.36
)
/
2
);
top
:
5vh
;
right
:
calc
((
100%
-
100vh
*
1
.36
)
/
2
);
bottom
:
5vh
;
text-align
:
center
;
// box-shadow: 0 2px 12px 0 rgba(0,0,0,.3);
border-radius
:
11px
;
border
:
20px
solid
#23b1c2
;
background-color
:
#fff
;
overflow
:
hidden
;
color
:
#303133
;
transition
:
.3s
;
}
.p-content
{
.p-content
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
...
src/assets/player-bg.png
0 → 100644
View file @
81b4a115
47.2 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