react_hsbc_teller 1.6.9 → 1.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "1.6.9",
3
+ "version": "1.7.0",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -44,16 +44,17 @@ let messageValue = ''
44
44
  let beautyNum = 0 // 0-关闭 1--弱 2--中 5---高
45
45
  let rateList = []
46
46
  let beautyDiv = {};
47
- const CanvasHome = styled.div`
47
+ let CanvasHome = styled.div`
48
48
  position: fixed;
49
49
  width: 76vw;
50
50
  height: 74vh;
51
51
  top: 3vh;
52
52
  left: 1.5vw;
53
- z-index:999;
53
+ z-index: ${props=>props.zIndexNum};
54
54
 
55
55
  .canvas{
56
56
  width:100%;
57
+
57
58
  height:100%;
58
59
  box-shadow: 0 0 5px 0 #06a;
59
60
  display:none;
@@ -63,8 +64,8 @@ const OpreateDiv = styled.div`
63
64
  display: inline-block;
64
65
  margin-left: 10vw;
65
66
  padding: 0 6px;
66
- height: 4vh;
67
- line-height: 4vh;
67
+ height: 40px;
68
+ line-height: 40px;
68
69
  border-radius: 5px;
69
70
  background: #fff;
70
71
  font-size: 16px;
@@ -250,11 +251,14 @@ class Video extends Component {
250
251
  operateShow: false,
251
252
  drawConfig: {
252
253
  curryControl: 'pen', // 工具类型
253
- }
254
+ },
255
+ zIndexNum: -1,
256
+ selectSpan: 'pen'
254
257
  };
255
258
  // eslint-disable-next-line no-undef
256
259
  test_controller = '';
257
260
 
261
+
258
262
  /**
259
263
  * 创建房间成功后回调后台
260
264
  * @param {JSON} data 数据类型
@@ -3334,7 +3338,7 @@ userType:'1'
3334
3338
  let result = await API.videoRecordCallback({
3335
3339
  activityId: this.props.businessNumber,
3336
3340
  sessionId: this.state.sessionId,
3337
- roomId: this.state.channelId,
3341
+ roomId: this.state.channelId + '',
3338
3342
  type: type,
3339
3343
  status: status
3340
3344
  });
@@ -3530,7 +3534,6 @@ userType:'1'
3530
3534
 
3531
3535
  this.props.resourcePath + "/eruda.js",
3532
3536
  this.props.resourcePath + "/iconfont.js",
3533
- this.props.resourcePath + "/dialogue.css",
3534
3537
 
3535
3538
 
3536
3539
 
@@ -4516,7 +4519,7 @@ userType:'1'
4516
4519
  type
4517
4520
  });
4518
4521
 
4519
- this.setState({ drawConfig });
4522
+ this.setState({ drawConfig,selectSpan: type });
4520
4523
  }
4521
4524
 
4522
4525
  setOpreate(type) {
@@ -4539,11 +4542,17 @@ userType:'1'
4539
4542
  }
4540
4543
  graffiti=()=>{
4541
4544
  if(!this.state.operateShow) {
4545
+ this.setState({
4546
+ zIndexNum: 999
4547
+ })
4542
4548
  this.change(true)
4543
4549
  }
4544
4550
 
4545
4551
  }
4546
4552
  closeGraffiti=()=>{
4553
+ this.setState({
4554
+ zIndexNum: -1
4555
+ })
4547
4556
  this.change(false)
4548
4557
  }
4549
4558
  change(val) {
@@ -4924,11 +4933,11 @@ userType:'1'
4924
4933
  {tabTitleList}
4925
4934
  {/* <img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" /> */}
4926
4935
  <div id="whiteboardDIV" style={{height: 'calc(100% - 33px)'}}>
4927
- <CanvasHome>
4936
+ <CanvasHome zIndexNum={this.state.zIndexNum} style={{width: this.state.whiteboardWidth,height: this.state.whiteboardHeight}}>
4928
4937
  {this.state.operateShow &&
4929
4938
  <OpreateDiv id="operate">
4930
- <span onClick={() => this.setTool('pen')}>铅笔</span>
4931
- <span onClick={() => this.setTool('eraser')}>橡皮</span>
4939
+ <span style={{color: this.state.selectSpan == 'pen' ? '#1890ff' : '#333'}} onClick={() => this.setTool('pen')}>铅笔</span>
4940
+ <span style={{color: this.state.selectSpan == 'eraser' ? '#1890ff' : '#333'}} onClick={() => this.setTool('eraser')}>橡皮</span>
4932
4941
  <span onClick={() => this.setOpreate('undo')}>撤销</span>
4933
4942
  <span onClick={() => this.setOpreate('redo')}>恢复</span>
4934
4943
  <span onClick={() => this.setOpreate('clear')}>清除</span>