立即认证

dev_forum
hjm 6 years ago
parent ed5c3c8a1a
commit 7645300243

File diff suppressed because one or more lines are too long

@ -192,16 +192,20 @@ class CodeEvaluateView extends Component {
<React.Fragment> <React.Fragment>
<div>{`已经过职业认证的教师可以免金币查看隐藏测试集。`}</div> <div>{`已经过职业认证的教师可以免金币查看隐藏测试集。`}</div>
<div>{`解锁本关所有测试集需要扣除${challenge.score*5}金币,确定要解锁吗?`}</div> <div>{`解锁本关所有测试集需要扣除${challenge.score*5}金币,确定要解锁吗?`}</div>
<div onClick={()=>this.goToCertification()} style={{color: '#4CACFF', cursor: 'pointer', 'text-decoration': 'underline'
, 'margin-top': '12px'}}>立即认证</div>
</React.Fragment> : </React.Fragment> :
`解锁本关所有测试集需要扣除${challenge.score*5}金币,确定要解锁吗?` `解锁本关所有测试集需要扣除${challenge.score*5}金币,确定要解锁吗?`
const moreButtonsRender = () => { const moreButtonsRender = () => {
return (power === 0 && user.is_teacher) ? ( return ''
<Button variant="raised" style={{ marginRight: '20px'}} // ${this.props.classes.button}
onClick={()=>this.goToCertification()} color="primary"> // return (power === 0 && user.is_teacher) ? (
{ '立即认证' } // <Button variant="raised" style={{ marginRight: '20px'}} className={``}
</Button> // onClick={()=>this.goToCertification()} color="primary">
) : '' // { '立即认证' }
// </Button>
// ) : ''
} }
testSetsComponentArray.push( testSetsComponentArray.push(
<div className="-task-ces-box mb10 clearfix tabContent" key={index+'-1'}> <div className="-task-ces-box mb10 clearfix tabContent" key={index+'-1'}>

Loading…
Cancel
Save