Commit 593e59d0 by guomingpang

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

parent a00933ed
......@@ -157,10 +157,6 @@ function TestDetailPage(props) {
}
function renderResultInfo() {
console.log('userExamState====>', userExamState);
if (userExamState !== 'INIT') {
if (userExamState === 'FINISH_EXAM') {
if (resultShow === 'IMMEDIATELY' || (resultShow === 'AFTER_EXAM_END' && Date.now() > examEndTime)) {
return (
<div>
<div className='exam-info'>
......@@ -218,9 +214,7 @@ function TestDetailPage(props) {
}}>
<img
className='icon'
src={
item.isCorrect === 1 ? 'https://image.xiaomaiketang.com/xm/FwZa2Kaypc.png' : 'https://image.xiaomaiketang.com/xm/7tRHDf6ysA.png'
}
src={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>
......@@ -232,13 +226,6 @@ function TestDetailPage(props) {
<AnswerDescPage />
</div>
);
} else if (resultShow === 'AFTER_EXAM_END') {
return customizeRenderEmpty('after');
}
} else {
return customizeRenderEmpty('lack');
}
}
}
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