|
|
|
@ -28,7 +28,7 @@ class CodeEvaluateMultiLevelAnswerUnlock extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
const { shixun, challenge, lockedAnswers } = this.props;
|
|
|
|
|
const { shixun, challenge, lockedAnswers, unlockedAnswers } = this.props;
|
|
|
|
|
const { currentLevel } = this.state;
|
|
|
|
|
return (
|
|
|
|
|
<div className="answerMultiLevelUnlock">
|
|
|
|
@ -85,7 +85,7 @@ class CodeEvaluateMultiLevelAnswerUnlock extends Component {
|
|
|
|
|
<Radio onClick={() => this.onLevelClick(item, index)}
|
|
|
|
|
checked={currentLevel>=index}></Radio>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="twoSpanCol">{index + 1}</div>
|
|
|
|
|
<div className="twoSpanCol">{index + 1 + (unlockedAnswers && unlockedAnswers.length || 0) }</div>
|
|
|
|
|
<div className="autoCol">{item.name}</div>
|
|
|
|
|
<div className="fourSpanCol">{item.score}%</div>
|
|
|
|
|
<div className="fourSpanCol goldColor">{challenge.score * item.score / 100}</div>
|
|
|
|
|