|
|
|
@ -47,8 +47,17 @@ class VideoIndex extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount=()=>{
|
|
|
|
|
const { type ,page } = this.state;
|
|
|
|
|
this.checkType(type,page);
|
|
|
|
|
const { search } = this.props.location;
|
|
|
|
|
const { page } = this.state;
|
|
|
|
|
|
|
|
|
|
if(search && search === "?open=live"){
|
|
|
|
|
this.setState({
|
|
|
|
|
type:"live"
|
|
|
|
|
})
|
|
|
|
|
this.checkType("live",page);
|
|
|
|
|
}else{
|
|
|
|
|
this.checkType("video",page);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 获取直播列表
|
|
|
|
|
getLiveList=(page)=>{
|
|
|
|
|