react_hsbc_teller 1.5.9 → 1.6.0
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 -0
- package/packages/pages/video/video.jsx +16 -7
package/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -161,6 +161,9 @@ createRoomCallback=(data)=>{
|
|
|
161
161
|
joinRoomCallback=(data)=>{
|
|
162
162
|
console.log('joinRoomCallback', data)
|
|
163
163
|
}
|
|
164
|
+
userExit =(val)=>{
|
|
165
|
+
console.log(val)
|
|
166
|
+
}
|
|
164
167
|
render() {
|
|
165
168
|
return (
|
|
166
169
|
<div className="test">
|
|
@@ -192,6 +195,7 @@ joinRoomCallback=(data)=>{
|
|
|
192
195
|
createRoomCallback={this.createRoomCallback}
|
|
193
196
|
joinRoomCallback={this.joinRoomCallback}
|
|
194
197
|
imgCallback={this.imgCallback}
|
|
198
|
+
userExit={this.userExit}
|
|
195
199
|
>
|
|
196
200
|
|
|
197
201
|
<Pdf></Pdf>
|
|
@@ -2789,12 +2789,20 @@ class Video extends Component {
|
|
|
2789
2789
|
console.log('退出房间者', participant, exitType)
|
|
2790
2790
|
this.appGetUsernameClick(participant).then((res)=>{
|
|
2791
2791
|
console.log('退出房间者',res)
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2792
|
+
let data = res? res.username ? res.username : '客户' : '客户'
|
|
2793
|
+
console.log(data)
|
|
2794
|
+
this.messageClick(( data + '已退出会议'),'error')
|
|
2795
|
+
if(res.userType == 1) {
|
|
2796
|
+
// 2--坐席 1--客户
|
|
2797
|
+
this.props.userExit({
|
|
2798
|
+
userId: participant,
|
|
2799
|
+
userType:'1'
|
|
2800
|
+
})
|
|
2801
|
+
}
|
|
2802
|
+
// console.log('退出房间者',res)
|
|
2803
|
+
// let data = res? res : '客户'
|
|
2804
|
+
// console.log(data)
|
|
2805
|
+
// this.messageClick(( data + '已退出会议'),'error')
|
|
2798
2806
|
})
|
|
2799
2807
|
|
|
2800
2808
|
};
|
|
@@ -3856,7 +3864,8 @@ class Video extends Component {
|
|
|
3856
3864
|
console.log(result)
|
|
3857
3865
|
|
|
3858
3866
|
if (result.code == 200) {
|
|
3859
|
-
data = result.data
|
|
3867
|
+
data = result.data ? result.data : ''
|
|
3868
|
+
// data = result.data.username ? result.data.username : ''
|
|
3860
3869
|
}
|
|
3861
3870
|
return data
|
|
3862
3871
|
}catch (err) {
|