import React, { Component } from 'react'; import { Modal, Radio, Input} from 'antd'; import axios from 'axios'; //加入精品课堂 class OpenCourse extends Component { constructor(props) { super(props); this.state={ value:0 } } componentDidMount() { // console.log("加入精品课堂"); // console.log(this.props); } modalCancel=()=>{ this.props.OpenCourseCancel(); }; setDownload=()=>{ let {value}=this.state; console.log(this.props.match.params.pathId) if(value===0){ window.open(`/courses/${this.props.match.params.pathId}/newgold/0 `); }else{ window.open(`/courses/${this.props.match.params.pathId}/newgold/1`); } this.props.OpenCourseCancel(); } setpathradioChange = e => { this.setState({ value: e.target.value, }); }; render() { // console.log("加入精品课堂2"); //console.log(this.props.Pathcourseid); const pathradioStyle = { display: 'block', height: '30px', lineHeight: '30px', color:'#05101A', textAlign: 'left', fontSize: '16px' }; const pathradioStyles={ color:'#999999' } return(

开放课堂:所有用户可以随时访问 私有课堂:仅报名参与的课堂成员可以访问

this.modalCancel()}>取消 this.setDownload()}>确认
) } } export default OpenCourse;