react_hsbc_teller 1.7.2 → 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/demo.js +4 -5
- package/packages/pages/video/video.jsx +77 -3
package/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -5,11 +5,10 @@ import Pdf from './pdf.js'
|
|
|
5
5
|
class Demo extends Component {
|
|
6
6
|
state = {
|
|
7
7
|
shareMask: false,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
mtoken: "492948d0a7ec",
|
|
9
|
+
roomId: "656467744508298",
|
|
10
|
+
imRoomId: "ACkhcdtat@conference.openfire2.leimondata.cn",
|
|
11
|
+
sessionId: "ACkhcdtat",
|
|
13
12
|
// roomId: '',
|
|
14
13
|
// mtoken: '',
|
|
15
14
|
// imRoomId: '',
|
|
@@ -373,8 +373,8 @@ class Video extends Component {
|
|
|
373
373
|
mpaasSig = async data => {
|
|
374
374
|
console.log(data);
|
|
375
375
|
try {
|
|
376
|
-
|
|
377
|
-
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});
|
|
378
378
|
console.log('mpaasSig',result,result.mpsSig);
|
|
379
379
|
window.sessionStorage.setItem('alimpassSig', result.mpsSig);
|
|
380
380
|
this.state.workSpaceId = result.workspaceId,
|
|
@@ -1817,6 +1817,72 @@ class Video extends Component {
|
|
|
1817
1817
|
// 手机端停止投屏
|
|
1818
1818
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
1819
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
|
+
}
|
|
1820
1886
|
}
|
|
1821
1887
|
};
|
|
1822
1888
|
window.IMOpenfire = msg =>{
|
|
@@ -2153,6 +2219,14 @@ class Video extends Component {
|
|
|
2153
2219
|
}
|
|
2154
2220
|
}
|
|
2155
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
|
+
}
|
|
2156
2230
|
this.setState({
|
|
2157
2231
|
|
|
2158
2232
|
loading: false,
|
|
@@ -4652,7 +4726,7 @@ userType:'1'
|
|
|
4652
4726
|
this.state.whiteboardHeight = box.offsetHeight * 0.92,
|
|
4653
4727
|
this.state.whiteboardTop = box.getBoundingClientRect().top * 1.08 - 40
|
|
4654
4728
|
this.state.whiteboardLeft = box.getBoundingClientRect().left
|
|
4655
|
-
console.log('whiteboardDIV', this.state.whiteboardHeight,
|
|
4729
|
+
console.log('whiteboardDIV', this.state.whiteboardHeight,this.state.whiteboardWidth,this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
4656
4730
|
}
|
|
4657
4731
|
}
|
|
4658
4732
|
muteOpposite = (value) => {
|