问题修改

This commit is contained in:
lixiao 2025-04-27 11:02:47 +08:00
parent d344066c6a
commit f71297583b
2 changed files with 4 additions and 2 deletions

View File

@ -38,6 +38,7 @@ struct Index {
// 考试模式 1:白考,2:夜考,3:增驾(模拟灯光未考),4:增驾(模拟灯光已考),5:满分学习
private mode: number = 1
private isYkkf: boolean = false
private mockLight: boolean = false
async aboutToDisappear() {
clearInterval(this.mileageTimer)
@ -258,6 +259,7 @@ struct Index {
}
//真实监管下发的项目
let kStringArr: string[] = (currentParams.kString?.split(',') || []).filter(item => item);
this.mockLight = kStringArr.includes("41700")
console.info('surenjun kStringArr', JSON.stringify(kStringArr))
let isInExam = kStringArr.length > 0;
@ -1169,7 +1171,7 @@ struct Index {
}
//只做一次的项目已经做过,后续不能人工触发
if (param307.includes(projectCode) && this.mode !== 5) {
if (param307.includes(projectCode)) {
if (this.mode === 2) {
return !(ykType == '3' || ykType == '4' || projectType == '3' || projectType == '4')
} else {

View File

@ -810,7 +810,7 @@ export default class Judge {
sczb: (sczb === undefined || sczb == 0) ? 0 : 1,
sczbkf: kfdm,
// 大车是否模拟灯光参数
dmndg: judgeUI.mode === 3 || judgeUI.mode === 5,
dmndg: judgeUI.mockLight,
// 是否满分学习
mfxx: judgeUI.mode === 5,
// 是否增驾