react_hsbc_teller 1.8.8 → 1.9.1

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.8&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.1&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,10 +828,12 @@ class Video extends Component {
820
828
  if (err.status == 502 || err.status == 404) {
821
829
  this.roomCallBack(2, '连接服务器失败', 'SYS-02')
822
830
  }
831
+ console.log(err)
823
832
  this.setState({
824
833
  loadingFace: false,
825
834
  faceResuly: 'fail',
826
- isFaceImage: ''
835
+ isFaceImage: '',
836
+ faceFailReason: err.message
827
837
  })
828
838
  console.error('err', err);
829
839
  }
@@ -869,7 +879,7 @@ class Video extends Component {
869
879
  list.push({
870
880
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
871
881
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
872
- name: this.state.videoOneName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
882
+ name: this.state.videoOneName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
873
883
  tourist: false
874
884
  })
875
885
  }
@@ -879,7 +889,7 @@ class Video extends Component {
879
889
  list.push({
880
890
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
881
891
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
882
- name: this.state.videoTwoName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
892
+ name: this.state.videoTwoName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
883
893
  tourist: false
884
894
  })
885
895
  }
@@ -889,7 +899,7 @@ class Video extends Component {
889
899
  list.push({
890
900
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
891
901
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
892
- name: this.state.videoThreeName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
902
+ name: this.state.videoThreeName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
893
903
  tourist: false
894
904
  })
895
905
  }
@@ -899,7 +909,7 @@ class Video extends Component {
899
909
  list.push({
900
910
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
901
911
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
902
- name: this.state.videoFourName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
912
+ name: this.state.videoFourName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
903
913
  tourist: false
904
914
  })
905
915
  }
@@ -909,7 +919,7 @@ class Video extends Component {
909
919
  list.push({
910
920
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
911
921
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
912
- name: this.state.videoFiveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
922
+ name: this.state.videoFiveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
913
923
  tourist: false
914
924
  })
915
925
  }
@@ -918,7 +928,7 @@ class Video extends Component {
918
928
  list.push({
919
929
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
920
930
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
921
- name: this.state.videoSixName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
931
+ name: this.state.videoSixName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
922
932
  tourist: false
923
933
  })
924
934
  }
@@ -926,7 +936,7 @@ class Video extends Component {
926
936
  list.push({
927
937
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
928
938
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
929
- name: this.state.videoSevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
939
+ name: this.state.videoSevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
930
940
  tourist: false
931
941
  })
932
942
  }
@@ -934,7 +944,7 @@ class Video extends Component {
934
944
  list.push({
935
945
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
936
946
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
937
- name: this.state.videoEightName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
947
+ name: this.state.videoEightName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
938
948
  tourist: false
939
949
  })
940
950
  }
@@ -942,7 +952,7 @@ class Video extends Component {
942
952
  list.push({
943
953
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
944
954
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
945
- name: this.state.videoNineName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
955
+ name: this.state.videoNineName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
946
956
  tourist: false
947
957
  })
948
958
  }
@@ -950,7 +960,7 @@ class Video extends Component {
950
960
  list.push({
951
961
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
952
962
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
953
- name: this.state.videoTenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
963
+ name: this.state.videoTenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
954
964
  tourist: false
955
965
  })
956
966
  }
@@ -958,7 +968,7 @@ class Video extends Component {
958
968
  list.push({
959
969
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
960
970
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
961
- name: this.state.videoElevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
971
+ name: this.state.videoElevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
962
972
  tourist: false
963
973
  })
964
974
  }
@@ -966,7 +976,7 @@ class Video extends Component {
966
976
  list.push({
967
977
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
968
978
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
969
- name: this.state.videoTwelveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : '--OCR'),
979
+ name: this.state.videoTwelveName + (this.state.faceCustomerType == 1 ? '--人脸识别' : ''),
970
980
  tourist: false
971
981
  })
972
982
  }
@@ -976,11 +986,12 @@ class Video extends Component {
976
986
  })
977
987
  if (list.length > 0) {
978
988
  if (val == 'ocr') {
989
+ console.log('this.state.customerList.length',list.length)
979
990
  this.setState({
980
991
  documentType: '',
981
992
  isModalVisibleCustomer: true,
982
993
  isCustomerSelect: true,
983
- customerSelect: '',
994
+ customerSelect: list.length == 1 ? 0 : '',
984
995
  customerTitleName: '客户身份识别'
985
996
  })
986
997
  } else if (val == 'facial') {
@@ -2208,9 +2219,16 @@ class Video extends Component {
2208
2219
  };
2209
2220
  this.test_controller.OnSendTextMsgSucc = (msgId) => {
2210
2221
  console.log('发送成功', msgId)
2222
+ this.setState({
2223
+ documentError: '',
2224
+ isModalVisibleCustomer: false,
2225
+ })
2211
2226
  }
2212
2227
  this.test_controller.OnSendTextMsgFailed = (msgId, code, msg) => {
2213
2228
  console.log('发送失败', msgId, code, msg)
2229
+ this.setState({
2230
+ documentError: '推送授权白板失败,请重试'
2231
+ })
2214
2232
  }
2215
2233
  this.test_controller.OnReceiveTextMsg = (uid, msg) => {
2216
2234
  console.log('收到手机端消息', uid, msg, JSON.parse(msg).typeId, JSON.parse(msg).data.sessionId, this.state.sessionId)
@@ -2397,6 +2415,7 @@ class Video extends Component {
2397
2415
  // 订阅媒体流成功
2398
2416
  this.test_controller.OnSubscribeSucc = (feed, sid) => {
2399
2417
  console.log('订阅媒体流成功', feed, sid);
2418
+
2400
2419
  this.appGetUsername(sid)
2401
2420
  console.log(muteJson, muteJson.size)
2402
2421
  if (muteJson.size > 0) {
@@ -3016,6 +3035,8 @@ class Video extends Component {
3016
3035
  videoOneName: '',
3017
3036
  voiceVideoOne: false,
3018
3037
  noVideoOne: false
3038
+ },()=>{
3039
+ this.videoListClick()
3019
3040
  })
3020
3041
  }
3021
3042
  if (!document.getElementById("video2").name) {
@@ -3024,6 +3045,8 @@ class Video extends Component {
3024
3045
  videoTwoName: '',
3025
3046
  voiceVideoTwo: false,
3026
3047
  noVideoTwo: false
3048
+ },()=>{
3049
+ this.videoListClick()
3027
3050
  })
3028
3051
  }
3029
3052
  if (!document.getElementById("video3").name) {
@@ -3032,6 +3055,8 @@ class Video extends Component {
3032
3055
  videoThreeName: '',
3033
3056
  voiceVideoThree: false,
3034
3057
  noVideoThree: false
3058
+ },()=>{
3059
+ this.videoListClick()
3035
3060
  })
3036
3061
  }
3037
3062
  if (!document.getElementById("video4").name) {
@@ -3040,6 +3065,8 @@ class Video extends Component {
3040
3065
  videoFourName: '',
3041
3066
  voiceVideoFour: false,
3042
3067
  noVideoFour: false
3068
+ },()=>{
3069
+ this.videoListClick()
3043
3070
  })
3044
3071
  }
3045
3072
  if (!document.getElementById("video5").name) {
@@ -3048,6 +3075,8 @@ class Video extends Component {
3048
3075
  videoFiveName: '',
3049
3076
  voiceVideoFive: false,
3050
3077
  noVideoFive: false
3078
+ },()=>{
3079
+ this.videoListClick()
3051
3080
  })
3052
3081
  }
3053
3082
  if (!document.getElementById("video6").name) {
@@ -3056,6 +3085,8 @@ class Video extends Component {
3056
3085
  videoSixName: '',
3057
3086
  voiceVideoSix: false,
3058
3087
  noVideoSix: false
3088
+ },()=>{
3089
+ this.videoListClick()
3059
3090
  })
3060
3091
  }
3061
3092
 
@@ -3065,6 +3096,8 @@ class Video extends Component {
3065
3096
  videoSevenName: '',
3066
3097
  voiceVideoSeven: false,
3067
3098
  noVideoSeven: false
3099
+ },()=>{
3100
+ this.videoListClick()
3068
3101
  })
3069
3102
  }
3070
3103
  if (!document.getElementById("video8").name) {
@@ -3073,6 +3106,8 @@ class Video extends Component {
3073
3106
  videoEightName: '',
3074
3107
  voiceVideoEight: false,
3075
3108
  noVideoEight: false
3109
+ },()=>{
3110
+ this.videoListClick()
3076
3111
  })
3077
3112
  }
3078
3113
  if (!document.getElementById("video9").name) {
@@ -3081,6 +3116,8 @@ class Video extends Component {
3081
3116
  videoNineName: '',
3082
3117
  voiceVideoNine: false,
3083
3118
  noVideoNine: false
3119
+ },()=>{
3120
+ this.videoListClick()
3084
3121
  })
3085
3122
  }
3086
3123
  if (!document.getElementById("video10").name) {
@@ -3089,6 +3126,8 @@ class Video extends Component {
3089
3126
  videoTenName: '',
3090
3127
  voiceVideoTen: false,
3091
3128
  noVideoTen: false
3129
+ },()=>{
3130
+ this.videoListClick()
3092
3131
  })
3093
3132
  }
3094
3133
  if (!document.getElementById("video11").name) {
@@ -3097,6 +3136,8 @@ class Video extends Component {
3097
3136
  videoElevenName: '',
3098
3137
  voiceVideoEleven: false,
3099
3138
  noVideoEleven: false
3139
+ },()=>{
3140
+ this.videoListClick()
3100
3141
  })
3101
3142
  }
3102
3143
  if (!document.getElementById("video12").name) {
@@ -3105,6 +3146,8 @@ class Video extends Component {
3105
3146
  videoTwelveName: '',
3106
3147
  voiceVideoTwelve: false,
3107
3148
  noVideoTwelve: false
3149
+ },()=>{
3150
+ this.videoListClick()
3108
3151
  })
3109
3152
  }
3110
3153
  this.state.analyserData.delete(sid)
@@ -3794,7 +3837,7 @@ class Video extends Component {
3794
3837
  }
3795
3838
  }
3796
3839
  componentWillMount() {
3797
- console.log('hsbc_teller_sdk', '1.8.8')
3840
+ console.log('hsbc_teller_sdk', '1.9.1')
3798
3841
  if (this.props.sessionId) {
3799
3842
  this.getRoomStatus({
3800
3843
  sessionId: this.props.sessionId
@@ -4186,13 +4229,14 @@ class Video extends Component {
4186
4229
  this.setState({
4187
4230
  idCardNameFace: this.state.idCardName,
4188
4231
  idCardNumberFace: this.state.idCardNumber,
4189
-
4232
+ certificateValidityFace: this.state.certificateValidity
4190
4233
  },()=>{
4191
4234
  this.setState({
4192
4235
  isModalVisibleFacial: false,
4236
+ cardResuly: '',
4193
4237
  idCardNumber: '',
4194
4238
  idCardName: '',
4195
- // certificateValidity: '',
4239
+ certificateValidity: '',
4196
4240
  })
4197
4241
  })
4198
4242
  } else {
@@ -4200,10 +4244,12 @@ class Video extends Component {
4200
4244
  this.setState({
4201
4245
  idCardNameFace: this.state.idCardName,
4202
4246
  idCardNumberFace: this.state.idCardNumber,
4203
-
4247
+ certificateValidityFace: this.state.certificateValidity
4204
4248
  },()=>{
4205
4249
  this.state.faceCustomerType = 1
4206
4250
  this.setState({
4251
+ cardResuly: '',
4252
+ certificateValidity: '',
4207
4253
  idCardNumber: '',
4208
4254
  idCardName: '',
4209
4255
  titleModal: '人脸识别',
@@ -4232,8 +4278,9 @@ class Video extends Component {
4232
4278
  staffId: this.props.tellerAccount,
4233
4279
  activityId: this.props.businessNumber,
4234
4280
  appAccount: this.state.faceCustomerUid,
4281
+ certificateType: this.state.certificateType,
4235
4282
  fileBase64: val == 1 ? this.state.facialImgFront.replace(/^data:image\/\w+;base64,/, "") : this.state.facialImgBack.replace(/^data:image\/\w+;base64,/, ""),
4236
- type: val
4283
+ type: val == 1 ? true : false
4237
4284
  });
4238
4285
  if (result.code == 200) {
4239
4286
  console.log('ocrCallback', result.data)
@@ -4248,41 +4295,68 @@ class Video extends Component {
4248
4295
  "userId": this.state.faceCustomerUid
4249
4296
  })
4250
4297
  });
4251
- 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') {
4252
4317
  this.setState({
4253
- // isModalVisibleFacial: false
4254
4318
  idCardNumber: result.data.idCardNumber,
4255
- idCardName: result.data.idCardName
4256
- })
4257
- this.ocrCallback(2)
4258
- } else if (result.data.side == 'back') {
4259
- console.log(result.data.startDate, result.data.endDate)
4260
- this.setState({
4319
+ idCardName: result.data.idCardName,
4261
4320
  certificateValidity: result.data.startDate + '-' + result.data.endDate,
4262
- loadingFace: false
4321
+ loadingFace: false,
4322
+ cardFailReason: '',
4323
+ cardResuly: 'success',
4263
4324
  })
4264
4325
  }
4326
+
4265
4327
  } else {
4266
4328
  this.setState({
4267
- loadingFace: false
4329
+ loadingFace: false,
4330
+ cardFailReason: result.message,
4331
+ cardResuly: 'fail',
4268
4332
  })
4269
4333
  this.messageClick('识别失败', 'error')
4270
4334
  }
4271
4335
  } catch (err) {
4272
4336
  this.setState({
4273
- loadingFace: false
4337
+ loadingFace: false,
4338
+ cardFailReason: err.response.message,
4339
+ cardResuly: 'fail',
4274
4340
  })
4275
- this.messageClick('识别失败', 'error')
4341
+ // this.messageClick('识别失败', 'error')
4276
4342
  }
4277
4343
  }
4278
4344
  handleOkFacial = () => {
4279
4345
  if (this.state.faceCustomerType == 2) {
4280
4346
  if (this.state.IDtypeFrontOrBack == '请截取证件正面') {
4281
- this.setState({
4282
- facialImg: ocrImage,
4283
- IDtypeFrontOrBack: '请截取证件反面',
4284
- isFaceImage: false,
4285
- })
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
+
4286
4360
  } else if (this.state.IDtypeFrontOrBack == '请截取证件反面') {
4287
4361
  this.setState({
4288
4362
  loadingFace: true
@@ -4317,6 +4391,46 @@ class Video extends Component {
4317
4391
  isModalVisibleFacial: false
4318
4392
  })
4319
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
+ }
4320
4434
  // 坐席签字
4321
4435
  transcribingClick = () => {
4322
4436
  };
@@ -4463,6 +4577,8 @@ class Video extends Component {
4463
4577
  faceResuly: '',
4464
4578
  idCardNumber: '',
4465
4579
  idCardName: '',
4580
+ cardFailReason: '',
4581
+ cardResuly: '',
4466
4582
  }, () => {
4467
4583
 
4468
4584
 
@@ -4471,6 +4587,9 @@ class Video extends Component {
4471
4587
  }, () => {
4472
4588
  const videoMedia = document.getElementById('publish_video_2');
4473
4589
  videoMedia.srcObject = document.getElementById(videoName).srcObject
4590
+ videoMedia.onloadeddata = function() {
4591
+ console.log('onerror')
4592
+ }
4474
4593
  })
4475
4594
  })
4476
4595
  }
@@ -4588,6 +4707,8 @@ class Video extends Component {
4588
4707
  }
4589
4708
  this.setState({
4590
4709
  videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户1'
4710
+ },()=>{
4711
+ this.videoListClick()
4591
4712
  })
4592
4713
  }
4593
4714
  if (document.getElementById('video2').name == sid) {
@@ -4596,6 +4717,8 @@ class Video extends Component {
4596
4717
  }
4597
4718
  this.setState({
4598
4719
  videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户2'
4720
+ },()=>{
4721
+ this.videoListClick()
4599
4722
  })
4600
4723
  } if (document.getElementById('video3').name == sid) {
4601
4724
  if (typeIntranet && typeIntranet == 2) {
@@ -4603,6 +4726,8 @@ class Video extends Component {
4603
4726
  }
4604
4727
  this.setState({
4605
4728
  videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户3'
4729
+ },()=>{
4730
+ this.videoListClick()
4606
4731
  })
4607
4732
  } if (document.getElementById('video4').name == sid) {
4608
4733
  if (typeIntranet && typeIntranet == 2) {
@@ -4610,6 +4735,8 @@ class Video extends Component {
4610
4735
  }
4611
4736
  this.setState({
4612
4737
  videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户4'
4738
+ },()=>{
4739
+ this.videoListClick()
4613
4740
  })
4614
4741
  } if (document.getElementById('video5').name == sid) {
4615
4742
  if (typeIntranet && typeIntranet == 2) {
@@ -4617,6 +4744,8 @@ class Video extends Component {
4617
4744
  }
4618
4745
  this.setState({
4619
4746
  videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户5'
4747
+ },()=>{
4748
+ this.videoListClick()
4620
4749
  })
4621
4750
  } if (document.getElementById('video6').name == sid) {
4622
4751
  if (typeIntranet && typeIntranet == 2) {
@@ -4624,6 +4753,8 @@ class Video extends Component {
4624
4753
  }
4625
4754
  this.setState({
4626
4755
  videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户6'
4756
+ },()=>{
4757
+ this.videoListClick()
4627
4758
  })
4628
4759
  }
4629
4760
  if (document.getElementById('video7').name == sid) {
@@ -4632,6 +4763,8 @@ class Video extends Component {
4632
4763
  }
4633
4764
  this.setState({
4634
4765
  videoSevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户7'
4766
+ },()=>{
4767
+ this.videoListClick()
4635
4768
  })
4636
4769
  } if (document.getElementById('video8').name == sid) {
4637
4770
  if (typeIntranet && typeIntranet == 2) {
@@ -4639,6 +4772,8 @@ class Video extends Component {
4639
4772
  }
4640
4773
  this.setState({
4641
4774
  videoEightName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户8'
4775
+ },()=>{
4776
+ this.videoListClick()
4642
4777
  })
4643
4778
  } if (document.getElementById('video9').name == sid) {
4644
4779
  if (typeIntranet && typeIntranet == 2) {
@@ -4646,6 +4781,8 @@ class Video extends Component {
4646
4781
  }
4647
4782
  this.setState({
4648
4783
  videoNineName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户9'
4784
+ },()=>{
4785
+ this.videoListClick()
4649
4786
  })
4650
4787
  } if (document.getElementById('video10').name == sid) {
4651
4788
  if (typeIntranet && typeIntranet == 2) {
@@ -4653,6 +4790,8 @@ class Video extends Component {
4653
4790
  }
4654
4791
  this.setState({
4655
4792
  videoTenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户10'
4793
+ },()=>{
4794
+ this.videoListClick()
4656
4795
  })
4657
4796
  } if (document.getElementById('video11').name == sid) {
4658
4797
  if (typeIntranet && typeIntranet == 2) {
@@ -4660,6 +4799,8 @@ class Video extends Component {
4660
4799
  }
4661
4800
  this.setState({
4662
4801
  videoElevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户11'
4802
+ },()=>{
4803
+ this.videoListClick()
4663
4804
  })
4664
4805
  } if (document.getElementById('video12').name == sid) {
4665
4806
  if (typeIntranet && typeIntranet == 2) {
@@ -4667,6 +4808,8 @@ class Video extends Component {
4667
4808
  }
4668
4809
  this.setState({
4669
4810
  videoTwelveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户12'
4811
+ },()=>{
4812
+ this.videoListClick()
4670
4813
  })
4671
4814
  }
4672
4815
  if (this.state.isPictureInPicture) {
@@ -5256,6 +5399,14 @@ class Video extends Component {
5256
5399
  isModalVisibleCustomer: false
5257
5400
  })
5258
5401
  }
5402
+ goBackSelectCustomer=()=>{
5403
+ this.setState({
5404
+ documentType: '',
5405
+ isCustomerSelect: true,
5406
+ customerSelect: this.state.customerList.length == 1 ? 0 : '',
5407
+ customerTitleName: '客户身份识别'
5408
+ })
5409
+ }
5259
5410
  handleOkCustomer = () => {
5260
5411
  if (this.state.isCustomerSelect) {
5261
5412
  if (this.state.customerList[this.state.customerSelect].tourist) {
@@ -5263,6 +5414,7 @@ class Video extends Component {
5263
5414
  } else {
5264
5415
  this.setState({
5265
5416
  isCustomerSelect: false,
5417
+ documentError: '',
5266
5418
  customerTitleName: this.state.customerList[this.state.customerSelect].name
5267
5419
  })
5268
5420
  }
@@ -5271,8 +5423,11 @@ class Video extends Component {
5271
5423
  this.getAuthorizeResult(this.state.customerList[this.state.customerSelect].customId).then((res) => {
5272
5424
  if (res) {
5273
5425
  this.customerFaceClick(this.state.customerList[this.state.customerSelect])
5426
+ this.setState({
5427
+ isModalVisibleCustomer: false,
5428
+ })
5274
5429
  } else {
5275
- if (this.state.documentType == 0) {
5430
+ if (this.state.documentType == 'ID_CARD') {
5276
5431
  this.test_controller.SendTextMsg(JSON.stringify({
5277
5432
  'typeId': 3300,
5278
5433
  "data": {
@@ -5292,7 +5447,7 @@ class Video extends Component {
5292
5447
  }
5293
5448
 
5294
5449
  }))
5295
- } else if (this.state.documentType == 1) {
5450
+ } else {
5296
5451
  this.test_controller.SendTextMsg(JSON.stringify({
5297
5452
  'typeId': 3300,
5298
5453
  "data": {
@@ -5313,16 +5468,14 @@ class Video extends Component {
5313
5468
 
5314
5469
  }
5315
5470
  })
5316
- this.setState({
5317
- isModalVisibleCustomer: false,
5318
- })
5319
5471
  // this.customerFaceClick(this.state.customerList[this.state.customerSelect])
5320
5472
  }
5321
5473
 
5322
5474
  }
5323
5475
  onChangeDocumentType = (e) => {
5324
5476
  this.setState({
5325
- documentType: e.target.value
5477
+ documentType: e.target.value,
5478
+ certificateType: e.target.value
5326
5479
  })
5327
5480
  }
5328
5481
  getAuthorizeResult = async (appAccount) => {
@@ -5349,9 +5502,9 @@ class Video extends Component {
5349
5502
  try {
5350
5503
  let result = await API.saveAuthorize({
5351
5504
  activityId: this.props.businessNumber,
5352
- authorizeType: this.state.documentType == 0 ? 'ID' : 'NID',
5505
+ authorizeType: this.state.documentType == 'ID_CARD' ? 'ID' : 'NID',
5353
5506
  appAccount: appAccount,
5354
- idCardAuthorize: this.state.documentType == 0 ? 'YES' : '',
5507
+ idCardAuthorize: this.state.documentType == 'ID_CARD' ? 'YES' : '',
5355
5508
  pictureAuthorize: 'YES'
5356
5509
  });
5357
5510
  console.log(result)
@@ -5364,6 +5517,19 @@ class Video extends Component {
5364
5517
  console.log(err)
5365
5518
  }
5366
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
+ }
5367
5533
  render() {
5368
5534
  const { meetingInfo, isTranscribing } = this.props
5369
5535
  var pdfChildren
@@ -5568,9 +5734,9 @@ class Video extends Component {
5568
5734
 
5569
5735
  </div>
5570
5736
  </div>
5571
- <div className="wrapper" style={{ width: '20%', }}>
5737
+ <div id="videoList" className={`wrapper ${this.state.isVideoList? 'videoListClass': ''}`} style={{ width: '20%' }}>
5572
5738
  <div
5573
- className={`itemed`}
5739
+ className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5574
5740
  >
5575
5741
  <div className="publishVideoDiv">
5576
5742
 
@@ -5600,7 +5766,7 @@ class Video extends Component {
5600
5766
 
5601
5767
  </div>
5602
5768
  <div
5603
- className={`itemed`}
5769
+ className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5604
5770
  style={{ position: "relative", display: (this.state.videoOneName) ? '' : 'none' }}
5605
5771
  >
5606
5772
  {
@@ -5640,7 +5806,7 @@ class Video extends Component {
5640
5806
  </div>
5641
5807
  </div>
5642
5808
  </div>
5643
- <div className={`itemed`} style={{ display: (this.state.videoTwoName) ? '' : 'none', }}>
5809
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoTwoName) ? '' : 'none', }}>
5644
5810
  <video
5645
5811
  id="video2"
5646
5812
  autoPlay
@@ -5667,7 +5833,7 @@ class Video extends Component {
5667
5833
  </div>
5668
5834
  </div>
5669
5835
  </div>
5670
- <div className={`itemed`}
5836
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5671
5837
  style={{ display: (this.state.videoThreeName) ? '' : 'none' }}>
5672
5838
  <video
5673
5839
  id="video3"
@@ -5695,7 +5861,7 @@ class Video extends Component {
5695
5861
  </div>
5696
5862
  </div>
5697
5863
  </div>
5698
- <div className={`itemed`} style={{ display: (this.state.videoFourName) ? '' : 'none', }}>
5864
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoFourName) ? '' : 'none', }}>
5699
5865
  <video
5700
5866
  id="video4"
5701
5867
  autoPlay
@@ -5722,7 +5888,7 @@ class Video extends Component {
5722
5888
  </div>
5723
5889
  </div>
5724
5890
  </div>
5725
- <div className={`itemed`}
5891
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5726
5892
  style={{ display: (this.state.videoFiveName) ? '' : 'none' }}>
5727
5893
  <video
5728
5894
  id="video5"
@@ -5750,7 +5916,7 @@ class Video extends Component {
5750
5916
  </div>
5751
5917
  </div>
5752
5918
  </div>
5753
- <div className={`itemed`} style={{ display: (this.state.videoSixName) ? '' : 'none', }}>
5919
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoSixName) ? '' : 'none', }}>
5754
5920
  <video
5755
5921
  id="video6"
5756
5922
  autoPlay
@@ -5779,7 +5945,7 @@ class Video extends Component {
5779
5945
 
5780
5946
  </div>
5781
5947
  <div
5782
- className={`itemed`}
5948
+ className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5783
5949
  style={{ position: "relative", display: (this.state.videoSevenName) ? '' : 'none' }}
5784
5950
  >
5785
5951
  {
@@ -5819,7 +5985,7 @@ class Video extends Component {
5819
5985
  </div>
5820
5986
  </div>
5821
5987
  </div>
5822
- <div className={`itemed`} style={{ display: (this.state.videoEightName) ? '' : 'none', }}>
5988
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoEightName) ? '' : 'none', }}>
5823
5989
  <video
5824
5990
  id="video8"
5825
5991
  autoPlay
@@ -5846,7 +6012,7 @@ class Video extends Component {
5846
6012
  </div>
5847
6013
  </div>
5848
6014
  </div>
5849
- <div className={`itemed`} style={{ display: (this.state.videoNineName) ? '' : 'none', }}>
6015
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoNineName) ? '' : 'none', }}>
5850
6016
  <video
5851
6017
  id="video9"
5852
6018
  autoPlay
@@ -5874,7 +6040,7 @@ class Video extends Component {
5874
6040
  </div>
5875
6041
 
5876
6042
  </div>
5877
- <div className={`itemed`}
6043
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5878
6044
  style={{ display: (this.state.videoTenName) ? '' : 'none' }}>
5879
6045
  <video
5880
6046
  id="video10"
@@ -5902,7 +6068,7 @@ class Video extends Component {
5902
6068
  </div>
5903
6069
  </div>
5904
6070
  </div>
5905
- <div className={`itemed`} style={{ display: (this.state.videoElevenName) ? '' : 'none', }}>
6071
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoElevenName) ? '' : 'none', }}>
5906
6072
  <video
5907
6073
  id="video11"
5908
6074
  autoPlay
@@ -5929,7 +6095,7 @@ class Video extends Component {
5929
6095
  </div>
5930
6096
  </div>
5931
6097
  </div>
5932
- <div className={`itemed`}
6098
+ <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5933
6099
  style={{ display: (this.state.videoTwelveName) ? '' : 'none' }}>
5934
6100
  <video
5935
6101
  id="video12"
@@ -6012,9 +6178,8 @@ class Video extends Component {
6012
6178
  ]}>
6013
6179
  <div className='endModal'>是否要结束并退出会议?</div>
6014
6180
  </Modal>
6015
-
6016
- <Modal title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
6017
- !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'>
6018
6183
  <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
6019
6184
  <Button className="modelButtonCancel" onClick={this.sgsinImage}>截图</Button>
6020
6185
  {
@@ -6025,16 +6190,26 @@ class Video extends Component {
6025
6190
  }
6026
6191
 
6027
6192
  </div>,
6028
- !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
+ }
6029
6200
  <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>完成</Button>
6030
6201
 
6031
6202
  </div>,
6032
- this.state.idCardName && <div key='facial'>
6203
+ this.state.cardResuly == 'success' && <div key='facial'>
6033
6204
  {
6034
6205
  this.state.disabledIdCard && <Button className="modelButtonFaceOk" danger onClick={(e) => this.updateConfirm('noFace')}>修改</Button>
6035
6206
  }
6036
6207
  <Button className="modelButtonFaceOk" danger onClick={(e) => this.confirmCallback('face')}>完成并发起人脸识别</Button>
6037
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>
6038
6213
  </div>
6039
6214
  ]}>
6040
6215
  <Spin spinning={this.state.loadingFace} tip="识别中...">
@@ -6045,7 +6220,7 @@ class Video extends Component {
6045
6220
  <Option value="2">反面</Option>
6046
6221
  </Select>
6047
6222
  } */}
6048
- {!this.state.idCardName && <div className='faceCardImg'>
6223
+ {this.state.cardResuly == '' && <div className='faceCardImg'>
6049
6224
 
6050
6225
  {
6051
6226
  this.state.titleModal == 'OCR识别' && <div className='titleDiv'>{this.state.IDtypeFrontOrBack}</div>
@@ -6064,14 +6239,24 @@ class Video extends Component {
6064
6239
  </div>
6065
6240
  }
6066
6241
  {
6067
- this.state.idCardName && <div className='resuleCard'>
6068
- <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'>
6069
6254
  <img className="faceImgCard" src={this.state.facialImgFront} alt=""></img>
6070
6255
  <img className="faceImgCard" src={this.state.facialImgBack} alt=""></img>
6071
6256
  </div>
6072
6257
  <div>证件信息确认</div>
6073
6258
  <div><span>客户姓名</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardName} onChange={this.handleChangeIdCardName} /></div>
6074
- <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>
6075
6260
  <div><span>有效期</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.certificateValidity} onChange={this.handleChangeCertificateValidity} /></div>
6076
6261
  </div>
6077
6262
  }
@@ -6085,18 +6270,17 @@ class Video extends Component {
6085
6270
  }
6086
6271
  {
6087
6272
  this.state.faceResuly == 'fail' && <div className='errorClassFace'>
6088
- <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>
6089
6274
  }
6090
6275
  <div><span>客户姓名</span> <input disabled type="text" value={this.state.idCardNameFace}/></div>
6091
6276
  <div><span>身份证号</span> <input disabled type="text" value={this.state.idCardNumberFace}/></div>
6092
- <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>
6093
6278
  </div>
6094
6279
  }
6095
6280
 
6096
6281
  </div>
6097
6282
  </Spin>
6098
6283
  </Modal>
6099
-
6100
6284
  <Modal title="经理人员授权" closable={false} centered={true} visible={this.state.isModalVisibleSFP}
6101
6285
  footer={[
6102
6286
  <div key='end'>
@@ -6124,14 +6308,21 @@ class Video extends Component {
6124
6308
  </div>
6125
6309
  </Spin>
6126
6310
  </Modal>
6127
-
6128
-
6129
-
6130
6311
  <Modal title={this.state.customerTitleName} closable={false} centered={true} visible={this.state.isModalVisibleCustomer}
6131
6312
  footer={[
6132
6313
  <div key='end'>
6314
+
6315
+
6316
+ {
6317
+ !this.state.isCustomerSelect && <Button className="modelButtonCancel" onClick={this.goBackSelectCustomer}>上一步</Button>
6318
+ }
6133
6319
  <Button className="modelButtonCancel" onClick={this.handleCancelCustomer}>取消</Button>
6134
- <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
+ }
6135
6326
  </div>
6136
6327
  ]}>
6137
6328
  <div>
@@ -6146,7 +6337,9 @@ class Video extends Component {
6146
6337
  <Space direction="vertical">
6147
6338
  {
6148
6339
  this.state.customerList.map((item, index) => {
6149
- return <Radio value={index}>{item.name}</Radio>
6340
+ // if(item.name.indexOf("访客") != -1) {
6341
+ return <Radio value={index}>{item.name}</Radio>
6342
+ // }
6150
6343
  })
6151
6344
  }
6152
6345
  </Space>
@@ -6156,14 +6349,23 @@ class Video extends Component {
6156
6349
  }
6157
6350
  {
6158
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
+ }
6159
6356
  <div>
6160
6357
  请您确认您的身份证件类型
6161
6358
  </div>
6162
6359
  <div>
6163
6360
  <Radio.Group onChange={this.onChangeDocumentType} value={this.state.documentType}>
6164
6361
  <Space direction="vertical">
6165
- <Radio value={0}>身份证</Radio>
6166
- <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>
6167
6369
  </Space>
6168
6370
  </Radio.Group>
6169
6371
  </div>