|
|
|
@ -40,18 +40,18 @@ class single extends Component{
|
|
|
|
|
let isJudge = questionType.question_type == 2
|
|
|
|
|
return(
|
|
|
|
|
<div className="pl30 pr30 singleDisplay">
|
|
|
|
|
<Radio.Group disabled={ user_exercise_status == 1 ? true : false } value={questionType.user_answer[0]} onChange={this.changeItem}>
|
|
|
|
|
<Radio.Group className="with100" disabled={ user_exercise_status == 1 ? true : false } value={questionType.user_answer[0]} onChange={this.changeItem}>
|
|
|
|
|
{
|
|
|
|
|
questionType.question_choices && questionType.question_choices.map((item,key)=>{
|
|
|
|
|
let prefix = isJudge ? undefined : `${tagArray[key]}.`
|
|
|
|
|
return(
|
|
|
|
|
<p className={parseInt(questionType.question_type) == 0 ? "clearfix mb15 df" : "fl mr40 df"}>
|
|
|
|
|
<Radio className="fl lineh-20" value={item.choice_id}>{prefix}</Radio>
|
|
|
|
|
{/* <span className="fl lineh-20 mr3 "></span> */}
|
|
|
|
|
{/* <span style={{display:"inline-block", 'margin-top': '-1px'}} className="markdown-body fl " dangerouslySetInnerHTML={{__html: markdownToHTML1(item.choice_text)}}></span> */}
|
|
|
|
|
<p className={parseInt(questionType.question_type) == 0 ? "clearfix mb15" : "fl mr40"}>
|
|
|
|
|
<Radio className="df lineh-20 setRadioStyle" value={item.choice_id}>
|
|
|
|
|
<span className="fl mr3">{prefix}</span>
|
|
|
|
|
<MarkdownToHtml content={item.choice_text} selector={'single_' + (this.props.index + 1) + (key + 1)}
|
|
|
|
|
className="fl" style={{display:"inline-block", 'margin-top': '-1px'}}
|
|
|
|
|
className="flex1" style={{display:"inline-block", 'margin-top': '-1px'}}
|
|
|
|
|
></MarkdownToHtml>
|
|
|
|
|
</Radio>
|
|
|
|
|
</p>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|