diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue
index 5616cf3..cada00d 100644
--- a/src/pages/home/index.vue
+++ b/src/pages/home/index.vue
@@ -75,23 +75,35 @@
结婚证字号:
{{ formData.marriageNo }}
-
- 男方姓名:
- {{ formData.husbandName }}
-
-
- 女方姓名:
- {{ formData.wifeName }}
-
-
-
+
+ 男方姓名:
+ {{ formData.husbandName }}
+
+
+ 男方身份证:
+ {{ formData.husbandId || '-' }}
+
+
+ 女方姓名:
+ {{ formData.wifeName }}
+
+
+ 女方身份证:
+ {{ formData.wifeId || '-' }}
+
+
+ 登记日期:
+ {{ formData.registerDate || '-' }}
+
+
+
-
-
-
+
+
+
@@ -202,18 +214,41 @@
-
diff --git a/src/router/index.ts b/src/router/index.ts
index 5cd3e35..06948e9 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -26,6 +26,14 @@ const routes: Array
= [
meta: {
title: '宁福您彩 活动规则'
}
+ },
+ {
+ path: '/idcard',
+ name: 'IdCard',
+ component: () => import('../pages/idcard/index.vue'),
+ meta: {
+ title: '宁福您彩 身份核验'
+ }
}
]
diff --git a/src/types/apiService.d.ts b/src/types/apiService.d.ts
index 864429c..50b15b8 100644
--- a/src/types/apiService.d.ts
+++ b/src/types/apiService.d.ts
@@ -13,14 +13,53 @@ export interface OcrUploadResponse {
uploadId: string
}
+export interface IdCardOcrParseResponse {
+ raw: string
+ words: string[]
+ parsed: {
+ birthday?: string
+ id_number: string
+ address: string
+ image_status:
+ | 'normal'
+ | 'reversed_side'
+ | 'non_idcard'
+ | 'blurred'
+ | 'other_type_card'
+ | 'over_exposure'
+ | 'over_dark'
+ | 'unknown'
+ risk_type:
+ | 'normal'
+ | 'copy'
+ | 'scan'
+ | 'temporary'
+ | 'screen'
+ | 'screenshot'
+ | 'unknown'
+ gender: '男' | '女' | '未知' | null | undefined
+ name?: string
+ nationality?: string
+ }
+}
+
export interface MarriageOcrParseResponse {
raw: string
words: string[]
parsed: {
- marriageNo: string
- husbandName: string
- wifeName: string
- registerDate: string
+ marriageNo?: string
+ registerDate?: string
+ certificateHolder?: string
+ wifeId?: string
+ wifeName?: string
+ wifeBirthDate?: string
+ wifeNationality?: string
+ wifeGender?: '男' | '女' | '未知' | null | undefined
+ husbandId?: string
+ husbandName?: string
+ husbandGender?: '男' | '女' | '未知' | null | undefined
+ husbandBirthDate?: string
+ husbandNationality?: string
}
}
@@ -53,7 +92,8 @@ export interface MarriageCodeListVO {
export interface CommSmsDTO {
mobile: string
- type: number // 0=登录;1=兑换领取;2=OCR识别
+ smsCode?: string
+ type: 0 | 1 | 2 | 3 // 0=登录;1=兑换领取;2=OCR识别;3=本流程使用
}
// API服务接口定义
@@ -76,6 +116,13 @@ export interface ApiService {
uploadId: string
}): Promise
+ // OCR 识别身份证
+ idCardParseOcrInfo(data: {
+ mobile: string
+ smsCode: string
+ uploadId: string
+ }): Promise
+
// 领取流程相关接口
// 领取前校验(生成二维码前的校验与预览)
receiveCheck(data: MarriageCodeDTO): Promise
@@ -103,8 +150,8 @@ export interface ApiService {
// 登录
login(data: {
mobile: string
- password: string
- smsCode: string
+ password?: string
+ smsCode?: string
}): Promise
// 后台活动管理接口(可选,用于管理端)
@@ -113,4 +160,4 @@ export interface ApiService {
}
export const apiService: ApiService
-export default apiService
\ No newline at end of file
+export default apiService