feat:y优化
This commit is contained in:
		
							parent
							
								
									3714ed2478
								
							
						
					
					
						commit
						1c1eccb250
					
				| @ -1025,6 +1025,7 @@ struct Index { | |||||||
|           confirmFn:()=>{ |           confirmFn:()=>{ | ||||||
|             this.errorMsg = '' |             this.errorMsg = '' | ||||||
|             this.isErrorMsgEnd = true; |             this.isErrorMsgEnd = true; | ||||||
|  |             router.back() | ||||||
|           }, |           }, | ||||||
|         }) |         }) | ||||||
|       } |       } | ||||||
|  | |||||||
| @ -1002,7 +1002,7 @@ export default class Judge { | |||||||
|     if (!singlePlay && isManual && !isAllProjectsEnd) { |     if (!singlePlay && isManual && !isAllProjectsEnd) { | ||||||
|       avPlayer.playAudio(['voice/empty.mp3'], true, () => { |       avPlayer.playAudio(['voice/empty.mp3'], true, () => { | ||||||
|         this.isUdpEnd = true; |         this.isUdpEnd = true; | ||||||
|         setTimeout(()=>{ closeAllFiles();},1000) |         closeAllFiles() | ||||||
|         router.back(); |         router.back(); | ||||||
|       }) |       }) | ||||||
|       return |       return | ||||||
| @ -1071,8 +1071,13 @@ export default class Judge { | |||||||
|     if(code != 1){ |     if(code != 1){ | ||||||
|       avPlayer.playAudio(['voice/监管失败.mp3']) |       avPlayer.playAudio(['voice/监管失败.mp3']) | ||||||
|       this.judgeUI.errorMsg = decodeURIComponent(message) |       this.judgeUI.errorMsg = decodeURIComponent(message) | ||||||
|  | 
 | ||||||
|  |       if(code == 2300028 || code == 2300027){ | ||||||
|  |         this.judgeUI.errorMsg = '当前的考试过程信息监管审核未通过,程序将退出!' | ||||||
|  |       } | ||||||
|       this.isUdpEnd = true; |       this.isUdpEnd = true; | ||||||
|       setTimeout(()=>{ closeAllFiles();},1000) |       closeAllFiles() | ||||||
|  |       this.judgeUI.loadingPopupVisible = false; | ||||||
|       return |       return | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| @ -1156,7 +1161,7 @@ export default class Judge { | |||||||
|               if (kfArr.length - 1 === index) { |               if (kfArr.length - 1 === index) { | ||||||
|                 avPlayer.playAudio([`voice/${kf.markcatalog}.mp3`, voiceURL], false, () => { |                 avPlayer.playAudio([`voice/${kf.markcatalog}.mp3`, voiceURL], false, () => { | ||||||
|                   this.isUdpEnd = true; |                   this.isUdpEnd = true; | ||||||
|                   setTimeout(()=>{ closeAllFiles();},1000) |                   closeAllFiles() | ||||||
|                   router.back(); |                   router.back(); | ||||||
|                 }) |                 }) | ||||||
|                 throw new Error('End Loop') |                 throw new Error('End Loop') | ||||||
| @ -1165,7 +1170,7 @@ export default class Judge { | |||||||
|             } else { |             } else { | ||||||
|               avPlayer.playAudio([`voice/${kf.markcatalog}.mp3`, voiceURL], false, () => { |               avPlayer.playAudio([`voice/${kf.markcatalog}.mp3`, voiceURL], false, () => { | ||||||
|                 this.isUdpEnd = true; |                 this.isUdpEnd = true; | ||||||
|                 setTimeout(()=>{ closeAllFiles();},1000) |                 closeAllFiles() | ||||||
|                 router.back(); |                 router.back(); | ||||||
|               }) |               }) | ||||||
|               throw new Error('End Loop') |               throw new Error('End Loop') | ||||||
| @ -1179,7 +1184,7 @@ export default class Judge { | |||||||
|       avPlayer.playAudio([voiceURL], true, () => { |       avPlayer.playAudio([voiceURL], true, () => { | ||||||
|         setTimeout(() => { |         setTimeout(() => { | ||||||
|           this.isUdpEnd = true |           this.isUdpEnd = true | ||||||
|           setTimeout(()=>{ closeAllFiles();},1000) |           closeAllFiles() | ||||||
|           router.back(); |           router.back(); | ||||||
|         }, param302 == 8 ? 3000 : 0) |         }, param302 == 8 ? 3000 : 0) | ||||||
|       }) |       }) | ||||||
| @ -1679,7 +1684,9 @@ export default class Judge { | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|   closeAllFiles = ()=>{ |   closeAllFiles = ()=>{ | ||||||
|     this.fileLog.closeAllFiles() |     setTimeout(()=>{ | ||||||
|  |       this.fileLog.closeAllFiles() | ||||||
|  |     },1000) | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   public plcStr: string |   public plcStr: string | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user