react_hsbc_teller 1.9.6 → 1.9.8
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/api/api.js +1 -1
- package/packages/demo/demo.js +4 -4
- package/packages/pages/video/video.jsx +105 -67
- package/packages/pages/video/video.less +1 -1
package/package.json
CHANGED
package/packages/api/api.js
CHANGED
|
@@ -179,7 +179,7 @@ class API extends Server{
|
|
|
179
179
|
try{
|
|
180
180
|
let result = await this.axios('post', '/hsbc/identify/ocr/callback', params);
|
|
181
181
|
console.log(result)
|
|
182
|
-
if(result && (result.data instanceof Object) && result.code === 200){
|
|
182
|
+
if(result && (result.data instanceof Object) && (result.code === 200 || result.code == 30002 || result.code == 20002 || result.code == 40002 || result.code == 50002)){
|
|
183
183
|
return result||[];
|
|
184
184
|
}else{
|
|
185
185
|
let err = {
|
package/packages/demo/demo.js
CHANGED
|
@@ -7,16 +7,16 @@ class Demo extends Component {
|
|
|
7
7
|
shareMask: false,
|
|
8
8
|
imRoomId
|
|
9
9
|
:
|
|
10
|
-
"
|
|
10
|
+
"zuQwaI8vq@conference.ls-im-xmpp.chinawp.dev.ali.cloud.cn.hsbc",
|
|
11
11
|
sessionId
|
|
12
12
|
:
|
|
13
|
-
"
|
|
13
|
+
"zuQwaI8vq",
|
|
14
14
|
mtoken
|
|
15
15
|
:
|
|
16
|
-
"
|
|
16
|
+
"56f7485985f4",
|
|
17
17
|
roomId
|
|
18
18
|
:
|
|
19
|
-
"
|
|
19
|
+
"665293795986281",
|
|
20
20
|
// roomId: '',
|
|
21
21
|
// mtoken: '',
|
|
22
22
|
// imRoomId: '',
|
|
@@ -352,7 +352,7 @@ class Video extends Component {
|
|
|
352
352
|
saveLog = (val) => {
|
|
353
353
|
axios({
|
|
354
354
|
method: 'get',
|
|
355
|
-
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.8&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
356
356
|
|
|
357
357
|
}).then(res => {
|
|
358
358
|
|
|
@@ -513,7 +513,6 @@ class Video extends Component {
|
|
|
513
513
|
console.log(JSON.parse(window.sessionStorage.getItem('sigData')));
|
|
514
514
|
// eslint-disable-next-line no-undef
|
|
515
515
|
// initWebSocket('wss://im.uat.dsp.hsbcfts.com.cn:443/wealth/im/ws/')
|
|
516
|
-
// initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + '15603' + '/ws/');
|
|
517
516
|
if (!this.state.imStatus) {
|
|
518
517
|
this.state.manualClose = false
|
|
519
518
|
initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + JSON.parse(window.sessionStorage.getItem('sigData')).webPort + '/ws/');
|
|
@@ -777,26 +776,20 @@ class Video extends Component {
|
|
|
777
776
|
};
|
|
778
777
|
errorCodeClick=(type,value)=>{
|
|
779
778
|
if(type == 'ocr'){
|
|
780
|
-
if(value == 100701 || value == 100702 || value == 200001 || value == 300901 || value == 300902 || value == 400001) {
|
|
779
|
+
if(value == -1007 || value == -100701 || value == -100702 || value == -200001 || value == -300901 || value == -300902 || value == -400001) {
|
|
781
780
|
this.setState({
|
|
782
781
|
cardFailReason: '证件图片不清晰,请重试。返回重拍时,请检查并确保身份证件图片信息完整清晰后再提交核查。[#'+value+'#]'
|
|
783
782
|
})
|
|
784
|
-
}
|
|
785
|
-
if(value == 100803 || value == 100804 || value == 100805) {
|
|
786
|
-
this.setState({
|
|
787
|
-
cardFailReason: '证件信息核查失败,请重试。返回重拍时,请检查并确保身份证件图片信息完整清晰后再提交核查。[#'+value+'#]'
|
|
788
|
-
})
|
|
789
|
-
}
|
|
790
|
-
if(value == 100801 || value == 100802) {
|
|
783
|
+
} else if(value == -1001 || value == -1002|| value == -1003||value == -1004||value == -1005||value==-1006) {
|
|
791
784
|
this.setState({
|
|
792
785
|
cardFailReason: '系统或网络连接异常,请重试。若仍有问题,请联系Support同事。[#'+value+'#]'
|
|
793
786
|
})
|
|
794
|
-
}
|
|
795
|
-
if(value == 30002) {
|
|
787
|
+
}else {
|
|
796
788
|
this.setState({
|
|
797
|
-
cardFailReason: '
|
|
789
|
+
cardFailReason: '证件信息核查失败,请重试。返回重拍时,请检查并确保身份证件图片信息完整清晰后再提交核查。[#'+value+'#]'
|
|
798
790
|
})
|
|
799
791
|
}
|
|
792
|
+
|
|
800
793
|
} else if(type == 'face') {
|
|
801
794
|
if(value == 201 || value == 202 || value == 203 || value == 401 || value == 428) {
|
|
802
795
|
this.setState({
|
|
@@ -833,7 +826,7 @@ class Video extends Component {
|
|
|
833
826
|
fileBase64: this.state.facialImg.replace(/^data:image\/\w+;base64,/, "")
|
|
834
827
|
});
|
|
835
828
|
console.log(result);
|
|
836
|
-
if (result.code == 200 || result.code ==
|
|
829
|
+
if (result.code == 200 || result.code == 210) {
|
|
837
830
|
// this.messageClick('人脸识别成功','success')
|
|
838
831
|
this.setState({
|
|
839
832
|
loadingFace: false,
|
|
@@ -3878,7 +3871,7 @@ class Video extends Component {
|
|
|
3878
3871
|
}
|
|
3879
3872
|
}
|
|
3880
3873
|
componentWillMount() {
|
|
3881
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
3874
|
+
console.log('hsbc_teller_sdk', '1.9.8')
|
|
3882
3875
|
if (this.props.sessionId) {
|
|
3883
3876
|
this.getRoomStatus({
|
|
3884
3877
|
sessionId: this.props.sessionId
|
|
@@ -4322,8 +4315,8 @@ class Video extends Component {
|
|
|
4322
4315
|
fileBase64: val == 1 ? this.state.facialImgFront.replace(/^data:image\/\w+;base64,/, "") : this.state.facialImgBack.replace(/^data:image\/\w+;base64,/, ""),
|
|
4323
4316
|
type: val == 1 ? true : false
|
|
4324
4317
|
});
|
|
4325
|
-
if (result.code ==
|
|
4326
|
-
console.log('ocrCallback', result.data)
|
|
4318
|
+
if (result.code === 200 || result.code == 30002 || result.code == 20002 || result.code == 40002 || result.code == 50002) {
|
|
4319
|
+
console.log('ocrCallback', result.data,val)
|
|
4327
4320
|
// this.messageClick('姓名:' + result.data.idCardName + ',身份证号:' + result.data.idCardNumber,'success')
|
|
4328
4321
|
// this.messageClick('识别成功','success')
|
|
4329
4322
|
callNimIM('sendCustomCmdMsg', {
|
|
@@ -4336,15 +4329,27 @@ class Video extends Component {
|
|
|
4336
4329
|
})
|
|
4337
4330
|
});
|
|
4338
4331
|
if(this.state.documentType == 'ID_CARD') {
|
|
4339
|
-
if (result.data.side == 'front') {
|
|
4332
|
+
if (result.data.side == 'front' && val == 1) {
|
|
4340
4333
|
if(this.state.certificateValidity) {
|
|
4341
|
-
this.
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4334
|
+
if(this.dateNewTime(this.state.certificateValidity.split('-')[1])){
|
|
4335
|
+
this.setState({
|
|
4336
|
+
idCardNumber: result.data.idCardNumber,
|
|
4337
|
+
idCardName: result.data.idCardName,
|
|
4338
|
+
loadingFace: false,
|
|
4339
|
+
cardFailReason: '',
|
|
4340
|
+
cardResuly: 'success',
|
|
4341
|
+
})
|
|
4342
|
+
} else {
|
|
4343
|
+
this.setState({
|
|
4344
|
+
idCardNumber: result.data.idCardNumber,
|
|
4345
|
+
idCardName: result.data.idCardName,
|
|
4346
|
+
certificateValidityType: false,
|
|
4347
|
+
cardFailReason: '证件已过期[#'+result.code+'#]',
|
|
4348
|
+
loadingFace: false,
|
|
4349
|
+
cardResuly: 'success',
|
|
4350
|
+
})
|
|
4351
|
+
}
|
|
4352
|
+
|
|
4348
4353
|
} else {
|
|
4349
4354
|
this.setState({
|
|
4350
4355
|
// isModalVisibleFacial: false
|
|
@@ -4353,38 +4358,40 @@ class Video extends Component {
|
|
|
4353
4358
|
})
|
|
4354
4359
|
this.ocrCallback(2)
|
|
4355
4360
|
}
|
|
4356
|
-
} else if (result.data.side == 'back') {
|
|
4357
|
-
|
|
4358
|
-
|
|
4361
|
+
} else if (result.data.side == 'back' && val != 1) {
|
|
4362
|
+
let startDate
|
|
4363
|
+
let endDate
|
|
4364
|
+
if(result.code == 20002) {
|
|
4365
|
+
startDate = result.data.idCard.startDate
|
|
4366
|
+
endDate = result.data.idCard.endDate
|
|
4367
|
+
} else {
|
|
4368
|
+
startDate = result.data.startDate
|
|
4369
|
+
endDate = result.data.endDate
|
|
4370
|
+
}
|
|
4371
|
+
console.log(startDate, endDate)
|
|
4372
|
+
if(this.state.idCardName && this.dateNewTime(endDate)) {
|
|
4359
4373
|
this.setState({
|
|
4360
|
-
certificateValidity:
|
|
4374
|
+
certificateValidity: startDate + '-' + endDate,
|
|
4361
4375
|
loadingFace: false,
|
|
4362
4376
|
cardFailReason: '',
|
|
4363
4377
|
cardResuly: 'success',
|
|
4364
4378
|
certificateValidityType: true,
|
|
4365
4379
|
})
|
|
4366
|
-
} else if(this.state.idCardName && !this.dateNewTime(
|
|
4380
|
+
} else if(this.state.idCardName && !this.dateNewTime(endDate)) {
|
|
4367
4381
|
this.setState({
|
|
4368
|
-
certificateValidity:
|
|
4382
|
+
certificateValidity: startDate + '-' + endDate,
|
|
4369
4383
|
loadingFace: false,
|
|
4370
4384
|
certificateValidityType: false,
|
|
4371
|
-
cardFailReason: '
|
|
4372
|
-
cardResuly: '
|
|
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',
|
|
4385
|
+
cardFailReason: '证件已过期[#'+result.code+'#]',
|
|
4386
|
+
cardResuly: 'success',
|
|
4386
4387
|
})
|
|
4387
4388
|
}
|
|
4389
|
+
// else if(!this.state.idCardName) {
|
|
4390
|
+
// this.setState({
|
|
4391
|
+
// certificateValidity: result.data.startDate + '-' + result.data.endDate,
|
|
4392
|
+
// })
|
|
4393
|
+
// this.ocrCallback(2)
|
|
4394
|
+
// }
|
|
4388
4395
|
// if(this.state.idCardName) {
|
|
4389
4396
|
// this.setState({
|
|
4390
4397
|
// certificateValidity: result.data.startDate + '-' + result.data.endDate,
|
|
@@ -4398,6 +4405,12 @@ class Video extends Component {
|
|
|
4398
4405
|
// })
|
|
4399
4406
|
// this.ocrCallback(2)
|
|
4400
4407
|
// }
|
|
4408
|
+
} else {
|
|
4409
|
+
this.setState({
|
|
4410
|
+
loadingFace: false,
|
|
4411
|
+
cardFailReason: '证件截取顺序有误,请返回重拍[41000]',
|
|
4412
|
+
cardResuly: 'fail',
|
|
4413
|
+
})
|
|
4401
4414
|
}
|
|
4402
4415
|
}
|
|
4403
4416
|
if(this.state.documentType == 'HK_MO_RESIDENCE_CARD' || this.state.documentType == 'TW_RESIDENCE_CARD') {
|
|
@@ -4413,7 +4426,7 @@ class Video extends Component {
|
|
|
4413
4426
|
this.setState({
|
|
4414
4427
|
certificateValidity: result.data.resident.startDate + '-' + result.data.resident.endDate,
|
|
4415
4428
|
loadingFace: false,
|
|
4416
|
-
cardFailReason: '',
|
|
4429
|
+
cardFailReason: result.code == 40002 ? '证件已过期[#'+result.code+'#]' : '',
|
|
4417
4430
|
cardResuly: 'success',
|
|
4418
4431
|
})
|
|
4419
4432
|
}
|
|
@@ -4424,7 +4437,7 @@ class Video extends Component {
|
|
|
4424
4437
|
idCardName: result.data.passport.nameEN,
|
|
4425
4438
|
certificateValidity: result.data.passport.expiryDate,
|
|
4426
4439
|
loadingFace: false,
|
|
4427
|
-
cardFailReason: '',
|
|
4440
|
+
cardFailReason: result.code == 30002 ? '证件已过期[#'+result.code+'#]' : '',
|
|
4428
4441
|
cardResuly: 'success',
|
|
4429
4442
|
})
|
|
4430
4443
|
}
|
|
@@ -4435,7 +4448,7 @@ class Video extends Component {
|
|
|
4435
4448
|
idCardName: result.data.permission.nameEN,
|
|
4436
4449
|
certificateValidity: result.data.permission.validDate,
|
|
4437
4450
|
loadingFace: false,
|
|
4438
|
-
cardFailReason: '',
|
|
4451
|
+
cardFailReason: result.code == 50002 ? '证件已过期[#'+result.code+'#]' : '',
|
|
4439
4452
|
cardResuly: 'success',
|
|
4440
4453
|
})
|
|
4441
4454
|
}
|
|
@@ -5390,7 +5403,7 @@ class Video extends Component {
|
|
|
5390
5403
|
content: JSON.stringify({
|
|
5391
5404
|
'typeId': 1223,
|
|
5392
5405
|
'sessionId': this.state.sessionId,
|
|
5393
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5406
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId2').innerText).uid
|
|
5394
5407
|
})
|
|
5395
5408
|
});
|
|
5396
5409
|
} if (value == 'video3') {
|
|
@@ -5399,7 +5412,7 @@ class Video extends Component {
|
|
|
5399
5412
|
content: JSON.stringify({
|
|
5400
5413
|
'typeId': 1223,
|
|
5401
5414
|
'sessionId': this.state.sessionId,
|
|
5402
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5415
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId3').innerText).uid
|
|
5403
5416
|
})
|
|
5404
5417
|
});
|
|
5405
5418
|
} if (value == 'video4') {
|
|
@@ -5408,7 +5421,7 @@ class Video extends Component {
|
|
|
5408
5421
|
content: JSON.stringify({
|
|
5409
5422
|
'typeId': 1223,
|
|
5410
5423
|
'sessionId': this.state.sessionId,
|
|
5411
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5424
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId4').innerText).uid
|
|
5412
5425
|
})
|
|
5413
5426
|
});
|
|
5414
5427
|
} if (value == 'video5') {
|
|
@@ -5417,7 +5430,7 @@ class Video extends Component {
|
|
|
5417
5430
|
content: JSON.stringify({
|
|
5418
5431
|
'typeId': 1223,
|
|
5419
5432
|
'sessionId': this.state.sessionId,
|
|
5420
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5433
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId5').innerText).uid
|
|
5421
5434
|
})
|
|
5422
5435
|
});
|
|
5423
5436
|
} if (value == 'video6') {
|
|
@@ -5426,7 +5439,7 @@ class Video extends Component {
|
|
|
5426
5439
|
content: JSON.stringify({
|
|
5427
5440
|
'typeId': 1223,
|
|
5428
5441
|
'sessionId': this.state.sessionId,
|
|
5429
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5442
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId6').innerText).uid
|
|
5430
5443
|
})
|
|
5431
5444
|
});
|
|
5432
5445
|
} if (value == 'video7') {
|
|
@@ -5435,7 +5448,7 @@ class Video extends Component {
|
|
|
5435
5448
|
content: JSON.stringify({
|
|
5436
5449
|
'typeId': 1223,
|
|
5437
5450
|
'sessionId': this.state.sessionId,
|
|
5438
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5451
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId7').innerText).uid
|
|
5439
5452
|
})
|
|
5440
5453
|
});
|
|
5441
5454
|
} if (value == 'video8') {
|
|
@@ -5444,7 +5457,7 @@ class Video extends Component {
|
|
|
5444
5457
|
content: JSON.stringify({
|
|
5445
5458
|
'typeId': 1223,
|
|
5446
5459
|
'sessionId': this.state.sessionId,
|
|
5447
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5460
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId8').innerText).uid
|
|
5448
5461
|
})
|
|
5449
5462
|
});
|
|
5450
5463
|
} if (value == 'video9') {
|
|
@@ -5453,7 +5466,7 @@ class Video extends Component {
|
|
|
5453
5466
|
content: JSON.stringify({
|
|
5454
5467
|
'typeId': 1223,
|
|
5455
5468
|
'sessionId': this.state.sessionId,
|
|
5456
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5469
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId9').innerText).uid
|
|
5457
5470
|
})
|
|
5458
5471
|
});
|
|
5459
5472
|
}
|
|
@@ -5463,7 +5476,7 @@ class Video extends Component {
|
|
|
5463
5476
|
content: JSON.stringify({
|
|
5464
5477
|
'typeId': 1223,
|
|
5465
5478
|
'sessionId': this.state.sessionId,
|
|
5466
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5479
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId10').innerText).uid
|
|
5467
5480
|
})
|
|
5468
5481
|
});
|
|
5469
5482
|
}
|
|
@@ -5473,7 +5486,7 @@ class Video extends Component {
|
|
|
5473
5486
|
content: JSON.stringify({
|
|
5474
5487
|
'typeId': 1223,
|
|
5475
5488
|
'sessionId': this.state.sessionId,
|
|
5476
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5489
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId11').innerText).uid
|
|
5477
5490
|
})
|
|
5478
5491
|
});
|
|
5479
5492
|
}
|
|
@@ -5483,7 +5496,7 @@ class Video extends Component {
|
|
|
5483
5496
|
content: JSON.stringify({
|
|
5484
5497
|
'typeId': 1223,
|
|
5485
5498
|
'sessionId': this.state.sessionId,
|
|
5486
|
-
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('
|
|
5499
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId12').innerText).uid
|
|
5487
5500
|
})
|
|
5488
5501
|
});
|
|
5489
5502
|
}
|
|
@@ -5680,14 +5693,25 @@ class Video extends Component {
|
|
|
5680
5693
|
}
|
|
5681
5694
|
}
|
|
5682
5695
|
saveAuthorize = async (appAccount) => {
|
|
5683
|
-
|
|
5684
|
-
|
|
5696
|
+
let obj
|
|
5697
|
+
if(this.state.documentType == 'ID_CARD') {
|
|
5698
|
+
obj = {
|
|
5685
5699
|
activityId: this.props.businessNumber,
|
|
5686
|
-
authorizeType:
|
|
5700
|
+
authorizeType: 'ID',
|
|
5687
5701
|
appAccount: appAccount,
|
|
5688
|
-
idCardAuthorize:
|
|
5702
|
+
idCardAuthorize: 'YES',
|
|
5689
5703
|
pictureAuthorize: 'YES'
|
|
5690
|
-
}
|
|
5704
|
+
}
|
|
5705
|
+
} else {
|
|
5706
|
+
obj = {
|
|
5707
|
+
activityId: this.props.businessNumber,
|
|
5708
|
+
authorizeType: 'NID',
|
|
5709
|
+
appAccount: appAccount,
|
|
5710
|
+
pictureAuthorize: 'YES'
|
|
5711
|
+
}
|
|
5712
|
+
}
|
|
5713
|
+
try {
|
|
5714
|
+
let result = await API.saveAuthorize(obj);
|
|
5691
5715
|
console.log(result)
|
|
5692
5716
|
if (result.code == 200) {
|
|
5693
5717
|
console.log('成功')
|
|
@@ -6344,6 +6368,7 @@ class Video extends Component {
|
|
|
6344
6368
|
graffiti={this.graffiti}
|
|
6345
6369
|
virtualization={this.virtualization}
|
|
6346
6370
|
></Foot>
|
|
6371
|
+
{/* 暂停恢复会话 */}
|
|
6347
6372
|
<Modal cancelText="取消" okText="确定" visible={this.state.isModalVisible} onOk={this.handleOk}
|
|
6348
6373
|
onCancel={this.handleCancel}>
|
|
6349
6374
|
{
|
|
@@ -6353,6 +6378,7 @@ class Video extends Component {
|
|
|
6353
6378
|
!this.state.isSuspend && <span>确定是否暂停会话?</span>
|
|
6354
6379
|
}
|
|
6355
6380
|
</Modal>
|
|
6381
|
+
{/* 是否退出会议*/}
|
|
6356
6382
|
<Modal closable={false} centered={true} visible={this.state.isModalVisibleEnd} footer={[
|
|
6357
6383
|
<div key='end'>
|
|
6358
6384
|
<Button className="modelButtonCancel" onClick={this.handleCancelEnd}>取消</Button>
|
|
@@ -6361,10 +6387,13 @@ class Video extends Component {
|
|
|
6361
6387
|
]}>
|
|
6362
6388
|
<div className='endModal'>是否要结束并退出会议?</div>
|
|
6363
6389
|
</Modal>
|
|
6390
|
+
{/* ocr及人脸 */}
|
|
6364
6391
|
<Modal title={this.state.titleModal} width={650} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
|
|
6392
|
+
// ocr及人脸在截图界面的按钮
|
|
6365
6393
|
this.state.cardResuly == '' && this.state.faceResuly == '' &&<div key='facial'>
|
|
6366
6394
|
<Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
|
|
6367
6395
|
<Button className="modelButtonCancel" onClick={this.sgsinImage}>截图</Button>
|
|
6396
|
+
{/* 再截图后按钮高亮 */}
|
|
6368
6397
|
{
|
|
6369
6398
|
this.state.isFaceImage && <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>下一步</Button>
|
|
6370
6399
|
}
|
|
@@ -6373,6 +6402,7 @@ class Video extends Component {
|
|
|
6373
6402
|
}
|
|
6374
6403
|
|
|
6375
6404
|
</div>,
|
|
6405
|
+
// 人脸识别后的结果界面的按钮
|
|
6376
6406
|
this.state.cardResuly == '' && this.state.faceResuly != '' &&<div key='facial'>
|
|
6377
6407
|
<Button className="modelButtonCancel" onClick={this.handleCancelFacial}>完成</Button>
|
|
6378
6408
|
{
|
|
@@ -6384,6 +6414,7 @@ class Video extends Component {
|
|
|
6384
6414
|
|
|
6385
6415
|
|
|
6386
6416
|
</div>,
|
|
6417
|
+
// ocr成功
|
|
6387
6418
|
this.state.cardResuly == 'success' && <div key='facial'>
|
|
6388
6419
|
{
|
|
6389
6420
|
this.state.disabledIdCard && <Button className="modelButtonFaceOk" danger onClick={(e) => this.updateConfirm('noFace')}>修改</Button>
|
|
@@ -6399,6 +6430,7 @@ class Video extends Component {
|
|
|
6399
6430
|
}
|
|
6400
6431
|
|
|
6401
6432
|
</div>,
|
|
6433
|
+
// ocr失败
|
|
6402
6434
|
this.state.cardResuly == 'fail' && <div key='facial'>
|
|
6403
6435
|
<Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
|
|
6404
6436
|
<Button className="modelButtonOk" type="primary" danger onClick={this.newFaceClick}>返回重拍</Button>
|
|
@@ -6435,8 +6467,14 @@ class Video extends Component {
|
|
|
6435
6467
|
{
|
|
6436
6468
|
this.state.cardResuly == 'success' && <div className='successClassFace'>
|
|
6437
6469
|
<img src={require("../../assets/img/tooltips1_pass.png").default} alt="" ></img>
|
|
6438
|
-
|
|
6439
|
-
|
|
6470
|
+
{
|
|
6471
|
+
this.state.cardFailReason && <span>识别成功 -- {this.state.cardFailReason}</span>
|
|
6472
|
+
}
|
|
6473
|
+
{
|
|
6474
|
+
!this.state.cardFailReason && <span>识别成功</span>
|
|
6475
|
+
}
|
|
6476
|
+
|
|
6477
|
+
</div>
|
|
6440
6478
|
}
|
|
6441
6479
|
{
|
|
6442
6480
|
this.state.cardResuly == 'fail' && <div className='errorClassFace'>
|