react_hsbc_teller 1.9.2 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -351,7 +351,7 @@ class Video extends Component {
351
351
  saveLog = (val) => {
352
352
  axios({
353
353
  method: 'get',
354
- baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.2&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
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,
355
355
 
356
356
  }).then(res => {
357
357
 
@@ -799,6 +799,8 @@ class Video extends Component {
799
799
  contrastFaceVerify = async () => {
800
800
  try {
801
801
  let result = await API.contrastFaceVerify({
802
+ idCardNumber: this.state.idCardNumberFace,
803
+ idCardName: this.state.idCardNameFace,
802
804
  staffId: this.props.tellerAccount,
803
805
  activityId: this.props.businessNumber,
804
806
  appAccount: this.state.faceCustomerUid,
@@ -2776,24 +2778,6 @@ class Video extends Component {
2776
2778
  this.test_controller.OnNewJoinerIn = (participant) => {
2777
2779
  console.log('新加⼊房间者', participant);
2778
2780
  this.state.isCustomer = true
2779
-
2780
- if (this.props.isOpenSound) {
2781
- this.appGetUsernameClick(participant).then((res) => {
2782
- if (res.userType == 1) {
2783
- let src = autod
2784
- let audio = new Audio(src)
2785
- audio.play()
2786
- } else if (res.userType == 2) {
2787
- let src = internalJoin
2788
- let audio = new Audio(src)
2789
- audio.play()
2790
- }
2791
- })
2792
- }
2793
-
2794
- // let src = autod
2795
- // let audio = new Audio(src)
2796
- // audio.play()
2797
2781
  };
2798
2782
  // 推送“有新发布”给与会者
2799
2783
  this.test_controller.OnNewPublish = (feed) => {
@@ -3866,7 +3850,7 @@ class Video extends Component {
3866
3850
  }
3867
3851
  }
3868
3852
  componentWillMount() {
3869
- console.log('hsbc_teller_sdk', '1.9.2')
3853
+ console.log('hsbc_teller_sdk', '1.9.3')
3870
3854
  if (this.props.sessionId) {
3871
3855
  this.getRoomStatus({
3872
3856
  sessionId: this.props.sessionId
@@ -4731,19 +4715,32 @@ class Video extends Component {
4731
4715
  console.log(result)
4732
4716
  let data
4733
4717
  let typeIntranet
4718
+ let userSide
4734
4719
  if (result.code == 200) {
4735
4720
  data = result.data.username ? result.data.username : ''
4736
4721
  typeIntranet = result.data.userType ? result.data.userType : ''
4722
+ userSide = result.data.userSide ? result.data.userSide : ''
4737
4723
  } else {
4738
4724
  this.messageClick('查询失败', 'error')
4739
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
+ }
4740
4737
  if (document.getElementById('publish_video1').name == sid) {
4741
4738
  this.setState({
4742
4739
  titleNameRm: data
4743
4740
  })
4744
4741
  }
4745
4742
  if (document.getElementById('video1').name == sid) {
4746
- if (typeIntranet && typeIntranet == 2) {
4743
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4747
4744
  this.state.isPIBIntranet[0].type = true
4748
4745
  }
4749
4746
  this.setState({
@@ -4753,7 +4750,7 @@ class Video extends Component {
4753
4750
  })
4754
4751
  }
4755
4752
  if (document.getElementById('video2').name == sid) {
4756
- if (typeIntranet && typeIntranet == 2) {
4753
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4757
4754
  this.state.isPIBIntranet[1].type = true
4758
4755
  }
4759
4756
  this.setState({
@@ -4762,7 +4759,7 @@ class Video extends Component {
4762
4759
  this.videoListClick()
4763
4760
  })
4764
4761
  } if (document.getElementById('video3').name == sid) {
4765
- if (typeIntranet && typeIntranet == 2) {
4762
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4766
4763
  this.state.isPIBIntranet[2].type = true
4767
4764
  }
4768
4765
  this.setState({
@@ -4771,7 +4768,7 @@ class Video extends Component {
4771
4768
  this.videoListClick()
4772
4769
  })
4773
4770
  } if (document.getElementById('video4').name == sid) {
4774
- if (typeIntranet && typeIntranet == 2) {
4771
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4775
4772
  this.state.isPIBIntranet[3].type = true
4776
4773
  }
4777
4774
  this.setState({
@@ -4780,7 +4777,7 @@ class Video extends Component {
4780
4777
  this.videoListClick()
4781
4778
  })
4782
4779
  } if (document.getElementById('video5').name == sid) {
4783
- if (typeIntranet && typeIntranet == 2) {
4780
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4784
4781
  this.state.isPIBIntranet[4].type = true
4785
4782
  }
4786
4783
  this.setState({
@@ -4789,7 +4786,7 @@ class Video extends Component {
4789
4786
  this.videoListClick()
4790
4787
  })
4791
4788
  } if (document.getElementById('video6').name == sid) {
4792
- if (typeIntranet && typeIntranet == 2) {
4789
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4793
4790
  this.state.isPIBIntranet[5].type = true
4794
4791
  }
4795
4792
  this.setState({
@@ -4799,7 +4796,7 @@ class Video extends Component {
4799
4796
  })
4800
4797
  }
4801
4798
  if (document.getElementById('video7').name == sid) {
4802
- if (typeIntranet && typeIntranet == 2) {
4799
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4803
4800
  this.state.isPIBIntranet[6].type = true
4804
4801
  }
4805
4802
  this.setState({
@@ -4808,7 +4805,7 @@ class Video extends Component {
4808
4805
  this.videoListClick()
4809
4806
  })
4810
4807
  } if (document.getElementById('video8').name == sid) {
4811
- if (typeIntranet && typeIntranet == 2) {
4808
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4812
4809
  this.state.isPIBIntranet[7].type = true
4813
4810
  }
4814
4811
  this.setState({
@@ -4817,7 +4814,7 @@ class Video extends Component {
4817
4814
  this.videoListClick()
4818
4815
  })
4819
4816
  } if (document.getElementById('video9').name == sid) {
4820
- if (typeIntranet && typeIntranet == 2) {
4817
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4821
4818
  this.state.isPIBIntranet[8].type = true
4822
4819
  }
4823
4820
  this.setState({
@@ -4826,7 +4823,7 @@ class Video extends Component {
4826
4823
  this.videoListClick()
4827
4824
  })
4828
4825
  } if (document.getElementById('video10').name == sid) {
4829
- if (typeIntranet && typeIntranet == 2) {
4826
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4830
4827
  this.state.isPIBIntranet[9].type = true
4831
4828
  }
4832
4829
  this.setState({
@@ -4835,7 +4832,7 @@ class Video extends Component {
4835
4832
  this.videoListClick()
4836
4833
  })
4837
4834
  } if (document.getElementById('video11').name == sid) {
4838
- if (typeIntranet && typeIntranet == 2) {
4835
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4839
4836
  this.state.isPIBIntranet[10].type = true
4840
4837
  }
4841
4838
  this.setState({
@@ -4844,7 +4841,7 @@ class Video extends Component {
4844
4841
  this.videoListClick()
4845
4842
  })
4846
4843
  } if (document.getElementById('video12').name == sid) {
4847
- if (typeIntranet && typeIntranet == 2) {
4844
+ if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4848
4845
  this.state.isPIBIntranet[11].type = true
4849
4846
  }
4850
4847
  this.setState({
@@ -6232,13 +6229,14 @@ class Video extends Component {
6232
6229
 
6233
6230
  </div>,
6234
6231
  this.state.cardResuly == '' && this.state.faceResuly != '' &&<div key='facial'>
6232
+ <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>完成</Button>
6235
6233
  {
6236
6234
  this.state.faceResuly == 'fail' && <Button className="modelButtonOk" type="primary" danger onClick={this.ReIdentification}>重新识别</Button>
6237
6235
  }
6238
6236
  {
6239
6237
  this.state.faceResuly == 'success' && <Button className="modelButtonNo" type="primary" danger>重新识别</Button>
6240
6238
  }
6241
- <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>完成</Button>
6239
+
6242
6240
 
6243
6241
  </div>,
6244
6242
  this.state.cardResuly == 'success' && <div key='facial'>
@@ -6246,7 +6244,7 @@ class Video extends Component {
6246
6244
  this.state.disabledIdCard && <Button className="modelButtonFaceOk" danger onClick={(e) => this.updateConfirm('noFace')}>修改</Button>
6247
6245
  }
6248
6246
  {
6249
- this.state.documentType == 'ID_CARD' && <Button className="modelButtonFaceOk" danger onClick={(e) => this.confirmCallback('face')}>完成并发起人脸识别</Button>
6247
+ this.state.documentType == 'ID_CARD' && <Button className="modelButtonFaceOkColor" danger onClick={(e) => this.confirmCallback('face')}>完成并发起人脸识别</Button>
6250
6248
  }
6251
6249
  {
6252
6250
  this.state.documentType != 'ID_CARD' && <Button className="modelButtonOk" type="primary" danger onClick={(e) => this.confirmCallback('noFace')}>完成</Button>
@@ -6255,7 +6253,7 @@ class Video extends Component {
6255
6253
  </div>,
6256
6254
  this.state.cardResuly == 'fail' && <div key='facial'>
6257
6255
  <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
6258
- <Button className="modelButtonOk" type="primary" danger onClick={this.newFaceClick}>返回重试</Button>
6256
+ <Button className="modelButtonOk" type="primary" danger onClick={this.newFaceClick}>返回重拍</Button>
6259
6257
  </div>
6260
6258
  ]}>
6261
6259
  <Spin spinning={this.state.loadingFace} tip="识别中...">
@@ -6302,9 +6300,12 @@ class Video extends Component {
6302
6300
  }
6303
6301
  <div className='imgDIV'>
6304
6302
  <img className="faceImgCard" src={this.state.facialImgFront} alt=""></img>
6305
- <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
+
6306
6307
  </div>
6307
- <div>证件信息确认</div>
6308
+ <div style={{margin: '0 20px'}}>证件信息确认</div>
6308
6309
  <div><span>客户姓名</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardName} onChange={this.handleChangeIdCardName} /></div>
6309
6310
  <div><span>证件号码</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardNumber} onChange={this.handleChangeIdCardNumber} /></div>
6310
6311
  <div><span>有效期</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.certificateValidity} onChange={this.handleChangeCertificateValidity} /></div>
@@ -152,6 +152,7 @@
152
152
  }
153
153
  .faceImg{
154
154
  width: 60%;
155
+ margin-bottom: 20Px;
155
156
  }
156
157
  .faceBody{
157
158
  text-align: center;
@@ -163,14 +164,14 @@
163
164
  text-align: -webkit-left;
164
165
  padding: 0Px 2Px;
165
166
  div{
166
- font-size: 16Px;
167
+ font-size: 13Px;
167
168
  color: #646464;
168
169
  margin: 10Px 20Px;
169
170
  input{
170
171
  border: #DCDCDC 1px solid;
171
172
  width: 15rem;
172
- height: 2.5rem;
173
- line-height: 2.5rem;
173
+ height: 2rem;
174
+ line-height: 2rem;
174
175
  margin-left: 15px;
175
176
  }
176
177
  span{
@@ -331,7 +332,7 @@
331
332
  margin: 10px 20px;
332
333
  }
333
334
  .ant-modal-header{
334
- padding: 36px 30px 30px 30px !important;
335
+ // padding: 36px 30px 30px 30px !important;
335
336
  border-bottom: none !important;
336
337
  }
337
338
  .ant-modal-body{
@@ -342,8 +343,8 @@
342
343
  color: #333333 !important;
343
344
  }
344
345
  .ant-modal-footer {
345
- margin-top: 50px!important;
346
- padding: 20px 30px 30px!important;
346
+ margin-top: 0px!important;
347
+ // padding: 0px 0px 0px!important;
347
348
  }
348
349
 
349
350
  .modelButtonCancel{
@@ -403,6 +404,15 @@
403
404
  background: #fff!important;
404
405
  border-spacing: 20px!important;
405
406
  }
407
+ .modelButtonFaceOkColor{
408
+ width: 170px!important;
409
+ height: 40px!important;
410
+ font-size: 16px!important;
411
+ color: #ffffff!important;
412
+ border: 1px #DB0011 solid!important;
413
+ background: #DB0011!important;
414
+ border-spacing: 20px!important;
415
+ }
406
416
  .endModal{
407
417
  font-size: 16px;
408
418
  padding: 56px 30px 0px 30px;
@@ -563,11 +573,15 @@
563
573
  }
564
574
  .selectCustomer{
565
575
  font-size: 16px;
566
- margin: 0 40px;
576
+ margin: 20Px 40px;
567
577
  }
568
578
  .faceImgCard{
569
579
  width: 25rem;
570
580
  margin-bottom: 10px;
581
+ height: 13.5rem;
582
+ }
583
+ .faceImgCardTwo{
584
+ margin-bottom: 0px !important;
571
585
  }
572
586
  .titleDiv{
573
587
  font-size: 1.4rem;