carcheck超声波
This commit is contained in:
		
							parent
							
								
									a75f8eb796
								
							
						
					
					
						commit
						d5ddd183e4
					
				| @ -107,8 +107,8 @@ export const WarnFlagTipData = { | ||||
|   9: ['dianhuoVideo.wav', 'xihuoVideo.wav'], | ||||
|   10: ['check31.wav'], | ||||
|   11: ['check30.wav'], | ||||
|   12: ['check28.wav'], | ||||
|   13: ['check29.wav'], | ||||
|   12: ['check29.wav'], | ||||
|   13: ['check28.wav'], | ||||
|   14: ['check11.wav'], | ||||
|   15: ['check12.wav'], | ||||
|   16: ['check13.wav'], | ||||
|  | ||||
| @ -118,7 +118,7 @@ export default struct Index { | ||||
|   } | ||||
| 
 | ||||
|   // | ||||
|  async carConfigurationInfoFn() { | ||||
|   async carConfigurationInfoFn() { | ||||
|     const fileUtil = new FileUtil(this.context) | ||||
|     const checkListStr = await fileUtil.readFile(GlobalConfig.comoonfileWriteAddress + '/config/carcheck.txt'); | ||||
| 
 | ||||
| @ -243,8 +243,10 @@ export default struct Index { | ||||
|           this.warnFlag[26] = '2' | ||||
|         } | ||||
|       } | ||||
| 
 | ||||
|       console.log('msgmsgmsg',msg) | ||||
|       if (that.index == 10 || that.index == 11 || that.index == 12 || that.index == 13) { | ||||
|         console.log('msgmsgmsg000',that.index,that.signArr[that.realNum[that.index]]) | ||||
| 
 | ||||
|         if (that.signArr[that.realNum[that.index]] != '1200') { | ||||
|           that.warnFlag[that.index] = '2' | ||||
|         } else { | ||||
| @ -327,37 +329,37 @@ export default struct Index { | ||||
|   } | ||||
|   initfackCheck(index){ | ||||
|     const that=this | ||||
|       setTimeout(()=>{ | ||||
|         console.log('indexindex',index) | ||||
|           if(index>=3){ | ||||
|             this.getCheckList() | ||||
|             return | ||||
|           } | ||||
|     setTimeout(()=>{ | ||||
|       console.log('indexindex',index) | ||||
|       if(index>=3){ | ||||
|         this.getCheckList() | ||||
|         return | ||||
|       } | ||||
| 
 | ||||
|         console.log('this.index',index,) | ||||
|         that.passArray[index]=true | ||||
|         if(index==2){ | ||||
|           let flag=false | ||||
|           console.log('globalThis.spzd[key]',globalThis.spzd) | ||||
|       console.log('this.index',index,) | ||||
|       that.passArray[index]=true | ||||
|       if(index==2){ | ||||
|         let flag=false | ||||
|         console.log('globalThis.spzd[key]',globalThis.spzd) | ||||
| 
 | ||||
|           for(let key in globalThis.spzd){ | ||||
|             console.log('globalThis.spzd[key]',globalThis.spzd[key]) | ||||
|             if(globalThis.spzd[key]){ | ||||
|               that.warnFlag[index]='1' | ||||
|               flag=true | ||||
|             } | ||||
|         for(let key in globalThis.spzd){ | ||||
|           console.log('globalThis.spzd[key]',globalThis.spzd[key]) | ||||
|           if(globalThis.spzd[key]){ | ||||
|             that.warnFlag[index]='1' | ||||
|             flag=true | ||||
|           } | ||||
|           if(!flag){ | ||||
|             that.warnFlag[index]='2' | ||||
|           } | ||||
|         }else{ | ||||
|         } | ||||
|         if(!flag){ | ||||
|           that.warnFlag[index]='2' | ||||
|         } | ||||
|         that.passArray=JSON.parse(JSON.stringify(that.passArray)) | ||||
|         that.warnFlag=JSON.parse(JSON.stringify(that.warnFlag)) | ||||
|         index++ | ||||
|         this.initfackCheck(index) | ||||
|       },1000) | ||||
|       }else{ | ||||
|         that.warnFlag[index]='2' | ||||
|       } | ||||
|       that.passArray=JSON.parse(JSON.stringify(that.passArray)) | ||||
|       that.warnFlag=JSON.parse(JSON.stringify(that.warnFlag)) | ||||
|       index++ | ||||
|       this.initfackCheck(index) | ||||
|     },1000) | ||||
| 
 | ||||
|   } | ||||
|   async getCheckList() { | ||||
| @ -475,14 +477,14 @@ export default struct Index { | ||||
|             } | ||||
| 
 | ||||
|             Row() { | ||||
|               Image(this.warnFlag[12] == '1' ? $r('app.media.zh_r') : this.warnFlag[12] == '2' ? $r('app.media.zh') : '') | ||||
|                 .width(103 * this.ratio) | ||||
|                 .height(118.5 * this.ratio) | ||||
|                 .visibility(this.passArray[12] ? Visibility.Visible : Visibility.Hidden) | ||||
|               Image(this.warnFlag[13] == '1' ? $r('app.media.yh_r') : this.warnFlag[13] == '2' ? $r('app.media.yh') : '') | ||||
|               Image(this.warnFlag[13] == '1' ? $r('app.media.zh_r') : this.warnFlag[13] == '2' ? $r('app.media.zh') : '') | ||||
|                 .width(103 * this.ratio) | ||||
|                 .height(118.5 * this.ratio) | ||||
|                 .visibility(this.passArray[13] ? Visibility.Visible : Visibility.Hidden) | ||||
|               Image(this.warnFlag[12] == '1' ? $r('app.media.yh_r') : this.warnFlag[12] == '2' ? $r('app.media.yh') : '') | ||||
|                 .width(103 * this.ratio) | ||||
|                 .height(118.5 * this.ratio) | ||||
|                 .visibility(this.passArray[12] ? Visibility.Visible : Visibility.Hidden) | ||||
|             } | ||||
|           } | ||||
|           .backgroundImage($r('app.media.rc')) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user