问题修改

This commit is contained in:
lixiao 2025-04-25 15:39:02 +08:00
parent 6bc04eee49
commit 436d9fc2a0
4 changed files with 20 additions and 16 deletions

View File

@ -26,7 +26,7 @@ import { examJudgeVersion } from './judgeSDK/api';
@Component @Component
struct Index { struct Index {
@State carNum: string = '' @State carNum: string = ''
@State version: string = '2025.04.24.01' @State version: string = '2025.04.25.01'
@State judgeVersion: string = '' @State judgeVersion: string = ''
@State url: string = '' @State url: string = ''
@State hasAuth: boolean = false; @State hasAuth: boolean = false;

View File

@ -332,10 +332,6 @@ struct Index {
if (this.mode === 2 && no2 != 13) { if (this.mode === 2 && no2 != 13) {
isUpload = true isUpload = true
} }
// 夜考靠边停车设置为非必须
if (this.mode === 2 && no2 == 11) {
isRequired = false
}
// 加减档自动完成,为非必须项目 // 加减档自动完成,为非必须项目
if (no2 == 14) { if (no2 == 14) {
isRequired = false isRequired = false

View File

@ -333,7 +333,7 @@ export default class Judge {
async (isManual?: boolean) => { async (isManual?: boolean) => {
const {judgeUI,avPlayer,isExamEnd,isEndTip,ksjs} = this; const {judgeUI,avPlayer,isExamEnd,isEndTip,ksjs} = this;
const {isAllProjectsEnd,examSubject,singlePlay,totalScore,judgeConfigObj,passingScore,examMileage,jl} = judgeUI; const {isAllProjectsEnd,examSubject,singlePlay,totalScore,judgeConfigObj,passingScore,examMileage,jl} = judgeUI;
const param302 = judgeConfigObj['302'];
if (isExamEnd) { if (isExamEnd) {
return return
} }
@ -345,7 +345,6 @@ export default class Judge {
this.isExamEnd = true this.isExamEnd = true
this.isManual = true this.isManual = true
} else { } else {
const param302 = judgeConfigObj['302'];
const param342 = judgeConfigObj['342']; const param342 = judgeConfigObj['342'];
const param512 = (judgeConfigObj['512'] || '').split(','); const param512 = (judgeConfigObj['512'] || '').split(',');
@ -357,11 +356,11 @@ export default class Judge {
if (totalScore >= passingGrade && !isEndTip) { if (totalScore >= passingGrade && !isEndTip) {
if (examSubject == 3 && (param342 == 0 || param342 == 2) && (param302 != 6 || param302 != 7 || param302 != 8)) { if (examSubject == 3 && (param342 == 0 || param342 == 2) && (param302 != 6 || param302 != 7 || param302 != 8)) {
if (param512[7] != 0) { if (param512[7] != 0) {
clearTimeout(this.deductedPopShowTimer) // clearTimeout(this.deductedPopShowTimer)
avPlayer.playAudio(['voice/综合评判.mp3']) // avPlayer.playAudio(['voice/综合评判.mp3'])
this.judgeUI.isDeductedPopShow = true // this.judgeUI.isDeductedPopShow = true
this.judgeUI.defaultTabIndex = 1 // this.judgeUI.defaultTabIndex = 1
this.isEndTip = true // this.isEndTip = true
return return
} }
} else { } else {
@ -383,10 +382,13 @@ export default class Judge {
//成绩不合格 //成绩不合格
if (totalScore < passingGrade) { if (totalScore < passingGrade) {
//科目三不合格报靠边停车 //科目三不合格报靠边停车
if (examSubject == 3 && param302 == 1) { if (examSubject == 3 ) {
if( param302 == 1){
avPlayer.playAudio([`voice/考试结束.mp3`]); avPlayer.playAudio([`voice/考试结束.mp3`]);
}else if(param302 == 0){
return return
} }
}
await examJudgeEndExam() await examJudgeEndExam()
this.isExamEnd = true this.isExamEnd = true
return return
@ -1227,6 +1229,12 @@ export default class Judge {
}) })
}) })
} else { } else {
if(code[0] == 'zhpp'){
clearTimeout(this.deductedPopShowTimer)
this.judgeUI.isDeductedPopShow = true
this.judgeUI.defaultTabIndex = 1
this.isEndTip = true
}
avPlayer.playAudio([`voice/${code[0]}.mp3`]) avPlayer.playAudio([`voice/${code[0]}.mp3`])
} }
} }
@ -1247,7 +1255,7 @@ export default class Judge {
avPlayer.playAudio([`voice/考试结束.mp3`]) avPlayer.playAudio([`voice/考试结束.mp3`])
} }
//联网模式下手动结束的直接退出 //联网模式下手动结束的直接退出
if (!singlePlay && isManual && !isAllProjectsEnd) { if (!singlePlay && isManual && !isAllProjectsEnd && totalScore >= passingScore) {
avPlayer.playAudio(['voice/empty.mp3'], true, () => { avPlayer.playAudio(['voice/empty.mp3'], true, () => {
this.isUdpEnd = true; this.isUdpEnd = true;
closeAllFiles() closeAllFiles()