react_hsbc_teller 1.7.0 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/demo/pdf.js +2 -1
- package/packages/pages/video/video.jsx +131 -47
package/package.json
CHANGED
package/packages/demo/pdf.js
CHANGED
|
@@ -55,8 +55,9 @@ handleResourcePath = (event) => {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
render() {
|
|
58
|
+
console.log('22',this.props)
|
|
58
59
|
return (
|
|
59
|
-
<div className="test">
|
|
60
|
+
<div className="test" style={{width: this.props.width,height:this.props.height}}>
|
|
60
61
|
{
|
|
61
62
|
<div>
|
|
62
63
|
坐席账号:<input placeholder="请输入坐席账号" value={this.state.tellerAccount} onChange={e => this.handleChangeTeller(e)}></input>
|
|
@@ -46,10 +46,6 @@ let rateList = []
|
|
|
46
46
|
let beautyDiv = {};
|
|
47
47
|
let CanvasHome = styled.div`
|
|
48
48
|
position: fixed;
|
|
49
|
-
width: 76vw;
|
|
50
|
-
height: 74vh;
|
|
51
|
-
top: 3vh;
|
|
52
|
-
left: 1.5vw;
|
|
53
49
|
z-index: ${props=>props.zIndexNum};
|
|
54
50
|
|
|
55
51
|
.canvas{
|
|
@@ -112,6 +108,8 @@ class Video extends Component {
|
|
|
112
108
|
isScreenSwitching: false,
|
|
113
109
|
whiteboardWidth: '',
|
|
114
110
|
whiteboardHeight: '',
|
|
111
|
+
whiteboardTop: '',
|
|
112
|
+
whiteboardLeft: '',
|
|
115
113
|
laveRoomSharedScreen: false,
|
|
116
114
|
isJoinRoom: false,
|
|
117
115
|
sessionType: false,
|
|
@@ -375,8 +373,8 @@ class Video extends Component {
|
|
|
375
373
|
mpaasSig = async data => {
|
|
376
374
|
console.log(data);
|
|
377
375
|
try {
|
|
378
|
-
|
|
379
|
-
let result = await API.mpaasSig({account: data.account, type: data.type});
|
|
376
|
+
let result = JSON.parse(this.decrypt(await API.mpaasSig({ ciphertext: this.encrypt({account: data.account, type: data.type})})));
|
|
377
|
+
// let result = await API.mpaasSig({account: data.account, type: data.type});
|
|
380
378
|
console.log('mpaasSig',result,result.mpsSig);
|
|
381
379
|
window.sessionStorage.setItem('alimpassSig', result.mpsSig);
|
|
382
380
|
this.state.workSpaceId = result.workspaceId,
|
|
@@ -496,9 +494,9 @@ class Video extends Component {
|
|
|
496
494
|
{
|
|
497
495
|
tag: 'projectionWhiteboard',
|
|
498
496
|
xPosition: 0,
|
|
499
|
-
yPosition:
|
|
500
|
-
width:
|
|
501
|
-
height:
|
|
497
|
+
yPosition: 270,
|
|
498
|
+
width: 1280,
|
|
499
|
+
height: 720
|
|
502
500
|
},
|
|
503
501
|
// {
|
|
504
502
|
// tag: 'VIDEO_SOURCE_SCREEN_ONE',
|
|
@@ -518,43 +516,43 @@ class Video extends Component {
|
|
|
518
516
|
tag: 'tag1',
|
|
519
517
|
xPosition: 0,
|
|
520
518
|
yPosition: 0,
|
|
521
|
-
width:
|
|
522
|
-
height:
|
|
519
|
+
width: 310,
|
|
520
|
+
height: 180
|
|
523
521
|
},
|
|
524
522
|
{
|
|
525
523
|
tag: 'customer1',
|
|
526
|
-
xPosition:
|
|
524
|
+
xPosition: 320,
|
|
527
525
|
yPosition: 0,
|
|
528
|
-
width:
|
|
529
|
-
height:
|
|
526
|
+
width: 310,
|
|
527
|
+
height: 180
|
|
530
528
|
},
|
|
531
529
|
{
|
|
532
530
|
tag: 'customer2',
|
|
533
|
-
xPosition:
|
|
531
|
+
xPosition: 640,
|
|
534
532
|
yPosition: 0,
|
|
535
|
-
width:
|
|
536
|
-
height:
|
|
533
|
+
width: 310,
|
|
534
|
+
height: 180
|
|
537
535
|
},
|
|
538
536
|
{
|
|
539
537
|
tag: 'customer3',
|
|
540
|
-
xPosition:
|
|
538
|
+
xPosition: 960,
|
|
541
539
|
yPosition: 0,
|
|
542
|
-
width:
|
|
543
|
-
height:
|
|
540
|
+
width: 310,
|
|
541
|
+
height: 180
|
|
544
542
|
},
|
|
545
543
|
{
|
|
546
544
|
tag: 'customer4',
|
|
547
|
-
xPosition:
|
|
545
|
+
xPosition: 1280,
|
|
548
546
|
yPosition: 0,
|
|
549
|
-
width:
|
|
550
|
-
height:
|
|
547
|
+
width: 310,
|
|
548
|
+
height: 180
|
|
551
549
|
},
|
|
552
550
|
{
|
|
553
551
|
tag: 'customer5',
|
|
554
|
-
xPosition:
|
|
552
|
+
xPosition: 1600,
|
|
555
553
|
yPosition: 0,
|
|
556
|
-
width:
|
|
557
|
-
height:
|
|
554
|
+
width: 310,
|
|
555
|
+
height: 180
|
|
558
556
|
},
|
|
559
557
|
// {
|
|
560
558
|
// tag: 'customer6',
|
|
@@ -608,25 +606,17 @@ class Video extends Component {
|
|
|
608
606
|
width: item.width,
|
|
609
607
|
height: item.height
|
|
610
608
|
})
|
|
611
|
-
}) :
|
|
612
|
-
list.push({
|
|
609
|
+
}) : list.push({
|
|
613
610
|
tag: 'VIDEO_SOURCE_SCREEN',
|
|
614
|
-
xPosition:
|
|
615
|
-
yPosition:
|
|
616
|
-
width:
|
|
617
|
-
height:
|
|
611
|
+
xPosition: 1290,
|
|
612
|
+
yPosition: 640,
|
|
613
|
+
width: 630,
|
|
614
|
+
height: 350
|
|
618
615
|
})
|
|
619
|
-
// list.push({
|
|
620
|
-
// tag: 'VIDEO_SOURCE_SCREEN_19_9',
|
|
621
|
-
// xPosition: 960,
|
|
622
|
-
// yPosition: 573,
|
|
623
|
-
// width: 304,
|
|
624
|
-
// height: 144
|
|
625
|
-
// })
|
|
626
616
|
const filePath = 'recordId_' + new Date().valueOf();
|
|
627
617
|
const recordParam = {};
|
|
628
|
-
recordParam.width =
|
|
629
|
-
recordParam.height =
|
|
618
|
+
recordParam.width = 1920;
|
|
619
|
+
recordParam.height = 1080;
|
|
630
620
|
recordParam.recordTotalStream = 0;
|
|
631
621
|
recordParam.startTimeout = 10;
|
|
632
622
|
recordParam.splitType = 0;
|
|
@@ -1827,6 +1817,72 @@ class Video extends Component {
|
|
|
1827
1817
|
// 手机端停止投屏
|
|
1828
1818
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
1829
1819
|
|
|
1820
|
+
} else if (Mival.typeId == 1401) {
|
|
1821
|
+
if (Mival.sessionId == this.state.sessionId) {
|
|
1822
|
+
if (Mival.userId == this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid) {
|
|
1823
|
+
this.setState({
|
|
1824
|
+
videoOneName: Mival.name
|
|
1825
|
+
})
|
|
1826
|
+
|
|
1827
|
+
}
|
|
1828
|
+
if (Mival.userId == (document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
|
|
1829
|
+
this.setState({
|
|
1830
|
+
videoTwoName: Mival.name
|
|
1831
|
+
})
|
|
1832
|
+
}
|
|
1833
|
+
if (Mival.userId == (document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
|
|
1834
|
+
this.setState({
|
|
1835
|
+
videoThreeName: Mival.name
|
|
1836
|
+
})
|
|
1837
|
+
}
|
|
1838
|
+
if (Mival.userId == (document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
|
|
1839
|
+
this.setState({
|
|
1840
|
+
videoFourName: Mival.name
|
|
1841
|
+
})
|
|
1842
|
+
}
|
|
1843
|
+
if (Mival.userId == (document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
|
|
1844
|
+
this.setState({
|
|
1845
|
+
videoFiveName: Mival.name
|
|
1846
|
+
})
|
|
1847
|
+
}
|
|
1848
|
+
if (Mival.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
|
|
1849
|
+
this.setState({
|
|
1850
|
+
videoSixName: Mival.name
|
|
1851
|
+
})
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
if (Mival.userId == (document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : '')) {
|
|
1855
|
+
this.setState({
|
|
1856
|
+
videoSevenName: Mival.name
|
|
1857
|
+
})
|
|
1858
|
+
}
|
|
1859
|
+
if (Mival.userId == (document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : '')) {
|
|
1860
|
+
this.setState({
|
|
1861
|
+
videoEightName: Mival.name
|
|
1862
|
+
})
|
|
1863
|
+
}
|
|
1864
|
+
if (Mival.userId == (document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : '')) {
|
|
1865
|
+
this.setState({
|
|
1866
|
+
videoNineName: Mival.name
|
|
1867
|
+
})
|
|
1868
|
+
}
|
|
1869
|
+
if (Mival.userId == (document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : '')) {
|
|
1870
|
+
this.setState({
|
|
1871
|
+
videoTenName: Mival.name
|
|
1872
|
+
})
|
|
1873
|
+
}
|
|
1874
|
+
if (Mival.userId == (document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : '')) {
|
|
1875
|
+
this.setState({
|
|
1876
|
+
videoElevenName: Mival.name
|
|
1877
|
+
})
|
|
1878
|
+
}
|
|
1879
|
+
if (Mival.userId == (document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : '')) {
|
|
1880
|
+
this.setState({
|
|
1881
|
+
videoTwelveName: Mival.name
|
|
1882
|
+
})
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
}
|
|
1830
1886
|
}
|
|
1831
1887
|
};
|
|
1832
1888
|
window.IMOpenfire = msg =>{
|
|
@@ -2163,6 +2219,14 @@ class Video extends Component {
|
|
|
2163
2219
|
}
|
|
2164
2220
|
}
|
|
2165
2221
|
if(sid == document.getElementById('publish_video1').name) {
|
|
2222
|
+
var box=document.getElementById("whiteboardDIV");
|
|
2223
|
+
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
2224
|
+
this.setState({
|
|
2225
|
+
whiteboardTop: box.getBoundingClientRect().top * 1.08 - 40,
|
|
2226
|
+
whiteboardLeft: box.getBoundingClientRect().left
|
|
2227
|
+
})
|
|
2228
|
+
console.log('whiteboardDIV',this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
2229
|
+
}
|
|
2166
2230
|
this.setState({
|
|
2167
2231
|
|
|
2168
2232
|
loading: false,
|
|
@@ -3534,6 +3598,8 @@ userType:'1'
|
|
|
3534
3598
|
|
|
3535
3599
|
this.props.resourcePath + "/eruda.js",
|
|
3536
3600
|
this.props.resourcePath + "/iconfont.js",
|
|
3601
|
+
this.props.resourcePath + "/html2canvas.js",
|
|
3602
|
+
this.props.resourcePath + "/dom-to-image.js",
|
|
3537
3603
|
|
|
3538
3604
|
|
|
3539
3605
|
|
|
@@ -3724,7 +3790,7 @@ userType:'1'
|
|
|
3724
3790
|
// publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
3725
3791
|
publish_config.enableDesktopAudio=true
|
|
3726
3792
|
publish_config.degradationType=2
|
|
3727
|
-
publish_config.desktopStreamToCanvas=
|
|
3793
|
+
publish_config.desktopStreamToCanvas=false
|
|
3728
3794
|
publish_config.sid = document.getElementById('video20').name
|
|
3729
3795
|
this.test_controller.ChangeMediaStream(publish_config)
|
|
3730
3796
|
this.state.isScreenSwitching = true
|
|
@@ -3736,7 +3802,7 @@ userType:'1'
|
|
|
3736
3802
|
// publish_config.video_profile_type=100
|
|
3737
3803
|
// publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
3738
3804
|
publish_config.enableDesktopAudio=true
|
|
3739
|
-
publish_config.desktopStreamToCanvas=
|
|
3805
|
+
publish_config.desktopStreamToCanvas=false
|
|
3740
3806
|
publish_config.degradationType=2
|
|
3741
3807
|
publish_config.sid = document.getElementById('video20').name;
|
|
3742
3808
|
this.test_controller.ChangeMediaStream(publish_config);
|
|
@@ -3745,7 +3811,7 @@ userType:'1'
|
|
|
3745
3811
|
publish_config.publish_device = 2
|
|
3746
3812
|
publish_config.need_volume_analyser = true
|
|
3747
3813
|
publish_config.video_profile_type = 1
|
|
3748
|
-
publish_config.desktopStreamToCanvas=
|
|
3814
|
+
publish_config.desktopStreamToCanvas=false
|
|
3749
3815
|
// publish_config.video_profile_type=100
|
|
3750
3816
|
// publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
3751
3817
|
publish_config.enableDesktopAudio=true
|
|
@@ -3770,8 +3836,22 @@ userType:'1'
|
|
|
3770
3836
|
if (!this.state.isPictureInPicture) {
|
|
3771
3837
|
this.pictureInPicture()
|
|
3772
3838
|
}
|
|
3773
|
-
|
|
3839
|
+
|
|
3840
|
+
|
|
3774
3841
|
}
|
|
3842
|
+
// const publish_config1 = {};
|
|
3843
|
+
// publish_config1.publish_device = 4;
|
|
3844
|
+
// publish_config1.media_type = 1;
|
|
3845
|
+
// publish_config1.part_of_screen_id = 'whiteboardDIV';
|
|
3846
|
+
// publish_config1.video_profile_type = 2;
|
|
3847
|
+
// publish_config1.degradationType=2
|
|
3848
|
+
// publish_config1.publish_video_id = 'video30';
|
|
3849
|
+
// publish_config1.publish_tag = 'projectionWhiteboard';
|
|
3850
|
+
// publish_config1.capture_interval = 200
|
|
3851
|
+
// publish_config1.capture_mode = 2
|
|
3852
|
+
// publish_config.capture_lib = 'dom2image'
|
|
3853
|
+
// publish_config1.listen_events = ['keyup', 'scroll', 'click','touchstart','touchend','touchmove','mousemove']
|
|
3854
|
+
// this.test_controller.Publish(publish_config1)
|
|
3775
3855
|
} else {
|
|
3776
3856
|
this.messageClick('internal staff正在共享屏幕,请先关闭','error')
|
|
3777
3857
|
}
|
|
@@ -4644,7 +4724,9 @@ userType:'1'
|
|
|
4644
4724
|
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
4645
4725
|
this.state.whiteboardWidth = box.offsetWidth,
|
|
4646
4726
|
this.state.whiteboardHeight = box.offsetHeight * 0.92,
|
|
4647
|
-
|
|
4727
|
+
this.state.whiteboardTop = box.getBoundingClientRect().top * 1.08 - 40
|
|
4728
|
+
this.state.whiteboardLeft = box.getBoundingClientRect().left
|
|
4729
|
+
console.log('whiteboardDIV', this.state.whiteboardHeight,this.state.whiteboardWidth,this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
4648
4730
|
}
|
|
4649
4731
|
}
|
|
4650
4732
|
muteOpposite = (value) => {
|
|
@@ -4933,7 +5015,7 @@ userType:'1'
|
|
|
4933
5015
|
{tabTitleList}
|
|
4934
5016
|
{/* <img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" /> */}
|
|
4935
5017
|
<div id="whiteboardDIV" style={{height: 'calc(100% - 33px)'}}>
|
|
4936
|
-
<CanvasHome zIndexNum={this.state.zIndexNum} style={{width: this.state.whiteboardWidth,height: this.state.whiteboardHeight}}>
|
|
5018
|
+
<CanvasHome zIndexNum={this.state.zIndexNum} style={{width: this.state.whiteboardWidth + 'Px',height: this.state.whiteboardHeight + 'Px',top: this.state.whiteboardTop + 'Px',left:this.state.whiteboardLeft + 'Px'}}>
|
|
4937
5019
|
{this.state.operateShow &&
|
|
4938
5020
|
<OpreateDiv id="operate">
|
|
4939
5021
|
<span style={{color: this.state.selectSpan == 'pen' ? '#1890ff' : '#333'}} onClick={() => this.setTool('pen')}>铅笔</span>
|
|
@@ -5577,6 +5659,8 @@ userType:'1'
|
|
|
5577
5659
|
</Modal>
|
|
5578
5660
|
<video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"></video>
|
|
5579
5661
|
<video className="mixedvideo" id="manedvideo" autoPlay width="0" height="0"></video>
|
|
5662
|
+
<video className="mixedvideo" id="video30" autoPlay width="0" height="0"></video>
|
|
5663
|
+
|
|
5580
5664
|
|
|
5581
5665
|
</Spin>
|
|
5582
5666
|
</div>);
|