杨树林 6 years ago
commit fbe1b31ac1

@ -801,10 +801,10 @@ a.white-btn.use_scope-btn:hover{
position: absolute; position: absolute;
} }
.ant-input{ .ant-input,.ant-input .ant-input-suffix{
background-color: #fafafa!important; background-color: #fafafa!important;
} }
.ant-input:focus{ .ant-input:focus,.ant-input:focus .ant-input-suffix{
background-color:#ffffff!important; background-color:#ffffff!important;
} }

@ -135,7 +135,7 @@ class CommitSummary extends Component{
</div> </div>
<div> <div>
<p className="ml29 fl color-black mt10 summaryname" onClick={this.asdasdsad}>提交总结</p> <p className="ml29 fl color-black mt10 summaryname" onClick={this.asdasdsad}>修改总结</p>
<a href={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${this.props.match.params.homeworkid}/openlist?tab=0`} className="color-grey-6 fr font-16 ml30 mt10">返回</a> <a href={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${this.props.match.params.homeworkid}/openlist?tab=0`} className="color-grey-6 fr font-16 ml30 mt10">返回</a>
</div> </div>
{/*educontentbox*/} {/*educontentbox*/}

@ -2536,7 +2536,7 @@ class Listofworksstudentone extends Component {
<div className="mh650 edu-back-white"> <div className="mh650 edu-back-white">
<div className="edu-tab-con-box clearfix edu-txt-center"> <div className="edu-tab-con-box clearfix edu-txt-center">
<img className="edu-nodata-img mb20" src={getImageUrl("images/educoder/nodata.png")}/> <img className="edu-nodata-img mb20" src={getImageUrl("images/educoder/nodata.png")}/>
<p className="edu-nodata-p mb30">没有数据可以显示.</p> <p className="edu-nodata-p mb30">没有数据可以显示</p>
</div> </div>
</div> </div>

@ -125,7 +125,7 @@ class ShixunWorkReport extends Component {
</WordsBtn> </WordsBtn>
<span className="color-grey-9 fl ml3 mr3">&gt;</span> <span className="color-grey-9 fl ml3 mr3">&gt;</span>
<WordsBtn to={"/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+category_id} style="grey" className="btn colorgrey fl hovercolorblue "> <WordsBtn to={"/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+category_id} style="grey" className="btn colorgrey fl hovercolorblue ">
<span className={"color-grey-9"}>{data&&data.category.category_name}</span> <span className={"color-grey-9"}>{data===undefined?"":data.category===null?"":data.category.category_name}</span>
</WordsBtn> </WordsBtn>
<span className="color-grey-9 fl ml3 mr3">&gt;</span> <span className="color-grey-9 fl ml3 mr3">&gt;</span>
<WordsBtn to={"/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+homework_common_id+"/list?tab=0"} className="fl color-grey-9">作业详情</WordsBtn> <WordsBtn to={"/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+homework_common_id+"/list?tab=0"} className="fl color-grey-9">作业详情</WordsBtn>

@ -1,93 +1,97 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
// import { Button } from 'antd' // import { Button } from 'antd'
import { WordsBtn, getImageUrl } from 'educoder'; import { WordsBtn, getImageUrl } from 'educoder';
import RealNameCertificationModal from '../modal/RealNameCertificationModal' import RealNameCertificationModal from '../modal/RealNameCertificationModal'
import '../../courses/css/Courses.css' import '../../courses/css/Courses.css'
import {CNotificationHOC} from '../../courses/common/CNotificationHOC' import {CNotificationHOC} from '../../courses/common/CNotificationHOC'
class AccountCertification extends Component { class AccountCertification extends Component {
constructor(props){ constructor(props){
super(props); super(props);
this.state={ this.state={
certification:1 certification:1
} }
} }
showRealNameCertificationModal = (index) => { showRealNameCertificationModal = (index) => {
this.setState({ this.setState({
certification:index certification:index,
}) })
this.realNameCertificationModal.setVisible(true) this.realNameCertificationModal.setVisible(true)
} }
render() { render() {
let {certification}=this.state let {certification}=this.state
let {basicInfo} = this.props; let {basicInfo} = this.props;
return ( return (
<div> <div>
<RealNameCertificationModal ref="realNameCertificationModal" {...this.props} {this.state.certification===1?<RealNameCertificationModal ref="realNameCertificationModal" {...this.props}
wrappedComponentRef={(form) => this.realNameCertificationModal = form} certification={certification} wrappedComponentRef={(form) => this.realNameCertificationModal = form} certification={certification}
></RealNameCertificationModal> ></RealNameCertificationModal>:""}
<div className="basicForm">
<style>{` {this.state.certification===2?<RealNameCertificationModal ref="realNameCertificationModal" {...this.props}
.basicForm .title { wrappedComponentRef={(form) => this.realNameCertificationModal = form} certification={certification}
font-size: 16px; ></RealNameCertificationModal>:""}
padding-left: 30px; <div className="basicForm">
margin-bottom: 10px; <style>{`
} .basicForm .title {
.flexTable { font-size: 16px;
display: flex; padding-left: 30px;
flex-direction: column; margin-bottom: 10px;
} }
.flexRow { .flexTable {
display: flex; display: flex;
} flex-direction: column;
.flexRow .name { }
margin-left: 46px; .flexRow {
} display: flex;
.flexRow .description { }
margin-left: 30px; .flexRow .name {
flex: 1; margin-left: 46px;
color: #CDCDCD; }
} .flexRow .description {
.flexRow .status { margin-left: 30px;
width: 100px; flex: 1;
color: #28AC7F; color: #CDCDCD;
} }
`}</style> .flexRow .status {
<div className="title">认证信息</div> width: 100px;
<div className="flexTable"> color: #28AC7F;
<div className="flexRow lineh-20 mb20"> }
<div className="name">实名认证</div> `}</style>
<div className="description">有些课程需要实名认证才能加入哟还能获得500金币的奖励~ </div> <div className="title">认证信息</div>
<div className="status"> <div className="flexTable">
{ <div className="flexRow lineh-20 mb20">
basicInfo && basicInfo.authentication =="uncertified" ? <div className="name">实名认证</div>
<WordsBtn style="blue" className="borderBottom" onClick={()=>this.showRealNameCertificationModal(1)} >立即认证</WordsBtn>: <div className="description">有些课程需要实名认证才能加入哟还能获得500金币的奖励~ </div>
basicInfo && basicInfo.authentication =="applying" ? <span style={{color: '#FF6800'}}>待审核</span>: <div className="status">
<span><i className="iconfont icon-wancheng color-green font-16 mr3"></i></span> {
} basicInfo && basicInfo.authentication =="uncertified" ?
</div> <WordsBtn style="blue" className="borderBottom" onClick={()=>this.showRealNameCertificationModal(1)} >立即认证</WordsBtn>:
</div> basicInfo && basicInfo.authentication =="applying" ? <span style={{color: '#FF6800'}}>待审核</span>:
<span><i className="iconfont icon-wancheng color-green font-16 mr3"></i></span>
<div className="flexRow lineh-20"> }
<div className="name">职业认证</div> </div>
<div className="description">教师认证完毕之后可创建课堂发布实训免金币查看所有实训答案.. </div> </div>
<div className="status">
{ <div className="flexRow lineh-20">
basicInfo && basicInfo.professional_certification =="uncertified" ? <div className="name">职业认证</div>
<WordsBtn style="blue" className="borderBottom" onClick={()=>this.showRealNameCertificationModal(2)} >立即认证</WordsBtn>: <div className="description">教师认证完毕之后可创建课堂发布实训免金币查看所有实训答案.. </div>
basicInfo && basicInfo.professional_certification =="applying" ? <span style={{color: '#FF6800'}}>待审核</span>: <div className="status">
<span><i className="iconfont icon-wancheng color-green font-16 mr3"></i></span> {
} basicInfo && basicInfo.professional_certification =="uncertified" ?
</div> <WordsBtn style="blue" className="borderBottom" onClick={()=>this.showRealNameCertificationModal(2)} >立即认证</WordsBtn>:
</div> basicInfo && basicInfo.professional_certification =="applying" ? <span style={{color: '#FF6800'}}>待审核</span>:
</div> <span><i className="iconfont icon-wancheng color-green font-16 mr3"></i></span>
</div> }
<div style={{color: '#989898', marginLeft: '20px'}}>* 我们确保你所提供的信息均处于严格保密状态不会泄露</div> </div>
</div> </div>
); </div>
} </div>
} <div style={{color: '#989898', marginLeft: '20px'}}>* 我们确保你所提供的信息均处于严格保密状态不会泄露</div>
</div>
export default AccountCertification; );
}
}
export default AccountCertification;

@ -30,7 +30,6 @@ class RealNameCertificationModal extends Component{
constructor(props){ constructor(props){
super(props); super(props);
this.state={ this.state={
fileList:[]
} }
} }
@ -38,7 +37,6 @@ class RealNameCertificationModal extends Component{
} }
setVisible = (visible) => { setVisible = (visible) => {
this.setState({ fileList:[] });
this.refs.modalWrapper.setVisible(visible) this.refs.modalWrapper.setVisible(visible)
} }
@ -120,8 +118,6 @@ class RealNameCertificationModal extends Component{
loading: false, loading: false,
})); }));
} }
let fileList = [...info.fileList];
this.setState({ fileList });
} }
render(){ render(){
@ -294,7 +290,7 @@ class RealNameCertificationModal extends Component{
<span className="idPic-uploader demoImg"> <span className="idPic-uploader demoImg">
<img src={`${certification == 1 ? authImg : jobImg}`} alt="avatar" style={{ maxHeight: '110px'}}/> <img src={`${certification == 1 ? authImg : jobImg}`} alt="avatar" style={{ maxHeight: '110px'}}/>
</span> </span>
<Dragger {...uploadProps2} fileList = {this.state.fileList}> <Dragger {...uploadProps2}>
{imageUrl2 ? {imageUrl2 ?
// <a href={imageUrl2} target="_blank" title="点击重新上传图片"></a> // <a href={imageUrl2} target="_blank" title="点击重新上传图片"></a>
<img src={imageUrl2} alt="avatar" style={{ maxHeight: '110px'}}/> <img src={imageUrl2} alt="avatar" style={{ maxHeight: '110px'}}/>

Loading…
Cancel
Save