From 6b54e9da5c84eeca1522e5750416888d318fbea9 Mon Sep 17 00:00:00 2001 From: surenjun Date: Mon, 30 Jun 2025 19:27:41 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"Revert=20"fix=EF=BC=9A=E6=96=B0?= =?UTF-8?q?=E5=A2=9E503=E5=8F=82=E6=95=B0""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 6de9d4bdcb42c67f9533b693f3d70a04b0e8391d. --- entry/src/main/ets/pages/UserInfo.ets | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/entry/src/main/ets/pages/UserInfo.ets b/entry/src/main/ets/pages/UserInfo.ets index 16f2a14a..eaf86da7 100644 --- a/entry/src/main/ets/pages/UserInfo.ets +++ b/entry/src/main/ets/pages/UserInfo.ets @@ -91,6 +91,7 @@ struct UserInfo { 'Param398': '0', //考前上车准备 'Param835': '0', //考前上车准备 'Param850': '0', //考前上车准备 + 'Param853': '0', //未熄火不能开始考试 } @State startExam: boolean = false // 过程照片拍照 @@ -537,6 +538,9 @@ struct UserInfo { if (sys.v_no === '770') { that.systemParam.Param770Str = sys.v_value; } + if(sys.v_no === '853'){ + that.systemParam.Param853 = sys.v_value; + } if (sys.v_no === '835') { that.systemParam.Param835 = sys.v_value; } @@ -946,7 +950,8 @@ struct UserInfo { const {isCheckFireOpen} = judgeConfig const {systemParam,isBoardPrePareSetPopupOpen} = this; const Param803Str = systemParam.Param803Str - if (Param803Str === '') { + const Param853Str = systemParam.Param853 + if (Param803Str === '' && Param853Str != '1') { return true } return new Promise((resolve, reject) => { @@ -963,6 +968,14 @@ struct UserInfo { const ygd = msgArr[8]; const ssc = msgArr[13]; const dw = msgArr[28]; + if(Param853Str == '1'){ + this.avPlayer.playAudio(['voice/熄火.mp3']) + promptAction.showToast({ + message: '请熄火', + duration: 4000 + }) + reject(false) + } // 开始考试信号检测 if (Param803Str !== '') { //安全带 @@ -1482,4 +1495,5 @@ type systemParam = { 'Param398': string, //考前上车准备 'Param835': string, //考前上车准备 'Param850': string, //考前上车准备 + 'Param853': string, //未熄火不能开始考试 } \ No newline at end of file