react_hsbc_teller 0.7.7 → 0.8.1
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
|
@@ -110,7 +110,7 @@ export default class foot extends Component {
|
|
|
110
110
|
item == 'INVITE' && <div className="one" onClick={this.invitationClick.bind(this)}>
|
|
111
111
|
<img className="imgClass" src={require("../../assets/img/icon_invitation.png").default} alt="" />
|
|
112
112
|
<div className="text">
|
|
113
|
-
|
|
113
|
+
会议邀请
|
|
114
114
|
</div>
|
|
115
115
|
</div>
|
|
116
116
|
}
|
|
@@ -37,7 +37,7 @@ class Video extends Component {
|
|
|
37
37
|
cancel = axios.CancelToken.source()
|
|
38
38
|
signCanvas = React.createRef();
|
|
39
39
|
state = {
|
|
40
|
-
sessionType:
|
|
40
|
+
sessionType: false,
|
|
41
41
|
isWhiteboard: false,
|
|
42
42
|
isSelect: '',
|
|
43
43
|
loading: false,
|
|
@@ -72,10 +72,10 @@ class Video extends Component {
|
|
|
72
72
|
workSpaceId: '',
|
|
73
73
|
bizName: '',
|
|
74
74
|
appId: '',
|
|
75
|
-
channelId:
|
|
76
|
-
rtoken:
|
|
77
|
-
sessionId:
|
|
78
|
-
imRoomId:
|
|
75
|
+
channelId: '',
|
|
76
|
+
rtoken: '',
|
|
77
|
+
sessionId: '',
|
|
78
|
+
imRoomId: '',
|
|
79
79
|
isPictureInPicture: false,
|
|
80
80
|
clickedFacial: false,
|
|
81
81
|
clickedOcr: false,
|
|
@@ -1140,7 +1140,7 @@ class Video extends Component {
|
|
|
1140
1140
|
console.log('deviceId' + devicesInfo[i].deviceId);
|
|
1141
1141
|
|
|
1142
1142
|
b.actionid = devicesInfo[i].deviceId;
|
|
1143
|
-
b.groupId = devicesInfo[i].groupId;
|
|
1143
|
+
b.groupId = devicesInfo[i].groupId || 'empty';
|
|
1144
1144
|
if (
|
|
1145
1145
|
devicesInfo[i].label === '' ||
|
|
1146
1146
|
devicesInfo[i].label === undefined ||
|
|
@@ -1154,7 +1154,7 @@ class Video extends Component {
|
|
|
1154
1154
|
} else if (devicesInfo[i].kind === 'audioinput') {
|
|
1155
1155
|
// 麦克风
|
|
1156
1156
|
b.actionid = devicesInfo[i].deviceId;
|
|
1157
|
-
b.groupId = devicesInfo[i].groupId;
|
|
1157
|
+
b.groupId = devicesInfo[i].groupId || 'empty';
|
|
1158
1158
|
if (
|
|
1159
1159
|
devicesInfo[i].label === '' ||
|
|
1160
1160
|
devicesInfo[i].label === undefined ||
|
|
@@ -1168,7 +1168,7 @@ class Video extends Component {
|
|
|
1168
1168
|
} else if (devicesInfo[i].kind === 'audiooutput') {
|
|
1169
1169
|
// 喇叭
|
|
1170
1170
|
b.actionid = devicesInfo[i].deviceId;
|
|
1171
|
-
b.groupId = devicesInfo[i].groupId;
|
|
1171
|
+
b.groupId = devicesInfo[i].groupId || 'empty';
|
|
1172
1172
|
if (
|
|
1173
1173
|
devicesInfo[i].label === '' ||
|
|
1174
1174
|
devicesInfo[i].label === undefined ||
|
|
@@ -1205,12 +1205,13 @@ class Video extends Component {
|
|
|
1205
1205
|
arr2[obj2[i].groupId] = true;
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
|
+
console.log(objList, objList1, objList2 )
|
|
1208
1209
|
this.setState({
|
|
1209
1210
|
cameraList: objList,
|
|
1210
1211
|
microphoneList: objList1,
|
|
1211
|
-
speakerList: [objList2[0]]
|
|
1212
|
+
speakerList: [objList2.length>0? objList2[0]: []]
|
|
1212
1213
|
})
|
|
1213
|
-
if (!this.state.appId && this.state.sessionType) {
|
|
1214
|
+
if (!this.state.appId && !this.state.sessionType) {
|
|
1214
1215
|
this.mpaasSig(data);
|
|
1215
1216
|
this.setState({
|
|
1216
1217
|
cameraValue: obj[0].actionid,
|
|
@@ -1318,6 +1319,9 @@ class Video extends Component {
|
|
|
1318
1319
|
// 发布媒体流成功
|
|
1319
1320
|
this.test_controller.OnPublishSucc = (sid) => {
|
|
1320
1321
|
console.log('发布媒体流成功', sid)
|
|
1322
|
+
this.setState({
|
|
1323
|
+
sessionType: true
|
|
1324
|
+
})
|
|
1321
1325
|
if (sid == document.getElementById('video20').name) {
|
|
1322
1326
|
callNimIM('sendCustomCmdMsg', {
|
|
1323
1327
|
customId: this.state.imRoomId,
|
|
@@ -1332,7 +1336,6 @@ class Video extends Component {
|
|
|
1332
1336
|
if(sid == document.getElementById('publish_video1').name) {
|
|
1333
1337
|
this.timer = setInterval(
|
|
1334
1338
|
() => {
|
|
1335
|
-
console.log('hhhhhh',this.state.analyserHeight.get(sid),this.state.analyserHeight.get(sid).toFixed(2))
|
|
1336
1339
|
if(!this.state.voiceStatue) {
|
|
1337
1340
|
callNimIM('sendCustomCmdMsg', {
|
|
1338
1341
|
customId: this.state.imRoomId,
|
|
@@ -2261,23 +2264,37 @@ class Video extends Component {
|
|
|
2261
2264
|
this.addToScript()
|
|
2262
2265
|
} else {
|
|
2263
2266
|
this.setState({
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2267
|
+
channelId: '',
|
|
2268
|
+
rtoken: '',
|
|
2269
|
+
sessionId: '',
|
|
2270
|
+
imRoomId: ''
|
|
2271
|
+
});
|
|
2272
|
+
this.addToScript()
|
|
2273
|
+
// this.setState({
|
|
2274
|
+
// sessionType: false
|
|
2275
|
+
// })
|
|
2276
|
+
// this.messageClick('当前房间状态异常','error')
|
|
2277
|
+
// this.props.onLeaveRoom({
|
|
2278
|
+
// code: LEAVE_TYPE.ROOM_DESTROYED,
|
|
2279
|
+
// errMsg: '当前房间状态异常'
|
|
2280
|
+
// })
|
|
2271
2281
|
}
|
|
2272
2282
|
} catch (err) {
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2283
|
+
this.setState({
|
|
2284
|
+
channelId: '',
|
|
2285
|
+
rtoken: '',
|
|
2286
|
+
sessionId: '',
|
|
2287
|
+
imRoomId: ''
|
|
2288
|
+
});
|
|
2289
|
+
this.addToScript()
|
|
2290
|
+
// this.setState({
|
|
2291
|
+
// sessionType: false
|
|
2292
|
+
// })
|
|
2293
|
+
// this.messageClick('当前房间状态异常','error')
|
|
2294
|
+
// this.props.onLeaveRoom({
|
|
2295
|
+
// code: LEAVE_TYPE.ROOM_DESTROYED,
|
|
2296
|
+
// errMsg: '当前房间状态异常'
|
|
2297
|
+
// })
|
|
2281
2298
|
}
|
|
2282
2299
|
}
|
|
2283
2300
|
addToScript = () => {
|
|
@@ -3615,10 +3632,10 @@ class Video extends Component {
|
|
|
3615
3632
|
<div key='invitation'>
|
|
3616
3633
|
<Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>
|
|
3617
3634
|
{
|
|
3618
|
-
this.state.employeeName &&<Button className='
|
|
3635
|
+
this.state.employeeName &&<Button className='modelButtonOkInvitation'type="primary" danger onClick={this.handleOkInvitation}>邮件发送会议邀请</Button>
|
|
3619
3636
|
}
|
|
3620
3637
|
{
|
|
3621
|
-
!this.state.employeeName &&<Button className='modelButtonCancelOne' type="primary" danger
|
|
3638
|
+
!this.state.employeeName &&<Button className='modelButtonCancelOne' type="primary" danger >邮件发送会议邀请</Button>
|
|
3622
3639
|
}
|
|
3623
3640
|
</div>
|
|
3624
3641
|
]}>
|
|
@@ -3633,7 +3650,7 @@ class Video extends Component {
|
|
|
3633
3650
|
</div>
|
|
3634
3651
|
{
|
|
3635
3652
|
this.state.employeeName &&<div className='invitationDiv'>
|
|
3636
|
-
<span className="modalSpan"> </span><Button className="invitationButton" onClick={this.linkClick}> <img className='invitationImg' src={require("../../assets/img/link.png").default} alt=""
|
|
3653
|
+
<span className="modalSpan"> </span><Button className="invitationButton" onClick={this.linkClick}> <img className='invitationImg' src={require("../../assets/img/link.png").default} alt="" />复制会议链接</Button>
|
|
3637
3654
|
</div>
|
|
3638
3655
|
}
|
|
3639
3656
|
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
border-spacing: 20px!important;
|
|
323
323
|
}
|
|
324
324
|
.modelButtonCancelOne{
|
|
325
|
-
width:
|
|
325
|
+
width: 170px!important;
|
|
326
326
|
height: 40px!important;
|
|
327
327
|
font-size: 16px!important;
|
|
328
328
|
color: #5C5C5C!important;
|
|
@@ -330,6 +330,15 @@
|
|
|
330
330
|
border-spacing: 20px!important;
|
|
331
331
|
background: #d9d9d9!important;
|
|
332
332
|
}
|
|
333
|
+
.modelButtonOkInvitation{
|
|
334
|
+
width: 170px!important;
|
|
335
|
+
height: 40px!important;
|
|
336
|
+
font-size: 16px!important;
|
|
337
|
+
color: #ffffff!important;
|
|
338
|
+
border: 1px #DB0011 solid!important;
|
|
339
|
+
background: #DB0011!important;
|
|
340
|
+
border-spacing: 20px!important;
|
|
341
|
+
}
|
|
333
342
|
.modelButtonOk{
|
|
334
343
|
width: 100px!important;
|
|
335
344
|
height: 40px!important;
|