问题修改
This commit is contained in:
		
							parent
							
								
									b4fd646730
								
							
						
					
					
						commit
						d4140341fd
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user