From d4140341fd46280c0ab93b2a0aed18bac26b70c3 Mon Sep 17 00:00:00 2001 From: lixiao <932184220@qq.com> Date: Wed, 23 Apr 2025 16:09:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 412a8583..f9cc1db1 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -19,13 +19,15 @@ import UdpEvent from '../common/utils/UdpEvent'; import { delPic } from '../common/service/videoService'; import imageBtn from './compontents/imageBtn'; import VoiceAnnounce from './judgeSDK/utils/voiceAnnouncements'; +import { examJudgeVersion } from './judgeSDK/api'; @Entry @Component struct Index { @State carNum: string = '' - @State version: string = '' + @State version: string = '2025.04.23.01' + @State judgeVersion: string = '' @State url: string = '' @State hasAuth: boolean = false; @State dialogVisiable: boolean = false; @@ -39,8 +41,8 @@ struct Index { @State initParamFlag: boolean = false @State fd: number = -1; @State num: number = 0; - fileHelper = null; - errorDialog: CustomDialogController = new CustomDialogController({ + private fileHelper = null; + private errorDialog: CustomDialogController = new CustomDialogController({ builder: errorMsgDialog({ title: globalThis.title, type: globalThis.type, @@ -53,11 +55,8 @@ struct Index { alignment: DialogAlignment.Center, }, ) - private fileUtil: FileUtil private interval = null; - // private vocObj = null; private avPlayer - private workerInstance = null; private context = getContext(this) as common.UIAbilityContext; @Styles @@ -202,12 +201,12 @@ struct Index { Column() { Row() { Column() { - Text('V外壳:' + globalThis.version) + Text('V外壳:' + this.version) .fontColor('#CCAE7A') .fontSize(18 * globalThis.ratio) .width('30%') .margin({ bottom: 10 }) - Text('V评判:' + globalThis.judgeVersion) + Text('V评判:' + this.judgeVersion) .fontColor('#CCAE7A') .fontSize(18 * globalThis.ratio) .width('30%') @@ -359,6 +358,7 @@ struct Index { async aboutToAppear() { this.avPlayer = new VoiceAnnounce(); + this.judgeVersion = await examJudgeVersion() this.initParamFlag = false this.delLoading = false this.dialogVisiable = false @@ -595,7 +595,6 @@ struct Index { console.info('surenjun', 'distanceClass=>初始化完成') } this.carNum = globalThis.carInfo.plateNo; - this.version = globalThis.version; this.hasAuth = globalThis.hasAuth; setTimeout(() => { this.initParamFlag = true