|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import { Modal} from 'antd';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import Modals from './Modals';
|
|
|
|
|
//加入精品课堂
|
|
|
|
|
class Jointheclass extends Component {
|
|
|
|
|
|
|
|
|
@ -11,6 +12,12 @@ class Jointheclass extends Component {
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
// console.log("加入精品课堂");
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
let type=this.props.yslJointhe===undefined?false:this.props.yslJointhe;
|
|
|
|
|
if(type===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
Modalstype:true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -48,35 +55,15 @@ class Jointheclass extends Component {
|
|
|
|
|
// console.log("加入精品课堂2");
|
|
|
|
|
//console.log(this.props.Pathcourseid);
|
|
|
|
|
return(
|
|
|
|
|
<Modal
|
|
|
|
|
keyboard={false}
|
|
|
|
|
closable={false}
|
|
|
|
|
footer={null}
|
|
|
|
|
destroyOnClose={true}
|
|
|
|
|
title="提示"
|
|
|
|
|
centered={true}
|
|
|
|
|
visible={this.props.yslJointhe===undefined?false:this.props.yslJointhe}
|
|
|
|
|
width="600px"
|
|
|
|
|
>
|
|
|
|
|
<div className="educouddiv">
|
|
|
|
|
<div className={"tabeltext-alignleft"}><p className={"mt70 mb70 font-16"}>是否确认加入该课堂?</p></div>
|
|
|
|
|
<div className="clearfix edu-txt-center mt20">
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
a:hover {
|
|
|
|
|
color: #fff !important;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<a className="task-btn mr30" onClick={()=>this.modalCancel()}>取消</a>
|
|
|
|
|
<a className="task-btn task-btn-orange" onClick={()=>this.setDownload()}>确认</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|
|
|
|
|
<Modals
|
|
|
|
|
modalsType={this.props.yslJointhe===undefined?false:this.props.yslJointhe}
|
|
|
|
|
modalsTopval={"是否确定加入该课堂?"}
|
|
|
|
|
modalCancel={()=>this.modalCancel()}
|
|
|
|
|
modalSave={()=>this.setDownload()}
|
|
|
|
|
></Modals>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Jointheclass;
|
|
|
|
|
export default Jointheclass;
|
|
|
|
|
|
|
|
|
|