react_hsbc_teller 1.9.4 → 1.9.6
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/demo/demo.js +20 -12
- package/packages/pages/video/video.jsx +198 -55
- package/packages/pages/video/video.less +17 -3
package/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -5,26 +5,34 @@ import Pdf from './pdf.js'
|
|
|
5
5
|
class Demo extends Component {
|
|
6
6
|
state = {
|
|
7
7
|
shareMask: false,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
sessionId
|
|
8
|
+
imRoomId
|
|
9
|
+
:
|
|
10
|
+
"IZLZMoTxj@conference.ls-im-xmpp.chinawp.dev.ali.cloud.cn.hsbc",
|
|
11
|
+
sessionId
|
|
12
|
+
:
|
|
13
|
+
"IZLZMoTxj",
|
|
14
|
+
mtoken
|
|
15
|
+
:
|
|
16
|
+
"bc084d8a922f",
|
|
17
|
+
roomId
|
|
18
|
+
:
|
|
19
|
+
"663912632731275",
|
|
12
20
|
// roomId: '',
|
|
13
21
|
// mtoken: '',
|
|
14
22
|
// imRoomId: '',
|
|
15
23
|
// sessionId: '',
|
|
16
24
|
isVideo: false,
|
|
17
25
|
tellerAccount: 'wmzTeller',
|
|
18
|
-
callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
|
|
19
|
-
|
|
26
|
+
// callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
|
|
27
|
+
callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
|
|
20
28
|
businessNumber: '123',
|
|
21
29
|
lang: 'zh',
|
|
22
|
-
roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
23
|
-
baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
|
|
24
|
-
resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
// roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
31
|
+
// baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
|
|
32
|
+
// resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
33
|
+
roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
|
|
34
|
+
baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
|
|
35
|
+
resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
|
|
28
36
|
prohibitPrompt: '无客户',
|
|
29
37
|
titleBackground: '#40a9ff',
|
|
30
38
|
titleColor: '#faad14',
|
|
@@ -343,7 +343,8 @@ class Video extends Component {
|
|
|
343
343
|
faceFailReason: '',
|
|
344
344
|
cardResuly: '',
|
|
345
345
|
cardFailReason: '',
|
|
346
|
-
videoType: ''
|
|
346
|
+
videoType: '',
|
|
347
|
+
certificateValidityType: true,
|
|
347
348
|
};
|
|
348
349
|
// eslint-disable-next-line no-undef
|
|
349
350
|
test_controller = '';
|
|
@@ -351,7 +352,7 @@ class Video extends Component {
|
|
|
351
352
|
saveLog = (val) => {
|
|
352
353
|
axios({
|
|
353
354
|
method: 'get',
|
|
354
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.
|
|
355
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.6&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
355
356
|
|
|
356
357
|
}).then(res => {
|
|
357
358
|
|
|
@@ -774,28 +775,52 @@ class Video extends Component {
|
|
|
774
775
|
})
|
|
775
776
|
}
|
|
776
777
|
};
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
778
|
+
errorCodeClick=(type,value)=>{
|
|
779
|
+
if(type == 'ocr'){
|
|
780
|
+
if(value == 100701 || value == 100702 || value == 200001 || value == 300901 || value == 300902 || value == 400001) {
|
|
781
|
+
this.setState({
|
|
782
|
+
cardFailReason: '证件图片不清晰,请重试。返回重拍时,请检查并确保身份证件图片信息完整清晰后再提交核查。[#'+value+'#]'
|
|
783
|
+
})
|
|
784
|
+
}
|
|
785
|
+
if(value == 100803 || value == 100804 || value == 100805) {
|
|
786
|
+
this.setState({
|
|
787
|
+
cardFailReason: '证件信息核查失败,请重试。返回重拍时,请检查并确保身份证件图片信息完整清晰后再提交核查。[#'+value+'#]'
|
|
788
|
+
})
|
|
789
|
+
}
|
|
790
|
+
if(value == 100801 || value == 100802) {
|
|
791
|
+
this.setState({
|
|
792
|
+
cardFailReason: '系统或网络连接异常,请重试。若仍有问题,请联系Support同事。[#'+value+'#]'
|
|
793
|
+
})
|
|
794
|
+
}
|
|
795
|
+
if(value == 30002) {
|
|
796
|
+
this.setState({
|
|
797
|
+
cardFailReason: '识别成功-证件已过期。[#'+value+'#]'
|
|
798
|
+
})
|
|
799
|
+
}
|
|
800
|
+
} else if(type == 'face') {
|
|
801
|
+
if(value == 201 || value == 202 || value == 203 || value == 401 || value == 428) {
|
|
802
|
+
this.setState({
|
|
803
|
+
faceFailReason: '用户信息有误。请再次检查客户提交的证件信息是否正确后,返回重试。若仍有问题,请联系Support同事解决。[#'+ value + '#]'
|
|
804
|
+
})
|
|
805
|
+
}else if(value == 204) {
|
|
806
|
+
this.setState({
|
|
807
|
+
faceFailReason: '用户信息核查未通过。请返回重试。返回重拍时,请检查并确保客户照片完整清晰后再提交核查。[#'+ value + '#]'
|
|
808
|
+
})
|
|
809
|
+
}else if(value == 209) {
|
|
810
|
+
this.setState({
|
|
811
|
+
faceFailReason: '用户信息核查未通过。请确认客户与其提供的证件信息一致后,再提交核查。[#'+ value + '#]'
|
|
812
|
+
})
|
|
813
|
+
} else {
|
|
814
|
+
this.setState({
|
|
815
|
+
faceFailReason: '用户信息核查无法处理,请重试。若仍有问题,请联系Support同事。[#'+ value + '#]'
|
|
816
|
+
})
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
}
|
|
823
|
+
}
|
|
799
824
|
contrastFaceVerify = async () => {
|
|
800
825
|
try {
|
|
801
826
|
let result = await API.contrastFaceVerify({
|
|
@@ -808,7 +833,7 @@ class Video extends Component {
|
|
|
808
833
|
fileBase64: this.state.facialImg.replace(/^data:image\/\w+;base64,/, "")
|
|
809
834
|
});
|
|
810
835
|
console.log(result);
|
|
811
|
-
if (result.code == 200) {
|
|
836
|
+
if (result.code == 200 || result.code == 201) {
|
|
812
837
|
// this.messageClick('人脸识别成功','success')
|
|
813
838
|
this.setState({
|
|
814
839
|
loadingFace: false,
|
|
@@ -825,8 +850,9 @@ class Video extends Component {
|
|
|
825
850
|
loadingFace: false,
|
|
826
851
|
faceResuly: 'fail',
|
|
827
852
|
isFaceImage: '',
|
|
828
|
-
faceFailReason: result.message
|
|
853
|
+
// faceFailReason: result.message
|
|
829
854
|
})
|
|
855
|
+
this.errorCodeClick('face',result.code)
|
|
830
856
|
}
|
|
831
857
|
|
|
832
858
|
|
|
@@ -839,8 +865,9 @@ class Video extends Component {
|
|
|
839
865
|
loadingFace: false,
|
|
840
866
|
faceResuly: 'fail',
|
|
841
867
|
isFaceImage: '',
|
|
842
|
-
faceFailReason: err.message
|
|
868
|
+
// faceFailReason: err.message
|
|
843
869
|
})
|
|
870
|
+
this.errorCodeClick('face',result.code)
|
|
844
871
|
console.error('err', err);
|
|
845
872
|
}
|
|
846
873
|
};
|
|
@@ -3851,7 +3878,7 @@ class Video extends Component {
|
|
|
3851
3878
|
}
|
|
3852
3879
|
}
|
|
3853
3880
|
componentWillMount() {
|
|
3854
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
3881
|
+
console.log('hsbc_teller_sdk', '1.9.6')
|
|
3855
3882
|
if (this.props.sessionId) {
|
|
3856
3883
|
this.getRoomStatus({
|
|
3857
3884
|
sessionId: this.props.sessionId
|
|
@@ -4232,8 +4259,8 @@ class Video extends Component {
|
|
|
4232
4259
|
sessionId: this.state.sessionId,
|
|
4233
4260
|
certificateType: this.state.certificateType,
|
|
4234
4261
|
customerName: this.state.customerName,
|
|
4235
|
-
startDate: this.state.certificateValidity ? this.state.certificateValidity.split('-')[0] : '',
|
|
4236
|
-
endDate: this.state.certificateValidity ? this.state.certificateValidity.split('-')[1] : '',
|
|
4262
|
+
startDate: this.state.documentType == 'PASSPORT_CARD' ? '' : this.state.certificateValidity ? this.state.certificateValidity.split('-')[0] : '',
|
|
4263
|
+
endDate: this.state.documentType == 'PASSPORT_CARD' ? this.state.certificateValidity ? this.state.certificateValidity.split('-')[0]: '' : this.state.certificateValidity ? this.state.certificateValidity.split('-')[1] : '',
|
|
4237
4264
|
});
|
|
4238
4265
|
console.log('confirmCallback', result)
|
|
4239
4266
|
if (result.code == 200) {
|
|
@@ -4309,17 +4336,82 @@ class Video extends Component {
|
|
|
4309
4336
|
})
|
|
4310
4337
|
});
|
|
4311
4338
|
if(this.state.documentType == 'ID_CARD') {
|
|
4339
|
+
if (result.data.side == 'front') {
|
|
4340
|
+
if(this.state.certificateValidity) {
|
|
4341
|
+
this.setState({
|
|
4342
|
+
idCardNumber: result.data.idCardNumber,
|
|
4343
|
+
idCardName: result.data.idCardName,
|
|
4344
|
+
loadingFace: false,
|
|
4345
|
+
cardFailReason: '',
|
|
4346
|
+
cardResuly: 'success',
|
|
4347
|
+
})
|
|
4348
|
+
} else {
|
|
4349
|
+
this.setState({
|
|
4350
|
+
// isModalVisibleFacial: false
|
|
4351
|
+
idCardNumber: result.data.idCardNumber,
|
|
4352
|
+
idCardName: result.data.idCardName
|
|
4353
|
+
})
|
|
4354
|
+
this.ocrCallback(2)
|
|
4355
|
+
}
|
|
4356
|
+
} else if (result.data.side == 'back') {
|
|
4357
|
+
console.log(result.data.startDate, result.data.endDate)
|
|
4358
|
+
if(this.state.idCardName && this.dateNewTime(result.data.endDate.split('-')[1])) {
|
|
4359
|
+
this.setState({
|
|
4360
|
+
certificateValidity: result.data.startDate + '-' + result.data.endDate,
|
|
4361
|
+
loadingFace: false,
|
|
4362
|
+
cardFailReason: '',
|
|
4363
|
+
cardResuly: 'success',
|
|
4364
|
+
certificateValidityType: true,
|
|
4365
|
+
})
|
|
4366
|
+
} else if(this.state.idCardName && !this.dateNewTime(result.data.endDate.split('-')[1])) {
|
|
4367
|
+
this.setState({
|
|
4368
|
+
certificateValidity: result.data.startDate + '-' + result.data.endDate,
|
|
4369
|
+
loadingFace: false,
|
|
4370
|
+
certificateValidityType: false,
|
|
4371
|
+
cardFailReason: '证件不在有效期内',
|
|
4372
|
+
cardResuly: 'fail',
|
|
4373
|
+
})
|
|
4374
|
+
} else if(!this.state.idCardName && this.dateNewTime(result.data.endDate.split('-')[1])) {
|
|
4375
|
+
this.setState({
|
|
4376
|
+
certificateValidity: result.data.startDate + '-' + result.data.endDate,
|
|
4377
|
+
})
|
|
4378
|
+
this.ocrCallback(2)
|
|
4379
|
+
} else if(!this.state.idCardName && !this.dateNewTime(result.data.endDate.split('-')[1])) {
|
|
4380
|
+
this.setState({
|
|
4381
|
+
certificateValidity: result.data.startDate + '-' + result.data.endDate,
|
|
4382
|
+
loadingFace: false,
|
|
4383
|
+
certificateValidityType: false,
|
|
4384
|
+
cardFailReason: '证件不在有效期内',
|
|
4385
|
+
cardResuly: 'fail',
|
|
4386
|
+
})
|
|
4387
|
+
}
|
|
4388
|
+
// if(this.state.idCardName) {
|
|
4389
|
+
// this.setState({
|
|
4390
|
+
// certificateValidity: result.data.startDate + '-' + result.data.endDate,
|
|
4391
|
+
// loadingFace: false,
|
|
4392
|
+
// cardFailReason: '',
|
|
4393
|
+
// cardResuly: 'success',
|
|
4394
|
+
// })
|
|
4395
|
+
// } else {
|
|
4396
|
+
// this.setState({
|
|
4397
|
+
// certificateValidity: result.data.startDate + '-' + result.data.endDate,
|
|
4398
|
+
// })
|
|
4399
|
+
// this.ocrCallback(2)
|
|
4400
|
+
// }
|
|
4401
|
+
}
|
|
4402
|
+
}
|
|
4403
|
+
if(this.state.documentType == 'HK_MO_RESIDENCE_CARD' || this.state.documentType == 'TW_RESIDENCE_CARD') {
|
|
4312
4404
|
if (result.data.side == 'front') {
|
|
4313
4405
|
this.setState({
|
|
4314
4406
|
// isModalVisibleFacial: false
|
|
4315
|
-
idCardNumber: result.data.
|
|
4316
|
-
idCardName: result.data.
|
|
4407
|
+
idCardNumber: result.data.resident.idNum,
|
|
4408
|
+
idCardName: result.data.resident.name
|
|
4317
4409
|
})
|
|
4318
4410
|
this.ocrCallback(2)
|
|
4319
4411
|
} else if (result.data.side == 'back') {
|
|
4320
|
-
console.log(result.data.startDate, result.data.endDate)
|
|
4412
|
+
console.log(result.data.resident.startDate, result.data.resident.endDate)
|
|
4321
4413
|
this.setState({
|
|
4322
|
-
certificateValidity: result.data.startDate + '-' + result.data.endDate,
|
|
4414
|
+
certificateValidity: result.data.resident.startDate + '-' + result.data.resident.endDate,
|
|
4323
4415
|
loadingFace: false,
|
|
4324
4416
|
cardFailReason: '',
|
|
4325
4417
|
cardResuly: 'success',
|
|
@@ -4328,9 +4420,20 @@ class Video extends Component {
|
|
|
4328
4420
|
}
|
|
4329
4421
|
if(this.state.documentType == 'PASSPORT_CARD') {
|
|
4330
4422
|
this.setState({
|
|
4331
|
-
idCardNumber: result.data.
|
|
4332
|
-
idCardName: result.data.
|
|
4333
|
-
certificateValidity: result.data.
|
|
4423
|
+
idCardNumber: result.data.passport.passportCode,
|
|
4424
|
+
idCardName: result.data.passport.nameEN,
|
|
4425
|
+
certificateValidity: result.data.passport.expiryDate,
|
|
4426
|
+
loadingFace: false,
|
|
4427
|
+
cardFailReason: '',
|
|
4428
|
+
cardResuly: 'success',
|
|
4429
|
+
})
|
|
4430
|
+
}
|
|
4431
|
+
|
|
4432
|
+
if(this.state.documentType == 'TW_PASS_CARD' || this.state.documentType == 'HK_MO_PASS_CARD') {
|
|
4433
|
+
this.setState({
|
|
4434
|
+
idCardNumber: result.data.permission.cardNum,
|
|
4435
|
+
idCardName: result.data.permission.nameEN,
|
|
4436
|
+
certificateValidity: result.data.permission.validDate,
|
|
4334
4437
|
loadingFace: false,
|
|
4335
4438
|
cardFailReason: '',
|
|
4336
4439
|
cardResuly: 'success',
|
|
@@ -4340,24 +4443,27 @@ class Video extends Component {
|
|
|
4340
4443
|
} else {
|
|
4341
4444
|
this.setState({
|
|
4342
4445
|
loadingFace: false,
|
|
4343
|
-
cardFailReason: result.message,
|
|
4446
|
+
// cardFailReason: result.message,
|
|
4344
4447
|
cardResuly: 'fail',
|
|
4345
4448
|
})
|
|
4346
|
-
this.messageClick('识别失败', 'error')
|
|
4449
|
+
// this.messageClick('识别失败', 'error')
|
|
4450
|
+
this.errorCodeClick('ocr',result.code)
|
|
4347
4451
|
}
|
|
4348
4452
|
} catch (err) {
|
|
4349
4453
|
this.setState({
|
|
4350
4454
|
loadingFace: false,
|
|
4351
|
-
cardFailReason: err.response.message,
|
|
4455
|
+
// cardFailReason: err.response.message,
|
|
4352
4456
|
cardResuly: 'fail',
|
|
4353
4457
|
})
|
|
4458
|
+
this.errorCodeClick('ocr',err.response.code)
|
|
4459
|
+
|
|
4354
4460
|
// this.messageClick('识别失败', 'error')
|
|
4355
4461
|
}
|
|
4356
4462
|
}
|
|
4357
4463
|
handleOkFacial = () => {
|
|
4358
4464
|
if (this.state.faceCustomerType == 2) {
|
|
4359
4465
|
if (this.state.IDtypeFrontOrBack == '请截取证件头像面') {
|
|
4360
|
-
if(this.state.documentType == 'PASSPORT_CARD') {
|
|
4466
|
+
if(this.state.documentType == 'PASSPORT_CARD' || this.state.documentType == 'TW_PASS_CARD' || this.state.documentType == 'HK_MO_PASS_CARD') {
|
|
4361
4467
|
this.setState({
|
|
4362
4468
|
loadingFace: true
|
|
4363
4469
|
})
|
|
@@ -4609,6 +4715,7 @@ class Video extends Component {
|
|
|
4609
4715
|
idCardName: '',
|
|
4610
4716
|
cardFailReason: '',
|
|
4611
4717
|
cardResuly: '',
|
|
4718
|
+
certificateValidityType: true
|
|
4612
4719
|
}, () => {
|
|
4613
4720
|
|
|
4614
4721
|
|
|
@@ -5418,8 +5525,43 @@ class Video extends Component {
|
|
|
5418
5525
|
handleChangeIdCardNumber = (event) => {
|
|
5419
5526
|
this.setState({ idCardNumber: event.target.value });
|
|
5420
5527
|
}
|
|
5528
|
+
dateNewTime=(value)=>{
|
|
5529
|
+
var myDate = new Date();
|
|
5530
|
+
var year = myDate.getFullYear();
|
|
5531
|
+
var month = myDate.getMonth() + 1;
|
|
5532
|
+
var dates = myDate.getDate();
|
|
5533
|
+
var value1 = year + '.' + month + '.' + dates
|
|
5534
|
+
var now = new Date(value1).valueOf();
|
|
5535
|
+
var time = new Date(value).valueOf();
|
|
5536
|
+
console.log(now,time)
|
|
5537
|
+
if(now<time || now == time){
|
|
5538
|
+
return true;
|
|
5539
|
+
}else{
|
|
5540
|
+
return false;
|
|
5541
|
+
}
|
|
5542
|
+
}
|
|
5421
5543
|
handleChangeCertificateValidity = (event) => {
|
|
5422
|
-
this.
|
|
5544
|
+
if(this.state.documentType == 'ID_CARD' && event.target.value.split('-').length >1 && event.target.value.split('-')[1].split('.').length >2) {
|
|
5545
|
+
if(this.dateNewTime(event.target.value.split('-')[1])) {
|
|
5546
|
+
this.setState({
|
|
5547
|
+
certificateValidity: event.target.value,
|
|
5548
|
+
certificateValidityType: true
|
|
5549
|
+
});
|
|
5550
|
+
|
|
5551
|
+
} else {
|
|
5552
|
+
this.setState({
|
|
5553
|
+
certificateValidity: event.target.value,
|
|
5554
|
+
certificateValidityType: false
|
|
5555
|
+
});
|
|
5556
|
+
}
|
|
5557
|
+
} else{
|
|
5558
|
+
this.setState({
|
|
5559
|
+
certificateValidity: event.target.value,
|
|
5560
|
+
});
|
|
5561
|
+
}
|
|
5562
|
+
|
|
5563
|
+
|
|
5564
|
+
|
|
5423
5565
|
}
|
|
5424
5566
|
componentDidUpdate(prevProps) {
|
|
5425
5567
|
console.log('componentDidUpdate', prevProps, prevProps.shareMask, this.props.shareMask)
|
|
@@ -5763,7 +5905,9 @@ class Video extends Component {
|
|
|
5763
5905
|
{otherAttendeesList}
|
|
5764
5906
|
</li>
|
|
5765
5907
|
}
|
|
5766
|
-
|
|
5908
|
+
<li>
|
|
5909
|
+
请注意,若会议中需要客户出示证件,请客户使用手机的后置摄像头展示证件,由客户经理拍摄证件照片以完成客户身份核实。客户可点击会议主页面上的”切换摄像头“按钮切换手机摄像头
|
|
5910
|
+
</li>
|
|
5767
5911
|
|
|
5768
5912
|
</ul>
|
|
5769
5913
|
</div>
|
|
@@ -6245,7 +6389,10 @@ class Video extends Component {
|
|
|
6245
6389
|
this.state.disabledIdCard && <Button className="modelButtonFaceOk" danger onClick={(e) => this.updateConfirm('noFace')}>修改</Button>
|
|
6246
6390
|
}
|
|
6247
6391
|
{
|
|
6248
|
-
this.state.documentType == 'ID_CARD' && <Button className="modelButtonFaceOkColor" danger onClick={(e) => this.confirmCallback('face')}>完成并发起人脸识别</Button>
|
|
6392
|
+
this.state.documentType == 'ID_CARD' && this.state.certificateValidityType && <Button className="modelButtonFaceOkColor" danger onClick={(e) => this.confirmCallback('face')}>完成并发起人脸识别</Button>
|
|
6393
|
+
}
|
|
6394
|
+
{
|
|
6395
|
+
this.state.documentType == 'ID_CARD' && !this.state.certificateValidityType && <Button className="modelButtonFaceOkColorFile" danger >完成并发起人脸识别</Button>
|
|
6249
6396
|
}
|
|
6250
6397
|
{
|
|
6251
6398
|
this.state.documentType != 'ID_CARD' && <Button className="modelButtonOk" type="primary" danger onClick={(e) => this.confirmCallback('noFace')}>完成</Button>
|
|
@@ -6259,12 +6406,6 @@ class Video extends Component {
|
|
|
6259
6406
|
]}>
|
|
6260
6407
|
<Spin spinning={this.state.loadingFace} tip="识别中...">
|
|
6261
6408
|
<div className="faceBody">
|
|
6262
|
-
{/* {this.state.faceCustomerType == 2 &&
|
|
6263
|
-
<Select defaultValue={this.state.defaultValue} style={{ width: 120,marginBottom: '20px' }} onChange={this.handleChangeOcr}>
|
|
6264
|
-
<Option value="1">正面</Option>
|
|
6265
|
-
<Option value="2">反面</Option>
|
|
6266
|
-
</Select>
|
|
6267
|
-
} */}
|
|
6268
6409
|
{this.state.cardResuly == '' && <div className='faceCardImg'>
|
|
6269
6410
|
|
|
6270
6411
|
{
|
|
@@ -6275,10 +6416,12 @@ class Video extends Component {
|
|
|
6275
6416
|
this.state.faceResuly == '' && <span>
|
|
6276
6417
|
<div>
|
|
6277
6418
|
{
|
|
6278
|
-
this.state.videoType == 'error' && <div className='errorClassFace'>
|
|
6279
|
-
<img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img
|
|
6419
|
+
this.state.videoType == 'error' && <div className='errorClassFace videoErrorClass'>
|
|
6420
|
+
<img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>
|
|
6421
|
+
请点击“截图”拍摄客户人像的照片。若界面无客户头像显示,请检查网络并保持网络稳定后,点击“截图”重试
|
|
6422
|
+
</div>
|
|
6280
6423
|
}
|
|
6281
|
-
<video className="faceImg" id="publish_video_2" autoPlay muted={true}></video>
|
|
6424
|
+
<video disablePictureInPicture className="faceImg" id="publish_video_2" autoPlay muted={true}></video>
|
|
6282
6425
|
</div>
|
|
6283
6426
|
<img className="faceImg" src={this.state.facialImg} alt=""></img>
|
|
6284
6427
|
</span>
|
|
@@ -6302,7 +6445,7 @@ class Video extends Component {
|
|
|
6302
6445
|
<div className='imgDIV'>
|
|
6303
6446
|
<img className="faceImgCard" src={this.state.facialImgFront} alt=""></img>
|
|
6304
6447
|
{
|
|
6305
|
-
this.state.documentType != 'PASSPORT_CARD' && <img className="faceImgCard faceImgCardTwo" src={this.state.facialImgBack} alt=""></img>
|
|
6448
|
+
this.state.documentType != 'PASSPORT_CARD' && this.state.documentType != 'TW_PASS_CARD' && this.state.documentType != 'HK_MO_PASS_CARD' && <img className="faceImgCard faceImgCardTwo" src={this.state.facialImgBack} alt=""></img>
|
|
6306
6449
|
}
|
|
6307
6450
|
|
|
6308
6451
|
</div>
|
|
@@ -6438,7 +6581,7 @@ class Video extends Component {
|
|
|
6438
6581
|
<Radio value={'HK_MO_PASS_CARD'}>港澳来往大陆通行证</Radio>
|
|
6439
6582
|
<Radio value={'HK_MO_RESIDENCE_CARD'}>港澳台居民居住证</Radio>
|
|
6440
6583
|
<Radio value={'TW_RESIDENCE_CARD'}>台湾居民居住证</Radio>
|
|
6441
|
-
<Radio value={'FOREIGNER_RESIDENCE_CARD'}>外国人永久居住证</Radio>
|
|
6584
|
+
{/* <Radio value={'FOREIGNER_RESIDENCE_CARD'}>外国人永久居住证</Radio> */}
|
|
6442
6585
|
</Space>
|
|
6443
6586
|
</Radio.Group>
|
|
6444
6587
|
</div>
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
border-radius: 4px;
|
|
187
187
|
border:1px dashed #DDDDDD;
|
|
188
188
|
margin: 24px;
|
|
189
|
+
margin-bottom: 3rem;
|
|
189
190
|
flex:1;
|
|
190
191
|
|
|
191
192
|
}
|
|
@@ -267,7 +268,7 @@
|
|
|
267
268
|
bottom: 0;
|
|
268
269
|
margin: auto;
|
|
269
270
|
width: 500px;
|
|
270
|
-
height:
|
|
271
|
+
height: 300px;
|
|
271
272
|
font-size: 22px;
|
|
272
273
|
color: #222222;
|
|
273
274
|
font-weight: 600;
|
|
@@ -413,6 +414,15 @@
|
|
|
413
414
|
background: #DB0011!important;
|
|
414
415
|
border-spacing: 20px!important;
|
|
415
416
|
}
|
|
417
|
+
.modelButtonFaceOkColorFile{
|
|
418
|
+
width: 170px!important;
|
|
419
|
+
height: 40px!important;
|
|
420
|
+
font-size: 16px!important;
|
|
421
|
+
color: #5C5C5C!important;
|
|
422
|
+
border: 1px #5C5C5C solid!important;
|
|
423
|
+
background: #d9d9d9!important;
|
|
424
|
+
border-spacing: 20px!important;
|
|
425
|
+
}
|
|
416
426
|
.endModal{
|
|
417
427
|
font-size: 16px;
|
|
418
428
|
padding: 56px 30px 0px 30px;
|
|
@@ -425,7 +435,7 @@
|
|
|
425
435
|
.errorClassName{
|
|
426
436
|
.ant-message-notice-content{
|
|
427
437
|
min-width: 500px;
|
|
428
|
-
height: 44px;
|
|
438
|
+
min-height: 44px;
|
|
429
439
|
background: #F9F2F3;
|
|
430
440
|
border: 1px #E5B2B5 solid;
|
|
431
441
|
font-size: 16px;
|
|
@@ -464,7 +474,7 @@
|
|
|
464
474
|
}
|
|
465
475
|
.errorClassFace{
|
|
466
476
|
min-width: 350px;
|
|
467
|
-
height: 44px;
|
|
477
|
+
min-height: 44px;
|
|
468
478
|
background: #F9F2F3;
|
|
469
479
|
border: 1px #E5B2B5 solid;
|
|
470
480
|
font-size: 16px;
|
|
@@ -479,6 +489,10 @@
|
|
|
479
489
|
margin-bottom: 3px;
|
|
480
490
|
}
|
|
481
491
|
}
|
|
492
|
+
.videoErrorClass{
|
|
493
|
+
height: 60px;
|
|
494
|
+
margin: 15px;
|
|
495
|
+
}
|
|
482
496
|
.successClassFace{
|
|
483
497
|
min-width: 350px;
|
|
484
498
|
height: 44px;
|