dev_chen
杨树明 5 years ago
parent 5c59c40877
commit f4546d75a3

@ -56,7 +56,7 @@ class JudgeDisplay extends Component{
{/* 单选 or 多选 */} {/* 单选 or 多选 */}
<div className="options clearfix"> <div className="options clearfix">
{ question_choices.map((item, optionIndex) => { { question_choices.map((item, optionIndex) => {
// 单选 console.log(item.choice_text)
return ( return (
<div key={optionIndex} className="fl mr30 df"> <div key={optionIndex} className="fl mr30 df">
<Radio disabled className="lineh-25" checked={item.standard_boolean}></Radio> <Radio disabled className="lineh-25" checked={item.standard_boolean}></Radio>

@ -1,5 +1,5 @@
import React,{ Component } from "react"; import React,{ Component } from "react";
import { MarkdownToHtml,QuillForEditor} from 'educoder'; import { MarkdownToHtml } from 'educoder';
import QestionDisplayHeader from './QestionDisplayHeader' import QestionDisplayHeader from './QestionDisplayHeader'
@ -44,14 +44,9 @@ class MainDisplay extends Component{
<React.Fragment> <React.Fragment>
<div style={{color: '#05101A'}} className="font-16 mb5 font-bd">参考答案</div> <div style={{color: '#05101A'}} className="font-16 mb5 font-bd">参考答案</div>
{this.props.exercise&&this.props.exercise.is_md?<MarkdownToHtml content={standard_answer[0]} selector={'answer_' + qNumber} <MarkdownToHtml content={standard_answer[0]} selector={'answer_' + qNumber}
className="" className=""
></MarkdownToHtml>:<QuillForEditor ></MarkdownToHtml>
readOnly={true}
style={{ float: 'left', display: 'inline-block' ,padding:'0px',margin: '2px 0px 0px'}}
value={standard_answer[0]?JSON.parse(standard_answer[0]):""}
// showUploadImage={this.handleShowUploadImage}
/>}
</React.Fragment> </React.Fragment>
} }

@ -19,7 +19,7 @@ class ShixunProgramming extends Component{
} = this.props; } = this.props;
const qNumber = `question_${index}`; const qNumber = `question_${index}`;
console.log(this.props) // console.log(this.props)
// console.log(this.state) // console.log(this.state)
// question_id: 32336 // question_id: 32336
// q_position: 4 // q_position: 4

Loading…
Cancel
Save