首页
This commit is contained in:
		
							parent
							
								
									90e278db09
								
							
						
					
					
						commit
						70951df9bb
					
				| @ -150,6 +150,7 @@ struct Index { | ||||
|   } | ||||
| 
 | ||||
|   practice() { | ||||
|     AppStorage.setOrCreate('singlePlay', true) | ||||
|     if (JudgeConfig.isTrajectoryOpen) { | ||||
|       router.pushUrl({ | ||||
|         url: 'pages/UserInfo', | ||||
|  | ||||
| @ -138,12 +138,12 @@ struct UserInfo { | ||||
|         return | ||||
|       } | ||||
|       this.ksksLimit = true | ||||
| 
 | ||||
|       if (this.singlePlay) { | ||||
|         // const { examSubject } = this.carInfo; | ||||
|         this.currentUser.id = '0' | ||||
|         // await upDateTableByArray('USER', [this.currentUser]) | ||||
|         await SqlInsertTable('USER', [this.currentUser]) | ||||
|         console.log('开始考试') | ||||
|         SqlInsertTable('USER', [this.currentUser]).catch((e: BusinessError) => { | ||||
|           console.log("error", JSON.stringify(e)) | ||||
|         }) | ||||
|         router.pushUrl({ | ||||
|           url: this.carInfo.examSubject == '3' ? 'pages/Roads' : 'pages/Judge', | ||||
|           params: { | ||||
| @ -152,7 +152,6 @@ struct UserInfo { | ||||
|           } | ||||
|         }, router.RouterMode.Single); | ||||
|         this.ksksLimit = false | ||||
| 
 | ||||
|         this.stopDeviceById() | ||||
|         return | ||||
|       } | ||||
| @ -221,6 +220,7 @@ struct UserInfo { | ||||
|     this.currentUser = EmptyCandidateObject | ||||
|     this.filePhoto = new FilePhoto(this.context); | ||||
|     this.singlePlay = AppStorage.get<boolean>('singlePlay') || false | ||||
|     console.log("this.singlePlay", this.singlePlay) | ||||
|     this.examinerLoginInfo = AppStorage.get<ExaminerLoginInfo>('examinerInfo')! | ||||
|     this.carInfo = AppStorage.get<CarInfoType>('carInfo')! | ||||
|     //语音功能on | ||||
| @ -905,8 +905,6 @@ struct UserInfo { | ||||
| 
 | ||||
|   // 检测车门、熄火信号 | ||||
|   async checkSignal(): Promise<boolean> { | ||||
|     // const { isCheckFireOpen } = judgeConfig | ||||
|     // const { systemParam } = this; | ||||
|     const Param803Str = this.systemParam.Param803Str | ||||
|     if (Param803Str === '') { | ||||
|       return true | ||||
| @ -1267,7 +1265,6 @@ struct UserInfo { | ||||
|             } | ||||
|             .commStyle() | ||||
|             .onClick(() => { | ||||
|               // this.avPlayer.playAudio(['button_media.wav']) | ||||
|               this.ksksLimit = false | ||||
|               this.qkFlag = false | ||||
|             }) | ||||
|  | ||||
| @ -689,10 +689,10 @@ export default class Judge { | ||||
|     (judgeUI.examSubject == '2' ? testKm2Items : testKm3Items).forEach(item => { | ||||
|       const projectCenterObj: ProjectInfo = Reflect.get(judgeUI.projectsCenterObj, item.code) | ||||
| 
 | ||||
|       const currentItem: KmItem = Reflect.get(this.kmItems, item.code) | ||||
|       currentItem.code = item.code | ||||
|       currentItem.status = projectCenterObj === undefined ? 0 : (projectCenterObj.isEnd ? 3 : 1) | ||||
|       Reflect.set(this.kmItems, item.code, currentItem) | ||||
|       Reflect.set(this.kmItems, item.code, { | ||||
|         code: item.code, | ||||
|         status: projectCenterObj === undefined ? 0 : (projectCenterObj.isEnd ? 3 : 1) | ||||
|       }) | ||||
|     }) | ||||
| 
 | ||||
|     console.info(judgeTag + 'testKmItems', JSON.stringify(this.kmItems)) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user