|
|
|
@ -15,11 +15,10 @@ class ShixunProgramming extends Component{
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let { question_title,
|
|
|
|
|
question_id, index,
|
|
|
|
|
shixun_name, shixun_identifier
|
|
|
|
|
question_id, index, shixun_identifier
|
|
|
|
|
} = this.props;
|
|
|
|
|
const qNumber = `question_${index}`;
|
|
|
|
|
// TODO show模式 isNew为false isEdit为false
|
|
|
|
|
|
|
|
|
|
console.log(this.props)
|
|
|
|
|
// console.log(this.state)
|
|
|
|
|
// question_id: 32336
|
|
|
|
@ -37,13 +36,13 @@ class ShixunProgramming extends Component{
|
|
|
|
|
|
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
|
|
<QestionDisplayHeader {...this.props} question_title={question_title}
|
|
|
|
|
topRight={
|
|
|
|
|
<a target="_blank" href={`/shixuns/${shixun_identifier}/challenges`} className="mr30"
|
|
|
|
|
style={{color: '#4CACFF'}}
|
|
|
|
|
>实训详情</a>
|
|
|
|
|
}
|
|
|
|
|
></QestionDisplayHeader>
|
|
|
|
|
{/*<QestionDisplayHeader {...this.props} question_title={question_title}*/}
|
|
|
|
|
{/* topRight={*/}
|
|
|
|
|
{/* <a target="_blank" href={`/shixuns/${shixun_identifier}/challenges`} className="mr30"*/}
|
|
|
|
|
{/* style={{color: '#4CACFF'}}*/}
|
|
|
|
|
{/* >实训详情</a>*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/*></QestionDisplayHeader>*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*{this.props.exercise&&this.props.exercise.is_md?<div className="mainQuestionDisplay color-grey-9 markdown-body"*/}
|
|
|
|
@ -66,5 +65,4 @@ class ShixunProgramming extends Component{
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// RouteHOC()
|
|
|
|
|
export default (ShixunProgramming);
|
|
|
|
|
export default ShixunProgramming;
|
|
|
|
|