react_hsbc_teller 0.8.5 → 0.8.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 +1 -1
- package/packages/pages/video/video.jsx +22 -22
package/package.json
CHANGED
|
@@ -615,7 +615,7 @@ class Video extends Component {
|
|
|
615
615
|
if (document.getElementById('publish_video1').name) {
|
|
616
616
|
list.push({
|
|
617
617
|
name: 'publish_video1',
|
|
618
|
-
title: this.props.meetingInfo.host ? this.props.meetingInfo.host : '
|
|
618
|
+
title: this.props.meetingInfo.host ? this.props.meetingInfo.host : '客户经理1',
|
|
619
619
|
voice: 'voiceStatue',
|
|
620
620
|
noVideo: false
|
|
621
621
|
})
|
|
@@ -2474,9 +2474,7 @@ class Video extends Component {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
}
|
|
2476
2476
|
};
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2477
|
+
componentWillUnmount() {
|
|
2480
2478
|
if (this.state.roomCustomerList.length == 0 && this.state.sessionType) {
|
|
2481
2479
|
try {
|
|
2482
2480
|
let result = await API.finishSession({
|
|
@@ -2484,11 +2482,15 @@ class Video extends Component {
|
|
|
2484
2482
|
tellerId: this.props.tellerAccount
|
|
2485
2483
|
});
|
|
2486
2484
|
} catch (err) {
|
|
2487
|
-
if(err.status == 502 || err.status== 404) {
|
|
2488
|
-
this.roomCallBack(2, '连接服务器失败','SYS-02')
|
|
2489
|
-
}
|
|
2490
2485
|
}
|
|
2491
2486
|
}
|
|
2487
|
+
if (this.test_controller&&this.state.sessionType) {
|
|
2488
|
+
this.test_controller.LeaveRoom()
|
|
2489
|
+
this.test_controller.Disconnect()
|
|
2490
|
+
}
|
|
2491
|
+
if(this.state.imStatus) {
|
|
2492
|
+
disconnect();
|
|
2493
|
+
}
|
|
2492
2494
|
this.setState({
|
|
2493
2495
|
isCustomer: false,
|
|
2494
2496
|
isWhiteboard: false,
|
|
@@ -2497,17 +2499,22 @@ class Video extends Component {
|
|
|
2497
2499
|
imJoinRoom: false,
|
|
2498
2500
|
sessionType: false
|
|
2499
2501
|
});
|
|
2502
|
+
this.setState = (state, callback) => {
|
|
2503
|
+
return
|
|
2504
|
+
}
|
|
2505
|
+
this.cancel = ''
|
|
2506
|
+
this.timer && clearInterval(this.timer);
|
|
2507
|
+
}
|
|
2508
|
+
finishSession = async () => {
|
|
2509
|
+
|
|
2510
|
+
|
|
2511
|
+
if(this.state.isSharedScreen) {
|
|
2512
|
+
this.sharedScreen()
|
|
2513
|
+
}
|
|
2500
2514
|
this.props.onLeaveRoom({
|
|
2501
2515
|
code: LEAVE_TYPE.TELLER_EXIT,
|
|
2502
2516
|
errMsg: '坐席退出'
|
|
2503
2517
|
})
|
|
2504
|
-
if(this.state.sessionType) {
|
|
2505
|
-
this.test_controller.LeaveRoom()
|
|
2506
|
-
this.test_controller.Disconnect()
|
|
2507
|
-
disconnect();
|
|
2508
|
-
}
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
2518
|
}
|
|
2512
2519
|
getRoomStatus = async data => {
|
|
2513
2520
|
try {
|
|
@@ -2633,13 +2640,6 @@ class Video extends Component {
|
|
|
2633
2640
|
}
|
|
2634
2641
|
}
|
|
2635
2642
|
}
|
|
2636
|
-
componentWillUnmount() {
|
|
2637
|
-
this.setState = (state, callback) => {
|
|
2638
|
-
return
|
|
2639
|
-
}
|
|
2640
|
-
this.cancel = ''
|
|
2641
|
-
this.timer && clearInterval(this.timer);
|
|
2642
|
-
}
|
|
2643
2643
|
componentWillMount() {
|
|
2644
2644
|
if (this.props.sessionId) {
|
|
2645
2645
|
this.getRoomStatus({
|
|
@@ -3482,7 +3482,7 @@ class Video extends Component {
|
|
|
3482
3482
|
/>
|
|
3483
3483
|
}
|
|
3484
3484
|
<canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
|
|
3485
|
-
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>{this.props.meetingInfo.host ? this.props.meetingInfo.host : '
|
|
3485
|
+
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>{this.props.meetingInfo.host ? this.props.meetingInfo.host : '客户经理1'}</div>
|
|
3486
3486
|
</div>
|
|
3487
3487
|
</div>
|
|
3488
3488
|
|