杨哲调试
This commit is contained in:
		
							parent
							
								
									6870af63cb
								
							
						
					
					
						commit
						c56f7fb553
					
				|  | @ -195,6 +195,12 @@ export default { | ||||||
|       } |       } | ||||||
|       const res = await GetAwaitUploadAreaApi(req) |       const res = await GetAwaitUploadAreaApi(req) | ||||||
|       console.log(res, 'res---') |       console.log(res, 'res---') | ||||||
|  |       uni.showModal({ | ||||||
|  |         title: "开发调试查看", | ||||||
|  |         content: JSON.stringify(res) || "未传入参数 initFn", | ||||||
|  |         showCancel: true, | ||||||
|  |         success: function (res) {}, | ||||||
|  |       }); | ||||||
|       // 刷卡失败 |       // 刷卡失败 | ||||||
|       if (!res.succeed) { |       if (!res.succeed) { | ||||||
|         console.log('%c%s', 'color:red', '刷卡失败') |         console.log('%c%s', 'color:red', '刷卡失败') | ||||||
|  | @ -205,22 +211,11 @@ export default { | ||||||
|         this.successShow = false |         this.successShow = false | ||||||
|         return |         return | ||||||
|       } |       } | ||||||
|  | 
 | ||||||
|       // 刷卡成功 |       // 刷卡成功 | ||||||
|       this.successShow = true |       this.successShow = true | ||||||
|       // 同时关闭失败弹窗 |       // 同时关闭失败弹窗 | ||||||
|       this.errorShow = false |       this.errorShow = false | ||||||
|       return |  | ||||||
|       if (data) { |  | ||||||
|         console.log('%c%s', 'color:red', 'nfc刷卡成功') |  | ||||||
|         this.successShow = true |  | ||||||
|         // 同时关闭失败弹窗 |  | ||||||
|         this.errorShow = false |  | ||||||
|       } else { |  | ||||||
|         console.log('%c%s', 'color:red', '刷卡失败') |  | ||||||
|         this.errorShow = true |  | ||||||
|         // 同时关闭成功弹窗 |  | ||||||
|         this.successShow = false |  | ||||||
|       } |  | ||||||
|     }, |     }, | ||||||
|     // 上传图片 |     // 上传图片 | ||||||
|     toUploadPage() { |     toUploadPage() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue