import React, { Component } from 'react'; import { Modal} from 'antd'; import axios from 'axios'; //加入金品课堂 class Jointheclass extends Component { constructor(props) { super(props); } componentDidMount() { // console.log("加入金品课堂"); // console.log(this.props); } modalCancel=()=>{ this.props.ysljoinmodalCancel(); }; setDownload=()=>{ var id=this.props.match.params.coursesId var url = `/courses/${id}/join_excellent_course.json`; axios.post(url).then((result) => { if(result){ if(result.data){ if(result.data.status === 0){ this.props.showNotification(result.data.message); this.props.ysljoinmodalCanceltwo(); }else { this.props.showNotification(result.data.message); } } } }).catch((error) => { console.log(error) }) } render() { // console.log("加入金品课堂2"); // console.log(this.props); return(

是否确认该加入课堂?

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