首页
This commit is contained in:
		
							parent
							
								
									fd997829d1
								
							
						
					
					
						commit
						90e278db09
					
				| @ -12,7 +12,7 @@ import { JudgeConfigType } from '../model' | |||||||
| //考试回放开关 | //考试回放开关 | ||||||
| export const JudgeConfig:JudgeConfigType = { | export const JudgeConfig:JudgeConfigType = { | ||||||
|   //本地目录开关 |   //本地目录开关 | ||||||
|   isTrajectoryOpen: false, |   isTrajectoryOpen: true, | ||||||
|   //是否开启拍照 |   //是否开启拍照 | ||||||
|   isPhotoOpen: true, |   isPhotoOpen: true, | ||||||
|   //扣分语音是否强制开启 |   //扣分语音是否强制开启 | ||||||
| @ -26,7 +26,7 @@ export const JudgeConfig:JudgeConfigType = { | |||||||
|   // 本地模型地址 |   // 本地模型地址 | ||||||
|   modelPath: 'models/model_enc', |   modelPath: 'models/model_enc', | ||||||
|   // 济南科目三 |   // 济南科目三 | ||||||
|   trajectoryPath: 'logs/2024_12_26/2024_12_26_14_12_51_2412505941910_370125200404041910_赵宇/judge_exam_data.txt', |   trajectoryPath: 'logs/2024_10_12/2024_10_12_11_50_10_9999427676823_744299437502336256_隋统/judge_exam_data.txt', | ||||||
|   //四合一画面配置 |   //四合一画面配置 | ||||||
|   fourInOneScreen: { |   fourInOneScreen: { | ||||||
|     //gps位数 |     //gps位数 | ||||||
|  | |||||||
| @ -261,6 +261,7 @@ struct Index { | |||||||
|         } |         } | ||||||
|       } |       } | ||||||
|       .width('100%') |       .width('100%') | ||||||
|  |       .height(100) | ||||||
|       .justifyContent(FlexAlign.SpaceBetween) |       .justifyContent(FlexAlign.SpaceBetween) | ||||||
| 
 | 
 | ||||||
|       Row() { |       Row() { | ||||||
|  | |||||||
| @ -130,7 +130,6 @@ struct UserInfo { | |||||||
|     if (this.ksksLimit) { |     if (this.ksksLimit) { | ||||||
|       return |       return | ||||||
|     } |     } | ||||||
|     console.log('routerParamrouterParam') |  | ||||||
|     try { |     try { | ||||||
|       await this.checkSignal() |       await this.checkSignal() | ||||||
|       this.faceCompareSucess = 0 |       this.faceCompareSucess = 0 | ||||||
| @ -235,9 +234,7 @@ struct UserInfo { | |||||||
| 
 | 
 | ||||||
|     if (!this.singlePlay) { |     if (!this.singlePlay) { | ||||||
|       if (routerParam.type != "1") { |       if (routerParam.type != "1") { | ||||||
|         // this.list = await getSyncData('USERLIST') |  | ||||||
|         this.list = await GetSyncData<User>("USERLIST") |         this.list = await GetSyncData<User>("USERLIST") | ||||||
|         // const data = await getSyncData('USER') |  | ||||||
|         const data = await GetSyncData<User>("USER") |         const data = await GetSyncData<User>("USER") | ||||||
|         console.log('useruser,', JSON.stringify(this.list)) |         console.log('useruser,', JSON.stringify(this.list)) | ||||||
|         console.log('useruser1,', JSON.stringify(data)) |         console.log('useruser1,', JSON.stringify(data)) | ||||||
| @ -476,7 +473,7 @@ struct UserInfo { | |||||||
|   //考点端查询缺考指令内容消息请求 |   //考点端查询缺考指令内容消息请求 | ||||||
|   getqkFn() { |   getqkFn() { | ||||||
|     let tmpList: Array<number> = []; |     let tmpList: Array<number> = []; | ||||||
|     const number=AppStorage.get<number>('signNum')! |     const number = AppStorage.get<number>('signNum')! | ||||||
|     tmpList.push(NumberToByteArray(number, 1 * 8)[0]) |     tmpList.push(NumberToByteArray(number, 1 * 8)[0]) | ||||||
|     const param: UDPParamType = { |     const param: UDPParamType = { | ||||||
|       id: 41, |       id: 41, | ||||||
| @ -1200,17 +1197,11 @@ struct UserInfo { | |||||||
|         .margin({ left: 53 * this.ratio }) |         .margin({ left: 53 * this.ratio }) | ||||||
| 
 | 
 | ||||||
|         Column() { |         Column() { | ||||||
|           // Image($r('app.media.yydj_btn')) |  | ||||||
|           //   .commStyle() |  | ||||||
|           imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.yydj_btn') }) |           imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.yydj_btn') }) | ||||||
|             .margin({ bottom: 12 * this.ratio }) |             .margin({ bottom: 12 * this.ratio }) | ||||||
| 
 |  | ||||||
|           // Image($r('app.media.gx_btn')) |  | ||||||
|           //   .commStyle() |  | ||||||
|           imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.gx_btn') }) |           imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.gx_btn') }) | ||||||
|             .margin({ bottom: 12 * this.ratio }) |             .margin({ bottom: 12 * this.ratio }) | ||||||
|             .onClick(() => { |             .onClick(() => { | ||||||
|               // this.avPlayer.playAudio(['button_media.wav']) |  | ||||||
|               if (this.isExamStart && !this.singlePlay) { |               if (this.isExamStart && !this.singlePlay) { | ||||||
|                 return |                 return | ||||||
|               } |               } | ||||||
| @ -1218,12 +1209,9 @@ struct UserInfo { | |||||||
|               this.numCount = 0 |               this.numCount = 0 | ||||||
|               this.getExaminationStudentInfoFn() |               this.getExaminationStudentInfoFn() | ||||||
|             }) |             }) | ||||||
|           // Image($r('app.media.qk_btn')) |  | ||||||
|           //   .commStyle() |  | ||||||
|           imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.qk_btn') }) |           imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.qk_btn') }) | ||||||
|             .margin({ bottom: 12 * this.ratio }) |             .margin({ bottom: 12 * this.ratio }) | ||||||
|             .onClick(() => { |             .onClick(() => { | ||||||
|               // this.avPlayer.playAudio(['button_media.wav']) |  | ||||||
|               //  已开始考试不能缺考   已考过一次学员不能缺考                                                 车上不能缺考 |               //  已开始考试不能缺考   已考过一次学员不能缺考                                                 车上不能缺考 | ||||||
|               if (this.ksksLimit || (this.systemParam.Param352Str == '1' && this.currentUser.kssycs == '1') || |               if (this.ksksLimit || (this.systemParam.Param352Str == '1' && this.currentUser.kssycs == '1') || | ||||||
|                 this.systemParam.Param770Str == '1') { |                 this.systemParam.Param770Str == '1') { | ||||||
| @ -1236,8 +1224,6 @@ struct UserInfo { | |||||||
|           if (this.isBoardPrePareSetPopupOpen && |           if (this.isBoardPrePareSetPopupOpen && | ||||||
|             (this.isSecondBoardPrePareSetPopupOpen && this.currentUser.kssycs == '2') && |             (this.isSecondBoardPrePareSetPopupOpen && this.currentUser.kssycs == '2') && | ||||||
|             !this.isFirstBoardPrePareSetPopupBtnShow) { |             !this.isFirstBoardPrePareSetPopupBtnShow) { | ||||||
|             //上车准备 |  | ||||||
|             // Image($r('app.media.sczb_btn')).commStyle() |  | ||||||
|             imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.sczb_btn') }) |             imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.sczb_btn') }) | ||||||
|               .margin({ bottom: 12 * this.ratio }) |               .margin({ bottom: 12 * this.ratio }) | ||||||
|               .onClick(async () => { |               .onClick(async () => { | ||||||
| @ -1247,8 +1233,6 @@ struct UserInfo { | |||||||
|                 await this.prePareSCZB() |                 await this.prePareSCZB() | ||||||
|               }) |               }) | ||||||
|           } else { |           } else { | ||||||
|             // Image($r('app.media.ksks_btn')) |  | ||||||
|             //   .commStyle() |  | ||||||
|             imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.ksks_btn') }) |             imageBtn({ btnWidth: 220 * this.ratio, btnHeight: 69 * this.ratio, imgSrc: $r('app.media.ksks_btn') }) | ||||||
|               .margin({ bottom: 12 * this.ratio }) |               .margin({ bottom: 12 * this.ratio }) | ||||||
|               .onClick(async () => { |               .onClick(async () => { | ||||||
|  | |||||||
| @ -9,18 +9,18 @@ export default struct TopLogo { | |||||||
|   @Link outFlag: boolean; //返回按钮触发 |   @Link outFlag: boolean; //返回按钮触发 | ||||||
|   private timer: number = -1; |   private timer: number = -1; | ||||||
| 
 | 
 | ||||||
|   constructor() { |   async aboutToAppear() { | ||||||
|     super() |     this.timeText = GetCurrentTime(); | ||||||
|  |     this.timer = setInterval(async () => { | ||||||
|  |       this.timeText = GetCurrentTime(); | ||||||
|  |     }, 1000) | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   aboutToDisappear() { | ||||||
|  |     clearInterval(this.timer) | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   build() { |   build() { | ||||||
|     Column() { |  | ||||||
|       Column() { |  | ||||||
|       } |  | ||||||
|       .backgroundColor('#333230') |  | ||||||
|       .width('100%') |  | ||||||
|       .height('100%') |  | ||||||
| 
 |  | ||||||
|     Row() { |     Row() { | ||||||
|       Row() { |       Row() { | ||||||
|         Image($r('app.media.shortLogo')) |         Image($r('app.media.shortLogo')) | ||||||
| @ -33,29 +33,16 @@ export default struct TopLogo { | |||||||
|           .margin({ top: -15 * this.ratio, left: 14 * this.ratio }) |           .margin({ top: -15 * this.ratio, left: 14 * this.ratio }) | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|         imageBtn({ btnWidth: '13.5%', imgSrc: $r('app.media.topB_back') }) |       imageBtn({ btnWidth: '14.5%', imgSrc: $r('app.media.topB_back') }) | ||||||
|         .onClick(() => { |         .onClick(() => { | ||||||
|           this.outFlag = true |           this.outFlag = true | ||||||
|           router.back() |           router.back() | ||||||
|         }) |         }) | ||||||
|     } |     } | ||||||
|       .position({ x: 0, y: 0 }) |  | ||||||
|     .width('100%') |     .width('100%') | ||||||
|  |     .height(100) | ||||||
|     .justifyContent(FlexAlign.SpaceBetween) |     .justifyContent(FlexAlign.SpaceBetween) | ||||||
|     } |     .backgroundColor('#333230') | ||||||
|     .width('100%') |  | ||||||
|     .height('8%') |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
|   async aboutToAppear() { |  | ||||||
|     this.timeText = GetCurrentTime(); |  | ||||||
|     this.timer = setInterval(async () => { |  | ||||||
|       this.timeText = GetCurrentTime(); |  | ||||||
|     }, 1000) |  | ||||||
|   } |  | ||||||
| 
 |  | ||||||
|   aboutToDisappear() { |  | ||||||
|     clearInterval(this.timer) |  | ||||||
|   } |   } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user