react_hsbc_teller 1.2.1 → 1.2.2
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/api/api.js +21 -0
- package/packages/pages/foot/foot.jsx +3 -3
- package/packages/pages/foot/foot.less +10 -1
- package/packages/pages/video/video.jsx +282 -30
package/package.json
CHANGED
package/packages/api/api.js
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import Server from './server';
|
|
2
2
|
|
|
3
3
|
class API extends Server{
|
|
4
|
+
|
|
5
|
+
async retrieveCustomerInfoByActivityId(params = {}){
|
|
6
|
+
// return this.axios('get', '/lang/select/2', params);
|
|
7
|
+
try{
|
|
8
|
+
let result = await this.axios('post', '/hsbc/retrieveCustomerInfoByActivityId', params);
|
|
9
|
+
console.log(result)
|
|
10
|
+
if(result && (result.data instanceof Object) && result.code === 200){
|
|
11
|
+
return result||[];
|
|
12
|
+
}else{
|
|
13
|
+
let err = {
|
|
14
|
+
tip: '服务异常',
|
|
15
|
+
response: result,
|
|
16
|
+
data: params,
|
|
17
|
+
// url: 'https://api.cangdu.org/shopro/data/products',
|
|
18
|
+
}
|
|
19
|
+
throw err;
|
|
20
|
+
}
|
|
21
|
+
}catch(err){
|
|
22
|
+
throw err;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
4
25
|
async ocrCallback(params = {}){
|
|
5
26
|
// return this.axios('get', '/lang/select/2', params);
|
|
6
27
|
try{
|
|
@@ -53,11 +53,11 @@ export default class foot extends Component {
|
|
|
53
53
|
render() {
|
|
54
54
|
const {clickedOcr,clickedFacial,img,isWhiteboard,cameraImg,isTranscribing ,screenName,suspendName,customerList,menus,voiceName} = this.props
|
|
55
55
|
const content = (
|
|
56
|
-
<div>
|
|
56
|
+
<div style={{display: 'inline-grid'}}>
|
|
57
57
|
{customerList.map((item,index)=>{
|
|
58
58
|
return <div key={index}className="customer" onClick={this.customerFaceClick.bind(this,item)}>
|
|
59
|
-
<img className="
|
|
60
|
-
<
|
|
59
|
+
<img className="imgClassFoot" alt="" src={require("../../assets/img/youke.png").default} />
|
|
60
|
+
<span className="listLi" key={item.customerId}>{item.name}</span>
|
|
61
61
|
</div>
|
|
62
62
|
}
|
|
63
63
|
)
|
|
@@ -64,6 +64,10 @@ line-height: 11px;
|
|
|
64
64
|
font-size: 16px;
|
|
65
65
|
color: #FFFFFF;
|
|
66
66
|
}
|
|
67
|
+
.imgClassFoot{
|
|
68
|
+
width: 25px;
|
|
69
|
+
height: 25px;
|
|
70
|
+
}
|
|
67
71
|
.imgClass{
|
|
68
72
|
width: 25px;
|
|
69
73
|
height: 25px;
|
|
@@ -72,5 +76,10 @@ color: #FFFFFF;
|
|
|
72
76
|
margin-top: 4px;
|
|
73
77
|
}
|
|
74
78
|
.customer{
|
|
75
|
-
|
|
79
|
+
width: 150px;
|
|
80
|
+
height: 30px;
|
|
81
|
+
}
|
|
82
|
+
.customer:hover{
|
|
83
|
+
background: #F3F3F3;
|
|
84
|
+
border-radius: 8px;
|
|
76
85
|
}
|
|
@@ -146,7 +146,45 @@ class Video extends Component {
|
|
|
146
146
|
noVideoTwelve: false,
|
|
147
147
|
manualClose: false,
|
|
148
148
|
defaultValue: '1',
|
|
149
|
-
customOcrSid: ''
|
|
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
|
+
]
|
|
150
188
|
};
|
|
151
189
|
// eslint-disable-next-line no-undef
|
|
152
190
|
test_controller = '';
|
|
@@ -543,100 +581,208 @@ class Video extends Component {
|
|
|
543
581
|
// 获取人员客户列表
|
|
544
582
|
selectCustomer = (val) => {
|
|
545
583
|
const list = []
|
|
546
|
-
if (document.getElementById('video1').name) {
|
|
584
|
+
if (document.getElementById('video1').name && !this.state.isPIBIntranet[0].type) {
|
|
547
585
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText))
|
|
548
586
|
// document.getElementById("feedId1").innerText
|
|
549
587
|
list.push({
|
|
550
588
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
|
|
551
589
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
|
|
552
|
-
name: this.state.videoOneName,
|
|
590
|
+
name: this.state.videoOneName + '--OCR',
|
|
591
|
+
tourist: false
|
|
553
592
|
})
|
|
593
|
+
if(this.state.videoOneName.indexOf("客户") == -1) {
|
|
594
|
+
list.push({
|
|
595
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
|
|
596
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
|
|
597
|
+
name: this.state.videoOneName + '--查询客户',
|
|
598
|
+
tourist: true
|
|
599
|
+
})
|
|
600
|
+
}
|
|
554
601
|
}
|
|
555
|
-
if (document.getElementById('video2').name) {
|
|
602
|
+
if (document.getElementById('video2').name && !this.state.isPIBIntranet[1].type) {
|
|
556
603
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText))
|
|
557
604
|
// document.getElementById("feedId1").innerText
|
|
558
605
|
list.push({
|
|
559
606
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
|
|
560
607
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
|
|
561
|
-
name: this.state.videoTwoName
|
|
608
|
+
name: this.state.videoTwoName + '--OCR',
|
|
609
|
+
tourist: false
|
|
562
610
|
})
|
|
611
|
+
if(this.state.videoTwoName.indexOf("客户") == -1) {
|
|
612
|
+
list.push({
|
|
613
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
|
|
614
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
|
|
615
|
+
name: this.state.videoTwoName + '--查询客户',
|
|
616
|
+
tourist: true
|
|
617
|
+
})
|
|
618
|
+
}
|
|
563
619
|
}
|
|
564
|
-
if (document.getElementById('video3').name) {
|
|
620
|
+
if (document.getElementById('video3').name && !this.state.isPIBIntranet[2].type) {
|
|
565
621
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText))
|
|
566
622
|
// document.getElementById("feedId1").innerText
|
|
567
623
|
list.push({
|
|
568
624
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
|
|
569
625
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
|
|
570
|
-
name: this.state.videoThreeName
|
|
626
|
+
name: this.state.videoThreeName + '--OCR',
|
|
627
|
+
tourist: false
|
|
571
628
|
})
|
|
629
|
+
if(this.state.videoThreeName.indexOf("客户") == -1) {
|
|
630
|
+
list.push({
|
|
631
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
|
|
632
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
|
|
633
|
+
name: this.state.videoThreeName + '--查询客户',
|
|
634
|
+
tourist: true
|
|
635
|
+
})
|
|
636
|
+
}
|
|
572
637
|
}
|
|
573
|
-
if (document.getElementById('video4').name) {
|
|
638
|
+
if (document.getElementById('video4').name && !this.state.isPIBIntranet[3].type) {
|
|
574
639
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText))
|
|
575
640
|
// document.getElementById("feedId1").innerText
|
|
576
641
|
list.push({
|
|
577
642
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
|
|
578
643
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
|
|
579
|
-
name: this.state.videoFourName
|
|
644
|
+
name: this.state.videoFourName + '--OCR',
|
|
645
|
+
tourist: false
|
|
580
646
|
})
|
|
647
|
+
if(this.state.videoFourName.indexOf("客户") == -1) {
|
|
648
|
+
list.push({
|
|
649
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
|
|
650
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
|
|
651
|
+
name: this.state.videoFourName + '--查询客户',
|
|
652
|
+
tourist: true
|
|
653
|
+
})
|
|
654
|
+
}
|
|
581
655
|
}
|
|
582
|
-
if (document.getElementById('video5').name) {
|
|
656
|
+
if (document.getElementById('video5').name && !this.state.isPIBIntranet[4].type) {
|
|
583
657
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText))
|
|
584
658
|
// document.getElementById("feedId1").innerText
|
|
585
659
|
list.push({
|
|
586
660
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
|
|
587
661
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
|
|
588
|
-
name: this.state.videoFiveName
|
|
662
|
+
name: this.state.videoFiveName + '--OCR',
|
|
663
|
+
tourist: false
|
|
589
664
|
})
|
|
665
|
+
if(this.state.videoFiveName.indexOf("客户") == -1) {
|
|
666
|
+
list.push({
|
|
667
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
|
|
668
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
|
|
669
|
+
name: this.state.videoFiveName + '--查询客户',
|
|
670
|
+
tourist: true
|
|
671
|
+
})
|
|
672
|
+
}
|
|
590
673
|
}
|
|
591
|
-
if (document.getElementById('video6').name) {
|
|
674
|
+
if (document.getElementById('video6').name && !this.state.isPIBIntranet[5].type) {
|
|
592
675
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText))
|
|
593
676
|
list.push({
|
|
594
677
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
|
|
595
678
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
|
|
596
|
-
name: this.state.videoSixName
|
|
679
|
+
name: this.state.videoSixName + '--OCR',
|
|
680
|
+
tourist: false
|
|
597
681
|
})
|
|
682
|
+
if(this.state.videoSixName.indexOf("客户") == -1) {
|
|
683
|
+
list.push({
|
|
684
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
|
|
685
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
|
|
686
|
+
name: this.state.videoSixName + '--查询客户',
|
|
687
|
+
tourist: true
|
|
688
|
+
})
|
|
689
|
+
}
|
|
598
690
|
}
|
|
599
|
-
if (document.getElementById('video7').name) {
|
|
691
|
+
if (document.getElementById('video7').name && !this.state.isPIBIntranet[6].type) {
|
|
600
692
|
list.push({
|
|
601
693
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
|
|
602
694
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
|
|
603
|
-
name: this.state.videoSevenName
|
|
695
|
+
name: this.state.videoSevenName + '--OCR',
|
|
696
|
+
tourist: false
|
|
604
697
|
})
|
|
698
|
+
if(this.state.videoSevenName.indexOf("客户") == -1) {
|
|
699
|
+
list.push({
|
|
700
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
|
|
701
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
|
|
702
|
+
name: this.state.videoSevenName + '--查询客户',
|
|
703
|
+
tourist: true
|
|
704
|
+
})
|
|
705
|
+
}
|
|
605
706
|
}
|
|
606
|
-
if (document.getElementById('video8').name) {
|
|
707
|
+
if (document.getElementById('video8').name && !this.state.isPIBIntranet[7].type) {
|
|
607
708
|
list.push({
|
|
608
709
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
|
|
609
710
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
|
|
610
|
-
name: this.state.videoEightName
|
|
711
|
+
name: this.state.videoEightName + '--OCR',
|
|
712
|
+
tourist: false
|
|
611
713
|
})
|
|
714
|
+
if(this.state.videoEightName.indexOf("客户") == -1) {
|
|
715
|
+
list.push({
|
|
716
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
|
|
717
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
|
|
718
|
+
name: this.state.videoEightName + '--查询客户',
|
|
719
|
+
tourist: true
|
|
720
|
+
})
|
|
721
|
+
}
|
|
612
722
|
}
|
|
613
|
-
if (document.getElementById('video9').name) {
|
|
723
|
+
if (document.getElementById('video9').name && !this.state.isPIBIntranet[8].type) {
|
|
614
724
|
list.push({
|
|
615
725
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
|
|
616
726
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
|
|
617
|
-
name: this.state.videoNineName
|
|
727
|
+
name: this.state.videoNineName + '--OCR',
|
|
728
|
+
tourist: false
|
|
618
729
|
})
|
|
730
|
+
if(this.state.videoNineName.indexOf("客户") == -1) {
|
|
731
|
+
list.push({
|
|
732
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
|
|
733
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
|
|
734
|
+
name: this.state.videoNineName + '--查询客户',
|
|
735
|
+
tourist: true
|
|
736
|
+
})
|
|
737
|
+
}
|
|
619
738
|
}
|
|
620
|
-
if (document.getElementById('video10').name) {
|
|
739
|
+
if (document.getElementById('video10').name && !this.state.isPIBIntranet[9].type) {
|
|
621
740
|
list.push({
|
|
622
741
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
|
|
623
742
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
|
|
624
|
-
name: this.state.videoTenName
|
|
743
|
+
name: this.state.videoTenName + '--OCR',
|
|
744
|
+
tourist: false
|
|
625
745
|
})
|
|
746
|
+
if(this.state.videoTenName.indexOf("客户") == -1) {
|
|
747
|
+
list.push({
|
|
748
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
|
|
749
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
|
|
750
|
+
name: this.state.videoTenName + '--查询客户',
|
|
751
|
+
tourist: true
|
|
752
|
+
})
|
|
753
|
+
}
|
|
626
754
|
}
|
|
627
|
-
if (document.getElementById('video11').name) {
|
|
755
|
+
if (document.getElementById('video11').name && !this.state.isPIBIntranet[10].type) {
|
|
628
756
|
list.push({
|
|
629
757
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
|
|
630
758
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
|
|
631
|
-
name: this.state.videoElevenName
|
|
759
|
+
name: this.state.videoElevenName + '--OCR',
|
|
760
|
+
tourist: false
|
|
632
761
|
})
|
|
762
|
+
if(this.state.videoElevenName.indexOf("客户") == -1) {
|
|
763
|
+
list.push({
|
|
764
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
|
|
765
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
|
|
766
|
+
name: this.state.videoElevenName + '--查询客户',
|
|
767
|
+
tourist: true
|
|
768
|
+
})
|
|
769
|
+
}
|
|
633
770
|
}
|
|
634
|
-
if (document.getElementById('video12').name) {
|
|
771
|
+
if (document.getElementById('video12').name && !this.state.isPIBIntranet[11].type) {
|
|
635
772
|
list.push({
|
|
636
773
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
|
|
637
774
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
|
|
638
|
-
name: this.state.videoTwelveName
|
|
775
|
+
name: this.state.videoTwelveName + '--OCR',
|
|
776
|
+
tourist: false
|
|
639
777
|
})
|
|
778
|
+
if(this.state.videoTwelveName.indexOf("客户") == -1) {
|
|
779
|
+
list.push({
|
|
780
|
+
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
|
|
781
|
+
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
|
|
782
|
+
name: this.state.videoTwelveName + '--查询客户',
|
|
783
|
+
tourist: true
|
|
784
|
+
})
|
|
785
|
+
}
|
|
640
786
|
}
|
|
641
787
|
if (list.length > 0) {
|
|
642
788
|
if (val == 'ocr') {
|
|
@@ -661,14 +807,16 @@ class Video extends Component {
|
|
|
661
807
|
content: value,
|
|
662
808
|
icon: <img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>,
|
|
663
809
|
className: 'errorClassName',
|
|
664
|
-
top: 200
|
|
810
|
+
top: 200,
|
|
811
|
+
duration: 10
|
|
665
812
|
})
|
|
666
813
|
} else if(valueOne == 'success') {
|
|
667
814
|
message.success({
|
|
668
815
|
content: value,
|
|
669
816
|
icon: <img src={require("../../assets/img/tooltips1_pass.png").default} alt="" ></img>,
|
|
670
817
|
className: 'successClassName',
|
|
671
|
-
top: 200
|
|
818
|
+
top: 200,
|
|
819
|
+
duration: 10
|
|
672
820
|
})
|
|
673
821
|
}
|
|
674
822
|
|
|
@@ -1949,6 +2097,9 @@ class Video extends Component {
|
|
|
1949
2097
|
this.test_controller.OnNewJoinerIn = (participant) => {
|
|
1950
2098
|
console.log('新加⼊房间者', participant);
|
|
1951
2099
|
this.state.isCustomer= true
|
|
2100
|
+
// let audio = document.createElement('audio') //生成一个audio元素
|
|
2101
|
+
// audio.src = 'http://mp3.9ku.com/hot/2005/05-19/65937.mp3' //音乐的路径
|
|
2102
|
+
// audio.play()
|
|
1952
2103
|
};
|
|
1953
2104
|
// 推送“有新发布”给与会者
|
|
1954
2105
|
this.test_controller.OnNewPublish = (feed) => {
|
|
@@ -2201,6 +2352,7 @@ class Video extends Component {
|
|
|
2201
2352
|
}
|
|
2202
2353
|
})
|
|
2203
2354
|
if (!document.getElementById("video1").name) {
|
|
2355
|
+
this.state.isPIBIntranet[0].type = false
|
|
2204
2356
|
this.setState({
|
|
2205
2357
|
videoOneName: '',
|
|
2206
2358
|
voiceVideoOne: false,
|
|
@@ -2208,6 +2360,7 @@ class Video extends Component {
|
|
|
2208
2360
|
})
|
|
2209
2361
|
}
|
|
2210
2362
|
if (!document.getElementById("video2").name) {
|
|
2363
|
+
this.state.isPIBIntranet[1].type = false
|
|
2211
2364
|
this.setState({
|
|
2212
2365
|
videoTwoName: '',
|
|
2213
2366
|
voiceVideoTwo: false,
|
|
@@ -2215,6 +2368,7 @@ class Video extends Component {
|
|
|
2215
2368
|
})
|
|
2216
2369
|
}
|
|
2217
2370
|
if (!document.getElementById("video3").name) {
|
|
2371
|
+
this.state.isPIBIntranet[2].type = false
|
|
2218
2372
|
this.setState({
|
|
2219
2373
|
videoThreeName: '',
|
|
2220
2374
|
voiceVideoThree: false,
|
|
@@ -2222,6 +2376,7 @@ class Video extends Component {
|
|
|
2222
2376
|
})
|
|
2223
2377
|
}
|
|
2224
2378
|
if (!document.getElementById("video4").name) {
|
|
2379
|
+
this.state.isPIBIntranet[3].type = false
|
|
2225
2380
|
this.setState({
|
|
2226
2381
|
videoFourName: '',
|
|
2227
2382
|
voiceVideoFour: false,
|
|
@@ -2229,6 +2384,7 @@ class Video extends Component {
|
|
|
2229
2384
|
})
|
|
2230
2385
|
}
|
|
2231
2386
|
if (!document.getElementById("video5").name) {
|
|
2387
|
+
this.state.isPIBIntranet[4].type = false
|
|
2232
2388
|
this.setState({
|
|
2233
2389
|
videoFiveName: '',
|
|
2234
2390
|
voiceVideoFive: false,
|
|
@@ -2236,6 +2392,7 @@ class Video extends Component {
|
|
|
2236
2392
|
})
|
|
2237
2393
|
}
|
|
2238
2394
|
if (!document.getElementById("video6").name) {
|
|
2395
|
+
this.state.isPIBIntranet[5].type = false
|
|
2239
2396
|
this.setState({
|
|
2240
2397
|
videoSixName: '',
|
|
2241
2398
|
voiceVideoSix: false,
|
|
@@ -2244,6 +2401,7 @@ class Video extends Component {
|
|
|
2244
2401
|
}
|
|
2245
2402
|
|
|
2246
2403
|
if (!document.getElementById("video7").name) {
|
|
2404
|
+
this.state.isPIBIntranet[6].type = false
|
|
2247
2405
|
this.setState({
|
|
2248
2406
|
videoSevenName: '',
|
|
2249
2407
|
voiceVideoSeven: false,
|
|
@@ -2251,6 +2409,7 @@ class Video extends Component {
|
|
|
2251
2409
|
})
|
|
2252
2410
|
}
|
|
2253
2411
|
if (!document.getElementById("video8").name) {
|
|
2412
|
+
this.state.isPIBIntranet[7].type = false
|
|
2254
2413
|
this.setState({
|
|
2255
2414
|
videoEightName: '',
|
|
2256
2415
|
voiceVideoEight: false,
|
|
@@ -2258,6 +2417,7 @@ class Video extends Component {
|
|
|
2258
2417
|
})
|
|
2259
2418
|
}
|
|
2260
2419
|
if (!document.getElementById("video9").name) {
|
|
2420
|
+
this.state.isPIBIntranet[8].type = false
|
|
2261
2421
|
this.setState({
|
|
2262
2422
|
videoNineName: '',
|
|
2263
2423
|
voiceVideoNine: false,
|
|
@@ -2265,6 +2425,7 @@ class Video extends Component {
|
|
|
2265
2425
|
})
|
|
2266
2426
|
}
|
|
2267
2427
|
if (!document.getElementById("video10").name) {
|
|
2428
|
+
this.state.isPIBIntranet[9].type = false
|
|
2268
2429
|
this.setState({
|
|
2269
2430
|
videoTenName: '',
|
|
2270
2431
|
voiceVideoTen: false,
|
|
@@ -2272,6 +2433,7 @@ class Video extends Component {
|
|
|
2272
2433
|
})
|
|
2273
2434
|
}
|
|
2274
2435
|
if (!document.getElementById("video11").name) {
|
|
2436
|
+
this.state.isPIBIntranet[10].type = false
|
|
2275
2437
|
this.setState({
|
|
2276
2438
|
videoElevenName: '',
|
|
2277
2439
|
voiceVideoEleven: false,
|
|
@@ -2279,6 +2441,7 @@ class Video extends Component {
|
|
|
2279
2441
|
})
|
|
2280
2442
|
}
|
|
2281
2443
|
if (!document.getElementById("video12").name) {
|
|
2444
|
+
this.state.isPIBIntranet[11].type = false
|
|
2282
2445
|
this.setState({
|
|
2283
2446
|
videoTwelveName: '',
|
|
2284
2447
|
voiceVideoTwelve: false,
|
|
@@ -2319,7 +2482,15 @@ class Video extends Component {
|
|
|
2319
2482
|
exitType
|
|
2320
2483
|
) => {
|
|
2321
2484
|
console.log('退出房间者', participant, exitType)
|
|
2322
|
-
this.
|
|
2485
|
+
this.appGetUsernameClick(participant).then((res)=>{
|
|
2486
|
+
console.log('退出房间者',res)
|
|
2487
|
+
let data = res? res : '客户'
|
|
2488
|
+
this.messageClick(( data + '已退出会议'),'error')
|
|
2489
|
+
// let audio = document.createElement('audio') //生成一个audio元素
|
|
2490
|
+
// audio.src = 'http://mp3.9ku.com/hot/2005/05-19/65937.mp3' //音乐的路径
|
|
2491
|
+
// audio.play()
|
|
2492
|
+
})
|
|
2493
|
+
|
|
2323
2494
|
};
|
|
2324
2495
|
// 弱网回调
|
|
2325
2496
|
this.test_controller.OnNetworkWeak = (bpsSend, bpsRecv, sid) => {
|
|
@@ -2614,7 +2785,7 @@ class Video extends Component {
|
|
|
2614
2785
|
let startY = y1 - height // 绘制起始点y
|
|
2615
2786
|
ctx.fillRect(startX, startY, width, height)
|
|
2616
2787
|
if(document.getElementById('publish_video1').name == sid) {
|
|
2617
|
-
this.state.analyserHeight.set(sid,
|
|
2788
|
+
this.state.analyserHeight.set(sid,dataArray[step * 20] / 256.0)
|
|
2618
2789
|
this.state.analyserHeight = this.state.analyserHeight
|
|
2619
2790
|
}
|
|
2620
2791
|
|
|
@@ -3284,8 +3455,34 @@ class Video extends Component {
|
|
|
3284
3455
|
employeeNumber: event.target.value
|
|
3285
3456
|
})
|
|
3286
3457
|
}
|
|
3458
|
+
retrieveCustomerInfoByActivityId = async (value) =>{
|
|
3459
|
+
try {
|
|
3460
|
+
let result = await API.retrieveCustomerInfoByActivityId({
|
|
3461
|
+
activityId: this.props.businessNumber,
|
|
3462
|
+
sessionId: this.state.sessionId,
|
|
3463
|
+
appAccount: value
|
|
3464
|
+
});
|
|
3465
|
+
console.log(result)
|
|
3466
|
+
|
|
3467
|
+
if (result.code == 200) {
|
|
3468
|
+
this.messageClick('查询客户信息成功','success')
|
|
3469
|
+
} else {
|
|
3470
|
+
this.messageClick('查询客户信息失败','error')
|
|
3471
|
+
}
|
|
3472
|
+
}catch (err) {
|
|
3473
|
+
this.messageClick('查询客户信息失败','error')
|
|
3474
|
+
}
|
|
3475
|
+
this.setState({
|
|
3476
|
+
clickedFacial: false,
|
|
3477
|
+
clickedOcr: false,
|
|
3478
|
+
|
|
3479
|
+
})
|
|
3480
|
+
}
|
|
3287
3481
|
customerFaceClick = (item) => {
|
|
3288
3482
|
console.log(item)
|
|
3483
|
+
if(item.tourist) {
|
|
3484
|
+
this.retrieveCustomerInfoByActivityId(item.customId)
|
|
3485
|
+
} else {
|
|
3289
3486
|
var sid
|
|
3290
3487
|
if (item.feedId == document.getElementById("feedId1").innerText) {
|
|
3291
3488
|
sid = document.getElementById('video1').name;
|
|
@@ -3323,6 +3520,7 @@ class Video extends Component {
|
|
|
3323
3520
|
facialImg: this.test_controller.TakePicture(1, undefined, undefined, sid, 'png')
|
|
3324
3521
|
})
|
|
3325
3522
|
}
|
|
3523
|
+
}
|
|
3326
3524
|
handleChangeOcr =(val)=> {
|
|
3327
3525
|
console.log(val)
|
|
3328
3526
|
this.setState({
|
|
@@ -3336,6 +3534,23 @@ class Video extends Component {
|
|
|
3336
3534
|
this.state.sessionId = props.sessionId,
|
|
3337
3535
|
this.state.imRoomId = props.imRoomId
|
|
3338
3536
|
}
|
|
3537
|
+
appGetUsernameClick = async(userId) =>{
|
|
3538
|
+
let data = ''
|
|
3539
|
+
try {
|
|
3540
|
+
let result = await API.appGetUsername({
|
|
3541
|
+
userId: userId,
|
|
3542
|
+
sessionId: this.state.sessionId
|
|
3543
|
+
});
|
|
3544
|
+
console.log(result)
|
|
3545
|
+
|
|
3546
|
+
if (result.code == 200) {
|
|
3547
|
+
data = result.data.username ? result.data.username : ''
|
|
3548
|
+
}
|
|
3549
|
+
return data
|
|
3550
|
+
}catch (err) {
|
|
3551
|
+
return data
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3339
3554
|
appGetUsername = async (sid) => {
|
|
3340
3555
|
console.log(sid)
|
|
3341
3556
|
let userId = ''
|
|
@@ -3383,8 +3598,10 @@ class Video extends Component {
|
|
|
3383
3598
|
});
|
|
3384
3599
|
console.log(result)
|
|
3385
3600
|
let data
|
|
3601
|
+
let typeIntranet
|
|
3386
3602
|
if (result.code == 200) {
|
|
3387
3603
|
data = result.data.username ? result.data.username : ''
|
|
3604
|
+
typeIntranet = result.data.userType ? result.data.userType : ''
|
|
3388
3605
|
} else {
|
|
3389
3606
|
this.messageClick('查询失败','error')
|
|
3390
3607
|
}
|
|
@@ -3394,53 +3611,88 @@ class Video extends Component {
|
|
|
3394
3611
|
})
|
|
3395
3612
|
}
|
|
3396
3613
|
if (document.getElementById('video1').name == sid) {
|
|
3397
|
-
|
|
3614
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3615
|
+
this.state.isPIBIntranet[0].type = true
|
|
3616
|
+
}
|
|
3398
3617
|
this.setState({
|
|
3399
3618
|
videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户1'
|
|
3400
3619
|
})
|
|
3401
3620
|
}
|
|
3402
3621
|
if (document.getElementById('video2').name == sid) {
|
|
3622
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3623
|
+
this.state.isPIBIntranet[1].type = true
|
|
3624
|
+
}
|
|
3403
3625
|
this.setState({
|
|
3404
3626
|
videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户2'
|
|
3405
3627
|
})
|
|
3406
3628
|
} if (document.getElementById('video3').name == sid) {
|
|
3629
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3630
|
+
this.state.isPIBIntranet[2].type = true
|
|
3631
|
+
}
|
|
3407
3632
|
this.setState({
|
|
3408
3633
|
videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户3'
|
|
3409
3634
|
})
|
|
3410
3635
|
} if (document.getElementById('video4').name == sid) {
|
|
3636
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3637
|
+
this.state.isPIBIntranet[3].type = true
|
|
3638
|
+
}
|
|
3411
3639
|
this.setState({
|
|
3412
3640
|
videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户4'
|
|
3413
3641
|
})
|
|
3414
3642
|
} if (document.getElementById('video5').name == sid) {
|
|
3643
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3644
|
+
this.state.isPIBIntranet[4].type = true
|
|
3645
|
+
}
|
|
3415
3646
|
this.setState({
|
|
3416
3647
|
videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户5'
|
|
3417
3648
|
})
|
|
3418
3649
|
} if (document.getElementById('video6').name == sid) {
|
|
3650
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3651
|
+
this.state.isPIBIntranet[5].type = true
|
|
3652
|
+
}
|
|
3419
3653
|
this.setState({
|
|
3420
3654
|
videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户6'
|
|
3421
3655
|
})
|
|
3422
3656
|
}
|
|
3423
3657
|
if (document.getElementById('video7').name == sid) {
|
|
3658
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3659
|
+
this.state.isPIBIntranet[6].type = true
|
|
3660
|
+
}
|
|
3424
3661
|
this.setState({
|
|
3425
3662
|
videoSevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户7'
|
|
3426
3663
|
})
|
|
3427
3664
|
} if (document.getElementById('video8').name == sid) {
|
|
3665
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3666
|
+
this.state.isPIBIntranet[7].type = true
|
|
3667
|
+
}
|
|
3428
3668
|
this.setState({
|
|
3429
3669
|
videoEightName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户8'
|
|
3430
3670
|
})
|
|
3431
3671
|
} if (document.getElementById('video9').name == sid) {
|
|
3672
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3673
|
+
this.state.isPIBIntranet[8].type = true
|
|
3674
|
+
}
|
|
3432
3675
|
this.setState({
|
|
3433
3676
|
videoNineName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户9'
|
|
3434
3677
|
})
|
|
3435
3678
|
} if (document.getElementById('video10').name == sid) {
|
|
3679
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3680
|
+
this.state.isPIBIntranet[9].type = true
|
|
3681
|
+
}
|
|
3436
3682
|
this.setState({
|
|
3437
3683
|
videoTenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户10'
|
|
3438
3684
|
})
|
|
3439
3685
|
} if (document.getElementById('video11').name == sid) {
|
|
3686
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3687
|
+
this.state.isPIBIntranet[10].type = true
|
|
3688
|
+
}
|
|
3440
3689
|
this.setState({
|
|
3441
3690
|
videoElevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户11'
|
|
3442
3691
|
})
|
|
3443
3692
|
} if (document.getElementById('video12').name == sid) {
|
|
3693
|
+
if(typeIntranet && typeIntranet == 2) {
|
|
3694
|
+
this.state.isPIBIntranet[11].type = true
|
|
3695
|
+
}
|
|
3444
3696
|
this.setState({
|
|
3445
3697
|
videoTwelveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户12'
|
|
3446
3698
|
})
|