接口定义
This commit is contained in:
		
							parent
							
								
									92ab9ef7b5
								
							
						
					
					
						commit
						d6eaf825af
					
				| @ -45,4 +45,13 @@ export interface Spzd{ | |||||||
|   username?: string; |   username?: string; | ||||||
|   kgxm?:string; |   kgxm?:string; | ||||||
|   ksyh?:string; |   ksyh?:string; | ||||||
|  | } | ||||||
|  | export interface IdCard{ | ||||||
|  |   name?: string; | ||||||
|  |   sex?: string; | ||||||
|  |   nation?: string; | ||||||
|  |   born?: string; | ||||||
|  |   address?: string; | ||||||
|  |   idCard?:string; | ||||||
|  |   photo?:string; | ||||||
| } | } | ||||||
| @ -21,7 +21,7 @@ import errorMsgDialog from './compontents/errorMsgDialog'; | |||||||
| import imageBtn from './compontents/imageBtn'; | import imageBtn from './compontents/imageBtn'; | ||||||
| import FileUtil from '../common/utils/File'; | import FileUtil from '../common/utils/File'; | ||||||
| import DB, { ColumnType } from '../common/database/DbSql'; | import DB, { ColumnType } from '../common/database/DbSql'; | ||||||
| import { LabelBlockType, QKParamType, SckType, SystemParamType, User } from '../model'; | import { IdCard, LabelBlockType, QKParamType, SckType, SystemParamType, User } from '../model'; | ||||||
| import { BusinessError } from '@ohos.base'; | import { BusinessError } from '@ohos.base'; | ||||||
| import {Carinfo,ExaminerLoginInfo} from '../model/index' | import {Carinfo,ExaminerLoginInfo} from '../model/index' | ||||||
| @Entry | @Entry | ||||||
| @ -361,7 +361,7 @@ struct UserInfo { | |||||||
| 
 | 
 | ||||||
|   onReadCard(ret: IDCardSDK.IDCardInfo) { |   onReadCard(ret: IDCardSDK.IDCardInfo) { | ||||||
|     console.info(`zzctest xx Read Card ret =${ret.status}`) |     console.info(`zzctest xx Read Card ret =${ret.status}`) | ||||||
|     let thisVar = AppStorage.get('indexComponent'); |     let thisVar:IdCard = AppStorage.get('indexComponent'); | ||||||
| 
 | 
 | ||||||
|     if (ret.status == 0) { // status = 1 为读到身份证信息; status = 1 为身份证离开读卡器 |     if (ret.status == 0) { // status = 1 为读到身份证信息; status = 1 为身份证离开读卡器 | ||||||
|       // 收到身份证离开读卡器的事件通知,根据实际业务需要决定是否需要清空之前已读取的身份证信息。 |       // 收到身份证离开读卡器的事件通知,根据实际业务需要决定是否需要清空之前已读取的身份证信息。 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user