react_hsbc_teller 1.7.4 → 1.7.5

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.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -152,6 +152,7 @@ class Video extends Component {
152
152
  linkData: '',
153
153
  roomCustomerList: [],
154
154
  facialImg: '',
155
+ isFaceImage: false,
155
156
  isModalVisibleFacial: false,
156
157
  isModalVisibleEnd: false,
157
158
  isModalVisible: false,
@@ -423,11 +424,11 @@ class Video extends Component {
423
424
  handleEdit = () => {
424
425
  console.log(JSON.parse(window.sessionStorage.getItem('sigData')));
425
426
  // eslint-disable-next-line no-undef
426
- // initWebSocket('wss://im.uat.dsp.hsbcfts.com.cn:443/wealth/im/ws/')
427
+ initWebSocket('wss://im.uat.dsp.hsbcfts.com.cn:443/wealth/im/ws/')
427
428
  // initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + '15603' + '/ws/');
428
429
  if(!this.state.imStatus){
429
430
  this.state.manualClose = false
430
- initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + JSON.parse(window.sessionStorage.getItem('sigData')).webPort + '/ws/');
431
+ // initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + JSON.parse(window.sessionStorage.getItem('sigData')).webPort + '/ws/');
431
432
 
432
433
  }
433
434
  const config_param = {};
@@ -520,9 +521,9 @@ class Video extends Component {
520
521
  {
521
522
  tag: 'projectionWhiteboard',
522
523
  xPosition: 0,
523
- yPosition: 270,
524
- width: 1280,
525
- height: 720
524
+ yPosition: 175,
525
+ width: 960,
526
+ height: 540
526
527
  },
527
528
  // {
528
529
  // tag: 'VIDEO_SOURCE_SCREEN_ONE',
@@ -542,43 +543,43 @@ class Video extends Component {
542
543
  tag: 'tag1',
543
544
  xPosition: 0,
544
545
  yPosition: 0,
545
- width: 310,
546
- height: 180
546
+ width: 213,
547
+ height: 175
547
548
  },
548
549
  {
549
550
  tag: 'customer1',
550
- xPosition: 320,
551
+ xPosition: 213,
551
552
  yPosition: 0,
552
- width: 310,
553
- height: 180
553
+ width: 213,
554
+ height: 175
554
555
  },
555
556
  {
556
557
  tag: 'customer2',
557
- xPosition: 640,
558
+ xPosition: 426,
558
559
  yPosition: 0,
559
- width: 310,
560
- height: 180
560
+ width: 213,
561
+ height: 175
561
562
  },
562
563
  {
563
564
  tag: 'customer3',
564
- xPosition: 960,
565
+ xPosition: 639,
565
566
  yPosition: 0,
566
- width: 310,
567
- height: 180
567
+ width: 213,
568
+ height: 175
568
569
  },
569
570
  {
570
571
  tag: 'customer4',
571
- xPosition: 1280,
572
+ xPosition: 852,
572
573
  yPosition: 0,
573
- width: 310,
574
- height: 180
574
+ width: 213,
575
+ height: 175
575
576
  },
576
577
  {
577
578
  tag: 'customer5',
578
- xPosition: 1600,
579
+ xPosition: 1065,
579
580
  yPosition: 0,
580
- width: 310,
581
- height: 180
581
+ width: 213,
582
+ height: 175
582
583
  },
583
584
  // {
584
585
  // tag: 'customer6',
@@ -632,17 +633,25 @@ class Video extends Component {
632
633
  width: item.width,
633
634
  height: item.height
634
635
  })
635
- }) : list.push({
636
+ }) :
637
+ list.push({
636
638
  tag: 'VIDEO_SOURCE_SCREEN',
637
- xPosition: 1290,
638
- yPosition: 640,
639
- width: 630,
640
- height: 350
639
+ xPosition: 960,
640
+ yPosition: 535,
641
+ width: 320,
642
+ height: 180
641
643
  })
644
+ // list.push({
645
+ // tag: 'VIDEO_SOURCE_SCREEN_19_9',
646
+ // xPosition: 960,
647
+ // yPosition: 573,
648
+ // width: 304,
649
+ // height: 144
650
+ // })
642
651
  const filePath = 'recordId_' + new Date().valueOf();
643
652
  const recordParam = {};
644
- recordParam.width = 1920;
645
- recordParam.height = 1080;
653
+ recordParam.width = 1280;
654
+ recordParam.height = 720;
646
655
  recordParam.recordTotalStream = 0;
647
656
  recordParam.startTimeout = 10;
648
657
  recordParam.splitType = 0;
@@ -4028,7 +4037,8 @@ userType:'1'
4028
4037
  idCardName: '',
4029
4038
  titleModal: '人脸识别',
4030
4039
  // clickedFacial: true,
4031
- facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png')
4040
+ facialImg: ocrImage,
4041
+ isFaceImage: false
4032
4042
  })
4033
4043
  }
4034
4044
 
@@ -4225,6 +4235,7 @@ userType:'1'
4225
4235
  this.setState({
4226
4236
  clickedFacial: false,
4227
4237
  clickedOcr: false,
4238
+ isFaceImage: false,
4228
4239
  facialImg: ocrImage,
4229
4240
  },()=>{
4230
4241
  this.setState({
@@ -4235,14 +4246,16 @@ userType:'1'
4235
4246
  }
4236
4247
  sgsinImage=()=>{
4237
4248
  this.setState({
4238
- facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png')
4249
+ facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png'),
4250
+ isFaceImage: true
4239
4251
  })
4240
4252
  }
4241
4253
  handleChangeOcr =(val)=> {
4242
4254
  console.log(val)
4243
4255
  this.setState({
4244
4256
  defaultValue: 1,
4245
- facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png')
4257
+ facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png'),
4258
+ isFaceImage: true
4246
4259
  })
4247
4260
  }
4248
4261
  componentWillReceiveProps(props) {
@@ -5574,7 +5587,13 @@ userType:'1'
5574
5587
  !this.state.idCardName && <div key='facial'>
5575
5588
  <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
5576
5589
  <Button className="modelButtonCancel" onClick={this.sgsinImage}>截图</Button>
5577
- <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>确定</Button>
5590
+ {
5591
+ this.state.isFaceImage && <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>确定</Button>
5592
+ }
5593
+ {
5594
+ !this.state.isFaceImage && <Button className="modelButtonNo" type="primary" danger>确定</Button>
5595
+ }
5596
+
5578
5597
  </div>,
5579
5598
  this.state.idCardName && <div key='facial'>
5580
5599
  <Button className="modelButtonFaceOk" danger onClick={(e)=>this.confirmCallback('face')}>完成并发起人脸识别</Button>
@@ -378,6 +378,15 @@
378
378
  background: #DB0011!important;
379
379
  border-spacing: 20px!important;
380
380
  }
381
+ .modelButtonNo{
382
+ width: 100px!important;
383
+ height: 40px!important;
384
+ font-size: 16px!important;
385
+ color: #5C5C5C!important;
386
+ border: 1px #5C5C5C solid!important;
387
+ background: #d9d9d9!important;
388
+ border-spacing: 20px!important;
389
+ }
381
390
  .modelButtonFaceOk{
382
391
  width: 170px!important;
383
392
  height: 40px!important;