|
|
@@ -2,8 +2,9 @@
|
|
|
<ie-page :fix-height="true" :safe-area-inset-bottom="false">
|
|
|
<ie-navbar :title="pageTitle" custom-back @left-click="handleLeftClick">
|
|
|
<template v-if="isReady" #headerRight>
|
|
|
- <view v-if="!isReadOnly" class="" :class="{ 'text-red-500': practiceDuration > totalExamTime }">{{
|
|
|
- formatPracticeDuration }}</view>
|
|
|
+ <view v-if="!isReadOnly" class="" :class="{ 'text-red-500': practiceDuration > totalExamTime }">
|
|
|
+ {{ formatPracticeDuration }}
|
|
|
+ </view>
|
|
|
<view v-else class="text-28">用时:{{ formatPracticeDuration }}</view>
|
|
|
</template>
|
|
|
</ie-navbar>
|
|
|
@@ -79,7 +80,7 @@
|
|
|
<text class="z-1 font-bold text-32">{{ qs.index + 1 }}</text>
|
|
|
<ie-image v-if="qs.question.isMark" src="/pagesStudy/static/image/icon-mark-active.png"
|
|
|
custom-class="absolute -top-12 left-14 w-28 h-28 z-1" mode="aspectFill" />
|
|
|
- <question-progress v-if="!isReadOnly" :progress="qs.question.progress || 0" />
|
|
|
+ <question-progress v-if="!isReadOnly && !qs.question.isNotKnow" :progress="qs.question.progress || 0" />
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -169,7 +170,7 @@ const pageTitle = computed(() => {
|
|
|
if (isReadOnly.value) {
|
|
|
return '考试解析';
|
|
|
}
|
|
|
- return isExam.value ? '练习' : '考试';
|
|
|
+ return isExam.value ? '考试' : '练习';
|
|
|
});
|
|
|
const isExam = computed(() => {
|
|
|
return prevData.value.paperType === EnumPaperType.SIMULATED;
|
|
|
@@ -181,7 +182,7 @@ const isReadOnly = computed(() => {
|
|
|
return prevData.value.readonly;
|
|
|
});
|
|
|
const handleLeftClick = () => {
|
|
|
- if (isReady.value) {
|
|
|
+ if (!isReady.value || isReadOnly.value) {
|
|
|
transferBack();
|
|
|
return;
|
|
|
}
|
|
|
@@ -192,7 +193,7 @@ const handleSwiperChange = (e: any) => {
|
|
|
};
|
|
|
const beforeQuit = () => {
|
|
|
const { paperType } = prevData.value;
|
|
|
- if (!isReady.value) {
|
|
|
+ if (!isReady.value || isReadOnly.value) {
|
|
|
return;
|
|
|
}
|
|
|
stopTime();
|
|
|
@@ -341,7 +342,6 @@ const handleSubmit = (tempSave: boolean = false) => {
|
|
|
const msg = tempSave ? '保存中...' : '提交中...';
|
|
|
uni.$ie.showLoading(msg);
|
|
|
setTimeout(() => {
|
|
|
- uni.$ie.hideLoading();
|
|
|
const params = {
|
|
|
...paperData.value,
|
|
|
questions: questionList.value.map(item => {
|
|
|
@@ -356,9 +356,11 @@ const handleSubmit = (tempSave: boolean = false) => {
|
|
|
duration: practiceDuration.value
|
|
|
} as Study.ExamPaperSubmit;
|
|
|
commitExamineePaper(params);
|
|
|
- setTimeout(() => {
|
|
|
+ setTimeout(async () => {
|
|
|
+ uni.$ie.hideLoading();
|
|
|
+ await nextTick();
|
|
|
uni.navigateBack();
|
|
|
- }, isExam.value ? 2500 : 0);
|
|
|
+ }, isExam.value && !tempSave ? 2500 : 0);
|
|
|
}, 1000);
|
|
|
}
|
|
|
|
|
|
@@ -460,6 +462,7 @@ const combinePaperData = async (examinee: Study.Examinee, paperType: EnumPaperTy
|
|
|
startTime();
|
|
|
}
|
|
|
}
|
|
|
+ console.log(isReadOnly.value)
|
|
|
}
|
|
|
}
|
|
|
const handleSwiperTipNext = () => {
|