|
|
|
@ -1,29 +1,37 @@
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import {getImageUrl} from 'educoder';
|
|
|
|
|
import { Modal} from 'antd';
|
|
|
|
|
import { Modal,Checkbox} from 'antd';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import './common.css'
|
|
|
|
|
import './chapterupdate.css'
|
|
|
|
|
//立即章节选择
|
|
|
|
|
class MyEduChapterupdate extends Component {
|
|
|
|
|
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.state={
|
|
|
|
|
|
|
|
|
|
myeduchecked:false,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//取消按钮
|
|
|
|
|
modalCancel=()=>{
|
|
|
|
|
|
|
|
|
|
//外部传进来的参数
|
|
|
|
|
this.props.setchapterupdatefalse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//确认按钮
|
|
|
|
|
setDownload=()=>{
|
|
|
|
|
//立即联系
|
|
|
|
|
// this.props.setNotcompleteds()
|
|
|
|
|
//外部传进来的参数
|
|
|
|
|
this.props.setchapterupdatefalse();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//点击了选项
|
|
|
|
|
onChange=(e)=> {
|
|
|
|
|
this.setState({
|
|
|
|
|
myeduchecked:true,
|
|
|
|
|
})
|
|
|
|
|
// console.log(`checked = ${e.target.checked}`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
|
|
|
|
@ -49,9 +57,16 @@ class MyEduChapterupdate extends Component {
|
|
|
|
|
}}>
|
|
|
|
|
<p style={{fontSize: "16px"}}>内容</p></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="clearfix mt30 edu-txt-center">
|
|
|
|
|
<a className="task-btn mr30" onClick={()=>this.modalCancel()}>取消</a>
|
|
|
|
|
<a className="task-btn task-btn-orange" onClick={()=>this.setDownload()}>确定</a>
|
|
|
|
|
<div className="yslcheckbox">
|
|
|
|
|
<div className="mr15"><Checkbox onChange={(e) => this.onChange(e)} checked={this.state.myeduchecked}></Checkbox></div>
|
|
|
|
|
<div><span style={{color:"#999999"}}>已选择</span><span style={{color:"#E65656"}}>3</span><span style={{color:"#999999"}}> 个章节 </span><span style={{color:"#E65656"}}>5</span><span style={{color:"#999999"}}>个实训</span></div>
|
|
|
|
|
<div className="yslcheckbox2"><span className="font-14" style={{
|
|
|
|
|
color:"#A3A3A3",
|
|
|
|
|
}}>勾选则在课堂中显示,否则不显示</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="clearfix edu-txt-center pt37 pb28" >
|
|
|
|
|
<a className="task-btn mr30" style={{width:"100px",heigth:"38px"}} onClick={()=>this.modalCancel()}>取消</a>
|
|
|
|
|
<a className="task-btn task-btn-orange"style={{width:"100px",heigth:"38px"}} onClick={()=>this.setDownload()}>确定</a>
|
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|
|
|
|
|
)
|
|
|
|
|