react_hsbc_teller 2.0.55 → 2.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -6,16 +6,15 @@ const { Step } = Steps;
|
|
|
6
6
|
export default class step extends Component {
|
|
7
7
|
render() {
|
|
8
8
|
let current = this.props.current;
|
|
9
|
-
let isOcr = this.props.ocr;
|
|
10
9
|
return (
|
|
11
10
|
<div style={{...this.props.style}}>
|
|
12
|
-
<div style={{marginBottom: '10px'}}
|
|
11
|
+
<div style={{marginBottom: '10px'}}>客户证件识别</div>
|
|
13
12
|
<Steps current={current} direction={this.props.direction} size="small" style={{width:'150px', height: '200px'}}>
|
|
14
13
|
{/* step1 */}
|
|
15
14
|
<Step status={current==0? '':'wait'} title="请选择客户" />
|
|
16
15
|
|
|
17
16
|
{/* step2 */}
|
|
18
|
-
<Step status={current==1? '':'wait'} title=
|
|
17
|
+
<Step status={current==1? '':'wait'} title="确认客户证件类型" />
|
|
19
18
|
|
|
20
19
|
{/* step3 */}
|
|
21
20
|
<Step status={current==2? '':'wait'} title="证件信息核查" />
|
|
@@ -63,7 +63,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
|
|
|
63
63
|
import axios from 'axios';
|
|
64
64
|
import CryptoJS from "crypto-js";
|
|
65
65
|
|
|
66
|
-
const SDK_VERISON = '2.0.
|
|
66
|
+
const SDK_VERISON = '2.0.57'
|
|
67
67
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
68
68
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
69
69
|
const { Option } = Select;
|
|
@@ -4829,7 +4829,7 @@ class Video extends Component {
|
|
|
4829
4829
|
handleFinishOcr = async (type) => {
|
|
4830
4830
|
// 非身份证直接入库
|
|
4831
4831
|
// if (type == 'noFace') {
|
|
4832
|
-
await this.
|
|
4832
|
+
await this.handleConfirmCallback()
|
|
4833
4833
|
// this.setState({
|
|
4834
4834
|
// idCardNameFace: this.state.idCardName,
|
|
4835
4835
|
// idCardNumberFace: this.state.idCardNumber,
|
|
@@ -4899,7 +4899,7 @@ class Video extends Component {
|
|
|
4899
4899
|
// }
|
|
4900
4900
|
}
|
|
4901
4901
|
// ocr结果入库
|
|
4902
|
-
|
|
4902
|
+
handleConfirmCallback = async () => {
|
|
4903
4903
|
try {
|
|
4904
4904
|
// 原始证件参数
|
|
4905
4905
|
let data = {
|
|
@@ -4937,7 +4937,7 @@ class Video extends Component {
|
|
|
4937
4937
|
if (result.code == 200) {
|
|
4938
4938
|
// console.log(data)
|
|
4939
4939
|
let item = this.state.videoList.find(el => el.userId == this.state.faceCustomerUid )
|
|
4940
|
-
item.hasOcr = 1; // 非身份证ocr
|
|
4940
|
+
item.hasOcr = this.state.documentType == 'ID_CARD' ? 2 : 1; // 非身份证ocr
|
|
4941
4941
|
// this.setState({
|
|
4942
4942
|
// videoList: this.state.videoList
|
|
4943
4943
|
// })
|
|
@@ -4947,8 +4947,8 @@ class Video extends Component {
|
|
|
4947
4947
|
}
|
|
4948
4948
|
// console.log(this.state.facialImgFront)
|
|
4949
4949
|
// console.log(`${data.idCardName}-${this.state.documentType}`)
|
|
4950
|
-
if (this.state.documentType == 'HK_MO_RESIDENCE_CARD' || this.state.documentType == 'TW_RESIDENCE_CARD') {
|
|
4951
|
-
//
|
|
4950
|
+
if (this.state.documentType == 'ID_CARD' || this.state.documentType == 'HK_MO_RESIDENCE_CARD' || this.state.documentType == 'TW_RESIDENCE_CARD') {
|
|
4951
|
+
// 身份证、居住证正反面需要拼接成一张图
|
|
4952
4952
|
combineBase64Images(this.state.facialImgFront, this.state.facialImgBack, (base64Image)=>{
|
|
4953
4953
|
saveBase64Image(base64Image, `${data.reviseIdCardName||data.idCardName}-${this.state.documentType}`)
|
|
4954
4954
|
})
|
|
@@ -7457,7 +7457,7 @@ class Video extends Component {
|
|
|
7457
7457
|
</div>
|
|
7458
7458
|
]}>
|
|
7459
7459
|
<div style={{display: 'flex', padding: '10px 20px'}}>
|
|
7460
|
-
<Step current={this.state.isCustomerSelect?0:1}
|
|
7460
|
+
<Step current={this.state.isCustomerSelect?0:1} />
|
|
7461
7461
|
<div>
|
|
7462
7462
|
{
|
|
7463
7463
|
this.state.isCustomerSelect && <div>
|