react_hsbc_teller 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
Binary file
|
|
@@ -115,6 +115,7 @@ class Video extends Component {
|
|
|
115
115
|
imStatus: false,
|
|
116
116
|
imJoinRoom: false,
|
|
117
117
|
analyserData: new Map(),
|
|
118
|
+
analyserHeight: new Map()
|
|
118
119
|
};
|
|
119
120
|
// eslint-disable-next-line no-undef
|
|
120
121
|
test_controller = '';
|
|
@@ -1316,6 +1317,27 @@ class Video extends Component {
|
|
|
1316
1317
|
'tellerId': this.props.tellerAccount
|
|
1317
1318
|
})
|
|
1318
1319
|
});
|
|
1320
|
+
}
|
|
1321
|
+
if(sid == document.getElementById('publish_video1').name) {
|
|
1322
|
+
this.timer = setInterval(
|
|
1323
|
+
() => {
|
|
1324
|
+
console.log('hhhhhh',this.state.analyserHeight.get(sid))
|
|
1325
|
+
if(this.state.analyserHeight.get(sid) > 0 && !this.state.voiceStatue) {
|
|
1326
|
+
callNimIM('sendCustomCmdMsg', {
|
|
1327
|
+
customId: this.state.imRoomId,
|
|
1328
|
+
content: JSON.stringify({
|
|
1329
|
+
'typeId': 3200,
|
|
1330
|
+
"data": {
|
|
1331
|
+
'sessionId': this.state.sessionId,
|
|
1332
|
+
'userId': this.props.tellerAccount
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
})
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
3000
|
|
1340
|
+
);
|
|
1319
1341
|
}
|
|
1320
1342
|
};
|
|
1321
1343
|
// 发布媒体流失败
|
|
@@ -2145,6 +2167,10 @@ class Video extends Component {
|
|
|
2145
2167
|
let startX = x2 // 绘制起始点x
|
|
2146
2168
|
let startY = y1 - height // 绘制起始点y
|
|
2147
2169
|
ctx.fillRect(startX, startY, width, height)
|
|
2170
|
+
this.state.analyserHeight.set(sid,startY)
|
|
2171
|
+
this.setState({
|
|
2172
|
+
analyserHeight: this.state.analyserHeight
|
|
2173
|
+
})
|
|
2148
2174
|
}
|
|
2149
2175
|
requestAnimationFrame(this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser));
|
|
2150
2176
|
|
|
@@ -2319,6 +2345,7 @@ class Video extends Component {
|
|
|
2319
2345
|
return
|
|
2320
2346
|
}
|
|
2321
2347
|
this.cancel = ''
|
|
2348
|
+
this.timer && clearInterval(this.timer);
|
|
2322
2349
|
}
|
|
2323
2350
|
componentWillMount() {
|
|
2324
2351
|
if (this.props.sessionId) {
|
|
@@ -2824,6 +2851,15 @@ class Video extends Component {
|
|
|
2824
2851
|
|
|
2825
2852
|
}
|
|
2826
2853
|
}
|
|
2854
|
+
linkClick=()=>{
|
|
2855
|
+
let inp = document.createElement('input')
|
|
2856
|
+
inp.value = this.state.linkData
|
|
2857
|
+
document.body.appendChild(inp)
|
|
2858
|
+
inp.select() // 选择对象;
|
|
2859
|
+
console.log(inp.value, '复制到的内容')
|
|
2860
|
+
document.execCommand('Copy') // 执行浏览器复制命令
|
|
2861
|
+
inp.remove()
|
|
2862
|
+
}
|
|
2827
2863
|
queryStaff = async () => {
|
|
2828
2864
|
if(!this.state.employeeNumber) return
|
|
2829
2865
|
try {
|
|
@@ -3555,10 +3591,10 @@ class Video extends Component {
|
|
|
3555
3591
|
<div key='invitation'>
|
|
3556
3592
|
<Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>
|
|
3557
3593
|
{
|
|
3558
|
-
this.state.employeeName &&<Button className='modelButtonOk'type="primary" danger onClick={this.handleOkInvitation}
|
|
3594
|
+
this.state.employeeName &&<Button className='modelButtonOk'type="primary" danger onClick={this.handleOkInvitation}>发送邮件</Button>
|
|
3559
3595
|
}
|
|
3560
3596
|
{
|
|
3561
|
-
!this.state.employeeName &&<Button className='modelButtonCancelOne' type="primary" danger
|
|
3597
|
+
!this.state.employeeName &&<Button className='modelButtonCancelOne' type="primary" danger >发送邮件</Button>
|
|
3562
3598
|
}
|
|
3563
3599
|
</div>
|
|
3564
3600
|
]}>
|
|
@@ -3571,9 +3607,12 @@ class Video extends Component {
|
|
|
3571
3607
|
<div className="invitationDiv">
|
|
3572
3608
|
<span className="modalSpan"> 姓名:</span><span>{this.state.employeeName}</span>
|
|
3573
3609
|
</div>
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3610
|
+
{
|
|
3611
|
+
this.state.employeeName &&<div className='invitationDiv'>
|
|
3612
|
+
<span className="modalSpan"> </span><Button className="invitationButton" onClick={this.linkClick}> <img className='invitationImg' src={require("../../assets/img/link.png").default} alt="" />复制链接</Button>
|
|
3613
|
+
</div>
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3577
3616
|
</div>
|
|
3578
3617
|
{
|
|
3579
3618
|
this.state.employeeError && <div className='errorClassInvitation'>
|
|
@@ -123,6 +123,15 @@
|
|
|
123
123
|
font-size: 17px;
|
|
124
124
|
color: #666666;
|
|
125
125
|
}
|
|
126
|
+
.invitationImg{
|
|
127
|
+
width: 20px;
|
|
128
|
+
height: 20px;
|
|
129
|
+
}
|
|
130
|
+
.invitationButton{
|
|
131
|
+
color: #1a9adc !important;
|
|
132
|
+
border: none !important;
|
|
133
|
+
background: #fff !important;
|
|
134
|
+
}
|
|
126
135
|
.invitationDiv{
|
|
127
136
|
margin-left: 40px;
|
|
128
137
|
margin-bottom: 15px;
|