react_hsbc_teller 1.8.7 → 1.9.0

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.
@@ -308,6 +308,7 @@ class Video extends Component {
308
308
  idCardName: '',
309
309
  idCardNameFace: '',
310
310
  idCardNumberFace: '',
311
+ certificateValidityFace: '',
311
312
  idCardNumber: '',
312
313
  certificateValidity: '',
313
314
  operateShow: false,
@@ -320,8 +321,9 @@ class Video extends Component {
320
321
  customerSelect: '',
321
322
  documentType: '',
322
323
  isCustomerSelect: true,
324
+ documentError: '',
323
325
  customerTitleName: '客户身份识别',
324
- certificateType: 'identityCard',
326
+ certificateType: 'ID_CARD',
325
327
  customerName: '',
326
328
  IDtypeFrontOrBack: '',
327
329
  disabledIdCard: true,
@@ -333,7 +335,11 @@ class Video extends Component {
333
335
  loadingFace: false,
334
336
  faceResuly: '',
335
337
  isStaffState: '',
336
- loadingStaff: false
338
+ loadingStaff: false,
339
+ isVideoList: false,
340
+ faceFailReason: '',
341
+ cardResuly: '',
342
+ cardFailReason: '',
337
343
  };
338
344
  // eslint-disable-next-line no-undef
339
345
  test_controller = '';
@@ -341,7 +347,7 @@ class Video extends Component {
341
347
  saveLog = (val) => {
342
348
  axios({
343
349
  method: 'get',
344
- baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.8.7&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
350
+ baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.0&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
345
351
 
346
352
  }).then(res => {
347
353
 
@@ -801,7 +807,8 @@ class Video extends Component {
801
807
  this.setState({
802
808
  loadingFace: false,
803
809
  faceResuly: 'success',
804
- isFaceImage: ''
810
+ isFaceImage: '',
811
+ faceFailReason: ''
805
812
  })
806
813
  // this.setState({
807
814
  // isModalVisibleFacial: false
@@ -811,7 +818,8 @@ class Video extends Component {
811
818
  this.setState({
812
819
  loadingFace: false,
813
820
  faceResuly: 'fail',
814
- isFaceImage: ''
821
+ isFaceImage: '',
822
+ faceFailReason: result.message
815
823
  })
816
824
  }
817
825
 
@@ -820,7 +828,14 @@ class Video extends Component {
820
828
  if (err.status == 502 || err.status == 404) {
821
829
  this.roomCallBack(2, '连接服务器失败', 'SYS-02')
822
830
  }
823
- console.error(err);
831
+ console.log(err)
832
+ this.setState({
833
+ loadingFace: false,
834
+ faceResuly: 'fail',
835
+ isFaceImage: '',
836
+ faceFailReason: err.message
837
+ })
838
+ console.error('err', err);
824
839
  }
825
840
  };
826
841
  uploadImg = async data => {
@@ -864,7 +879,7 @@ class Video extends Component {
864
879
  list.push({
865
880
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
866
881
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
867
- name: this.state.videoOneName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
882
+ name: this.state.videoOneName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
868
883
  tourist: false
869
884
  })
870
885
  }
@@ -874,7 +889,7 @@ class Video extends Component {
874
889
  list.push({
875
890
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
876
891
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
877
- name: this.state.videoTwoName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
892
+ name: this.state.videoTwoName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
878
893
  tourist: false
879
894
  })
880
895
  }
@@ -884,7 +899,7 @@ class Video extends Component {
884
899
  list.push({
885
900
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
886
901
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
887
- name: this.state.videoThreeName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
902
+ name: this.state.videoThreeName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
888
903
  tourist: false
889
904
  })
890
905
  }
@@ -894,7 +909,7 @@ class Video extends Component {
894
909
  list.push({
895
910
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
896
911
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
897
- name: this.state.videoFourName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
912
+ name: this.state.videoFourName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
898
913
  tourist: false
899
914
  })
900
915
  }
@@ -904,7 +919,7 @@ class Video extends Component {
904
919
  list.push({
905
920
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
906
921
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
907
- name: this.state.videoFiveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
922
+ name: this.state.videoFiveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
908
923
  tourist: false
909
924
  })
910
925
  }
@@ -913,7 +928,7 @@ class Video extends Component {
913
928
  list.push({
914
929
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
915
930
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
916
- name: this.state.videoSixName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
931
+ name: this.state.videoSixName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
917
932
  tourist: false
918
933
  })
919
934
  }
@@ -921,7 +936,7 @@ class Video extends Component {
921
936
  list.push({
922
937
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
923
938
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
924
- name: this.state.videoSevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
939
+ name: this.state.videoSevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
925
940
  tourist: false
926
941
  })
927
942
  }
@@ -929,7 +944,7 @@ class Video extends Component {
929
944
  list.push({
930
945
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
931
946
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
932
- name: this.state.videoEightName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
947
+ name: this.state.videoEightName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
933
948
  tourist: false
934
949
  })
935
950
  }
@@ -937,7 +952,7 @@ class Video extends Component {
937
952
  list.push({
938
953
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
939
954
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
940
- name: this.state.videoNineName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
955
+ name: this.state.videoNineName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
941
956
  tourist: false
942
957
  })
943
958
  }
@@ -945,7 +960,7 @@ class Video extends Component {
945
960
  list.push({
946
961
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
947
962
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
948
- name: this.state.videoTenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
963
+ name: this.state.videoTenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
949
964
  tourist: false
950
965
  })
951
966
  }
@@ -953,7 +968,7 @@ class Video extends Component {
953
968
  list.push({
954
969
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
955
970
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
956
- name: this.state.videoElevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
971
+ name: this.state.videoElevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
957
972
  tourist: false
958
973
  })
959
974
  }
@@ -961,7 +976,7 @@ class Video extends Component {
961
976
  list.push({
962
977
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
963
978
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
964
- name: this.state.videoTwelveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
979
+ name: this.state.videoTwelveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
965
980
  tourist: false
966
981
  })
967
982
  }
@@ -971,11 +986,12 @@ class Video extends Component {
971
986
  })
972
987
  if (list.length > 0) {
973
988
  if (val == 'ocr') {
989
+ console.log('this.state.customerList.length',list.length)
974
990
  this.setState({
975
991
  documentType: '',
976
992
  isModalVisibleCustomer: true,
977
993
  isCustomerSelect: true,
978
- customerSelect: '',
994
+ customerSelect: list.length == 1 ? 0 : '',
979
995
  customerTitleName: '客户身份识别'
980
996
  })
981
997
  } else if (val == 'facial') {
@@ -2203,9 +2219,16 @@ class Video extends Component {
2203
2219
  };
2204
2220
  this.test_controller.OnSendTextMsgSucc = (msgId) => {
2205
2221
  console.log('发送成功', msgId)
2222
+ this.setState({
2223
+ documentError: '',
2224
+ isModalVisibleCustomer: false,
2225
+ })
2206
2226
  }
2207
2227
  this.test_controller.OnSendTextMsgFailed = (msgId, code, msg) => {
2208
2228
  console.log('发送失败', msgId, code, msg)
2229
+ this.setState({
2230
+ documentError: '推送授权白板失败,请重试'
2231
+ })
2209
2232
  }
2210
2233
  this.test_controller.OnReceiveTextMsg = (uid, msg) => {
2211
2234
  console.log('收到手机端消息', uid, msg, JSON.parse(msg).typeId, JSON.parse(msg).data.sessionId, this.state.sessionId)
@@ -2392,6 +2415,7 @@ class Video extends Component {
2392
2415
  // 订阅媒体流成功
2393
2416
  this.test_controller.OnSubscribeSucc = (feed, sid) => {
2394
2417
  console.log('订阅媒体流成功', feed, sid);
2418
+
2395
2419
  this.appGetUsername(sid)
2396
2420
  console.log(muteJson, muteJson.size)
2397
2421
  if (muteJson.size > 0) {
@@ -3011,6 +3035,8 @@ class Video extends Component {
3011
3035
  videoOneName: '',
3012
3036
  voiceVideoOne: false,
3013
3037
  noVideoOne: false
3038
+ },()=>{
3039
+ this.videoListClick()
3014
3040
  })
3015
3041
  }
3016
3042
  if (!document.getElementById("video2").name) {
@@ -3019,6 +3045,8 @@ class Video extends Component {
3019
3045
  videoTwoName: '',
3020
3046
  voiceVideoTwo: false,
3021
3047
  noVideoTwo: false
3048
+ },()=>{
3049
+ this.videoListClick()
3022
3050
  })
3023
3051
  }
3024
3052
  if (!document.getElementById("video3").name) {
@@ -3027,6 +3055,8 @@ class Video extends Component {
3027
3055
  videoThreeName: '',
3028
3056
  voiceVideoThree: false,
3029
3057
  noVideoThree: false
3058
+ },()=>{
3059
+ this.videoListClick()
3030
3060
  })
3031
3061
  }
3032
3062
  if (!document.getElementById("video4").name) {
@@ -3035,6 +3065,8 @@ class Video extends Component {
3035
3065
  videoFourName: '',
3036
3066
  voiceVideoFour: false,
3037
3067
  noVideoFour: false
3068
+ },()=>{
3069
+ this.videoListClick()
3038
3070
  })
3039
3071
  }
3040
3072
  if (!document.getElementById("video5").name) {
@@ -3043,6 +3075,8 @@ class Video extends Component {
3043
3075
  videoFiveName: '',
3044
3076
  voiceVideoFive: false,
3045
3077
  noVideoFive: false
3078
+ },()=>{
3079
+ this.videoListClick()
3046
3080
  })
3047
3081
  }
3048
3082
  if (!document.getElementById("video6").name) {
@@ -3051,6 +3085,8 @@ class Video extends Component {
3051
3085
  videoSixName: '',
3052
3086
  voiceVideoSix: false,
3053
3087
  noVideoSix: false
3088
+ },()=>{
3089
+ this.videoListClick()
3054
3090
  })
3055
3091
  }
3056
3092
 
@@ -3060,6 +3096,8 @@ class Video extends Component {
3060
3096
  videoSevenName: '',
3061
3097
  voiceVideoSeven: false,
3062
3098
  noVideoSeven: false
3099
+ },()=>{
3100
+ this.videoListClick()
3063
3101
  })
3064
3102
  }
3065
3103
  if (!document.getElementById("video8").name) {
@@ -3068,6 +3106,8 @@ class Video extends Component {
3068
3106
  videoEightName: '',
3069
3107
  voiceVideoEight: false,
3070
3108
  noVideoEight: false
3109
+ },()=>{
3110
+ this.videoListClick()
3071
3111
  })
3072
3112
  }
3073
3113
  if (!document.getElementById("video9").name) {
@@ -3076,6 +3116,8 @@ class Video extends Component {
3076
3116
  videoNineName: '',
3077
3117
  voiceVideoNine: false,
3078
3118
  noVideoNine: false
3119
+ },()=>{
3120
+ this.videoListClick()
3079
3121
  })
3080
3122
  }
3081
3123
  if (!document.getElementById("video10").name) {
@@ -3084,6 +3126,8 @@ class Video extends Component {
3084
3126
  videoTenName: '',
3085
3127
  voiceVideoTen: false,
3086
3128
  noVideoTen: false
3129
+ },()=>{
3130
+ this.videoListClick()
3087
3131
  })
3088
3132
  }
3089
3133
  if (!document.getElementById("video11").name) {
@@ -3092,6 +3136,8 @@ class Video extends Component {
3092
3136
  videoElevenName: '',
3093
3137
  voiceVideoEleven: false,
3094
3138
  noVideoEleven: false
3139
+ },()=>{
3140
+ this.videoListClick()
3095
3141
  })
3096
3142
  }
3097
3143
  if (!document.getElementById("video12").name) {
@@ -3100,6 +3146,8 @@ class Video extends Component {
3100
3146
  videoTwelveName: '',
3101
3147
  voiceVideoTwelve: false,
3102
3148
  noVideoTwelve: false
3149
+ },()=>{
3150
+ this.videoListClick()
3103
3151
  })
3104
3152
  }
3105
3153
  this.state.analyserData.delete(sid)
@@ -3789,7 +3837,7 @@ class Video extends Component {
3789
3837
  }
3790
3838
  }
3791
3839
  componentWillMount() {
3792
- console.log('hsbc_teller_sdk', '1.8.7')
3840
+ console.log('hsbc_teller_sdk', '1.9.0')
3793
3841
  if (this.props.sessionId) {
3794
3842
  this.getRoomStatus({
3795
3843
  sessionId: this.props.sessionId
@@ -4181,10 +4229,11 @@ class Video extends Component {
4181
4229
  this.setState({
4182
4230
  idCardNameFace: this.state.idCardName,
4183
4231
  idCardNumberFace: this.state.idCardNumber,
4184
-
4232
+ certificateValidityFace: this.state.certificateValidity
4185
4233
  },()=>{
4186
4234
  this.setState({
4187
4235
  isModalVisibleFacial: false,
4236
+ cardResuly: '',
4188
4237
  idCardNumber: '',
4189
4238
  idCardName: '',
4190
4239
  certificateValidity: '',
@@ -4195,10 +4244,12 @@ class Video extends Component {
4195
4244
  this.setState({
4196
4245
  idCardNameFace: this.state.idCardName,
4197
4246
  idCardNumberFace: this.state.idCardNumber,
4198
-
4247
+ certificateValidityFace: this.state.certificateValidity
4199
4248
  },()=>{
4200
4249
  this.state.faceCustomerType = 1
4201
4250
  this.setState({
4251
+ cardResuly: '',
4252
+ certificateValidity: '',
4202
4253
  idCardNumber: '',
4203
4254
  idCardName: '',
4204
4255
  titleModal: '人脸识别',
@@ -4227,8 +4278,9 @@ class Video extends Component {
4227
4278
  staffId: this.props.tellerAccount,
4228
4279
  activityId: this.props.businessNumber,
4229
4280
  appAccount: this.state.faceCustomerUid,
4281
+ certificateType: this.state.certificateType,
4230
4282
  fileBase64: val == 1 ? this.state.facialImgFront.replace(/^data:image\/\w+;base64,/, "") : this.state.facialImgBack.replace(/^data:image\/\w+;base64,/, ""),
4231
- type: val
4283
+ type: val == 1 ? true : false
4232
4284
  });
4233
4285
  if (result.code == 200) {
4234
4286
  console.log('ocrCallback', result.data)
@@ -4243,41 +4295,68 @@ class Video extends Component {
4243
4295
  "userId": this.state.faceCustomerUid
4244
4296
  })
4245
4297
  });
4246
- if (result.data.side == 'front') {
4298
+ if(this.state.documentType == 'ID_CARD') {
4299
+ if (result.data.side == 'front') {
4300
+ this.setState({
4301
+ // isModalVisibleFacial: false
4302
+ idCardNumber: result.data.idCardNumber,
4303
+ idCardName: result.data.idCardName
4304
+ })
4305
+ this.ocrCallback(2)
4306
+ } else if (result.data.side == 'back') {
4307
+ console.log(result.data.startDate, result.data.endDate)
4308
+ this.setState({
4309
+ certificateValidity: result.data.startDate + '-' + result.data.endDate,
4310
+ loadingFace: false,
4311
+ cardFailReason: '',
4312
+ cardResuly: 'success',
4313
+ })
4314
+ }
4315
+ }
4316
+ if(this.state.documentType == 'PASSPORT_CARD') {
4247
4317
  this.setState({
4248
- // isModalVisibleFacial: false
4249
4318
  idCardNumber: result.data.idCardNumber,
4250
- idCardName: result.data.idCardName
4251
- })
4252
- this.ocrCallback(2)
4253
- } else if (result.data.side == 'back') {
4254
- console.log(result.data.startDate, result.data.endDate)
4255
- this.setState({
4319
+ idCardName: result.data.idCardName,
4256
4320
  certificateValidity: result.data.startDate + '-' + result.data.endDate,
4257
- loadingFace: false
4321
+ loadingFace: false,
4322
+ cardFailReason: '',
4323
+ cardResuly: 'success',
4258
4324
  })
4259
4325
  }
4326
+
4260
4327
  } else {
4261
4328
  this.setState({
4262
- loadingFace: false
4329
+ loadingFace: false,
4330
+ cardFailReason: result.message,
4331
+ cardResuly: 'fail',
4263
4332
  })
4264
4333
  this.messageClick('识别失败', 'error')
4265
4334
  }
4266
4335
  } catch (err) {
4267
4336
  this.setState({
4268
- loadingFace: false
4337
+ loadingFace: false,
4338
+ cardFailReason: err.response.message,
4339
+ cardResuly: 'fail',
4269
4340
  })
4270
- this.messageClick('识别失败', 'error')
4341
+ // this.messageClick('识别失败', 'error')
4271
4342
  }
4272
4343
  }
4273
4344
  handleOkFacial = () => {
4274
4345
  if (this.state.faceCustomerType == 2) {
4275
4346
  if (this.state.IDtypeFrontOrBack == '请截取证件正面') {
4276
- this.setState({
4277
- facialImg: ocrImage,
4278
- IDtypeFrontOrBack: '请截取证件反面',
4279
- isFaceImage: false,
4280
- })
4347
+ if(this.state.documentType == 'PASSPORT_CARD') {
4348
+ this.setState({
4349
+ loadingFace: true
4350
+ })
4351
+ this.ocrCallback(1)
4352
+ } else {
4353
+ this.setState({
4354
+ facialImg: ocrImage,
4355
+ IDtypeFrontOrBack: '请截取证件反面',
4356
+ isFaceImage: false,
4357
+ })
4358
+ }
4359
+
4281
4360
  } else if (this.state.IDtypeFrontOrBack == '请截取证件反面') {
4282
4361
  this.setState({
4283
4362
  loadingFace: true
@@ -4312,6 +4391,46 @@ class Video extends Component {
4312
4391
  isModalVisibleFacial: false
4313
4392
  })
4314
4393
  };
4394
+ newFaceClick=()=>{
4395
+ callNimIM('sendCustomCmdMsg', {
4396
+ customId: this.state.imRoomId,
4397
+ content: JSON.stringify({
4398
+ 'typeId': 1020,
4399
+ 'sessionId': this.state.sessionId,
4400
+ 'cameraState': 2, // 1--打开前置 2--打开后置
4401
+ "userId": this.state.faceCustomerUid
4402
+ })
4403
+ });
4404
+ this.setState({
4405
+ clickedFacial: false,
4406
+ clickedOcr: false,
4407
+ isFaceImage: false,
4408
+ facialImg: ocrImage,
4409
+ disabledIdCard: true,
4410
+ IDtypeFrontOrBack: '请截取证件正面',
4411
+ facialImgFront: '',
4412
+ facialImgBack: '',
4413
+ faceResuly: '',
4414
+ idCardNumber: '',
4415
+ idCardName: '',
4416
+ cardFailReason: '',
4417
+ cardResuly: '',
4418
+ }, () => {
4419
+ const videoMedia = document.getElementById('publish_video_2');
4420
+ videoMedia.srcObject = document.getElementById(videoName).srcObject
4421
+ })
4422
+ }
4423
+ ReIdentification = () =>{
4424
+ this.setState({
4425
+ faceResuly: '',
4426
+ facialImg: ocrImage,
4427
+ isFaceImage: false
4428
+ },()=>{
4429
+ const videoMedia = document.getElementById('publish_video_2');
4430
+ videoMedia.srcObject = document.getElementById(videoName).srcObject
4431
+ })
4432
+
4433
+ }
4315
4434
  // 坐席签字
4316
4435
  transcribingClick = () => {
4317
4436
  };
@@ -4458,6 +4577,8 @@ class Video extends Component {
4458
4577
  faceResuly: '',
4459
4578
  idCardNumber: '',
4460
4579
  idCardName: '',
4580
+ cardFailReason: '',
4581
+ cardResuly: '',
4461
4582
  }, () => {
4462
4583
 
4463
4584
 
@@ -4466,6 +4587,9 @@ class Video extends Component {
4466
4587
  }, () => {
4467
4588
  const videoMedia = document.getElementById('publish_video_2');
4468
4589
  videoMedia.srcObject = document.getElementById(videoName).srcObject
4590
+ videoMedia.onloadeddata = function() {
4591
+ console.log('onerror')
4592
+ }
4469
4593
  })
4470
4594
  })
4471
4595
  }
@@ -4583,6 +4707,8 @@ class Video extends Component {
4583
4707
  }
4584
4708
  this.setState({
4585
4709
  videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户1'
4710
+ },()=>{
4711
+ this.videoListClick()
4586
4712
  })
4587
4713
  }
4588
4714
  if (document.getElementById('video2').name == sid) {
@@ -4591,6 +4717,8 @@ class Video extends Component {
4591
4717
  }
4592
4718
  this.setState({
4593
4719
  videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户2'
4720
+ },()=>{
4721
+ this.videoListClick()
4594
4722
  })
4595
4723
  } if (document.getElementById('video3').name == sid) {
4596
4724
  if (typeIntranet && typeIntranet == 2) {
@@ -4598,6 +4726,8 @@ class Video extends Component {
4598
4726
  }
4599
4727
  this.setState({
4600
4728
  videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户3'
4729
+ },()=>{
4730
+ this.videoListClick()
4601
4731
  })
4602
4732
  } if (document.getElementById('video4').name == sid) {
4603
4733
  if (typeIntranet && typeIntranet == 2) {
@@ -4605,6 +4735,8 @@ class Video extends Component {
4605
4735
  }
4606
4736
  this.setState({
4607
4737
  videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户4'
4738
+ },()=>{
4739
+ this.videoListClick()
4608
4740
  })
4609
4741
  } if (document.getElementById('video5').name == sid) {
4610
4742
  if (typeIntranet && typeIntranet == 2) {
@@ -4612,6 +4744,8 @@ class Video extends Component {
4612
4744
  }
4613
4745
  this.setState({
4614
4746
  videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户5'
4747
+ },()=>{
4748
+ this.videoListClick()
4615
4749
  })
4616
4750
  } if (document.getElementById('video6').name == sid) {
4617
4751
  if (typeIntranet && typeIntranet == 2) {
@@ -4619,6 +4753,8 @@ class Video extends Component {
4619
4753
  }
4620
4754
  this.setState({
4621
4755
  videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户6'
4756
+ },()=>{
4757
+ this.videoListClick()
4622
4758
  })
4623
4759
  }
4624
4760
  if (document.getElementById('video7').name == sid) {
@@ -4627,6 +4763,8 @@ class Video extends Component {
4627
4763
  }
4628
4764
  this.setState({
4629
4765
  videoSevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户7'
4766
+ },()=>{
4767
+ this.videoListClick()
4630
4768
  })
4631
4769
  } if (document.getElementById('video8').name == sid) {
4632
4770
  if (typeIntranet && typeIntranet == 2) {
@@ -4634,6 +4772,8 @@ class Video extends Component {
4634
4772
  }
4635
4773
  this.setState({
4636
4774
  videoEightName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户8'
4775
+ },()=>{
4776
+ this.videoListClick()
4637
4777
  })
4638
4778
  } if (document.getElementById('video9').name == sid) {
4639
4779
  if (typeIntranet && typeIntranet == 2) {
@@ -4641,6 +4781,8 @@ class Video extends Component {
4641
4781
  }
4642
4782
  this.setState({
4643
4783
  videoNineName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户9'
4784
+ },()=>{
4785
+ this.videoListClick()
4644
4786
  })
4645
4787
  } if (document.getElementById('video10').name == sid) {
4646
4788
  if (typeIntranet && typeIntranet == 2) {
@@ -4648,6 +4790,8 @@ class Video extends Component {
4648
4790
  }
4649
4791
  this.setState({
4650
4792
  videoTenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户10'
4793
+ },()=>{
4794
+ this.videoListClick()
4651
4795
  })
4652
4796
  } if (document.getElementById('video11').name == sid) {
4653
4797
  if (typeIntranet && typeIntranet == 2) {
@@ -4655,6 +4799,8 @@ class Video extends Component {
4655
4799
  }
4656
4800
  this.setState({
4657
4801
  videoElevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户11'
4802
+ },()=>{
4803
+ this.videoListClick()
4658
4804
  })
4659
4805
  } if (document.getElementById('video12').name == sid) {
4660
4806
  if (typeIntranet && typeIntranet == 2) {
@@ -4662,6 +4808,8 @@ class Video extends Component {
4662
4808
  }
4663
4809
  this.setState({
4664
4810
  videoTwelveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户12'
4811
+ },()=>{
4812
+ this.videoListClick()
4665
4813
  })
4666
4814
  }
4667
4815
  if (this.state.isPictureInPicture) {
@@ -5251,6 +5399,14 @@ class Video extends Component {
5251
5399
  isModalVisibleCustomer: false
5252
5400
  })
5253
5401
  }
5402
+ goBackSelectCustomer=()=>{
5403
+ this.setState({
5404
+ documentType: '',
5405
+ isCustomerSelect: true,
5406
+ customerSelect: this.state.customerList.length == 1 ? 0 : '',
5407
+ customerTitleName: '客户身份识别'
5408
+ })
5409
+ }
5254
5410
  handleOkCustomer = () => {
5255
5411
  if (this.state.isCustomerSelect) {
5256
5412
  if (this.state.customerList[this.state.customerSelect].tourist) {
@@ -5258,6 +5414,7 @@ class Video extends Component {
5258
5414
  } else {
5259
5415
  this.setState({
5260
5416
  isCustomerSelect: false,
5417
+ documentError: '',
5261
5418
  customerTitleName: this.state.customerList[this.state.customerSelect].name
5262
5419
  })
5263
5420
  }
@@ -5266,12 +5423,16 @@ class Video extends Component {
5266
5423
  this.getAuthorizeResult(this.state.customerList[this.state.customerSelect].customId).then((res) => {
5267
5424
  if (res) {
5268
5425
  this.customerFaceClick(this.state.customerList[this.state.customerSelect])
5426
+ this.setState({
5427
+ isModalVisibleCustomer: false,
5428
+ })
5269
5429
  } else {
5270
- if (this.state.documentType == 0) {
5430
+ if (this.state.documentType == 'ID_CARD') {
5271
5431
  this.test_controller.SendTextMsg(JSON.stringify({
5272
5432
  'typeId': 3300,
5273
5433
  "data": {
5274
5434
  'sessionId': this.state.sessionId,
5435
+ 'userId': this.state.customerList[this.state.customerSelect].customId,
5275
5436
  'title': '为了有效确认客户身份,请您配合进行我行的身份识别和核验。请您阅读以下内容,若您同意,请您之后在摄像头前出示您的身份证件,我行将对您的身份证件拍照并采集证件信息;同时,我行会对您进行脸部拍照,采集您的脸部图像。',
5276
5437
  'list': [
5277
5438
  {
@@ -5286,11 +5447,12 @@ class Video extends Component {
5286
5447
  }
5287
5448
 
5288
5449
  }))
5289
- } else if (this.state.documentType == 1) {
5450
+ } else {
5290
5451
  this.test_controller.SendTextMsg(JSON.stringify({
5291
5452
  'typeId': 3300,
5292
5453
  "data": {
5293
5454
  'sessionId': this.state.sessionId,
5455
+ 'userId': this.state.customerList[this.state.customerSelect].customId,
5294
5456
  'title': '为了有效确认客户身份,请您配合进行我行的身份识别。请您阅读以下内容,若您同意,请您之后在摄像头前出示您的身份证件,我行将对您的身份证件拍照并采集证件信息;',
5295
5457
  'list': [
5296
5458
  {
@@ -5306,16 +5468,14 @@ class Video extends Component {
5306
5468
 
5307
5469
  }
5308
5470
  })
5309
- this.setState({
5310
- isModalVisibleCustomer: false,
5311
- })
5312
5471
  // this.customerFaceClick(this.state.customerList[this.state.customerSelect])
5313
5472
  }
5314
5473
 
5315
5474
  }
5316
5475
  onChangeDocumentType = (e) => {
5317
5476
  this.setState({
5318
- documentType: e.target.value
5477
+ documentType: e.target.value,
5478
+ certificateType: e.target.value
5319
5479
  })
5320
5480
  }
5321
5481
  getAuthorizeResult = async (appAccount) => {
@@ -5357,6 +5517,19 @@ class Video extends Component {
5357
5517
  console.log(err)
5358
5518
  }
5359
5519
  }
5520
+ videoListClick=()=>{
5521
+ // console.log(Math.trunc(document.getElementById("videoList").getBoundingClientRect().height),document.getElementById("videoList").scrollHeight)
5522
+ // if(Math.trunc(document.getElementById("videoList").getBoundingClientRect().height) >= document.getElementById("videoList").scrollHeight && this.state.isVideoList) {
5523
+ // this.setState({
5524
+ // isVideoList: false
5525
+ // })
5526
+
5527
+ // } else if (Math.trunc(document.getElementById("videoList").getBoundingClientRect().height) < document.getElementById("videoList").scrollHeight && !this.state.isVideoList) {
5528
+ // this.setState({
5529
+ // isVideoList: true
5530
+ // })
5531
+ // }
5532
+ }
5360
5533
  render() {
5361
5534
  const { meetingInfo, isTranscribing } = this.props
5362
5535
  var pdfChildren
@@ -5561,9 +5734,9 @@ class Video extends Component {
5561
5734
 
5562
5735
  </div>
5563
5736
  </div>
5564
- <div className="wrapper" style={{ width: '20%', }}>
5737
+ <div id="videoList" className={`wrapper ${this.state.isVideoList? 'videoListClass': ''}`} style={{ width: '20%' }}>
5565
5738
  <div
5566
- className={`itemed`}
5739
+ className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5567
5740
  >
5568
5741
  <div className="publishVideoDiv">
5569
5742
 
@@ -5593,7 +5766,7 @@ class Video extends Component {
5593
5766
 
5594
5767
  </div>
5595
5768
  <div
5596
- className={`itemed`}
5769
+ className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5597
5770
  style={{ position: "relative", display: (this.state.videoOneName) ? '' : 'none' }}
5598
5771
  >
5599
5772
  {
@@ -5633,7 +5806,7 @@ class Video extends Component {
5633
5806
  </div>
5634
5807
  </div>
5635
5808
  </div>
5636
- <div className={`itemed`} style={{ display: (this.state.videoTwoName) ? '' : 'none', }}>
5809
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoTwoName) ? '' : 'none', }}>
5637
5810
  <video
5638
5811
  id="video2"
5639
5812
  autoPlay
@@ -5660,7 +5833,7 @@ class Video extends Component {
5660
5833
  </div>
5661
5834
  </div>
5662
5835
  </div>
5663
- <div className={`itemed`}
5836
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5664
5837
  style={{ display: (this.state.videoThreeName) ? '' : 'none' }}>
5665
5838
  <video
5666
5839
  id="video3"
@@ -5688,7 +5861,7 @@ class Video extends Component {
5688
5861
  </div>
5689
5862
  </div>
5690
5863
  </div>
5691
- <div className={`itemed`} style={{ display: (this.state.videoFourName) ? '' : 'none', }}>
5864
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoFourName) ? '' : 'none', }}>
5692
5865
  <video
5693
5866
  id="video4"
5694
5867
  autoPlay
@@ -5715,7 +5888,7 @@ class Video extends Component {
5715
5888
  </div>
5716
5889
  </div>
5717
5890
  </div>
5718
- <div className={`itemed`}
5891
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5719
5892
  style={{ display: (this.state.videoFiveName) ? '' : 'none' }}>
5720
5893
  <video
5721
5894
  id="video5"
@@ -5743,7 +5916,7 @@ class Video extends Component {
5743
5916
  </div>
5744
5917
  </div>
5745
5918
  </div>
5746
- <div className={`itemed`} style={{ display: (this.state.videoSixName) ? '' : 'none', }}>
5919
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoSixName) ? '' : 'none', }}>
5747
5920
  <video
5748
5921
  id="video6"
5749
5922
  autoPlay
@@ -5772,7 +5945,7 @@ class Video extends Component {
5772
5945
 
5773
5946
  </div>
5774
5947
  <div
5775
- className={`itemed`}
5948
+ className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5776
5949
  style={{ position: "relative", display: (this.state.videoSevenName) ? '' : 'none' }}
5777
5950
  >
5778
5951
  {
@@ -5812,7 +5985,7 @@ class Video extends Component {
5812
5985
  </div>
5813
5986
  </div>
5814
5987
  </div>
5815
- <div className={`itemed`} style={{ display: (this.state.videoEightName) ? '' : 'none', }}>
5988
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoEightName) ? '' : 'none', }}>
5816
5989
  <video
5817
5990
  id="video8"
5818
5991
  autoPlay
@@ -5839,7 +6012,7 @@ class Video extends Component {
5839
6012
  </div>
5840
6013
  </div>
5841
6014
  </div>
5842
- <div className={`itemed`} style={{ display: (this.state.videoNineName) ? '' : 'none', }}>
6015
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoNineName) ? '' : 'none', }}>
5843
6016
  <video
5844
6017
  id="video9"
5845
6018
  autoPlay
@@ -5867,7 +6040,7 @@ class Video extends Component {
5867
6040
  </div>
5868
6041
 
5869
6042
  </div>
5870
- <div className={`itemed`}
6043
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5871
6044
  style={{ display: (this.state.videoTenName) ? '' : 'none' }}>
5872
6045
  <video
5873
6046
  id="video10"
@@ -5895,7 +6068,7 @@ class Video extends Component {
5895
6068
  </div>
5896
6069
  </div>
5897
6070
  </div>
5898
- <div className={`itemed`} style={{ display: (this.state.videoElevenName) ? '' : 'none', }}>
6071
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoElevenName) ? '' : 'none', }}>
5899
6072
  <video
5900
6073
  id="video11"
5901
6074
  autoPlay
@@ -5922,7 +6095,7 @@ class Video extends Component {
5922
6095
  </div>
5923
6096
  </div>
5924
6097
  </div>
5925
- <div className={`itemed`}
6098
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5926
6099
  style={{ display: (this.state.videoTwelveName) ? '' : 'none' }}>
5927
6100
  <video
5928
6101
  id="video12"
@@ -6005,9 +6178,8 @@ class Video extends Component {
6005
6178
  ]}>
6006
6179
  <div className='endModal'>是否要结束并退出会议?</div>
6007
6180
  </Modal>
6008
-
6009
- <Modal title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
6010
- !this.state.idCardName && this.state.faceResuly == '' &&<div key='facial'>
6181
+ <Modal title={this.state.titleModal} width={650} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
6182
+ this.state.cardResuly == '' && this.state.faceResuly == '' &&<div key='facial'>
6011
6183
  <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
6012
6184
  <Button className="modelButtonCancel" onClick={this.sgsinImage}>截图</Button>
6013
6185
  {
@@ -6018,16 +6190,26 @@ class Video extends Component {
6018
6190
  }
6019
6191
 
6020
6192
  </div>,
6021
- !this.state.idCardName && this.state.faceResuly != '' &&<div key='facial'>
6193
+ this.state.cardResuly == '' && this.state.faceResuly != '' &&<div key='facial'>
6194
+ {
6195
+ this.state.faceResuly == 'fail' && <Button className="modelButtonOk" type="primary" danger onClick={this.ReIdentification}>重新识别</Button>
6196
+ }
6197
+ {
6198
+ this.state.faceResuly == 'success' && <Button className="modelButtonNo" type="primary" danger>重新识别</Button>
6199
+ }
6022
6200
  <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>完成</Button>
6023
6201
 
6024
6202
  </div>,
6025
- this.state.idCardName && <div key='facial'>
6203
+ this.state.cardResuly == 'success' && <div key='facial'>
6026
6204
  {
6027
6205
  this.state.disabledIdCard && <Button className="modelButtonFaceOk" danger onClick={(e) => this.updateConfirm('noFace')}>修改</Button>
6028
6206
  }
6029
6207
  <Button className="modelButtonFaceOk" danger onClick={(e) => this.confirmCallback('face')}>完成并发起人脸识别</Button>
6030
6208
  <Button className="modelButtonOk" type="primary" danger onClick={(e) => this.confirmCallback('noFace')}>完成</Button>
6209
+ </div>,
6210
+ this.state.cardResuly == 'fail' && <div key='facial'>
6211
+ <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
6212
+ <Button className="modelButtonOk" type="primary" danger onClick={this.newFaceClick}>返回重试</Button>
6031
6213
  </div>
6032
6214
  ]}>
6033
6215
  <Spin spinning={this.state.loadingFace} tip="识别中...">
@@ -6038,7 +6220,7 @@ class Video extends Component {
6038
6220
  <Option value="2">反面</Option>
6039
6221
  </Select>
6040
6222
  } */}
6041
- {!this.state.idCardName && <div className='faceCardImg'>
6223
+ {this.state.cardResuly == '' && <div className='faceCardImg'>
6042
6224
 
6043
6225
  {
6044
6226
  this.state.titleModal == 'OCR识别' && <div className='titleDiv'>{this.state.IDtypeFrontOrBack}</div>
@@ -6057,14 +6239,24 @@ class Video extends Component {
6057
6239
  </div>
6058
6240
  }
6059
6241
  {
6060
- this.state.idCardName && <div className='resuleCard'>
6061
- <div>
6242
+ this.state.cardResuly != '' && <div className='resuleCard'>
6243
+ {
6244
+ this.state.cardResuly == 'success' && <div className='successClassFace'>
6245
+ <img src={require("../../assets/img/tooltips1_pass.png").default} alt="" ></img>
6246
+
6247
+ 识别成功</div>
6248
+ }
6249
+ {
6250
+ this.state.cardResuly == 'fail' && <div className='errorClassFace'>
6251
+ <img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>识别失败--{this.state.cardFailReason}</div>
6252
+ }
6253
+ <div className='imgDIV'>
6062
6254
  <img className="faceImgCard" src={this.state.facialImgFront} alt=""></img>
6063
6255
  <img className="faceImgCard" src={this.state.facialImgBack} alt=""></img>
6064
6256
  </div>
6065
6257
  <div>证件信息确认</div>
6066
6258
  <div><span>客户姓名</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardName} onChange={this.handleChangeIdCardName} /></div>
6067
- <div><span>身份证号</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardNumber} onChange={this.handleChangeIdCardNumber} /></div>
6259
+ <div><span>证件号码</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardNumber} onChange={this.handleChangeIdCardNumber} /></div>
6068
6260
  <div><span>有效期</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.certificateValidity} onChange={this.handleChangeCertificateValidity} /></div>
6069
6261
  </div>
6070
6262
  }
@@ -6078,18 +6270,17 @@ class Video extends Component {
6078
6270
  }
6079
6271
  {
6080
6272
  this.state.faceResuly == 'fail' && <div className='errorClassFace'>
6081
- <img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>人脸识别失败</div>
6273
+ <img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>人脸识别失败--{this.state.faceFailReason}</div>
6082
6274
  }
6083
6275
  <div><span>客户姓名</span> <input disabled type="text" value={this.state.idCardNameFace}/></div>
6084
6276
  <div><span>身份证号</span> <input disabled type="text" value={this.state.idCardNumberFace}/></div>
6085
- <div><span>有效期</span> <input disabled type="text" value={this.state.certificateValidity}/></div>
6277
+ <div><span>有效期</span> <input disabled type="text" value={this.state.certificateValidityFace}/></div>
6086
6278
  </div>
6087
6279
  }
6088
6280
 
6089
6281
  </div>
6090
6282
  </Spin>
6091
6283
  </Modal>
6092
-
6093
6284
  <Modal title="经理人员授权" closable={false} centered={true} visible={this.state.isModalVisibleSFP}
6094
6285
  footer={[
6095
6286
  <div key='end'>
@@ -6117,14 +6308,21 @@ class Video extends Component {
6117
6308
  </div>
6118
6309
  </Spin>
6119
6310
  </Modal>
6120
-
6121
-
6122
-
6123
6311
  <Modal title={this.state.customerTitleName} closable={false} centered={true} visible={this.state.isModalVisibleCustomer}
6124
6312
  footer={[
6125
6313
  <div key='end'>
6314
+
6315
+
6316
+ {
6317
+ !this.state.isCustomerSelect && <Button className="modelButtonOk" type="primary" danger onClick={this.goBackSelectCustomer}>上一步</Button>
6318
+ }
6126
6319
  <Button className="modelButtonCancel" onClick={this.handleCancelCustomer}>取消</Button>
6127
- <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkCustomer}>下一步</Button>
6320
+ {/* {
6321
+ this.state.customerSelect == '' && <Button className="modelButtonCancel">下一步</Button>
6322
+ } */}
6323
+ {
6324
+ <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkCustomer}>下一步</Button>
6325
+ }
6128
6326
  </div>
6129
6327
  ]}>
6130
6328
  <div>
@@ -6139,7 +6337,9 @@ class Video extends Component {
6139
6337
  <Space direction="vertical">
6140
6338
  {
6141
6339
  this.state.customerList.map((item, index) => {
6142
- return <Radio value={index}>{item.name}</Radio>
6340
+ // if(item.name.indexOf("访客") != -1) {
6341
+ return <Radio value={index}>{item.name}</Radio>
6342
+ // }
6143
6343
  })
6144
6344
  }
6145
6345
  </Space>
@@ -6149,14 +6349,23 @@ class Video extends Component {
6149
6349
  }
6150
6350
  {
6151
6351
  !this.state.isCustomerSelect && <div>
6352
+ {
6353
+ this.state.documentError != '' && <div className='errorClassFace'>
6354
+ <img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>{this.state.documentError}</div>
6355
+ }
6152
6356
  <div>
6153
6357
  请您确认您的身份证件类型
6154
6358
  </div>
6155
6359
  <div>
6156
6360
  <Radio.Group onChange={this.onChangeDocumentType} value={this.state.documentType}>
6157
6361
  <Space direction="vertical">
6158
- <Radio value={0}>身份证</Radio>
6159
- <Radio value={1}>护照:或台湾来往大陆通行证;或港澳来往大陆通行证或;外国人永久居住证;或港澳台居民居住证</Radio>
6362
+ <Radio value={'ID_CARD'}>身份证</Radio>
6363
+ <Radio value={'PASSPORT_CARD'}>护照</Radio>
6364
+ <Radio value={'TW_PASS_CARD'}>台湾来往大陆通行证</Radio>
6365
+ <Radio value={'HK_MO_PASS_CARD'}>港澳来往大陆通行证</Radio>
6366
+ <Radio value={'HK_MO_RESIDENCE_CARD'}>港澳台居民居住证</Radio>
6367
+ <Radio value={'TW_RESIDENCE_CARD'}>台湾居民居住证</Radio>
6368
+ <Radio value={'FOREIGNER_RESIDENCE_CARD'}>外国人永久居住证</Radio>
6160
6369
  </Space>
6161
6370
  </Radio.Group>
6162
6371
  </div>