|
|
|
@ -7,11 +7,9 @@ import './video.css';
|
|
|
|
|
class Live extends Component{
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
const { liveData , lives , successFunc , pageSize , changePage } = this.props;
|
|
|
|
|
const { liveData , lives , successFunc , pageSize , changePage } = this.props;
|
|
|
|
|
|
|
|
|
|
const { admin , business , is_teacher } = this.props.user;
|
|
|
|
|
const operation = admin || business || (is_teacher && this.props.checkIfProfessionalCertification())
|
|
|
|
|
return(
|
|
|
|
|
return(
|
|
|
|
|
<div className="livePanel">
|
|
|
|
|
{
|
|
|
|
|
lives && lives.length > 0 ?
|
|
|
|
@ -26,7 +24,6 @@ class Live extends Component{
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
successFunc={()=>successFunc()}
|
|
|
|
|
operation={operation}
|
|
|
|
|
></LiveItem>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
@ -42,7 +39,6 @@ class Live extends Component{
|
|
|
|
|
:
|
|
|
|
|
<NoneData style={{width: '100%'}}></NoneData>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|