|
|
|
@ -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>
|
|
|
|
@ -114,8 +114,9 @@ class LeftView extends Component {
|
|
|
|
|
// power === 0 &&
|
|
|
|
|
contentText = ( is_teacher ) ?
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<p>{`已经过职业认证的教师可以免金币查看答案哟~`}</p><p><a
|
|
|
|
|
style={{textDecoration: 'underline'}} onClick={()=>this.goToCertification()}>立即认证</a></p>
|
|
|
|
|
<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}
|
|
|
|
|