courseware
杨树明 5 years ago
parent be36987708
commit 833562f9ba

@ -243,10 +243,9 @@ class VideoIndex extends Component{
} }
render(){ render(){
const { videos , upload , videoData , type , liveData , lives , page , liveVisible , isSpining , liveId , otherLinkVisible,statistics } = this.state; const { videos , upload , videoData , type , liveData , lives , page , liveVisible , isSpining , liveId , otherLinkVisible,statistics } = this.state;
const { is_teacher } = this.props.user;
const { coursesId , videoId }=this.props.match.params; const { coursesId , videoId }=this.props.match.params;
let course_identity = this.props&&this.props.coursedata;
const {course_identity} = this.props.coursedata; let is_teacher = this.props&&this.props.user;
const flag = parseInt(course_identity) < 5; const flag = parseInt(course_identity) < 5;
const newOperation = flag; const newOperation = flag;
const new_upload = flag && (is_teacher && this.props.checkIfProfessionalCertification()); const new_upload = flag && (is_teacher && this.props.checkIfProfessionalCertification());

Loading…
Cancel
Save