Commit 48be893e by zhanghaozhe

大咖直播显示当天的直播间

parent 399c2cfb
...@@ -131,7 +131,7 @@ class Live extends Component { ...@@ -131,7 +131,7 @@ class Live extends Component {
} }
render() { render() {
const {tabs, lives, today} = this.state const {tabs, lives, todayIndex} = this.state
return ( return (
<div id={'live'}> <div id={'live'}>
<div className="title"> <div className="title">
...@@ -141,14 +141,14 @@ class Live extends Component { ...@@ -141,14 +141,14 @@ class Live extends Component {
</div> </div>
<div className="live-container"> <div className="live-container">
{ {
today !== '' && todayIndex !== '' &&
<Tabs <Tabs
tabs={tabs} tabs={tabs}
tabBarBackgroundColor={'transparent'} tabBarBackgroundColor={'transparent'}
tabBarActiveTextColor={'#5600DF'} tabBarActiveTextColor={'#5600DF'}
tabBarInactiveTextColor={'#FFF604'} tabBarInactiveTextColor={'#FFF604'}
tabBarUnderlineStyle={{display: 'none'}} tabBarUnderlineStyle={{display: 'none'}}
initialPage={today} initialPage={todayIndex}
swipeable={false} swipeable={false}
> >
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment