react_hsbc_teller 1.9.1 → 1.9.3

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.
@@ -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.1&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
354
+ baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.3&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' + Mival.data.type)
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,
@@ -795,6 +799,8 @@ class Video extends Component {
795
799
  contrastFaceVerify = async () => {
796
800
  try {
797
801
  let result = await API.contrastFaceVerify({
802
+ idCardNumber: this.state.idCardNumberFace,
803
+ idCardName: this.state.idCardNameFace,
798
804
  staffId: this.props.tellerAccount,
799
805
  activityId: this.props.businessNumber,
800
806
  appAccount: this.state.faceCustomerUid,
@@ -879,7 +885,7 @@ class Video extends Component {
879
885
  list.push({
880
886
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
881
887
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
882
- name: this.state.videoOneName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
888
+ name: this.state.videoOneName,
883
889
  tourist: false
884
890
  })
885
891
  }
@@ -889,7 +895,7 @@ class Video extends Component {
889
895
  list.push({
890
896
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
891
897
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
892
- name: this.state.videoTwoName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
898
+ name: this.state.videoTwoName,
893
899
  tourist: false
894
900
  })
895
901
  }
@@ -899,7 +905,7 @@ class Video extends Component {
899
905
  list.push({
900
906
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
901
907
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
902
- name: this.state.videoThreeName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
908
+ name: this.state.videoThreeName,
903
909
  tourist: false
904
910
  })
905
911
  }
@@ -909,7 +915,7 @@ class Video extends Component {
909
915
  list.push({
910
916
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
911
917
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
912
- name: this.state.videoFourName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
918
+ name: this.state.videoFourName,
913
919
  tourist: false
914
920
  })
915
921
  }
@@ -919,7 +925,7 @@ class Video extends Component {
919
925
  list.push({
920
926
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
921
927
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
922
- name: this.state.videoFiveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
928
+ name: this.state.videoFiveName,
923
929
  tourist: false
924
930
  })
925
931
  }
@@ -928,7 +934,7 @@ class Video extends Component {
928
934
  list.push({
929
935
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
930
936
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
931
- name: this.state.videoSixName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
937
+ name: this.state.videoSixName,
932
938
  tourist: false
933
939
  })
934
940
  }
@@ -936,7 +942,7 @@ class Video extends Component {
936
942
  list.push({
937
943
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
938
944
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
939
- name: this.state.videoSevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
945
+ name: this.state.videoSevenName,
940
946
  tourist: false
941
947
  })
942
948
  }
@@ -944,7 +950,7 @@ class Video extends Component {
944
950
  list.push({
945
951
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
946
952
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
947
- name: this.state.videoEightName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
953
+ name: this.state.videoEightName,
948
954
  tourist: false
949
955
  })
950
956
  }
@@ -952,7 +958,7 @@ class Video extends Component {
952
958
  list.push({
953
959
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
954
960
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
955
- name: this.state.videoNineName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
961
+ name: this.state.videoNineName,
956
962
  tourist: false
957
963
  })
958
964
  }
@@ -960,15 +966,15 @@ class Video extends Component {
960
966
  list.push({
961
967
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
962
968
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
963
- name: this.state.videoTenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
969
+ name: this.state.videoTenName,
964
970
  tourist: false
965
971
  })
966
972
  }
967
- if (document.getElementById('video11').name && !this.state.isPIBIntranet[10].type) {
973
+ if (document.getElementById('video11').name && !this.state.isPIBIntranet[10].type) {
968
974
  list.push({
969
975
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
970
976
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
971
- name: this.state.videoElevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
977
+ name: this.state.videoElevenName,
972
978
  tourist: false
973
979
  })
974
980
  }
@@ -976,7 +982,7 @@ class Video extends Component {
976
982
  list.push({
977
983
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
978
984
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
979
- name: this.state.videoTwelveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
985
+ name: this.state.videoTwelveName,
980
986
  tourist: false
981
987
  })
982
988
  }
@@ -989,10 +995,15 @@ class Video extends Component {
989
995
  console.log('this.state.customerList.length',list.length)
990
996
  this.setState({
991
997
  documentType: '',
992
- isModalVisibleCustomer: true,
993
998
  isCustomerSelect: true,
994
- customerSelect: list.length == 1 ? 0 : '',
999
+ customerSelect: list.length == 1 ? 1 : '',
1000
+
995
1001
  customerTitleName: '客户身份识别'
1002
+ },()=>{
1003
+ console.log(this.state.customerSelect)
1004
+ this.setState({
1005
+ isModalVisibleCustomer: true,
1006
+ })
996
1007
  })
997
1008
  } else if (val == 'facial') {
998
1009
  this.setState({
@@ -2235,7 +2246,7 @@ class Video extends Component {
2235
2246
  if (JSON.parse(msg).typeId == 33001 && this.state.sessionId == JSON.parse(msg).data.sessionId) {
2236
2247
  if (JSON.parse(msg).type == 1) {
2237
2248
  this.saveAuthorize(JSON.parse(msg).data.userId)
2238
- this.customerFaceClick(this.state.customerList[this.state.customerSelect])
2249
+ this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
2239
2250
  }
2240
2251
  }
2241
2252
  }
@@ -2767,15 +2778,6 @@ class Video extends Component {
2767
2778
  this.test_controller.OnNewJoinerIn = (participant) => {
2768
2779
  console.log('新加⼊房间者', participant);
2769
2780
  this.state.isCustomer = true
2770
- if (this.props.isOpenSound) {
2771
- let src = autod
2772
- let audio = new Audio(src)
2773
- audio.play()
2774
- }
2775
-
2776
- // let src = autod
2777
- // let audio = new Audio(src)
2778
- // audio.play()
2779
2781
  };
2780
2782
  // 推送“有新发布”给与会者
2781
2783
  this.test_controller.OnNewPublish = (feed) => {
@@ -3191,12 +3193,12 @@ class Video extends Component {
3191
3193
  exitType
3192
3194
  ) => {
3193
3195
  console.log('退出房间者', participant, exitType)
3194
- if (this.props.isOpenSound) {
3195
- let src = leftMetting
3196
- let audio = new Audio(src)
3197
- audio.play()
3198
- }
3199
-
3196
+ // if (this.props.isOpenSound) {
3197
+ // let src = leftMetting
3198
+ // let audio = new Audio(src)
3199
+ // audio.play()
3200
+ // }
3201
+
3200
3202
 
3201
3203
  this.appGetUsernameClick(participant).then((res) => {
3202
3204
  console.log('退出房间者', res)
@@ -3209,7 +3211,18 @@ class Video extends Component {
3209
3211
  userId: participant,
3210
3212
  userType: '1'
3211
3213
  })
3212
- }
3214
+ if (this.props.isOpenSound) {
3215
+ let src = leftMetting
3216
+ let audio = new Audio(src)
3217
+ audio.play()
3218
+ }
3219
+ } else if (res.userType == 2) {
3220
+ if (this.props.isOpenSound) {
3221
+ let src = internalLeft
3222
+ let audio = new Audio(src)
3223
+ audio.play()
3224
+ }
3225
+ }
3213
3226
  // console.log('退出房间者',res)
3214
3227
  // let data = res? res : '客户'
3215
3228
  // console.log(data)
@@ -3837,7 +3850,7 @@ class Video extends Component {
3837
3850
  }
3838
3851
  }
3839
3852
  componentWillMount() {
3840
- console.log('hsbc_teller_sdk', '1.9.1')
3853
+ console.log('hsbc_teller_sdk', '1.9.3')
3841
3854
  if (this.props.sessionId) {
3842
3855
  this.getRoomStatus({
3843
3856
  sessionId: this.props.sessionId
@@ -4258,8 +4271,7 @@ class Video extends Component {
4258
4271
  isFaceImage: false
4259
4272
  })
4260
4273
  })
4261
- const videoMedia = document.getElementById('publish_video_2');
4262
- videoMedia.srcObject = document.getElementById(videoName).srcObject
4274
+ this.publishVideoTwo()
4263
4275
  }
4264
4276
 
4265
4277
  } else {
@@ -4343,7 +4355,7 @@ class Video extends Component {
4343
4355
  }
4344
4356
  handleOkFacial = () => {
4345
4357
  if (this.state.faceCustomerType == 2) {
4346
- if (this.state.IDtypeFrontOrBack == '请截取证件正面') {
4358
+ if (this.state.IDtypeFrontOrBack == '请截取证件头像面') {
4347
4359
  if(this.state.documentType == 'PASSPORT_CARD') {
4348
4360
  this.setState({
4349
4361
  loadingFace: true
@@ -4352,12 +4364,12 @@ class Video extends Component {
4352
4364
  } else {
4353
4365
  this.setState({
4354
4366
  facialImg: ocrImage,
4355
- IDtypeFrontOrBack: '请截取证件反面',
4367
+ IDtypeFrontOrBack: '请截取证件国徽面',
4356
4368
  isFaceImage: false,
4357
4369
  })
4358
4370
  }
4359
4371
 
4360
- } else if (this.state.IDtypeFrontOrBack == '请截取证件反面') {
4372
+ } else if (this.state.IDtypeFrontOrBack == '请截取证件国徽面') {
4361
4373
  this.setState({
4362
4374
  loadingFace: true
4363
4375
  })
@@ -4391,6 +4403,25 @@ class Video extends Component {
4391
4403
  isModalVisibleFacial: false
4392
4404
  })
4393
4405
  };
4406
+ publishVideoTwo=()=>{
4407
+ const videoMedia = document.getElementById('publish_video_2');
4408
+ videoMedia.srcObject = document.getElementById(videoName).srcObject
4409
+ clearTime = setTimeout(() => {
4410
+ if(this.state.videoType == '') {
4411
+ this.setState({
4412
+ videoType: 'error'
4413
+ })
4414
+
4415
+ }
4416
+ }, 9000)
4417
+ videoMedia.onloadeddata = () => {
4418
+ console.log('success_publish_video_2')
4419
+ this.setState({
4420
+ videoType: 'success'
4421
+ })
4422
+ clearTimeout(clearTime)
4423
+ }
4424
+ }
4394
4425
  newFaceClick=()=>{
4395
4426
  callNimIM('sendCustomCmdMsg', {
4396
4427
  customId: this.state.imRoomId,
@@ -4407,7 +4438,7 @@ class Video extends Component {
4407
4438
  isFaceImage: false,
4408
4439
  facialImg: ocrImage,
4409
4440
  disabledIdCard: true,
4410
- IDtypeFrontOrBack: '请截取证件正面',
4441
+ IDtypeFrontOrBack: '请截取证件头像面',
4411
4442
  facialImgFront: '',
4412
4443
  facialImgBack: '',
4413
4444
  faceResuly: '',
@@ -4416,8 +4447,7 @@ class Video extends Component {
4416
4447
  cardFailReason: '',
4417
4448
  cardResuly: '',
4418
4449
  }, () => {
4419
- const videoMedia = document.getElementById('publish_video_2');
4420
- videoMedia.srcObject = document.getElementById(videoName).srcObject
4450
+ this.publishVideoTwo()
4421
4451
  })
4422
4452
  }
4423
4453
  ReIdentification = () =>{
@@ -4426,8 +4456,7 @@ class Video extends Component {
4426
4456
  facialImg: ocrImage,
4427
4457
  isFaceImage: false
4428
4458
  },()=>{
4429
- const videoMedia = document.getElementById('publish_video_2');
4430
- videoMedia.srcObject = document.getElementById(videoName).srcObject
4459
+ this.publishVideoTwo()
4431
4460
  })
4432
4461
 
4433
4462
  }
@@ -4571,7 +4600,7 @@ class Video extends Component {
4571
4600
  isFaceImage: false,
4572
4601
  facialImg: ocrImage,
4573
4602
  disabledIdCard: true,
4574
- IDtypeFrontOrBack: '请截取证件正面',
4603
+ IDtypeFrontOrBack: '请截取证件头像面',
4575
4604
  facialImgFront: '',
4576
4605
  facialImgBack: '',
4577
4606
  faceResuly: '',
@@ -4585,23 +4614,19 @@ class Video extends Component {
4585
4614
  this.setState({
4586
4615
  isModalVisibleFacial: true,
4587
4616
  }, () => {
4588
- const videoMedia = document.getElementById('publish_video_2');
4589
- videoMedia.srcObject = document.getElementById(videoName).srcObject
4590
- videoMedia.onloadeddata = function() {
4591
- console.log('onerror')
4592
- }
4617
+ this.publishVideoTwo()
4593
4618
  })
4594
4619
  })
4595
4620
  }
4596
4621
  }
4597
4622
  sgsinImage = () => {
4598
- if (this.state.IDtypeFrontOrBack == '请截取证件正面') {
4623
+ if (this.state.IDtypeFrontOrBack == '请截取证件头像面') {
4599
4624
  this.setState({
4600
4625
  facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png'),
4601
4626
  isFaceImage: true,
4602
4627
  facialImgFront: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png'),
4603
4628
  })
4604
- } else if (this.state.IDtypeFrontOrBack == '请截取证件反面') {
4629
+ } else if (this.state.IDtypeFrontOrBack == '请截取证件国徽面') {
4605
4630
  this.setState({
4606
4631
  facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png'),
4607
4632
  isFaceImage: true,
@@ -4690,19 +4715,32 @@ class Video extends Component {
4690
4715
  console.log(result)
4691
4716
  let data
4692
4717
  let typeIntranet
4718
+ let userSide
4693
4719
  if (result.code == 200) {
4694
4720
  data = result.data.username ? result.data.username : ''
4695
4721
  typeIntranet = result.data.userType ? result.data.userType : ''
4722
+ userSide = result.data.userSide ? result.data.userSide : ''
4696
4723
  } else {
4697
4724
  this.messageClick('查询失败', 'error')
4698
4725
  }
4726
+ if (this.props.isOpenSound && sid != document.getElementById('publish_video1').name) {
4727
+ if (result.data.userType == 1) {
4728
+ let src = autod
4729
+ let audio = new Audio(src)
4730
+ audio.play()
4731
+ } else if (result.data.userType == 2) {
4732
+ let src = internalJoin
4733
+ let audio = new Audio(src)
4734
+ audio.play()
4735
+ }
4736
+ }
4699
4737
  if (document.getElementById('publish_video1').name == sid) {
4700
4738
  this.setState({
4701
4739
  titleNameRm: data
4702
4740
  })
4703
4741
  }
4704
4742
  if (document.getElementById('video1').name == sid) {
4705
- if (typeIntranet && typeIntranet == 2) {
4743
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4706
4744
  this.state.isPIBIntranet[0].type = true
4707
4745
  }
4708
4746
  this.setState({
@@ -4712,7 +4750,7 @@ class Video extends Component {
4712
4750
  })
4713
4751
  }
4714
4752
  if (document.getElementById('video2').name == sid) {
4715
- if (typeIntranet && typeIntranet == 2) {
4753
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4716
4754
  this.state.isPIBIntranet[1].type = true
4717
4755
  }
4718
4756
  this.setState({
@@ -4721,7 +4759,7 @@ class Video extends Component {
4721
4759
  this.videoListClick()
4722
4760
  })
4723
4761
  } if (document.getElementById('video3').name == sid) {
4724
- if (typeIntranet && typeIntranet == 2) {
4762
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4725
4763
  this.state.isPIBIntranet[2].type = true
4726
4764
  }
4727
4765
  this.setState({
@@ -4730,7 +4768,7 @@ class Video extends Component {
4730
4768
  this.videoListClick()
4731
4769
  })
4732
4770
  } if (document.getElementById('video4').name == sid) {
4733
- if (typeIntranet && typeIntranet == 2) {
4771
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4734
4772
  this.state.isPIBIntranet[3].type = true
4735
4773
  }
4736
4774
  this.setState({
@@ -4739,7 +4777,7 @@ class Video extends Component {
4739
4777
  this.videoListClick()
4740
4778
  })
4741
4779
  } if (document.getElementById('video5').name == sid) {
4742
- if (typeIntranet && typeIntranet == 2) {
4780
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4743
4781
  this.state.isPIBIntranet[4].type = true
4744
4782
  }
4745
4783
  this.setState({
@@ -4748,7 +4786,7 @@ class Video extends Component {
4748
4786
  this.videoListClick()
4749
4787
  })
4750
4788
  } if (document.getElementById('video6').name == sid) {
4751
- if (typeIntranet && typeIntranet == 2) {
4789
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4752
4790
  this.state.isPIBIntranet[5].type = true
4753
4791
  }
4754
4792
  this.setState({
@@ -4758,7 +4796,7 @@ class Video extends Component {
4758
4796
  })
4759
4797
  }
4760
4798
  if (document.getElementById('video7').name == sid) {
4761
- if (typeIntranet && typeIntranet == 2) {
4799
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4762
4800
  this.state.isPIBIntranet[6].type = true
4763
4801
  }
4764
4802
  this.setState({
@@ -4767,7 +4805,7 @@ class Video extends Component {
4767
4805
  this.videoListClick()
4768
4806
  })
4769
4807
  } if (document.getElementById('video8').name == sid) {
4770
- if (typeIntranet && typeIntranet == 2) {
4808
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4771
4809
  this.state.isPIBIntranet[7].type = true
4772
4810
  }
4773
4811
  this.setState({
@@ -4776,7 +4814,7 @@ class Video extends Component {
4776
4814
  this.videoListClick()
4777
4815
  })
4778
4816
  } if (document.getElementById('video9').name == sid) {
4779
- if (typeIntranet && typeIntranet == 2) {
4817
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4780
4818
  this.state.isPIBIntranet[8].type = true
4781
4819
  }
4782
4820
  this.setState({
@@ -4785,7 +4823,7 @@ class Video extends Component {
4785
4823
  this.videoListClick()
4786
4824
  })
4787
4825
  } if (document.getElementById('video10').name == sid) {
4788
- if (typeIntranet && typeIntranet == 2) {
4826
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4789
4827
  this.state.isPIBIntranet[9].type = true
4790
4828
  }
4791
4829
  this.setState({
@@ -4794,7 +4832,7 @@ class Video extends Component {
4794
4832
  this.videoListClick()
4795
4833
  })
4796
4834
  } if (document.getElementById('video11').name == sid) {
4797
- if (typeIntranet && typeIntranet == 2) {
4835
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4798
4836
  this.state.isPIBIntranet[10].type = true
4799
4837
  }
4800
4838
  this.setState({
@@ -4803,7 +4841,7 @@ class Video extends Component {
4803
4841
  this.videoListClick()
4804
4842
  })
4805
4843
  } if (document.getElementById('video12').name == sid) {
4806
- if (typeIntranet && typeIntranet == 2) {
4844
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4807
4845
  this.state.isPIBIntranet[11].type = true
4808
4846
  }
4809
4847
  this.setState({
@@ -5403,26 +5441,26 @@ class Video extends Component {
5403
5441
  this.setState({
5404
5442
  documentType: '',
5405
5443
  isCustomerSelect: true,
5406
- customerSelect: this.state.customerList.length == 1 ? 0 : '',
5444
+ customerSelect: this.state.customerList.length == 1 ? 1 : '',
5407
5445
  customerTitleName: '客户身份识别'
5408
5446
  })
5409
5447
  }
5410
5448
  handleOkCustomer = () => {
5411
5449
  if (this.state.isCustomerSelect) {
5412
- if (this.state.customerList[this.state.customerSelect].tourist) {
5413
- this.customerFaceClick(this.state.customerList[this.state.customerSelect])
5450
+ if (this.state.customerList[this.state.customerSelect - 1].tourist) {
5451
+ this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
5414
5452
  } else {
5415
5453
  this.setState({
5416
5454
  isCustomerSelect: false,
5417
5455
  documentError: '',
5418
- customerTitleName: this.state.customerList[this.state.customerSelect].name
5456
+ customerTitleName: this.state.customerList[this.state.customerSelect - 1].name
5419
5457
  })
5420
5458
  }
5421
5459
 
5422
5460
  } else {
5423
- this.getAuthorizeResult(this.state.customerList[this.state.customerSelect].customId).then((res) => {
5461
+ this.getAuthorizeResult(this.state.customerList[this.state.customerSelect - 1].customId).then((res) => {
5424
5462
  if (res) {
5425
- this.customerFaceClick(this.state.customerList[this.state.customerSelect])
5463
+ this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
5426
5464
  this.setState({
5427
5465
  isModalVisibleCustomer: false,
5428
5466
  })
@@ -5432,7 +5470,7 @@ class Video extends Component {
5432
5470
  'typeId': 3300,
5433
5471
  "data": {
5434
5472
  'sessionId': this.state.sessionId,
5435
- 'userId': this.state.customerList[this.state.customerSelect].customId,
5473
+ 'userId': this.state.customerList[this.state.customerSelect - 1].customId,
5436
5474
  'title': '为了有效确认客户身份,请您配合进行我行的身份识别和核验。请您阅读以下内容,若您同意,请您之后在摄像头前出示您的身份证件,我行将对您的身份证件拍照并采集证件信息;同时,我行会对您进行脸部拍照,采集您的脸部图像。',
5437
5475
  'list': [
5438
5476
  {
@@ -5452,7 +5490,7 @@ class Video extends Component {
5452
5490
  'typeId': 3300,
5453
5491
  "data": {
5454
5492
  'sessionId': this.state.sessionId,
5455
- 'userId': this.state.customerList[this.state.customerSelect].customId,
5493
+ 'userId': this.state.customerList[this.state.customerSelect - 1].customId,
5456
5494
  'title': '为了有效确认客户身份,请您配合进行我行的身份识别。请您阅读以下内容,若您同意,请您之后在摄像头前出示您的身份证件,我行将对您的身份证件拍照并采集证件信息;',
5457
5495
  'list': [
5458
5496
  {
@@ -6191,25 +6229,31 @@ class Video extends Component {
6191
6229
 
6192
6230
  </div>,
6193
6231
  this.state.cardResuly == '' && this.state.faceResuly != '' &&<div key='facial'>
6232
+ <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>完成</Button>
6194
6233
  {
6195
6234
  this.state.faceResuly == 'fail' && <Button className="modelButtonOk" type="primary" danger onClick={this.ReIdentification}>重新识别</Button>
6196
6235
  }
6197
6236
  {
6198
6237
  this.state.faceResuly == 'success' && <Button className="modelButtonNo" type="primary" danger>重新识别</Button>
6199
6238
  }
6200
- <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>完成</Button>
6239
+
6201
6240
 
6202
6241
  </div>,
6203
6242
  this.state.cardResuly == 'success' && <div key='facial'>
6204
6243
  {
6205
6244
  this.state.disabledIdCard && <Button className="modelButtonFaceOk" danger onClick={(e) => this.updateConfirm('noFace')}>修改</Button>
6206
6245
  }
6207
- <Button className="modelButtonFaceOk" danger onClick={(e) => this.confirmCallback('face')}>完成并发起人脸识别</Button>
6208
- <Button className="modelButtonOk" type="primary" danger onClick={(e) => this.confirmCallback('noFace')}>完成</Button>
6246
+ {
6247
+ this.state.documentType == 'ID_CARD' && <Button className="modelButtonFaceOkColor" danger onClick={(e) => this.confirmCallback('face')}>完成并发起人脸识别</Button>
6248
+ }
6249
+ {
6250
+ this.state.documentType != 'ID_CARD' && <Button className="modelButtonOk" type="primary" danger onClick={(e) => this.confirmCallback('noFace')}>完成</Button>
6251
+ }
6252
+
6209
6253
  </div>,
6210
6254
  this.state.cardResuly == 'fail' && <div key='facial'>
6211
6255
  <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
6212
- <Button className="modelButtonOk" type="primary" danger onClick={this.newFaceClick}>返回重试</Button>
6256
+ <Button className="modelButtonOk" type="primary" danger onClick={this.newFaceClick}>返回重拍</Button>
6213
6257
  </div>
6214
6258
  ]}>
6215
6259
  <Spin spinning={this.state.loadingFace} tip="识别中...">
@@ -6229,6 +6273,10 @@ class Video extends Component {
6229
6273
  {
6230
6274
  this.state.faceResuly == '' && <span>
6231
6275
  <div>
6276
+ {
6277
+ this.state.videoType == 'error' && <div className='errorClassFace'>
6278
+ <img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>客户视频异常,请重试</div>
6279
+ }
6232
6280
  <video className="faceImg" id="publish_video_2" autoPlay muted={true}></video>
6233
6281
  </div>
6234
6282
  <img className="faceImg" src={this.state.facialImg} alt=""></img>
@@ -6252,9 +6300,12 @@ class Video extends Component {
6252
6300
  }
6253
6301
  <div className='imgDIV'>
6254
6302
  <img className="faceImgCard" src={this.state.facialImgFront} alt=""></img>
6255
- <img className="faceImgCard" src={this.state.facialImgBack} alt=""></img>
6303
+ {
6304
+ this.state.documentType != 'PASSPORT_CARD' && <img className="faceImgCard faceImgCardTwo" src={this.state.facialImgBack} alt=""></img>
6305
+ }
6306
+
6256
6307
  </div>
6257
- <div>证件信息确认</div>
6308
+ <div style={{margin: '0 20px'}}>证件信息确认</div>
6258
6309
  <div><span>客户姓名</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardName} onChange={this.handleChangeIdCardName} /></div>
6259
6310
  <div><span>证件号码</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardNumber} onChange={this.handleChangeIdCardNumber} /></div>
6260
6311
  <div><span>有效期</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.certificateValidity} onChange={this.handleChangeCertificateValidity} /></div>
@@ -6285,7 +6336,13 @@ class Video extends Component {
6285
6336
  footer={[
6286
6337
  <div key='end'>
6287
6338
  <Button className="modelButtonCancel" onClick={this.handleCancelSFP}>取消</Button>
6288
- <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSFP}>确定</Button>
6339
+ {
6340
+ this.state.StaffidSFP && this.state.PasswordSFP && <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSFP}>确定</Button>
6341
+ }
6342
+ {
6343
+ (this.state.StaffidSFP == '' || this.state.PasswordSFP == '') && <Button className="modelButtonNo" type="primary" danger >确定</Button>
6344
+ }
6345
+
6289
6346
  </div>
6290
6347
  ]}>
6291
6348
  <Spin spinning={this.state.loadingStaff} tip="授权中...">
@@ -6317,12 +6374,27 @@ class Video extends Component {
6317
6374
  !this.state.isCustomerSelect && <Button className="modelButtonCancel" onClick={this.goBackSelectCustomer}>上一步</Button>
6318
6375
  }
6319
6376
  <Button className="modelButtonCancel" onClick={this.handleCancelCustomer}>取消</Button>
6320
- {/* {
6321
- this.state.customerSelect == '' && <Button className="modelButtonCancel">下一步</Button>
6322
- } */}
6323
6377
  {
6324
- <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkCustomer}>下一步</Button>
6378
+ this.state.isCustomerSelect && <span>
6379
+ {
6380
+ this.state.customerSelect == '' && <Button className="modelButtonNo modelNoButton" type="primary" danger>下一步</Button>
6381
+ }
6382
+ {
6383
+ this.state.customerSelect != '' && <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkCustomer}>下一步</Button>
6384
+ }
6385
+ </span>
6386
+ }
6387
+ {
6388
+ !this.state.isCustomerSelect&& <span>
6389
+ {
6390
+ this.state.documentType == '' && <Button className="modelButtonNo modelNoButton" type="primary" danger>下一步</Button>
6391
+ }
6392
+ {
6393
+ this.state.documentType != '' &&<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkCustomer}>下一步</Button>
6394
+ }
6395
+ </span>
6325
6396
  }
6397
+
6326
6398
  </div>
6327
6399
  ]}>
6328
6400
  <div>
@@ -6338,7 +6410,7 @@ class Video extends Component {
6338
6410
  {
6339
6411
  this.state.customerList.map((item, index) => {
6340
6412
  // if(item.name.indexOf("访客") != -1) {
6341
- return <Radio value={index}>{item.name}</Radio>
6413
+ return <Radio value={index + 1}>{item.name}</Radio>
6342
6414
  // }
6343
6415
  })
6344
6416
  }