|
|
|
@ -73,7 +73,7 @@ class LeftView extends Component {
|
|
|
|
|
// /shixuns/mnf6b7z3/shixun_discuss?challenge_id=88
|
|
|
|
|
render() {
|
|
|
|
|
let { challenge, shixun, tabIndex, tabIndexChange, loading, discusses_count
|
|
|
|
|
, dialogOpen, handleDialogClose, handleDialogReadAnswer, gameAnswer, loadingComments, st, is_teacher,
|
|
|
|
|
, dialogOpen, handleDialogClose, handleDialogReadAnswer, gameAnswer, loadingComments, st, user,
|
|
|
|
|
classes, onDrawerButtonClick, lockedAnswers, unlockedAnswers, isMultiLevelAnswer } = this.props
|
|
|
|
|
|
|
|
|
|
let propaedeutics = shixun ? shixun.propaedeutics : null;
|
|
|
|
@ -95,7 +95,7 @@ class LeftView extends Component {
|
|
|
|
|
|
|
|
|
|
// TODO TEST
|
|
|
|
|
// isMultiLevelAnswer = true
|
|
|
|
|
// is_teacher = true;
|
|
|
|
|
const is_teacher = user.is_teacher
|
|
|
|
|
|
|
|
|
|
let contentText = is_teacher ?
|
|
|
|
|
<React.Fragment>
|
|
|
|
@ -113,24 +113,25 @@ class LeftView extends Component {
|
|
|
|
|
if (isMultiLevelAnswer) {
|
|
|
|
|
// power === 0 &&
|
|
|
|
|
contentText = ( is_teacher ) ?
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<p>{`已经过职业认证的教师可以免金币查看答案哟~`}</p><p><a
|
|
|
|
|
style={{textDecoration: 'underline'}} onClick={()=>this.goToCertification()}>立即认证</a></p>
|
|
|
|
|
<CodeEvaluateMultiLevelAnswerUnlock
|
|
|
|
|
ref="answerUnlock" lockedAnswers={lockedAnswers} unlockedAnswers={unlockedAnswers}
|
|
|
|
|
challenge={challenge}
|
|
|
|
|
>
|
|
|
|
|
</CodeEvaluateMultiLevelAnswerUnlock>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<p>{`已经过职业认证的教师可以免金币查看答案哟~`}</p>
|
|
|
|
|
<p><a style={{textDecoration: 'underline'}} onClick={()=>this.goToCertification()}
|
|
|
|
|
style={{ color: '#1890ff', 'margin-top': '6px', display: 'inline-block'}}>立即认证</a></p>
|
|
|
|
|
<CodeEvaluateMultiLevelAnswerUnlock
|
|
|
|
|
ref="answerUnlock" lockedAnswers={lockedAnswers} unlockedAnswers={unlockedAnswers}
|
|
|
|
|
challenge={challenge}
|
|
|
|
|
>
|
|
|
|
|
</CodeEvaluateMultiLevelAnswerUnlock>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
:
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<p>{`先查看参考答案,再通过评测的学生,实训作业将被扣分`}</p>
|
|
|
|
|
{/* { MultiLevelUnlockTable } */}
|
|
|
|
|
<CodeEvaluateMultiLevelAnswerUnlock
|
|
|
|
|
ref="answerUnlock" lockedAnswers={lockedAnswers} unlockedAnswers={unlockedAnswers}
|
|
|
|
|
challenge={challenge}
|
|
|
|
|
>
|
|
|
|
|
</CodeEvaluateMultiLevelAnswerUnlock>
|
|
|
|
|
<p>{`先查看参考答案,再通过评测的学生,实训作业将被扣分`}</p>
|
|
|
|
|
{/* { MultiLevelUnlockTable } */}
|
|
|
|
|
<CodeEvaluateMultiLevelAnswerUnlock
|
|
|
|
|
ref="answerUnlock" lockedAnswers={lockedAnswers} unlockedAnswers={unlockedAnswers}
|
|
|
|
|
challenge={challenge}
|
|
|
|
|
>
|
|
|
|
|
</CodeEvaluateMultiLevelAnswerUnlock>
|
|
|
|
|
</React.Fragment>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|