接口定义

This commit is contained in:
lvyuankang 2025-02-19 13:22:02 +08:00
parent 92ab9ef7b5
commit d6eaf825af
2 changed files with 11 additions and 2 deletions

View File

@ -45,4 +45,13 @@ export interface Spzd{
username?: string;
kgxm?:string;
ksyh?:string;
}
export interface IdCard{
name?: string;
sex?: string;
nation?: string;
born?: string;
address?: string;
idCard?:string;
photo?:string;
}

View File

@ -21,7 +21,7 @@ import errorMsgDialog from './compontents/errorMsgDialog';
import imageBtn from './compontents/imageBtn';
import FileUtil from '../common/utils/File';
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 {Carinfo,ExaminerLoginInfo} from '../model/index'
@Entry
@ -361,7 +361,7 @@ struct UserInfo {
onReadCard(ret: IDCardSDK.IDCardInfo) {
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 为身份证离开读卡器
// 收到身份证离开读卡器的事件通知,根据实际业务需要决定是否需要清空之前已读取的身份证信息。