|
|
@ -7,7 +7,7 @@ import '../poll/pollStyle.css'
|
|
|
|
import '../css/Courses.css'
|
|
|
|
import '../css/Courses.css'
|
|
|
|
|
|
|
|
|
|
|
|
import moment from 'moment'
|
|
|
|
import moment from 'moment'
|
|
|
|
import { WordsBtn,markdownToHTML,ActionBtn,getImageUrl } from 'educoder'
|
|
|
|
import { WordsBtn,markdownToHTML,ActionBtn,getImageUrl, MarkdownToHtml } from 'educoder'
|
|
|
|
import Modals from '../../modals/Modals'
|
|
|
|
import Modals from '../../modals/Modals'
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
|
|
|
|
|
|
|
@ -537,7 +537,7 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<div className="educontent mt10 mb50">
|
|
|
|
<div className="educontent mt10 mb50">
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
<WordsBtn style="grey" className="fl" to={current_user.first_category_url}>{courseName}</WordsBtn>
|
|
|
|
<WordsBtn style="grey" className="fl" to={current_user && current_user.first_category_url}>{courseName}</WordsBtn>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<WordsBtn style="grey" className="fl" to={`/courses/${coursesId}/exercises/${data && data.left_banner_id}`}>{data && data.left_banner_name}</WordsBtn>
|
|
|
|
<WordsBtn style="grey" className="fl" to={`/courses/${coursesId}/exercises/${data && data.left_banner_id}`}>{data && data.left_banner_name}</WordsBtn>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
@ -712,7 +712,10 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<li className="break_word mt15 mb15 pl30 pr30">
|
|
|
|
<li className="break_word mt15 mb15 pl30 pr30">
|
|
|
|
<p className="standardAnswer markdown-body" dangerouslySetInnerHTML={{__html: markdownToHTML(item.question_type == 5 ? item.shixun_name : item.question_title).replace(/▁/g,"▁▁▁")}}></p>
|
|
|
|
{/* <p className="standardAnswer markdown-body" dangerouslySetInnerHTML={{__html: markdownToHTML1(item.question_type == 5 ? item.shixun_name : item.question_title).replace(/▁/g,"▁▁▁")}}></p> */}
|
|
|
|
|
|
|
|
<MarkdownToHtml content={(item.question_type == 5 ? item.shixun_name : item.question_title)} selector={'answer_' + key}
|
|
|
|
|
|
|
|
className="standardAnswer"
|
|
|
|
|
|
|
|
></MarkdownToHtml>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 选择题和判断题共用
|
|
|
|
// 选择题和判断题共用
|
|
|
@ -724,6 +727,7 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
questionType={item}
|
|
|
|
questionType={item}
|
|
|
|
user_exercise_status={user_exercise_status}
|
|
|
|
user_exercise_status={user_exercise_status}
|
|
|
|
changeQuestionStatus={(No,flag)=>this.changeQuestionStatus(No,flag)}
|
|
|
|
changeQuestionStatus={(No,flag)=>this.changeQuestionStatus(No,flag)}
|
|
|
|
|
|
|
|
index={key}
|
|
|
|
></Single>
|
|
|
|
></Single>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -736,6 +740,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
questionType={item}
|
|
|
|
questionType={item}
|
|
|
|
user_exercise_status={user_exercise_status}
|
|
|
|
user_exercise_status={user_exercise_status}
|
|
|
|
changeQuestionStatus={(No,flag)=>this.changeQuestionStatus(No,flag)}
|
|
|
|
changeQuestionStatus={(No,flag)=>this.changeQuestionStatus(No,flag)}
|
|
|
|
|
|
|
|
index={key}
|
|
|
|
|
|
|
|
|
|
|
|
></Multiple>
|
|
|
|
></Multiple>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -748,6 +754,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
questionType={item}
|
|
|
|
questionType={item}
|
|
|
|
user_exercise_status={user_exercise_status}
|
|
|
|
user_exercise_status={user_exercise_status}
|
|
|
|
changeQuestionStatus={(No,flag)=>this.changeQuestionStatus(No,flag)}
|
|
|
|
changeQuestionStatus={(No,flag)=>this.changeQuestionStatus(No,flag)}
|
|
|
|
|
|
|
|
index={key}
|
|
|
|
|
|
|
|
|
|
|
|
></FillEmpty>
|
|
|
|
></FillEmpty>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -774,6 +782,8 @@ class ExerciseReviewAndAnswer extends Component{
|
|
|
|
questionType={item}
|
|
|
|
questionType={item}
|
|
|
|
user_exercise_status={user_exercise_status}
|
|
|
|
user_exercise_status={user_exercise_status}
|
|
|
|
id={this.state.Id}
|
|
|
|
id={this.state.Id}
|
|
|
|
|
|
|
|
index={key}
|
|
|
|
|
|
|
|
|
|
|
|
></ShixunAnswer>
|
|
|
|
></ShixunAnswer>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|