学习视频人脸识别允许返回上一页,考试过程不允许返回
							parent
							
								
									057156f6be
								
							
						
					
					
						commit
						1823dfe7bb
					
				|  | @ -209,16 +209,16 @@ export default { | |||
|       entrySite: '', | ||||
|     } | ||||
|   }, | ||||
|   // onBackPress(event) { | ||||
|   //   if (event.from === "backbutton") { | ||||
|   //     uni.showToast({ | ||||
|   //       title:'正在答题中', | ||||
|   //       icon:'none' | ||||
|   //     }) | ||||
|   //     return true; | ||||
|   //   } | ||||
|   //   return false; | ||||
|   // }, | ||||
|   onBackPress(event) { | ||||
|     if (event.from === "backbutton") { | ||||
|       uni.showToast({ | ||||
|         title:'正在答题中', | ||||
|         icon:'none' | ||||
|       }) | ||||
|       return true; | ||||
|     } | ||||
|     return false; | ||||
|   }, | ||||
|   onLoad(options) { | ||||
|     this.STAGEEXAMPAPERINPUT_ID = options.STAGEEXAMPAPERINPUT_ID; | ||||
|     this.STAGEEXAMPAPER_ID = options.STAGEEXAMPAPER_ID; | ||||
|  |  | |||
|  | @ -100,19 +100,22 @@ | |||
| 		}, | ||||
|         onBackPress(event) { | ||||
|             if (event.from === "backbutton") { | ||||
|                 uni.showToast({ | ||||
|                     icon:'none', | ||||
|                     title:'请完成人脸验证' | ||||
|                 }) | ||||
|                     return true; | ||||
|                 // uni.showToast({ | ||||
|                 //     icon:'none', | ||||
|                 //     title:'请完成人脸验证' | ||||
|                 // }) | ||||
|               uni.navigateBack({ | ||||
|                 delta: 2 | ||||
|               }); | ||||
|               return true; | ||||
|             } | ||||
|             return false; | ||||
|         }, | ||||
| 		methods: { | ||||
|             snapshot() { | ||||
|                 uni.showLoading({ | ||||
|                     title: "加载中", | ||||
|                 }); | ||||
|                 // uni.showLoading({ | ||||
|                 //     title: "加载中", | ||||
|                 // }); | ||||
|                 this.context.snapshot({ | ||||
|                     success: (e) => { | ||||
|                         this.getMinImage(e.message.tempImagePath); | ||||
|  | @ -160,7 +163,7 @@ | |||
|                                         ...this.params | ||||
| 									}, | ||||
| 									success: (res) => { | ||||
| 										uni.hideLoading();//结束加载中动画 | ||||
| 										// uni.hideLoading();//结束加载中动画 | ||||
| 										if (res.data != null) { | ||||
| 											var result = res.data.result; | ||||
| 											if ("success" == result) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue