react_hsbc_teller 1.2.0 → 1.2.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.
@@ -19,10 +19,14 @@ import message from "antd/lib/message";
19
19
  import 'antd/lib/message/style'
20
20
  import Spin from "antd/lib/spin";
21
21
  import 'antd/lib/spin/style'
22
+ import Select from "antd/lib/select";
23
+ import 'antd/lib/select/style'
24
+
22
25
  import { Button } from '../../../node_modules/antd/lib/index';
23
26
  import CanvasDraw from "react-canvas-draw";
24
27
  import { FormattedMessage, injectIntl } from 'react-intl';
25
28
  import axios from 'axios';
29
+ const { Option } = Select;
26
30
  const LEAVE_TYPE = {
27
31
  TELLER_EXIT: 1, // 坐席退出
28
32
  ROOM_DESTROYED: -1, // 房间异常
@@ -141,6 +145,46 @@ class Video extends Component {
141
145
  noVideoEleven: false,
142
146
  noVideoTwelve: false,
143
147
  manualClose: false,
148
+ defaultValue: '1',
149
+ customOcrSid: '',
150
+ isPIBIntranet: [
151
+ {
152
+ type: false
153
+ },
154
+ {
155
+ type: false
156
+ },
157
+ {
158
+ type: false
159
+ },
160
+ {
161
+ type: false
162
+ },
163
+ {
164
+ type: false
165
+ },
166
+ {
167
+ type: false
168
+ },
169
+ {
170
+ type: false
171
+ },
172
+ {
173
+ type: false
174
+ },
175
+ {
176
+ type: false
177
+ },
178
+ {
179
+ type: false
180
+ },
181
+ {
182
+ type: false
183
+ },
184
+ {
185
+ type: false
186
+ }
187
+ ]
144
188
  };
145
189
  // eslint-disable-next-line no-undef
146
190
  test_controller = '';
@@ -164,6 +208,8 @@ class Video extends Component {
164
208
  let publish_config = {}
165
209
  publish_config.media_type = 1
166
210
  publish_config.publish_device = 1
211
+ publish_config.videoSource = this.state.cameraValue
212
+ publish_config.audioSource = this.state.microphoneValue
167
213
  publish_config.need_volume_analyser = true
168
214
  // publish_config.video_profile_type = 3
169
215
  publish_config.video_profile_type=100
@@ -267,7 +313,6 @@ class Video extends Component {
267
313
  const config_param = {};
268
314
  config_param.auto_publish_subscribe = 4;
269
315
  config_param.media_type = 1;
270
- config_param.publish_device = 1;
271
316
  config_param.video_profile_type = '3';
272
317
  config_param.need_volume_analyser = true;
273
318
  config_param.initPublish = [
@@ -277,15 +322,6 @@ class Video extends Component {
277
322
  publish_tag: 'tag1'
278
323
  }
279
324
  ];
280
- const recordParam = {};
281
- recordParam.width = 640;
282
- recordParam.height = 360;
283
- recordParam.channels = 1;
284
- recordParam.splitType = 0;
285
- recordParam.startTimeout = 5;
286
- recordParam.recordTotalStream = 0;
287
- recordParam.endType = 1;
288
- config_param.recordParam = recordParam;
289
325
  config_param.initSubscribe = [
290
326
  {
291
327
  subscribe_video_id: 'video1',
@@ -330,8 +366,8 @@ class Video extends Component {
330
366
  enableServerRecording = () => {
331
367
  const filePath = 'recordId_' + new Date().valueOf();
332
368
  const recordParam = {};
333
- recordParam.width = 1280;
334
- recordParam.height = 720;
369
+ recordParam.width = 1920;
370
+ recordParam.height = 1080;
335
371
  recordParam.recordTotalStream = 0;
336
372
  recordParam.startTimeout = 10;
337
373
  recordParam.splitType = 0;
@@ -360,6 +396,106 @@ class Video extends Component {
360
396
  url: '' // ⽔印图⽚ HTTP 地址
361
397
  }
362
398
  ];
399
+ recordParam.tagPositions = [
400
+ {
401
+ tag: 'projectionWhiteboard',
402
+ xPosition: 0,
403
+ yPosition: 360,
404
+ width: 1120,
405
+ height: 360
406
+ },
407
+ {
408
+ tag: 'VIDEO_SOURCE_SCREEN',
409
+ xPosition: 0,
410
+ yPosition: 144,
411
+ width: 256,
412
+ height: 144
413
+ },
414
+ {
415
+ tag: 'tag1',
416
+ xPosition: 0,
417
+ yPosition: 0,
418
+ width: 160,
419
+ height: 144
420
+ },
421
+ {
422
+ tag: 'customer1',
423
+ xPosition: 160,
424
+ yPosition: 0,
425
+ width: 160,
426
+ height: 144
427
+ },
428
+ {
429
+ tag: 'customer2',
430
+ xPosition: 320,
431
+ yPosition: 0,
432
+ width: 160,
433
+ height: 144
434
+ },
435
+ {
436
+ tag: 'customer3',
437
+ xPosition: 480,
438
+ yPosition: 0,
439
+ width: 160,
440
+ height: 144
441
+ },
442
+ {
443
+ tag: 'customer4',
444
+ xPosition: 640,
445
+ yPosition: 0,
446
+ width: 160,
447
+ height: 144
448
+ },
449
+ {
450
+ tag: 'customer5',
451
+ xPosition: 800,
452
+ yPosition: 0,
453
+ width: 160,
454
+ height: 144
455
+ },
456
+ {
457
+ tag: 'customer6',
458
+ xPosition: 960,
459
+ yPosition: 0,
460
+ width: 160,
461
+ height: 144
462
+ },
463
+ {
464
+ tag: 'customer7',
465
+ xPosition: 1120,
466
+ yPosition: 0,
467
+ width: 160,
468
+ height: 144
469
+ },
470
+ {
471
+ tag: 'customer8',
472
+ xPosition: 1120,
473
+ yPosition: 144,
474
+ width: 160,
475
+ height: 144
476
+ },
477
+ {
478
+ tag: 'customer9',
479
+ xPosition: 1120,
480
+ yPosition: 288,
481
+ width: 160,
482
+ height: 144
483
+ },
484
+ {
485
+ tag: 'customer10',
486
+ xPosition: 1120,
487
+ yPosition: 432,
488
+ width: 160,
489
+ height: 144
490
+ },
491
+ {
492
+ tag: 'customer11',
493
+ xPosition: 1120,
494
+ yPosition: 576,
495
+ width: 160,
496
+ height: 144
497
+ }
498
+ ]
363
499
  console.log('recordParam', recordParam);
364
500
  this.test_controller.StartRemoteRecord(filePath, recordParam, '')
365
501
 
@@ -408,11 +544,6 @@ class Video extends Component {
408
544
  console.log(result);
409
545
  if (this.state.faceCustomerType == 1) {
410
546
  this.contrastFaceVerify(result.data)
411
- } else if (this.state.faceCustomerType == 2) {
412
- // ocr
413
- this.setState({
414
- isModalVisibleFacial: false
415
- })
416
547
  }
417
548
 
418
549
  } catch (err) {
@@ -441,100 +572,208 @@ class Video extends Component {
441
572
  // 获取人员客户列表
442
573
  selectCustomer = (val) => {
443
574
  const list = []
444
- if (document.getElementById('video1').name) {
575
+ if (document.getElementById('video1').name && !this.state.isPIBIntranet[0].type) {
445
576
  console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText))
446
577
  // document.getElementById("feedId1").innerText
447
578
  list.push({
448
579
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
449
580
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
450
- name: this.state.videoOneName,
581
+ name: this.state.videoOneName + '--OCR',
582
+ tourist: false
451
583
  })
584
+ if(this.state.videoOneName.indexOf("客户") == -1) {
585
+ list.push({
586
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
587
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
588
+ name: this.state.videoOneName + '--查询客户',
589
+ tourist: true
590
+ })
591
+ }
452
592
  }
453
- if (document.getElementById('video2').name) {
593
+ if (document.getElementById('video2').name && !this.state.isPIBIntranet[1].type) {
454
594
  console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText))
455
595
  // document.getElementById("feedId1").innerText
456
596
  list.push({
457
597
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
458
598
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
459
- name: this.state.videoTwoName
599
+ name: this.state.videoTwoName + '--OCR',
600
+ tourist: false
460
601
  })
602
+ if(this.state.videoTwoName.indexOf("客户") == -1) {
603
+ list.push({
604
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
605
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
606
+ name: this.state.videoTwoName + '--查询客户',
607
+ tourist: true
608
+ })
609
+ }
461
610
  }
462
- if (document.getElementById('video3').name) {
611
+ if (document.getElementById('video3').name && !this.state.isPIBIntranet[2].type) {
463
612
  console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText))
464
613
  // document.getElementById("feedId1").innerText
465
614
  list.push({
466
615
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
467
616
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
468
- name: this.state.videoThreeName
617
+ name: this.state.videoThreeName + '--OCR',
618
+ tourist: false
469
619
  })
620
+ if(this.state.videoThreeName.indexOf("客户") == -1) {
621
+ list.push({
622
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
623
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
624
+ name: this.state.videoThreeName + '--查询客户',
625
+ tourist: true
626
+ })
627
+ }
470
628
  }
471
- if (document.getElementById('video4').name) {
629
+ if (document.getElementById('video4').name && !this.state.isPIBIntranet[3].type) {
472
630
  console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText))
473
631
  // document.getElementById("feedId1").innerText
474
632
  list.push({
475
633
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
476
634
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
477
- name: this.state.videoFourName
635
+ name: this.state.videoFourName + '--OCR',
636
+ tourist: false
478
637
  })
638
+ if(this.state.videoFourName.indexOf("客户") == -1) {
639
+ list.push({
640
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
641
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
642
+ name: this.state.videoFourName + '--查询客户',
643
+ tourist: true
644
+ })
645
+ }
479
646
  }
480
- if (document.getElementById('video5').name) {
647
+ if (document.getElementById('video5').name && !this.state.isPIBIntranet[4].type) {
481
648
  console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText))
482
649
  // document.getElementById("feedId1").innerText
483
650
  list.push({
484
651
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
485
652
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
486
- name: this.state.videoFiveName
653
+ name: this.state.videoFiveName + '--OCR',
654
+ tourist: false
487
655
  })
656
+ if(this.state.videoFiveName.indexOf("客户") == -1) {
657
+ list.push({
658
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
659
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
660
+ name: this.state.videoFiveName + '--查询客户',
661
+ tourist: true
662
+ })
663
+ }
488
664
  }
489
- if (document.getElementById('video6').name) {
665
+ if (document.getElementById('video6').name && !this.state.isPIBIntranet[5].type) {
490
666
  console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText))
491
667
  list.push({
492
668
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
493
669
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
494
- name: this.state.videoSixName
670
+ name: this.state.videoSixName + '--OCR',
671
+ tourist: false
495
672
  })
673
+ if(this.state.videoSixName.indexOf("客户") == -1) {
674
+ list.push({
675
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
676
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
677
+ name: this.state.videoSixName + '--查询客户',
678
+ tourist: true
679
+ })
680
+ }
496
681
  }
497
- if (document.getElementById('video7').name) {
682
+ if (document.getElementById('video7').name && !this.state.isPIBIntranet[6].type) {
498
683
  list.push({
499
684
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
500
685
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
501
- name: this.state.videoSevenName
686
+ name: this.state.videoSevenName + '--OCR',
687
+ tourist: false
502
688
  })
689
+ if(this.state.videoSevenName.indexOf("客户") == -1) {
690
+ list.push({
691
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
692
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
693
+ name: this.state.videoSevenName + '--查询客户',
694
+ tourist: true
695
+ })
696
+ }
503
697
  }
504
- if (document.getElementById('video8').name) {
698
+ if (document.getElementById('video8').name && !this.state.isPIBIntranet[7].type) {
505
699
  list.push({
506
700
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
507
701
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
508
- name: this.state.videoEightName
702
+ name: this.state.videoEightName + '--OCR',
703
+ tourist: false
509
704
  })
705
+ if(this.state.videoEightName.indexOf("客户") == -1) {
706
+ list.push({
707
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
708
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
709
+ name: this.state.videoEightName + '--查询客户',
710
+ tourist: true
711
+ })
712
+ }
510
713
  }
511
- if (document.getElementById('video9').name) {
714
+ if (document.getElementById('video9').name && !this.state.isPIBIntranet[8].type) {
512
715
  list.push({
513
716
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
514
717
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
515
- name: this.state.videoNineName
718
+ name: this.state.videoNineName + '--OCR',
719
+ tourist: false
516
720
  })
721
+ if(this.state.videoNineName.indexOf("客户") == -1) {
722
+ list.push({
723
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
724
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
725
+ name: this.state.videoNineName + '--查询客户',
726
+ tourist: true
727
+ })
728
+ }
517
729
  }
518
- if (document.getElementById('video10').name) {
730
+ if (document.getElementById('video10').name && !this.state.isPIBIntranet[9].type) {
519
731
  list.push({
520
732
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
521
733
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
522
- name: this.state.videoTenName
734
+ name: this.state.videoTenName + '--OCR',
735
+ tourist: false
523
736
  })
737
+ if(this.state.videoTenName.indexOf("客户") == -1) {
738
+ list.push({
739
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
740
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
741
+ name: this.state.videoTenName + '--查询客户',
742
+ tourist: true
743
+ })
744
+ }
524
745
  }
525
- if (document.getElementById('video11').name) {
746
+ if (document.getElementById('video11').name && !this.state.isPIBIntranet[10].type) {
526
747
  list.push({
527
748
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
528
749
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
529
- name: this.state.videoElevenName
750
+ name: this.state.videoElevenName + '--OCR',
751
+ tourist: false
530
752
  })
753
+ if(this.state.videoElevenName.indexOf("客户") == -1) {
754
+ list.push({
755
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
756
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
757
+ name: this.state.videoElevenName + '--查询客户',
758
+ tourist: true
759
+ })
760
+ }
531
761
  }
532
- if (document.getElementById('video12').name) {
762
+ if (document.getElementById('video12').name && !this.state.isPIBIntranet[11].type) {
533
763
  list.push({
534
764
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
535
765
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
536
- name: this.state.videoTwelveName
766
+ name: this.state.videoTwelveName + '--OCR',
767
+ tourist: false
537
768
  })
769
+ if(this.state.videoTwelveName.indexOf("客户") == -1) {
770
+ list.push({
771
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
772
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
773
+ name: this.state.videoTwelveName + '--查询客户',
774
+ tourist: true
775
+ })
776
+ }
538
777
  }
539
778
  if (list.length > 0) {
540
779
  if (val == 'ocr') {
@@ -559,14 +798,16 @@ class Video extends Component {
559
798
  content: value,
560
799
  icon: <img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>,
561
800
  className: 'errorClassName',
562
- top: 200
801
+ top: 200,
802
+ duration: 10
563
803
  })
564
804
  } else if(valueOne == 'success') {
565
805
  message.success({
566
806
  content: value,
567
807
  icon: <img src={require("../../assets/img/tooltips1_pass.png").default} alt="" ></img>,
568
808
  className: 'successClassName',
569
- top: 200
809
+ top: 200,
810
+ duration: 10
570
811
  })
571
812
  }
572
813
 
@@ -1491,9 +1732,15 @@ class Video extends Component {
1491
1732
  })
1492
1733
  if (!this.state.appId && !this.state.sessionType) {
1493
1734
  this.mpaasSig(data);
1735
+ let indexId = 0
1736
+ objList.map((item,index)=>{
1737
+ if(item.actionname.indexOf('Integrated Camera' != -1)) {
1738
+ indexId = index
1739
+ }
1740
+ })
1494
1741
  this.setState({
1495
- cameraValue: obj[0].actionid,
1496
- microphoneValue: obj1[0].actionid
1742
+ cameraValue: objList[indexId].actionid,
1743
+ microphoneValue: objList1[0].actionid
1497
1744
  })
1498
1745
  } else {
1499
1746
  this.setState({
@@ -1585,6 +1832,8 @@ class Video extends Component {
1585
1832
  publish_config.media_type = 1
1586
1833
  publish_config.publish_device = 1
1587
1834
  publish_config.need_volume_analyser = true
1835
+ publish_config.videoSource = this.state.cameraValue
1836
+ publish_config.audioSource = this.state.microphoneValue
1588
1837
  // publish_config.video_profile_type = 3
1589
1838
  publish_config.video_profile_type=100
1590
1839
  publish_config.video_profile_diy={width:640, height:360, frameRate:15, bitrate:400}
@@ -1839,6 +2088,9 @@ class Video extends Component {
1839
2088
  this.test_controller.OnNewJoinerIn = (participant) => {
1840
2089
  console.log('新加⼊房间者', participant);
1841
2090
  this.state.isCustomer= true
2091
+ // let audio = document.createElement('audio') //生成一个audio元素
2092
+ // audio.src = 'http://mp3.9ku.com/hot/2005/05-19/65937.mp3' //音乐的路径
2093
+ // audio.play()
1842
2094
  };
1843
2095
  // 推送“有新发布”给与会者
1844
2096
  this.test_controller.OnNewPublish = (feed) => {
@@ -2091,6 +2343,7 @@ class Video extends Component {
2091
2343
  }
2092
2344
  })
2093
2345
  if (!document.getElementById("video1").name) {
2346
+ this.state.isPIBIntranet[0].type = false
2094
2347
  this.setState({
2095
2348
  videoOneName: '',
2096
2349
  voiceVideoOne: false,
@@ -2098,6 +2351,7 @@ class Video extends Component {
2098
2351
  })
2099
2352
  }
2100
2353
  if (!document.getElementById("video2").name) {
2354
+ this.state.isPIBIntranet[1].type = false
2101
2355
  this.setState({
2102
2356
  videoTwoName: '',
2103
2357
  voiceVideoTwo: false,
@@ -2105,6 +2359,7 @@ class Video extends Component {
2105
2359
  })
2106
2360
  }
2107
2361
  if (!document.getElementById("video3").name) {
2362
+ this.state.isPIBIntranet[2].type = false
2108
2363
  this.setState({
2109
2364
  videoThreeName: '',
2110
2365
  voiceVideoThree: false,
@@ -2112,6 +2367,7 @@ class Video extends Component {
2112
2367
  })
2113
2368
  }
2114
2369
  if (!document.getElementById("video4").name) {
2370
+ this.state.isPIBIntranet[3].type = false
2115
2371
  this.setState({
2116
2372
  videoFourName: '',
2117
2373
  voiceVideoFour: false,
@@ -2119,6 +2375,7 @@ class Video extends Component {
2119
2375
  })
2120
2376
  }
2121
2377
  if (!document.getElementById("video5").name) {
2378
+ this.state.isPIBIntranet[4].type = false
2122
2379
  this.setState({
2123
2380
  videoFiveName: '',
2124
2381
  voiceVideoFive: false,
@@ -2126,6 +2383,7 @@ class Video extends Component {
2126
2383
  })
2127
2384
  }
2128
2385
  if (!document.getElementById("video6").name) {
2386
+ this.state.isPIBIntranet[5].type = false
2129
2387
  this.setState({
2130
2388
  videoSixName: '',
2131
2389
  voiceVideoSix: false,
@@ -2134,6 +2392,7 @@ class Video extends Component {
2134
2392
  }
2135
2393
 
2136
2394
  if (!document.getElementById("video7").name) {
2395
+ this.state.isPIBIntranet[6].type = false
2137
2396
  this.setState({
2138
2397
  videoSevenName: '',
2139
2398
  voiceVideoSeven: false,
@@ -2141,6 +2400,7 @@ class Video extends Component {
2141
2400
  })
2142
2401
  }
2143
2402
  if (!document.getElementById("video8").name) {
2403
+ this.state.isPIBIntranet[7].type = false
2144
2404
  this.setState({
2145
2405
  videoEightName: '',
2146
2406
  voiceVideoEight: false,
@@ -2148,6 +2408,7 @@ class Video extends Component {
2148
2408
  })
2149
2409
  }
2150
2410
  if (!document.getElementById("video9").name) {
2411
+ this.state.isPIBIntranet[8].type = false
2151
2412
  this.setState({
2152
2413
  videoNineName: '',
2153
2414
  voiceVideoNine: false,
@@ -2155,6 +2416,7 @@ class Video extends Component {
2155
2416
  })
2156
2417
  }
2157
2418
  if (!document.getElementById("video10").name) {
2419
+ this.state.isPIBIntranet[9].type = false
2158
2420
  this.setState({
2159
2421
  videoTenName: '',
2160
2422
  voiceVideoTen: false,
@@ -2162,6 +2424,7 @@ class Video extends Component {
2162
2424
  })
2163
2425
  }
2164
2426
  if (!document.getElementById("video11").name) {
2427
+ this.state.isPIBIntranet[10].type = false
2165
2428
  this.setState({
2166
2429
  videoElevenName: '',
2167
2430
  voiceVideoEleven: false,
@@ -2169,6 +2432,7 @@ class Video extends Component {
2169
2432
  })
2170
2433
  }
2171
2434
  if (!document.getElementById("video12").name) {
2435
+ this.state.isPIBIntranet[11].type = false
2172
2436
  this.setState({
2173
2437
  videoTwelveName: '',
2174
2438
  voiceVideoTwelve: false,
@@ -2209,7 +2473,15 @@ class Video extends Component {
2209
2473
  exitType
2210
2474
  ) => {
2211
2475
  console.log('退出房间者', participant, exitType)
2212
- this.messageClick(this.props.customLeaveRoom,'error')
2476
+ this.appGetUsernameClick(participant).then((res)=>{
2477
+ console.log('退出房间者',res)
2478
+ let data = res? res : '客户'
2479
+ this.messageClick(( data + '已退出会议'),'error')
2480
+ // let audio = document.createElement('audio') //生成一个audio元素
2481
+ // audio.src = 'http://mp3.9ku.com/hot/2005/05-19/65937.mp3' //音乐的路径
2482
+ // audio.play()
2483
+ })
2484
+
2213
2485
  };
2214
2486
  // 弱网回调
2215
2487
  this.test_controller.OnNetworkWeak = (bpsSend, bpsRecv, sid) => {
@@ -2494,7 +2766,7 @@ class Video extends Component {
2494
2766
  }
2495
2767
 
2496
2768
  for (var i = 0; i < 40; i++) {
2497
- let energy = (dataArray[step * i] / 256.0) * 100;
2769
+ let energy = (dataArray[step * i] / 256.0) * 80;
2498
2770
  ctx.beginPath();
2499
2771
  ctx.fillStyle = this.props.voiceColor;
2500
2772
  const { x1, y1, x2, y2 } = drawArea
@@ -2504,7 +2776,7 @@ class Video extends Component {
2504
2776
  let startY = y1 - height // 绘制起始点y
2505
2777
  ctx.fillRect(startX, startY, width, height)
2506
2778
  if(document.getElementById('publish_video1').name == sid) {
2507
- this.state.analyserHeight.set(sid,energy/25)
2779
+ this.state.analyserHeight.set(sid,dataArray[step * 20] / 256.0)
2508
2780
  this.state.analyserHeight = this.state.analyserHeight
2509
2781
  }
2510
2782
 
@@ -2535,9 +2807,9 @@ class Video extends Component {
2535
2807
  // this.setState({
2536
2808
  // isPDF: true,
2537
2809
  // })
2538
- // } else {
2810
+ // } else {
2539
2811
  document.getElementById('video20') && document.getElementById('video20').name ? this.test_controller.UnPublish(document.getElementById('video20').name) : ''
2540
- // }
2812
+ // }
2541
2813
  this.state.isSharedScreen = false
2542
2814
  this.state.isScreenSwitching = false
2543
2815
  this.setState({
@@ -2550,11 +2822,11 @@ class Video extends Component {
2550
2822
  }
2551
2823
  // if (!this.state.laveRoomSharedScreen && this.state.isSharedScreen) {
2552
2824
  // this.sharedScreen()
2553
- // }
2825
+ // }
2554
2826
  }
2555
2827
 
2556
2828
 
2557
- }
2829
+ };
2558
2830
  }
2559
2831
  enterRoom = async () =>{
2560
2832
  try {
@@ -3084,12 +3356,41 @@ class Video extends Component {
3084
3356
  isModalVisibleEnd: false
3085
3357
  })
3086
3358
  };
3359
+ ocrCallback= async () => {
3360
+ try {
3361
+ let result = await API.ocrCallback({
3362
+ sessionId: this.state.sessionId,
3363
+ staffId: this.props.tellerAccount,
3364
+ activityId: this.props.businessNumber,
3365
+ appAccount: this.state.faceCustomerUid,
3366
+ fileBase64: this.state.facialImg.replace(/^data:image\/\w+;base64,/,""),
3367
+ type: this.state.defaultValue
3368
+ });
3369
+ if (result.code == 200) {
3370
+ this.messageClick('识别成功','success')
3371
+ this.setState({
3372
+ isModalVisibleFacial: false
3373
+ })
3374
+ } else {
3375
+ this.messageClick('识别失败','error')
3376
+ }
3377
+ } catch (err) {
3378
+ this.messageClick('识别失败','error')
3379
+ }
3380
+ }
3087
3381
  handleOkFacial = () => {
3088
- const frontIdcard = new File([this.dataURLtoFile(this.state.facialImg, 'image/jpeg')], new Date() + '.png'); // 重命名了
3382
+ if (this.state.faceCustomerType == 2) {
3383
+ // ocr
3384
+ this.ocrCallback()
3385
+
3386
+ } else {
3387
+ const frontIdcard = new File([this.dataURLtoFile(this.state.facialImg, 'image/jpeg')], new Date() + '.png'); // 重命名了
3089
3388
  const formData = new FormData();
3090
3389
  formData.append('file', frontIdcard);
3091
3390
  formData.append('sessionId', this.state.sessionId);
3092
3391
  this.uploadImg(formData)
3392
+ }
3393
+
3093
3394
  };
3094
3395
  handleCancelFacial = () => {
3095
3396
  this.setState({
@@ -3145,8 +3446,34 @@ class Video extends Component {
3145
3446
  employeeNumber: event.target.value
3146
3447
  })
3147
3448
  }
3449
+ retrieveCustomerInfoByActivityId = async (value) =>{
3450
+ try {
3451
+ let result = await API.retrieveCustomerInfoByActivityId({
3452
+ activityId: this.props.businessNumber,
3453
+ sessionId: this.state.sessionId,
3454
+ appAccount: value
3455
+ });
3456
+ console.log(result)
3457
+
3458
+ if (result.code == 200) {
3459
+ this.messageClick('查询客户信息成功','success')
3460
+ } else {
3461
+ this.messageClick('查询客户信息失败','error')
3462
+ }
3463
+ }catch (err) {
3464
+ this.messageClick('查询客户信息失败','error')
3465
+ }
3466
+ this.setState({
3467
+ clickedFacial: false,
3468
+ clickedOcr: false,
3469
+
3470
+ })
3471
+ }
3148
3472
  customerFaceClick = (item) => {
3149
3473
  console.log(item)
3474
+ if(item.tourist) {
3475
+ this.retrieveCustomerInfoByActivityId(item.customId)
3476
+ } else {
3150
3477
  var sid
3151
3478
  if (item.feedId == document.getElementById("feedId1").innerText) {
3152
3479
  sid = document.getElementById('video1').name;
@@ -3174,6 +3501,7 @@ class Video extends Component {
3174
3501
  sid = document.getElementById('video12').name;
3175
3502
  }
3176
3503
  console.log(sid)
3504
+ this.state.customOcrSid = sid
3177
3505
  this.state.faceCustomerUid = item.customId,
3178
3506
  this.setState({
3179
3507
  clickedFacial: false,
@@ -3183,12 +3511,37 @@ class Video extends Component {
3183
3511
  facialImg: this.test_controller.TakePicture(1, undefined, undefined, sid, 'png')
3184
3512
  })
3185
3513
  }
3514
+ }
3515
+ handleChangeOcr =(val)=> {
3516
+ console.log(val)
3517
+ this.setState({
3518
+ defaultValue: val,
3519
+ facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png')
3520
+ })
3521
+ }
3186
3522
  componentWillReceiveProps(props) {
3187
3523
  this.state.channelId = props.roomId,
3188
3524
  this.state.rtoken = props.mtoken,
3189
3525
  this.state.sessionId = props.sessionId,
3190
3526
  this.state.imRoomId = props.imRoomId
3191
3527
  }
3528
+ appGetUsernameClick = async(userId) =>{
3529
+ let data = ''
3530
+ try {
3531
+ let result = await API.appGetUsername({
3532
+ userId: userId,
3533
+ sessionId: this.state.sessionId
3534
+ });
3535
+ console.log(result)
3536
+
3537
+ if (result.code == 200) {
3538
+ data = result.data.username ? result.data.username : ''
3539
+ }
3540
+ return data
3541
+ }catch (err) {
3542
+ return data
3543
+ }
3544
+ }
3192
3545
  appGetUsername = async (sid) => {
3193
3546
  console.log(sid)
3194
3547
  let userId = ''
@@ -3236,8 +3589,10 @@ class Video extends Component {
3236
3589
  });
3237
3590
  console.log(result)
3238
3591
  let data
3592
+ let typeIntranet
3239
3593
  if (result.code == 200) {
3240
3594
  data = result.data.username ? result.data.username : ''
3595
+ typeIntranet = result.data.userType ? result.data.userType : ''
3241
3596
  } else {
3242
3597
  this.messageClick('查询失败','error')
3243
3598
  }
@@ -3247,53 +3602,88 @@ class Video extends Component {
3247
3602
  })
3248
3603
  }
3249
3604
  if (document.getElementById('video1').name == sid) {
3250
-
3605
+ if(typeIntranet && typeIntranet == 2) {
3606
+ this.state.isPIBIntranet[0].type = true
3607
+ }
3251
3608
  this.setState({
3252
3609
  videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户1'
3253
3610
  })
3254
3611
  }
3255
3612
  if (document.getElementById('video2').name == sid) {
3613
+ if(typeIntranet && typeIntranet == 2) {
3614
+ this.state.isPIBIntranet[1].type = true
3615
+ }
3256
3616
  this.setState({
3257
3617
  videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户2'
3258
3618
  })
3259
3619
  } if (document.getElementById('video3').name == sid) {
3620
+ if(typeIntranet && typeIntranet == 2) {
3621
+ this.state.isPIBIntranet[2].type = true
3622
+ }
3260
3623
  this.setState({
3261
3624
  videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户3'
3262
3625
  })
3263
3626
  } if (document.getElementById('video4').name == sid) {
3627
+ if(typeIntranet && typeIntranet == 2) {
3628
+ this.state.isPIBIntranet[3].type = true
3629
+ }
3264
3630
  this.setState({
3265
3631
  videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户4'
3266
3632
  })
3267
3633
  } if (document.getElementById('video5').name == sid) {
3634
+ if(typeIntranet && typeIntranet == 2) {
3635
+ this.state.isPIBIntranet[4].type = true
3636
+ }
3268
3637
  this.setState({
3269
3638
  videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户5'
3270
3639
  })
3271
3640
  } if (document.getElementById('video6').name == sid) {
3641
+ if(typeIntranet && typeIntranet == 2) {
3642
+ this.state.isPIBIntranet[5].type = true
3643
+ }
3272
3644
  this.setState({
3273
3645
  videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户6'
3274
3646
  })
3275
3647
  }
3276
3648
  if (document.getElementById('video7').name == sid) {
3649
+ if(typeIntranet && typeIntranet == 2) {
3650
+ this.state.isPIBIntranet[6].type = true
3651
+ }
3277
3652
  this.setState({
3278
3653
  videoSevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户7'
3279
3654
  })
3280
3655
  } if (document.getElementById('video8').name == sid) {
3656
+ if(typeIntranet && typeIntranet == 2) {
3657
+ this.state.isPIBIntranet[7].type = true
3658
+ }
3281
3659
  this.setState({
3282
3660
  videoEightName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户8'
3283
3661
  })
3284
3662
  } if (document.getElementById('video9').name == sid) {
3663
+ if(typeIntranet && typeIntranet == 2) {
3664
+ this.state.isPIBIntranet[8].type = true
3665
+ }
3285
3666
  this.setState({
3286
3667
  videoNineName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户9'
3287
3668
  })
3288
3669
  } if (document.getElementById('video10').name == sid) {
3670
+ if(typeIntranet && typeIntranet == 2) {
3671
+ this.state.isPIBIntranet[9].type = true
3672
+ }
3289
3673
  this.setState({
3290
3674
  videoTenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户10'
3291
3675
  })
3292
3676
  } if (document.getElementById('video11').name == sid) {
3677
+ if(typeIntranet && typeIntranet == 2) {
3678
+ this.state.isPIBIntranet[10].type = true
3679
+ }
3293
3680
  this.setState({
3294
3681
  videoElevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户11'
3295
3682
  })
3296
3683
  } if (document.getElementById('video12').name == sid) {
3684
+ if(typeIntranet && typeIntranet == 2) {
3685
+ this.state.isPIBIntranet[11].type = true
3686
+ }
3297
3687
  this.setState({
3298
3688
  videoTwelveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户12'
3299
3689
  })
@@ -3330,7 +3720,7 @@ class Video extends Component {
3330
3720
  employeeError: result.data.staffName ? '' : '查无此人',
3331
3721
  })
3332
3722
  if(result.data.staffName){
3333
- this.state.linkData = 'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting&appointmentID='+ this.props.businessNumber + '&staffID='+this.state.employeeNumber+'&staffName='+ encodeURIComponent(result.data.staffName)
3723
+ this.state.linkData = this.props.internalUrl + '&appointmentID='+ this.props.businessNumber + '&staffID='+this.state.employeeNumber+'&staffName='+ encodeURIComponent(result.data.staffName)
3334
3724
 
3335
3725
  }
3336
3726
  } else {
@@ -3370,11 +3760,13 @@ class Video extends Component {
3370
3760
  const canvas = document.createElement('canvas');
3371
3761
  const videoMedia = document.getElementById('manedvideo');
3372
3762
  const cobj = canvas.getContext('2d'); // 获取绘图环境
3373
- const left = document.getElementById("whiteboardDIV").getBoundingClientRect().left;
3374
- const top = document.getElementById("whiteboardDIV").getBoundingClientRect().top
3763
+ const left =document.getElementById("allHSBC").getBoundingClientRect().left;
3375
3764
  const right = document.getElementById("whiteboardDIV").getBoundingClientRect().right
3376
- const width = left > 21 ? right : right + left
3377
- const height = document.getElementById("whiteboardDIV").getBoundingClientRect().height
3765
+ const top = document.getElementById("whiteboardDIV").getBoundingClientRect().top
3766
+ const bottom = document.getElementById("whiteboardDIV").getBoundingClientRect().bottom
3767
+ const width = right - left
3768
+ const height = bottom - top + 10
3769
+ const x = left - 20 > 0 ? left - 20 : 0
3378
3770
  canvas.width = width;
3379
3771
  canvas.height = height;
3380
3772
  videoMedia.addEventListener('play', (event) =>{
@@ -3383,7 +3775,7 @@ class Video extends Component {
3383
3775
  loop()
3384
3776
  function loop() {
3385
3777
  if (!$this.paused && !$this.ended) {
3386
- cobj.drawImage(videoMedia, 0, top, width, height, 0, 0,width, height);
3778
+ cobj.drawImage(videoMedia, x, top, width, height, 0, 0,width, height,);
3387
3779
  setTimeout(loop, 1000 / 10); // drawing at 30fps
3388
3780
  }
3389
3781
  }
@@ -3524,6 +3916,123 @@ class Video extends Component {
3524
3916
  console.log('whiteboardDIV', this.state.whiteboardHeight,box.clientHeight,this.state.whiteboardWidth)
3525
3917
  }
3526
3918
  }
3919
+ muteOpposite = (value) => {
3920
+ console.log(value);
3921
+ if (value == 'video1') {
3922
+ callNimIM('sendCustomCmdMsg', {
3923
+ customId: this.state.imRoomId,
3924
+ content: JSON.stringify({
3925
+ 'typeId': 1223,
3926
+ 'sessionId': this.state.sessionId,
3927
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
3928
+ })
3929
+ });
3930
+ }
3931
+ if (value == 'video2') {
3932
+ callNimIM('sendCustomCmdMsg', {
3933
+ customId: this.state.imRoomId,
3934
+ content: JSON.stringify({
3935
+ 'typeId': 1223,
3936
+ 'sessionId': this.state.sessionId,
3937
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
3938
+ })
3939
+ });
3940
+ }if (value == 'video3') {
3941
+ callNimIM('sendCustomCmdMsg', {
3942
+ customId: this.state.imRoomId,
3943
+ content: JSON.stringify({
3944
+ 'typeId': 1223,
3945
+ 'sessionId': this.state.sessionId,
3946
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
3947
+ })
3948
+ });
3949
+ }if (value == 'video4') {
3950
+ callNimIM('sendCustomCmdMsg', {
3951
+ customId: this.state.imRoomId,
3952
+ content: JSON.stringify({
3953
+ 'typeId': 1223,
3954
+ 'sessionId': this.state.sessionId,
3955
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
3956
+ })
3957
+ });
3958
+ }if (value == 'video5') {
3959
+ callNimIM('sendCustomCmdMsg', {
3960
+ customId: this.state.imRoomId,
3961
+ content: JSON.stringify({
3962
+ 'typeId': 1223,
3963
+ 'sessionId': this.state.sessionId,
3964
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
3965
+ })
3966
+ });
3967
+ }if (value == 'video6') {
3968
+ callNimIM('sendCustomCmdMsg', {
3969
+ customId: this.state.imRoomId,
3970
+ content: JSON.stringify({
3971
+ 'typeId': 1223,
3972
+ 'sessionId': this.state.sessionId,
3973
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
3974
+ })
3975
+ });
3976
+ }if (value == 'video7') {
3977
+ callNimIM('sendCustomCmdMsg', {
3978
+ customId: this.state.imRoomId,
3979
+ content: JSON.stringify({
3980
+ 'typeId': 1223,
3981
+ 'sessionId': this.state.sessionId,
3982
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
3983
+ })
3984
+ });
3985
+ }if (value == 'video8') {
3986
+ callNimIM('sendCustomCmdMsg', {
3987
+ customId: this.state.imRoomId,
3988
+ content: JSON.stringify({
3989
+ 'typeId': 1223,
3990
+ 'sessionId': this.state.sessionId,
3991
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
3992
+ })
3993
+ });
3994
+ }if (value == 'video9') {
3995
+ callNimIM('sendCustomCmdMsg', {
3996
+ customId: this.state.imRoomId,
3997
+ content: JSON.stringify({
3998
+ 'typeId': 1223,
3999
+ 'sessionId': this.state.sessionId,
4000
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
4001
+ })
4002
+ });
4003
+ }
4004
+ if (value == 'video10') {
4005
+ callNimIM('sendCustomCmdMsg', {
4006
+ customId: this.state.imRoomId,
4007
+ content: JSON.stringify({
4008
+ 'typeId': 1223,
4009
+ 'sessionId': this.state.sessionId,
4010
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
4011
+ })
4012
+ });
4013
+ }
4014
+ if (value == 'video11') {
4015
+ callNimIM('sendCustomCmdMsg', {
4016
+ customId: this.state.imRoomId,
4017
+ content: JSON.stringify({
4018
+ 'typeId': 1223,
4019
+ 'sessionId': this.state.sessionId,
4020
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
4021
+ })
4022
+ });
4023
+ }
4024
+ if (value == 'video12') {
4025
+ callNimIM('sendCustomCmdMsg', {
4026
+ customId: this.state.imRoomId,
4027
+ content: JSON.stringify({
4028
+ 'typeId': 1223,
4029
+ 'sessionId': this.state.sessionId,
4030
+ 'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
4031
+ })
4032
+ });
4033
+ }
4034
+
4035
+ }
3527
4036
  render() {
3528
4037
  const { meetingInfo,isTranscribing } = this.props
3529
4038
  var pdfChildren
@@ -3762,6 +4271,7 @@ class Video extends Component {
3762
4271
  <label style={{ display: 'none' }} id="feedId1" type="text" />
3763
4272
 
3764
4273
  <div style={{ display: (this.state.videoOneName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
4274
+ <div onClick={this.muteOpposite.bind(this,'video1')}>
3765
4275
  {
3766
4276
  this.state.voiceVideoOne && <img
3767
4277
  alt=""
@@ -3770,7 +4280,7 @@ class Video extends Component {
3770
4280
  />
3771
4281
  }
3772
4282
  <canvas style={{ display: (this.state.videoOneName && !this.state.voiceVideoOne) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px'}} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
3773
-
4283
+ </div>
3774
4284
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3775
4285
  {this.state.videoOneName}
3776
4286
  </div>
@@ -3790,6 +4300,7 @@ class Video extends Component {
3790
4300
  <label style={{ display: 'none' }} id="feedId2" type="text" />
3791
4301
 
3792
4302
  <div style={{ display: (this.state.videoTwoName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
4303
+ <div onClick={this.muteOpposite.bind(this,'video2')}>
3793
4304
  {
3794
4305
  this.state.voiceVideoTwo && <img
3795
4306
  alt=""
@@ -3798,7 +4309,7 @@ class Video extends Component {
3798
4309
  />
3799
4310
  }
3800
4311
  <canvas style={{ display: (this.state.videoTwoName && !this.state.voiceVideoTwo) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
3801
-
4312
+ </div>
3802
4313
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3803
4314
  {this.state.videoTwoName}
3804
4315
  </div>
@@ -3816,6 +4327,7 @@ class Video extends Component {
3816
4327
  <label style={{ display: 'none' }} id="feedId3" type="text" />
3817
4328
 
3818
4329
  <div style={{ display: (this.state.videoThreeName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
4330
+ <div onClick={this.muteOpposite.bind(this,'video3')}>
3819
4331
  {
3820
4332
  this.state.voiceVideoThree && <img
3821
4333
  alt=""
@@ -3824,7 +4336,7 @@ class Video extends Component {
3824
4336
  />
3825
4337
  }
3826
4338
  <canvas style={{ display: (this.state.videoThreeName && !this.state.voiceVideoThree) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
3827
-
4339
+ </div>
3828
4340
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3829
4341
  {this.state.videoThreeName}
3830
4342
  </div>
@@ -3841,6 +4353,7 @@ class Video extends Component {
3841
4353
  <label style={{ display: 'none' }} id="feedId4" type="text" />
3842
4354
 
3843
4355
  <div style={{ display: (this.state.videoFourName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
4356
+ <div onClick={this.muteOpposite.bind(this,'video4')}>
3844
4357
  {
3845
4358
  this.state.voiceVideoFour && <img
3846
4359
  alt=""
@@ -3849,7 +4362,7 @@ class Video extends Component {
3849
4362
  />
3850
4363
  }
3851
4364
  <canvas style={{ display: (this.state.videoFourName && !this.state.voiceVideoFour) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
3852
-
4365
+ </div>
3853
4366
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3854
4367
  {this.state.videoFourName}
3855
4368
  </div>
@@ -3867,6 +4380,7 @@ class Video extends Component {
3867
4380
  <label style={{ display: 'none' }} id="feedId5" type="text" />
3868
4381
 
3869
4382
  <div style={{ display: (this.state.videoFiveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
4383
+ <div onClick={this.muteOpposite.bind(this,'video5')}>
3870
4384
  {
3871
4385
  this.state.voiceVideoFive && <img
3872
4386
  alt=""
@@ -3875,7 +4389,7 @@ class Video extends Component {
3875
4389
  />
3876
4390
  }
3877
4391
  <canvas style={{ display: (this.state.videoFiveName && !this.state.voiceVideoFive) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
3878
-
4392
+ </div>
3879
4393
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3880
4394
  {this.state.videoFiveName}
3881
4395
  </div>
@@ -3892,6 +4406,7 @@ class Video extends Component {
3892
4406
  <label style={{ display: 'none' }} id="feedId6" type="text" />
3893
4407
 
3894
4408
  <div style={{ display: (this.state.videoSixName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
4409
+ <div onClick={this.muteOpposite.bind(this,'video6')}>
3895
4410
  {
3896
4411
  this.state.voiceVideoSix && <img
3897
4412
  alt=""
@@ -3900,7 +4415,7 @@ class Video extends Component {
3900
4415
  />
3901
4416
  }
3902
4417
  <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
3903
-
4418
+ </div>
3904
4419
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3905
4420
  {this.state.videoSixName}
3906
4421
  </div>
@@ -3929,6 +4444,7 @@ class Video extends Component {
3929
4444
  <label style={{ display: 'none' }} id="feedId7" type="text" />
3930
4445
 
3931
4446
  <div style={{ display: (this.state.videoSevenName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
4447
+ <div onClick={this.muteOpposite.bind(this,'video7')}>
3932
4448
  {
3933
4449
  this.state.voiceVideoSeven && <img
3934
4450
  alt=""
@@ -3937,7 +4453,7 @@ class Video extends Component {
3937
4453
  />
3938
4454
  }
3939
4455
  <canvas style={{ display: (this.state.videoSevenName && !this.state.voiceVideoSeven) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
3940
-
4456
+ </div>
3941
4457
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3942
4458
  {this.state.videoSevenName}
3943
4459
  </div>
@@ -3957,6 +4473,7 @@ class Video extends Component {
3957
4473
  <label style={{ display: 'none' }} id="feedId8" type="text" />
3958
4474
 
3959
4475
  <div style={{ display: (this.state.videoEightName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
4476
+ <div onClick={this.muteOpposite.bind(this,'video8')}>
3960
4477
  {
3961
4478
  this.state.voiceVideoEight && <img
3962
4479
  alt=""
@@ -3965,7 +4482,7 @@ class Video extends Component {
3965
4482
  />
3966
4483
  }
3967
4484
  <canvas style={{ display: (this.state.videoEightName && !this.state.voiceVideoEight) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
3968
-
4485
+ </div>
3969
4486
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3970
4487
  {this.state.videoEightName}
3971
4488
  </div>
@@ -3982,6 +4499,7 @@ class Video extends Component {
3982
4499
  <label style={{ display: 'none' }} id="feedId9" type="text" />
3983
4500
 
3984
4501
  <div style={{ display: (this.state.videoNineName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
4502
+ <div onClick={this.muteOpposite.bind(this,'video9')}>
3985
4503
  {
3986
4504
  this.state.voiceVideoNine && <img
3987
4505
  alt=""
@@ -3990,7 +4508,7 @@ class Video extends Component {
3990
4508
  />
3991
4509
  }
3992
4510
  <canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
3993
-
4511
+ </div>
3994
4512
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3995
4513
  {this.state.videoNineName}
3996
4514
  </div>
@@ -4009,6 +4527,7 @@ class Video extends Component {
4009
4527
  <label style={{ display: 'none' }} id="feedId10" type="text" />
4010
4528
 
4011
4529
  <div style={{ display: (this.state.videoTenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
4530
+ <div onClick={this.muteOpposite.bind(this,'video10')}>
4012
4531
  {
4013
4532
  this.state.voiceVideoTen && <img
4014
4533
  alt=""
@@ -4017,7 +4536,7 @@ class Video extends Component {
4017
4536
  />
4018
4537
  }
4019
4538
  <canvas style={{ display: (this.state.videoTenName && !this.state.voiceVideoTen) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
4020
-
4539
+ </div>
4021
4540
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
4022
4541
  {this.state.videoTenName}
4023
4542
  </div>
@@ -4034,6 +4553,7 @@ class Video extends Component {
4034
4553
  <label style={{ display: 'none' }} id="feedId11" type="text" />
4035
4554
 
4036
4555
  <div style={{ display: (this.state.videoElevenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
4556
+ <div onClick={this.muteOpposite.bind(this,'video11')}>
4037
4557
  {
4038
4558
  this.state.voiceVideoEleven && <img
4039
4559
  alt=""
@@ -4042,7 +4562,7 @@ class Video extends Component {
4042
4562
  />
4043
4563
  }
4044
4564
  <canvas style={{ display: (this.state.videoElevenName && !this.state.voiceVideoEleven) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
4045
-
4565
+ </div>
4046
4566
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
4047
4567
  {this.state.videoElevenName}
4048
4568
  </div>
@@ -4060,6 +4580,7 @@ class Video extends Component {
4060
4580
  <label style={{ display: 'none' }} id="feedId12" type="text" />
4061
4581
 
4062
4582
  <div style={{ display: (this.state.videoTwelveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
4583
+ <div onClick={this.muteOpposite.bind(this,'video12')}>
4063
4584
  {
4064
4585
  this.state.voiceVideoTwelve && <img
4065
4586
  alt=""
@@ -4068,7 +4589,7 @@ class Video extends Component {
4068
4589
  />
4069
4590
  }
4070
4591
  <canvas style={{ display: (this.state.videoTwelveName && !this.state.voiceVideoTwelve) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
4071
-
4592
+ </div>
4072
4593
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
4073
4594
  {this.state.videoTwelveName}
4074
4595
  </div>
@@ -4132,7 +4653,16 @@ class Video extends Component {
4132
4653
  </div>
4133
4654
  ]}>
4134
4655
  <div className="faceBody">
4135
- <img className="faceImg" src={this.state.facialImg} alt=""></img>
4656
+ {this.state.faceCustomerType == 2 &&
4657
+ <Select defaultValue={this.state.defaultValue} style={{ width: 120,marginBottom: '20px' }} onChange={this.handleChangeOcr}>
4658
+ <Option value="1">正面</Option>
4659
+ <Option value="2">反面</Option>
4660
+ </Select>
4661
+ }
4662
+ <div>
4663
+ <img className="faceImg" src={this.state.facialImg} alt=""></img>
4664
+ </div>
4665
+
4136
4666
  </div>
4137
4667
  </Modal>
4138
4668
  {/* <Modal title={this.state.titleModal} cancelText="取消" okText="确定" visible={this.state.isModalVisibleFacial}
@@ -4255,5 +4785,6 @@ sessionId: "Fwua8kGB6",
4255
4785
  otherAttendees: undefined
4256
4786
  },
4257
4787
  isTranscribing: false,
4788
+ internalUrl: 'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting'
4258
4789
  }
4259
4790
  export default Video