react_hsbc_teller 1.9.1 → 1.9.2
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
|
Binary file
|
|
Binary file
|
|
@@ -15,6 +15,8 @@ import cameraImgCloe from '../../assets/img/icon_cameraOne.png'
|
|
|
15
15
|
import beautyImg from '../../assets/img/whiteningLut.jpg'
|
|
16
16
|
import ocrImage from '../../assets/img/jietu.png'
|
|
17
17
|
import autod from '../../assets/mp3/joinmeeting.mp3'
|
|
18
|
+
import internalJoin from '../../assets/mp3/internalJoin.mp3'
|
|
19
|
+
import internalLeft from '../../assets/mp3/internalLeft.mp3'
|
|
18
20
|
import leftMetting from '../../assets/mp3/leftmeeting.mp3'
|
|
19
21
|
import errorPng from '../../assets/img/tooltips2_fail.png'
|
|
20
22
|
import { callNimIM } from '../../utils/cell.js'
|
|
@@ -61,6 +63,7 @@ let isBackgroundBlur = true
|
|
|
61
63
|
let isSuccuseHs = false
|
|
62
64
|
let isGraffiti = false
|
|
63
65
|
let strokeColor = '#333'
|
|
66
|
+
let clearTime
|
|
64
67
|
let CanvasHome = styled.div`
|
|
65
68
|
position: fixed;
|
|
66
69
|
z-index: ${props => props.zIndexNum};
|
|
@@ -340,6 +343,7 @@ class Video extends Component {
|
|
|
340
343
|
faceFailReason: '',
|
|
341
344
|
cardResuly: '',
|
|
342
345
|
cardFailReason: '',
|
|
346
|
+
videoType: ''
|
|
343
347
|
};
|
|
344
348
|
// eslint-disable-next-line no-undef
|
|
345
349
|
test_controller = '';
|
|
@@ -347,7 +351,7 @@ class Video extends Component {
|
|
|
347
351
|
saveLog = (val) => {
|
|
348
352
|
axios({
|
|
349
353
|
method: 'get',
|
|
350
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.
|
|
354
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.2&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
351
355
|
|
|
352
356
|
}).then(res => {
|
|
353
357
|
|
|
@@ -434,7 +438,7 @@ class Video extends Component {
|
|
|
434
438
|
let result = await API.getBase64Image({ fileName: data });
|
|
435
439
|
console.log('getBase64Image', result)
|
|
436
440
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
437
|
-
this.saveLog('imgCallback success' +
|
|
441
|
+
this.saveLog('imgCallback success' + result.data.type)
|
|
438
442
|
this.props.imgCallback({
|
|
439
443
|
type: result.data.type + '',
|
|
440
444
|
file: result.data.base64Image,
|
|
@@ -879,7 +883,7 @@ class Video extends Component {
|
|
|
879
883
|
list.push({
|
|
880
884
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
|
|
881
885
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
|
|
882
|
-
name: this.state.videoOneName
|
|
886
|
+
name: this.state.videoOneName,
|
|
883
887
|
tourist: false
|
|
884
888
|
})
|
|
885
889
|
}
|
|
@@ -889,7 +893,7 @@ class Video extends Component {
|
|
|
889
893
|
list.push({
|
|
890
894
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
|
|
891
895
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
|
|
892
|
-
name: this.state.videoTwoName
|
|
896
|
+
name: this.state.videoTwoName,
|
|
893
897
|
tourist: false
|
|
894
898
|
})
|
|
895
899
|
}
|
|
@@ -899,7 +903,7 @@ class Video extends Component {
|
|
|
899
903
|
list.push({
|
|
900
904
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
|
|
901
905
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
|
|
902
|
-
name: this.state.videoThreeName
|
|
906
|
+
name: this.state.videoThreeName,
|
|
903
907
|
tourist: false
|
|
904
908
|
})
|
|
905
909
|
}
|
|
@@ -909,7 +913,7 @@ class Video extends Component {
|
|
|
909
913
|
list.push({
|
|
910
914
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
|
|
911
915
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
|
|
912
|
-
name: this.state.videoFourName
|
|
916
|
+
name: this.state.videoFourName,
|
|
913
917
|
tourist: false
|
|
914
918
|
})
|
|
915
919
|
}
|
|
@@ -919,7 +923,7 @@ class Video extends Component {
|
|
|
919
923
|
list.push({
|
|
920
924
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
|
|
921
925
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
|
|
922
|
-
name: this.state.videoFiveName
|
|
926
|
+
name: this.state.videoFiveName,
|
|
923
927
|
tourist: false
|
|
924
928
|
})
|
|
925
929
|
}
|
|
@@ -928,7 +932,7 @@ class Video extends Component {
|
|
|
928
932
|
list.push({
|
|
929
933
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
|
|
930
934
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
|
|
931
|
-
name: this.state.videoSixName
|
|
935
|
+
name: this.state.videoSixName,
|
|
932
936
|
tourist: false
|
|
933
937
|
})
|
|
934
938
|
}
|
|
@@ -936,7 +940,7 @@ class Video extends Component {
|
|
|
936
940
|
list.push({
|
|
937
941
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
|
|
938
942
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
|
|
939
|
-
name: this.state.videoSevenName
|
|
943
|
+
name: this.state.videoSevenName,
|
|
940
944
|
tourist: false
|
|
941
945
|
})
|
|
942
946
|
}
|
|
@@ -944,7 +948,7 @@ class Video extends Component {
|
|
|
944
948
|
list.push({
|
|
945
949
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
|
|
946
950
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
|
|
947
|
-
name: this.state.videoEightName
|
|
951
|
+
name: this.state.videoEightName,
|
|
948
952
|
tourist: false
|
|
949
953
|
})
|
|
950
954
|
}
|
|
@@ -952,7 +956,7 @@ class Video extends Component {
|
|
|
952
956
|
list.push({
|
|
953
957
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
|
|
954
958
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
|
|
955
|
-
name: this.state.videoNineName
|
|
959
|
+
name: this.state.videoNineName,
|
|
956
960
|
tourist: false
|
|
957
961
|
})
|
|
958
962
|
}
|
|
@@ -960,15 +964,15 @@ class Video extends Component {
|
|
|
960
964
|
list.push({
|
|
961
965
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
|
|
962
966
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
|
|
963
|
-
name: this.state.videoTenName
|
|
967
|
+
name: this.state.videoTenName,
|
|
964
968
|
tourist: false
|
|
965
969
|
})
|
|
966
970
|
}
|
|
967
|
-
if (document.getElementById('video11').name
|
|
971
|
+
if (document.getElementById('video11').name && !this.state.isPIBIntranet[10].type) {
|
|
968
972
|
list.push({
|
|
969
973
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
|
|
970
974
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
|
|
971
|
-
name: this.state.videoElevenName
|
|
975
|
+
name: this.state.videoElevenName,
|
|
972
976
|
tourist: false
|
|
973
977
|
})
|
|
974
978
|
}
|
|
@@ -976,7 +980,7 @@ class Video extends Component {
|
|
|
976
980
|
list.push({
|
|
977
981
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
|
|
978
982
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
|
|
979
|
-
name: this.state.videoTwelveName
|
|
983
|
+
name: this.state.videoTwelveName,
|
|
980
984
|
tourist: false
|
|
981
985
|
})
|
|
982
986
|
}
|
|
@@ -989,10 +993,15 @@ class Video extends Component {
|
|
|
989
993
|
console.log('this.state.customerList.length',list.length)
|
|
990
994
|
this.setState({
|
|
991
995
|
documentType: '',
|
|
992
|
-
isModalVisibleCustomer: true,
|
|
993
996
|
isCustomerSelect: true,
|
|
994
|
-
customerSelect: list.length == 1 ?
|
|
997
|
+
customerSelect: list.length == 1 ? 1 : '',
|
|
998
|
+
|
|
995
999
|
customerTitleName: '客户身份识别'
|
|
1000
|
+
},()=>{
|
|
1001
|
+
console.log(this.state.customerSelect)
|
|
1002
|
+
this.setState({
|
|
1003
|
+
isModalVisibleCustomer: true,
|
|
1004
|
+
})
|
|
996
1005
|
})
|
|
997
1006
|
} else if (val == 'facial') {
|
|
998
1007
|
this.setState({
|
|
@@ -2235,7 +2244,7 @@ class Video extends Component {
|
|
|
2235
2244
|
if (JSON.parse(msg).typeId == 33001 && this.state.sessionId == JSON.parse(msg).data.sessionId) {
|
|
2236
2245
|
if (JSON.parse(msg).type == 1) {
|
|
2237
2246
|
this.saveAuthorize(JSON.parse(msg).data.userId)
|
|
2238
|
-
this.customerFaceClick(this.state.customerList[this.state.customerSelect])
|
|
2247
|
+
this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
|
|
2239
2248
|
}
|
|
2240
2249
|
}
|
|
2241
2250
|
}
|
|
@@ -2767,10 +2776,19 @@ class Video extends Component {
|
|
|
2767
2776
|
this.test_controller.OnNewJoinerIn = (participant) => {
|
|
2768
2777
|
console.log('新加⼊房间者', participant);
|
|
2769
2778
|
this.state.isCustomer = true
|
|
2779
|
+
|
|
2770
2780
|
if (this.props.isOpenSound) {
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2781
|
+
this.appGetUsernameClick(participant).then((res) => {
|
|
2782
|
+
if (res.userType == 1) {
|
|
2783
|
+
let src = autod
|
|
2784
|
+
let audio = new Audio(src)
|
|
2785
|
+
audio.play()
|
|
2786
|
+
} else if (res.userType == 2) {
|
|
2787
|
+
let src = internalJoin
|
|
2788
|
+
let audio = new Audio(src)
|
|
2789
|
+
audio.play()
|
|
2790
|
+
}
|
|
2791
|
+
})
|
|
2774
2792
|
}
|
|
2775
2793
|
|
|
2776
2794
|
// let src = autod
|
|
@@ -3191,12 +3209,12 @@ class Video extends Component {
|
|
|
3191
3209
|
exitType
|
|
3192
3210
|
) => {
|
|
3193
3211
|
console.log('退出房间者', participant, exitType)
|
|
3194
|
-
if (this.props.isOpenSound) {
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
}
|
|
3199
|
-
|
|
3212
|
+
// if (this.props.isOpenSound) {
|
|
3213
|
+
// let src = leftMetting
|
|
3214
|
+
// let audio = new Audio(src)
|
|
3215
|
+
// audio.play()
|
|
3216
|
+
// }
|
|
3217
|
+
|
|
3200
3218
|
|
|
3201
3219
|
this.appGetUsernameClick(participant).then((res) => {
|
|
3202
3220
|
console.log('退出房间者', res)
|
|
@@ -3209,7 +3227,18 @@ class Video extends Component {
|
|
|
3209
3227
|
userId: participant,
|
|
3210
3228
|
userType: '1'
|
|
3211
3229
|
})
|
|
3212
|
-
|
|
3230
|
+
if (this.props.isOpenSound) {
|
|
3231
|
+
let src = leftMetting
|
|
3232
|
+
let audio = new Audio(src)
|
|
3233
|
+
audio.play()
|
|
3234
|
+
}
|
|
3235
|
+
} else if (res.userType == 2) {
|
|
3236
|
+
if (this.props.isOpenSound) {
|
|
3237
|
+
let src = internalLeft
|
|
3238
|
+
let audio = new Audio(src)
|
|
3239
|
+
audio.play()
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3213
3242
|
// console.log('退出房间者',res)
|
|
3214
3243
|
// let data = res? res : '客户'
|
|
3215
3244
|
// console.log(data)
|
|
@@ -3837,7 +3866,7 @@ class Video extends Component {
|
|
|
3837
3866
|
}
|
|
3838
3867
|
}
|
|
3839
3868
|
componentWillMount() {
|
|
3840
|
-
console.log('hsbc_teller_sdk', '1.9.
|
|
3869
|
+
console.log('hsbc_teller_sdk', '1.9.2')
|
|
3841
3870
|
if (this.props.sessionId) {
|
|
3842
3871
|
this.getRoomStatus({
|
|
3843
3872
|
sessionId: this.props.sessionId
|
|
@@ -4258,8 +4287,7 @@ class Video extends Component {
|
|
|
4258
4287
|
isFaceImage: false
|
|
4259
4288
|
})
|
|
4260
4289
|
})
|
|
4261
|
-
|
|
4262
|
-
videoMedia.srcObject = document.getElementById(videoName).srcObject
|
|
4290
|
+
this.publishVideoTwo()
|
|
4263
4291
|
}
|
|
4264
4292
|
|
|
4265
4293
|
} else {
|
|
@@ -4343,7 +4371,7 @@ class Video extends Component {
|
|
|
4343
4371
|
}
|
|
4344
4372
|
handleOkFacial = () => {
|
|
4345
4373
|
if (this.state.faceCustomerType == 2) {
|
|
4346
|
-
if (this.state.IDtypeFrontOrBack == '
|
|
4374
|
+
if (this.state.IDtypeFrontOrBack == '请截取证件头像面') {
|
|
4347
4375
|
if(this.state.documentType == 'PASSPORT_CARD') {
|
|
4348
4376
|
this.setState({
|
|
4349
4377
|
loadingFace: true
|
|
@@ -4352,12 +4380,12 @@ class Video extends Component {
|
|
|
4352
4380
|
} else {
|
|
4353
4381
|
this.setState({
|
|
4354
4382
|
facialImg: ocrImage,
|
|
4355
|
-
IDtypeFrontOrBack: '
|
|
4383
|
+
IDtypeFrontOrBack: '请截取证件国徽面',
|
|
4356
4384
|
isFaceImage: false,
|
|
4357
4385
|
})
|
|
4358
4386
|
}
|
|
4359
4387
|
|
|
4360
|
-
} else if (this.state.IDtypeFrontOrBack == '
|
|
4388
|
+
} else if (this.state.IDtypeFrontOrBack == '请截取证件国徽面') {
|
|
4361
4389
|
this.setState({
|
|
4362
4390
|
loadingFace: true
|
|
4363
4391
|
})
|
|
@@ -4391,6 +4419,25 @@ class Video extends Component {
|
|
|
4391
4419
|
isModalVisibleFacial: false
|
|
4392
4420
|
})
|
|
4393
4421
|
};
|
|
4422
|
+
publishVideoTwo=()=>{
|
|
4423
|
+
const videoMedia = document.getElementById('publish_video_2');
|
|
4424
|
+
videoMedia.srcObject = document.getElementById(videoName).srcObject
|
|
4425
|
+
clearTime = setTimeout(() => {
|
|
4426
|
+
if(this.state.videoType == '') {
|
|
4427
|
+
this.setState({
|
|
4428
|
+
videoType: 'error'
|
|
4429
|
+
})
|
|
4430
|
+
|
|
4431
|
+
}
|
|
4432
|
+
}, 9000)
|
|
4433
|
+
videoMedia.onloadeddata = () => {
|
|
4434
|
+
console.log('success_publish_video_2')
|
|
4435
|
+
this.setState({
|
|
4436
|
+
videoType: 'success'
|
|
4437
|
+
})
|
|
4438
|
+
clearTimeout(clearTime)
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4394
4441
|
newFaceClick=()=>{
|
|
4395
4442
|
callNimIM('sendCustomCmdMsg', {
|
|
4396
4443
|
customId: this.state.imRoomId,
|
|
@@ -4407,7 +4454,7 @@ class Video extends Component {
|
|
|
4407
4454
|
isFaceImage: false,
|
|
4408
4455
|
facialImg: ocrImage,
|
|
4409
4456
|
disabledIdCard: true,
|
|
4410
|
-
IDtypeFrontOrBack: '
|
|
4457
|
+
IDtypeFrontOrBack: '请截取证件头像面',
|
|
4411
4458
|
facialImgFront: '',
|
|
4412
4459
|
facialImgBack: '',
|
|
4413
4460
|
faceResuly: '',
|
|
@@ -4416,8 +4463,7 @@ class Video extends Component {
|
|
|
4416
4463
|
cardFailReason: '',
|
|
4417
4464
|
cardResuly: '',
|
|
4418
4465
|
}, () => {
|
|
4419
|
-
|
|
4420
|
-
videoMedia.srcObject = document.getElementById(videoName).srcObject
|
|
4466
|
+
this.publishVideoTwo()
|
|
4421
4467
|
})
|
|
4422
4468
|
}
|
|
4423
4469
|
ReIdentification = () =>{
|
|
@@ -4426,8 +4472,7 @@ class Video extends Component {
|
|
|
4426
4472
|
facialImg: ocrImage,
|
|
4427
4473
|
isFaceImage: false
|
|
4428
4474
|
},()=>{
|
|
4429
|
-
|
|
4430
|
-
videoMedia.srcObject = document.getElementById(videoName).srcObject
|
|
4475
|
+
this.publishVideoTwo()
|
|
4431
4476
|
})
|
|
4432
4477
|
|
|
4433
4478
|
}
|
|
@@ -4571,7 +4616,7 @@ class Video extends Component {
|
|
|
4571
4616
|
isFaceImage: false,
|
|
4572
4617
|
facialImg: ocrImage,
|
|
4573
4618
|
disabledIdCard: true,
|
|
4574
|
-
IDtypeFrontOrBack: '
|
|
4619
|
+
IDtypeFrontOrBack: '请截取证件头像面',
|
|
4575
4620
|
facialImgFront: '',
|
|
4576
4621
|
facialImgBack: '',
|
|
4577
4622
|
faceResuly: '',
|
|
@@ -4585,23 +4630,19 @@ class Video extends Component {
|
|
|
4585
4630
|
this.setState({
|
|
4586
4631
|
isModalVisibleFacial: true,
|
|
4587
4632
|
}, () => {
|
|
4588
|
-
|
|
4589
|
-
videoMedia.srcObject = document.getElementById(videoName).srcObject
|
|
4590
|
-
videoMedia.onloadeddata = function() {
|
|
4591
|
-
console.log('onerror')
|
|
4592
|
-
}
|
|
4633
|
+
this.publishVideoTwo()
|
|
4593
4634
|
})
|
|
4594
4635
|
})
|
|
4595
4636
|
}
|
|
4596
4637
|
}
|
|
4597
4638
|
sgsinImage = () => {
|
|
4598
|
-
if (this.state.IDtypeFrontOrBack == '
|
|
4639
|
+
if (this.state.IDtypeFrontOrBack == '请截取证件头像面') {
|
|
4599
4640
|
this.setState({
|
|
4600
4641
|
facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png'),
|
|
4601
4642
|
isFaceImage: true,
|
|
4602
4643
|
facialImgFront: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png'),
|
|
4603
4644
|
})
|
|
4604
|
-
} else if (this.state.IDtypeFrontOrBack == '
|
|
4645
|
+
} else if (this.state.IDtypeFrontOrBack == '请截取证件国徽面') {
|
|
4605
4646
|
this.setState({
|
|
4606
4647
|
facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png'),
|
|
4607
4648
|
isFaceImage: true,
|
|
@@ -5403,26 +5444,26 @@ class Video extends Component {
|
|
|
5403
5444
|
this.setState({
|
|
5404
5445
|
documentType: '',
|
|
5405
5446
|
isCustomerSelect: true,
|
|
5406
|
-
customerSelect: this.state.customerList.length == 1 ?
|
|
5447
|
+
customerSelect: this.state.customerList.length == 1 ? 1 : '',
|
|
5407
5448
|
customerTitleName: '客户身份识别'
|
|
5408
5449
|
})
|
|
5409
5450
|
}
|
|
5410
5451
|
handleOkCustomer = () => {
|
|
5411
5452
|
if (this.state.isCustomerSelect) {
|
|
5412
|
-
if (this.state.customerList[this.state.customerSelect].tourist) {
|
|
5413
|
-
this.customerFaceClick(this.state.customerList[this.state.customerSelect])
|
|
5453
|
+
if (this.state.customerList[this.state.customerSelect - 1].tourist) {
|
|
5454
|
+
this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
|
|
5414
5455
|
} else {
|
|
5415
5456
|
this.setState({
|
|
5416
5457
|
isCustomerSelect: false,
|
|
5417
5458
|
documentError: '',
|
|
5418
|
-
customerTitleName: this.state.customerList[this.state.customerSelect].name
|
|
5459
|
+
customerTitleName: this.state.customerList[this.state.customerSelect - 1].name
|
|
5419
5460
|
})
|
|
5420
5461
|
}
|
|
5421
5462
|
|
|
5422
5463
|
} else {
|
|
5423
|
-
this.getAuthorizeResult(this.state.customerList[this.state.customerSelect].customId).then((res) => {
|
|
5464
|
+
this.getAuthorizeResult(this.state.customerList[this.state.customerSelect - 1].customId).then((res) => {
|
|
5424
5465
|
if (res) {
|
|
5425
|
-
this.customerFaceClick(this.state.customerList[this.state.customerSelect])
|
|
5466
|
+
this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
|
|
5426
5467
|
this.setState({
|
|
5427
5468
|
isModalVisibleCustomer: false,
|
|
5428
5469
|
})
|
|
@@ -5432,7 +5473,7 @@ class Video extends Component {
|
|
|
5432
5473
|
'typeId': 3300,
|
|
5433
5474
|
"data": {
|
|
5434
5475
|
'sessionId': this.state.sessionId,
|
|
5435
|
-
'userId': this.state.customerList[this.state.customerSelect].customId,
|
|
5476
|
+
'userId': this.state.customerList[this.state.customerSelect - 1].customId,
|
|
5436
5477
|
'title': '为了有效确认客户身份,请您配合进行我行的身份识别和核验。请您阅读以下内容,若您同意,请您之后在摄像头前出示您的身份证件,我行将对您的身份证件拍照并采集证件信息;同时,我行会对您进行脸部拍照,采集您的脸部图像。',
|
|
5437
5478
|
'list': [
|
|
5438
5479
|
{
|
|
@@ -5452,7 +5493,7 @@ class Video extends Component {
|
|
|
5452
5493
|
'typeId': 3300,
|
|
5453
5494
|
"data": {
|
|
5454
5495
|
'sessionId': this.state.sessionId,
|
|
5455
|
-
'userId': this.state.customerList[this.state.customerSelect].customId,
|
|
5496
|
+
'userId': this.state.customerList[this.state.customerSelect - 1].customId,
|
|
5456
5497
|
'title': '为了有效确认客户身份,请您配合进行我行的身份识别。请您阅读以下内容,若您同意,请您之后在摄像头前出示您的身份证件,我行将对您的身份证件拍照并采集证件信息;',
|
|
5457
5498
|
'list': [
|
|
5458
5499
|
{
|
|
@@ -6204,8 +6245,13 @@ class Video extends Component {
|
|
|
6204
6245
|
{
|
|
6205
6246
|
this.state.disabledIdCard && <Button className="modelButtonFaceOk" danger onClick={(e) => this.updateConfirm('noFace')}>修改</Button>
|
|
6206
6247
|
}
|
|
6207
|
-
|
|
6208
|
-
|
|
6248
|
+
{
|
|
6249
|
+
this.state.documentType == 'ID_CARD' && <Button className="modelButtonFaceOk" danger onClick={(e) => this.confirmCallback('face')}>完成并发起人脸识别</Button>
|
|
6250
|
+
}
|
|
6251
|
+
{
|
|
6252
|
+
this.state.documentType != 'ID_CARD' && <Button className="modelButtonOk" type="primary" danger onClick={(e) => this.confirmCallback('noFace')}>完成</Button>
|
|
6253
|
+
}
|
|
6254
|
+
|
|
6209
6255
|
</div>,
|
|
6210
6256
|
this.state.cardResuly == 'fail' && <div key='facial'>
|
|
6211
6257
|
<Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
|
|
@@ -6229,6 +6275,10 @@ class Video extends Component {
|
|
|
6229
6275
|
{
|
|
6230
6276
|
this.state.faceResuly == '' && <span>
|
|
6231
6277
|
<div>
|
|
6278
|
+
{
|
|
6279
|
+
this.state.videoType == 'error' && <div className='errorClassFace'>
|
|
6280
|
+
<img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>客户视频异常,请重试</div>
|
|
6281
|
+
}
|
|
6232
6282
|
<video className="faceImg" id="publish_video_2" autoPlay muted={true}></video>
|
|
6233
6283
|
</div>
|
|
6234
6284
|
<img className="faceImg" src={this.state.facialImg} alt=""></img>
|
|
@@ -6285,7 +6335,13 @@ class Video extends Component {
|
|
|
6285
6335
|
footer={[
|
|
6286
6336
|
<div key='end'>
|
|
6287
6337
|
<Button className="modelButtonCancel" onClick={this.handleCancelSFP}>取消</Button>
|
|
6288
|
-
|
|
6338
|
+
{
|
|
6339
|
+
this.state.StaffidSFP && this.state.PasswordSFP && <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSFP}>确定</Button>
|
|
6340
|
+
}
|
|
6341
|
+
{
|
|
6342
|
+
(this.state.StaffidSFP == '' || this.state.PasswordSFP == '') && <Button className="modelButtonNo" type="primary" danger >确定</Button>
|
|
6343
|
+
}
|
|
6344
|
+
|
|
6289
6345
|
</div>
|
|
6290
6346
|
]}>
|
|
6291
6347
|
<Spin spinning={this.state.loadingStaff} tip="授权中...">
|
|
@@ -6317,12 +6373,27 @@ class Video extends Component {
|
|
|
6317
6373
|
!this.state.isCustomerSelect && <Button className="modelButtonCancel" onClick={this.goBackSelectCustomer}>上一步</Button>
|
|
6318
6374
|
}
|
|
6319
6375
|
<Button className="modelButtonCancel" onClick={this.handleCancelCustomer}>取消</Button>
|
|
6320
|
-
{/* {
|
|
6321
|
-
this.state.customerSelect == '' && <Button className="modelButtonCancel">下一步</Button>
|
|
6322
|
-
} */}
|
|
6323
6376
|
{
|
|
6324
|
-
|
|
6377
|
+
this.state.isCustomerSelect && <span>
|
|
6378
|
+
{
|
|
6379
|
+
this.state.customerSelect == '' && <Button className="modelButtonNo modelNoButton" type="primary" danger>下一步</Button>
|
|
6380
|
+
}
|
|
6381
|
+
{
|
|
6382
|
+
this.state.customerSelect != '' && <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkCustomer}>下一步</Button>
|
|
6383
|
+
}
|
|
6384
|
+
</span>
|
|
6325
6385
|
}
|
|
6386
|
+
{
|
|
6387
|
+
!this.state.isCustomerSelect&& <span>
|
|
6388
|
+
{
|
|
6389
|
+
this.state.documentType == '' && <Button className="modelButtonNo modelNoButton" type="primary" danger>下一步</Button>
|
|
6390
|
+
}
|
|
6391
|
+
{
|
|
6392
|
+
this.state.documentType != '' &&<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkCustomer}>下一步</Button>
|
|
6393
|
+
}
|
|
6394
|
+
</span>
|
|
6395
|
+
}
|
|
6396
|
+
|
|
6326
6397
|
</div>
|
|
6327
6398
|
]}>
|
|
6328
6399
|
<div>
|
|
@@ -6338,7 +6409,7 @@ class Video extends Component {
|
|
|
6338
6409
|
{
|
|
6339
6410
|
this.state.customerList.map((item, index) => {
|
|
6340
6411
|
// if(item.name.indexOf("访客") != -1) {
|
|
6341
|
-
return <Radio value={index}>{item.name}</Radio>
|
|
6412
|
+
return <Radio value={index + 1}>{item.name}</Radio>
|
|
6342
6413
|
// }
|
|
6343
6414
|
})
|
|
6344
6415
|
}
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
div{
|
|
166
166
|
font-size: 16Px;
|
|
167
167
|
color: #646464;
|
|
168
|
-
margin: 20Px;
|
|
168
|
+
margin: 10Px 20Px;
|
|
169
169
|
input{
|
|
170
170
|
border: #DCDCDC 1px solid;
|
|
171
171
|
width: 15rem;
|
|
@@ -355,6 +355,9 @@
|
|
|
355
355
|
background: #fff!important;
|
|
356
356
|
border-spacing: 20px!important;
|
|
357
357
|
}
|
|
358
|
+
.modelNoButton{
|
|
359
|
+
margin-left: 10px;
|
|
360
|
+
}
|
|
358
361
|
.modelButtonCancelOne{
|
|
359
362
|
width: 170px!important;
|
|
360
363
|
height: 40px!important;
|
|
@@ -563,8 +566,8 @@
|
|
|
563
566
|
margin: 0 40px;
|
|
564
567
|
}
|
|
565
568
|
.faceImgCard{
|
|
566
|
-
width:
|
|
567
|
-
margin-
|
|
569
|
+
width: 25rem;
|
|
570
|
+
margin-bottom: 10px;
|
|
568
571
|
}
|
|
569
572
|
.titleDiv{
|
|
570
573
|
font-size: 1.4rem;
|
|
@@ -582,4 +585,5 @@ display: inline-flex;
|
|
|
582
585
|
}
|
|
583
586
|
.imgDIV{
|
|
584
587
|
margin: 0 !important;
|
|
588
|
+
text-align:center;
|
|
585
589
|
}
|