|
|
|
@ -54,7 +54,7 @@ class simpleAnswer extends Component{
|
|
|
|
|
<li className="with100">
|
|
|
|
|
{
|
|
|
|
|
user_exercise_status == 1 ?
|
|
|
|
|
<div className="markdown-body" dangerouslySetInnerHTML={{__html: markdownToHTML(questionType.user_answer.length>0 ? questionType.user_answer[0]:"")}}></div>
|
|
|
|
|
<div className="markdown-body answerStyle" dangerouslySetInnerHTML={{__html: markdownToHTML(questionType.user_answer.length>0 ? questionType.user_answer[0]:"")}}></div>
|
|
|
|
|
:
|
|
|
|
|
<div>
|
|
|
|
|
<TPMMDEditor ref={this.mdRef} initValue={questionType.user_answer.length > 0 ? questionType.user_answer[0]:''} mdID={'simpleEditor'+questionType.question_id} placeholder="请输入你的答案"
|
|
|
|
@ -69,9 +69,9 @@ class simpleAnswer extends Component{
|
|
|
|
|
{
|
|
|
|
|
exercise.answer_status == 1 || questionType.a_flag ?
|
|
|
|
|
<div className="standardAnswer">
|
|
|
|
|
<p className="mb10">参考答案:</p>
|
|
|
|
|
<li className="markdown-body" dangerouslySetInnerHTML={{__html: markdownToHTML(questionType.standard_answer && questionType.standard_answer[0])}}></li>
|
|
|
|
|
<p className="mt15"><a className="color-blue" onClick={()=>this.showAndHide(false)}>隐藏参考答案</a></p>
|
|
|
|
|
<p className="mb10 font-16">参考答案:</p>
|
|
|
|
|
<li className="markdown-body answerStyle" dangerouslySetInnerHTML={{__html: markdownToHTML(questionType.standard_answer && questionType.standard_answer[0])}}></li>
|
|
|
|
|
<p className="mt15"><a className="color-blue font-16" onClick={()=>this.showAndHide(false)}>隐藏参考答案</a></p>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
<a className="color-blue font-16" onClick={()=>this.showAndHide(true)}>显示参考答案</a>
|
|
|
|
@ -82,7 +82,7 @@ class simpleAnswer extends Component{
|
|
|
|
|
isStudent && exercise.answer_open==true && exercise.exercise_status == 3 ?
|
|
|
|
|
<div className="bor-top-greyE pt20 mt20 standardAnswer">
|
|
|
|
|
<p>参考答案:</p>
|
|
|
|
|
<li className="markdown-body" dangerouslySetInnerHTML={{__html: markdownToHTML(questionType.standard_answer && questionType.standard_answer[0])}}></li>
|
|
|
|
|
<li className="markdown-body answerStyle" dangerouslySetInnerHTML={{__html: markdownToHTML(questionType.standard_answer && questionType.standard_answer[0])}}></li>
|
|
|
|
|
</div>:""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|