react_hsbc_teller 0.7.7 → 0.7.8

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "0.7.7",
3
+ "version": "0.7.8",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -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
  }
@@ -1332,7 +1332,6 @@ class Video extends Component {
1332
1332
  if(sid == document.getElementById('publish_video1').name) {
1333
1333
  this.timer = setInterval(
1334
1334
  () => {
1335
- console.log('hhhhhh',this.state.analyserHeight.get(sid),this.state.analyserHeight.get(sid).toFixed(2))
1336
1335
  if(!this.state.voiceStatue) {
1337
1336
  callNimIM('sendCustomCmdMsg', {
1338
1337
  customId: this.state.imRoomId,
@@ -2260,24 +2259,46 @@ class Video extends Component {
2260
2259
  if (result.code == 200 && result.data.roomStatus == 1) {
2261
2260
  this.addToScript()
2262
2261
  } else {
2262
+ this.props.sessionId = ''
2263
+ this.props.roomId = ''
2264
+ this.props.mtoken = ''
2265
+ this.props.imRoomId = ''
2263
2266
  this.setState({
2264
- sessionType: false
2265
- })
2266
- this.messageClick('当前房间状态异常','error')
2267
- this.props.onLeaveRoom({
2268
- code: LEAVE_TYPE.ROOM_DESTROYED,
2269
- errMsg: '当前房间状态异常'
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
- this.setState({
2274
- sessionType: false
2275
- })
2276
- this.messageClick('当前房间状态异常','error')
2277
- this.props.onLeaveRoom({
2278
- code: LEAVE_TYPE.ROOM_DESTROYED,
2279
- errMsg: '当前房间状态异常'
2280
- })
2283
+ this.props.sessionId = ''
2284
+ this.props.roomId = ''
2285
+ this.props.mtoken = ''
2286
+ this.props.imRoomId = ''
2287
+ this.setState({
2288
+ channelId: '',
2289
+ rtoken: '',
2290
+ sessionId: '',
2291
+ imRoomId: ''
2292
+ });
2293
+ this.addToScript()
2294
+ // this.setState({
2295
+ // sessionType: false
2296
+ // })
2297
+ // this.messageClick('当前房间状态异常','error')
2298
+ // this.props.onLeaveRoom({
2299
+ // code: LEAVE_TYPE.ROOM_DESTROYED,
2300
+ // errMsg: '当前房间状态异常'
2301
+ // })
2281
2302
  }
2282
2303
  }
2283
2304
  addToScript = () => {
@@ -3615,10 +3636,10 @@ class Video extends Component {
3615
3636
  <div key='invitation'>
3616
3637
  <Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>
3617
3638
  {
3618
- this.state.employeeName &&<Button className='modelButtonOk'type="primary" danger onClick={this.handleOkInvitation}>发送邮件</Button>
3639
+ this.state.employeeName &&<Button className='modelButtonOk'type="primary" danger onClick={this.handleOkInvitation}>邮件发送会议邀请</Button>
3619
3640
  }
3620
3641
  {
3621
- !this.state.employeeName &&<Button className='modelButtonCancelOne' type="primary" danger >发送邮件</Button>
3642
+ !this.state.employeeName &&<Button className='modelButtonCancelOne' type="primary" danger >邮件发送会议邀请</Button>
3622
3643
  }
3623
3644
  </div>
3624
3645
  ]}>
@@ -3633,7 +3654,7 @@ class Video extends Component {
3633
3654
  </div>
3634
3655
  {
3635
3656
  this.state.employeeName &&<div className='invitationDiv'>
3636
- <span className="modalSpan">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><Button className="invitationButton" onClick={this.linkClick}> <img className='invitationImg' src={require("../../assets/img/link.png").default} alt="" />复制链接</Button>
3657
+ <span className="modalSpan">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><Button className="invitationButton" onClick={this.linkClick}> <img className='invitationImg' src={require("../../assets/img/link.png").default} alt="" />复制会议链接</Button>
3637
3658
  </div>
3638
3659
  }
3639
3660
 
@@ -322,7 +322,7 @@
322
322
  border-spacing: 20px!important;
323
323
  }
324
324
  .modelButtonCancelOne{
325
- width: 100px!important;
325
+ width: 170px!important;
326
326
  height: 40px!important;
327
327
  font-size: 16px!important;
328
328
  color: #5C5C5C!important;
@@ -331,7 +331,7 @@
331
331
  background: #d9d9d9!important;
332
332
  }
333
333
  .modelButtonOk{
334
- width: 100px!important;
334
+ width: 170px!important;
335
335
  height: 40px!important;
336
336
  font-size: 16px!important;
337
337
  color: #ffffff!important;