Commit 593e59d0 by guomingpang

feat:关闭答题详情B端查看限制。

parent a00933ed
...@@ -157,10 +157,6 @@ function TestDetailPage(props) { ...@@ -157,10 +157,6 @@ function TestDetailPage(props) {
} }
function renderResultInfo() { function renderResultInfo() {
console.log('userExamState====>', userExamState);
if (userExamState !== 'INIT') {
if (userExamState === 'FINISH_EXAM') {
if (resultShow === 'IMMEDIATELY' || (resultShow === 'AFTER_EXAM_END' && Date.now() > examEndTime)) {
return ( return (
<div> <div>
<div className='exam-info'> <div className='exam-info'>
...@@ -218,9 +214,7 @@ function TestDetailPage(props) { ...@@ -218,9 +214,7 @@ function TestDetailPage(props) {
}}> }}>
<img <img
className='icon' className='icon'
src={ src={item.isCorrect === 1 ? 'https://image.xiaomaiketang.com/xm/FwZa2Kaypc.png' : 'https://image.xiaomaiketang.com/xm/7tRHDf6ysA.png'}
item.isCorrect === 1 ? 'https://image.xiaomaiketang.com/xm/FwZa2Kaypc.png' : 'https://image.xiaomaiketang.com/xm/7tRHDf6ysA.png'
}
/> />
<div className='result-content-box'>{index + 1}</div> <div className='result-content-box'>{index + 1}</div>
</div> </div>
...@@ -232,13 +226,6 @@ function TestDetailPage(props) { ...@@ -232,13 +226,6 @@ function TestDetailPage(props) {
<AnswerDescPage /> <AnswerDescPage />
</div> </div>
); );
} else if (resultShow === 'AFTER_EXAM_END') {
return customizeRenderEmpty('after');
}
} else {
return customizeRenderEmpty('lack');
}
}
} }
function customizeRenderEmpty(status) { function customizeRenderEmpty(status) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment