This repository was archived by the owner on Jan 31, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +41
-15
lines changed Expand file tree Collapse file tree 4 files changed +41
-15
lines changed Original file line number Diff line number Diff line change 4
4
}
5
5
6
6
.tvWidth .tv {
7
- width : calc ( 100 vw - 470 px ) ;
7
+ width : 960 px ;
8
8
9
9
& .flexWrapper {
10
10
display : flex;
11
11
flex-direction : row;
12
12
flex-wrap : wrap;
13
13
justify-content : space-between;
14
14
align-items : flex-start;
15
+ padding-right : 20px ;
15
16
}
16
17
}
17
18
23
24
padding : 20px ;
24
25
flex-direction : column;
25
26
position : absolute;
26
-
27
27
top : 0 ;
28
- left : -99999 px ;
28
+ left : -1000 px ;
29
29
z-index : 2 ;
30
30
transition : none;
31
31
55
55
flex-direction : column;
56
56
justify-content : flex-start;
57
57
align-items : center;
58
+ transition : none;
58
59
}
59
60
60
61
& .tvItemBox > div : last-child div {
Original file line number Diff line number Diff line change 32
32
flex- direction: column;
33
33
34
34
& .item {
35
- height : 113px ;
35
+ cursor : pointer;
36
+ margin-bottom : 5px ;
37
+ overflow : hidden;
38
+ padding-left : 5px ;
39
+ opacity : .5 ;
36
40
37
41
& img {
38
- width : 200 px ;
42
+ width : 100 % ;
39
43
height : 113px ;
40
44
}
45
+
46
+ & : last-child {
47
+ margin-bottom : 0 ;
48
+ }
49
+
50
+ & .active , & : hover {
51
+ opacity : 1 ;
52
+ }
41
53
}
42
54
}
43
55
Original file line number Diff line number Diff line change @@ -86,14 +86,14 @@ class Recommend extends React.Component {
86
86
{ bannerItems . length > 0
87
87
? < div className = { styles . banner } >
88
88
< section className = { styles . player } >
89
- < ScreenItem item = { bannerItems [ 0 ] } screenCount = { 1 } />
89
+ < ScreenItem isBanner = { true } item = { bannerItems [ 0 ] } screenCount = { 1 } />
90
90
</ section >
91
91
< section className = { styles . list } >
92
- < section className = { styles . item } > < img src = { bannerItems [ 0 ] . cover } alt = "" /> </ section >
93
- < section className = { styles . item } > < img src = { bannerItems [ 1 ] . cover } alt = "" /> </ section >
94
- < section className = { styles . item } > < img src = { bannerItems [ 2 ] . cover } alt = "" /> </ section >
95
- < section className = { styles . item } > < img src = { bannerItems [ 3 ] . cover } alt = "" /> </ section >
96
- < section className = { styles . item } > < img src = { bannerItems [ 4 ] . cover } alt = "" /> </ section >
92
+ < section className = { styles . item } > < img src = { bannerItems [ 0 ] . cover } alt = { bannerItems [ 0 ] . title } /> </ section >
93
+ < section className = { styles . item } > < img src = { bannerItems [ 1 ] . cover } alt = { bannerItems [ 1 ] . title } /> </ section >
94
+ < section className = { styles . item } > < img src = { bannerItems [ 2 ] . cover } alt = { bannerItems [ 2 ] . title } /> </ section >
95
+ < section className = { styles . item } > < img src = { bannerItems [ 3 ] . cover } alt = { bannerItems [ 3 ] . title } /> </ section >
96
+ < section className = { styles . item } > < img src = { bannerItems [ 4 ] . cover } alt = { bannerItems [ 4 ] . title } /> </ section >
97
97
</ section >
98
98
</ div >
99
99
: ''
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ class screenItem extends React.Component {
59
59
60
60
render ( ) {
61
61
const item = this . props . item ;
62
+ const isBanner = this . props . isBanner ? true : false ;
62
63
const id = preFixIds ( this . props . item ) ;
63
64
const paddBottom = ( item . platform == 'douyu' || item . platform == 'huya' || item . platform == 'douyuvideo' ) ? 16 / 9 : 16 / 9
64
65
const secHeight = this . props . screenCount > 1 ? 49 : 98 ;
@@ -76,21 +77,33 @@ class screenItem extends React.Component {
76
77
dangerouslySetInnerHTML = { { __html : `<embed allowscriptaccess="always" src="${ _url } ${ id } " allowfullscreen="true"></embed>` } } >
77
78
</ section >
78
79
< section className = { styles . itemInfo } >
79
- { /*<p onClick={() => item.removeItem(item)}>{item.title}</p>*/ }
80
+ {
81
+ ! isBanner
82
+ ? < ul >
83
+ < li >
84
+ < span > < IconClear onClick = { ( ) => this . props . removeItem ( item ) } /> </ span >
85
+ </ li >
86
+ </ ul >
87
+ : ''
88
+ }
89
+ {
90
+ /*<p onClick={() => item.removeItem(item)}>{item.title}</p>
80
91
<ul>
81
92
<li>
82
93
<span><IconClear onClick={() => this.props.removeItem(item) } /></span>
83
94
</li>
84
- { /* <li>
95
+ <li>
85
96
<span><IconGame /> {item.type}</span>
86
97
</li>
87
98
<li>
88
99
<span><IconUser /> {item.anchor}</span>
89
100
</li>
90
101
<li>
91
102
<span><ActionEye /> {item.view}</span>
92
- </li>*/ }
93
- </ ul >
103
+ </li>
104
+ </ul>
105
+ */ }
106
+
94
107
</ section >
95
108
</ section >
96
109
)
You can’t perform that action at this time.
0 commit comments