react_hsbc_teller 0.4.8 → 0.5.2

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.4.8",
3
+ "version": "0.5.2",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -68,7 +68,7 @@ export default class foot extends Component {
68
68
  <div className="total totalTwo">
69
69
  {
70
70
  menus.map((item)=>{
71
- return <span>
71
+ return <div className='footHover'>
72
72
  {
73
73
  isTranscribing &&
74
74
  <div className="one" onClick={this.transcribingClick.bind(this)}>
@@ -124,7 +124,7 @@ export default class foot extends Component {
124
124
  </div>
125
125
  </div>
126
126
  }
127
- </span>
127
+ </div>
128
128
 
129
129
  })
130
130
  }
@@ -142,12 +142,14 @@ export default class foot extends Component {
142
142
  </div>
143
143
 
144
144
  </div>
145
- <div className="one" onClick={this.inspection.bind(this)}>
145
+ <div className='footHover' onClick={this.inspection.bind(this)}>
146
+ <div className="one">
146
147
  <img className="imgClass" src={cameraImg} alt="" />
147
148
  <div className="text">
148
149
  设备检测
149
150
  </div>
150
151
  </div>
152
+ </div>
151
153
  </div>
152
154
  {defaultList}
153
155
 
@@ -13,21 +13,20 @@ width: 100%;
13
13
 
14
14
  align-items: center;
15
15
  .one{
16
- margin-top: 5px;
16
+ padding-top: 5px;
17
17
  display: flex;
18
18
  line-height: 32px;
19
19
  flex-direction: column;
20
20
  align-items: center;
21
21
  flex-wrap: nowrap;
22
22
  }
23
- // .footHover :hover{
24
- // background: #F3F3F3;
25
- // border-radius: 8px;
26
- // width: 84px;
27
- // height: 32px;
28
- // }
23
+ .footHover :hover{
24
+ background: #F3F3F3;
25
+ border-radius: 8px;
26
+ }
29
27
  .text{
30
28
  margin-top: 10px;
29
+ padding-bottom: 10px;
31
30
  text-align: center;
32
31
  width: 80px;
33
32
  height: 11px;
@@ -11,7 +11,6 @@ import voiceImgOpen from '../../assets/img/icon_Mute.png'
11
11
  import voiceImgCloe from '../../assets/img/icon_MuteOne.png'
12
12
  import cameraImgOpen from '../../assets/img/icon_camera.png'
13
13
  import cameraImgCloe from '../../assets/img/icon_cameraOne.png'
14
- import Background from '../../assets/img/placeholder_bg.png'
15
14
  import { callNimIM } from '../../utils/cell.js'
16
15
  import Modal from "antd/lib/modal";
17
16
  import 'antd/lib/modal/style'
@@ -1931,7 +1930,7 @@ class Video extends Component {
1931
1930
  analyser.getByteFrequencyData(dataArray);
1932
1931
  let step = Math.round(dataArray.length / 60); //采样步长
1933
1932
  var img = document.getElementById("icon_huatong");
1934
- ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
1933
+ ctx.drawImage(img, 0, 0, this.props.microphoneSize, this.props.microphoneSize);
1935
1934
  // 以画布左上角为坐标原点
1936
1935
  let drawArea = {
1937
1936
  x1: 28 / 50 * canvas.width, // 波动范围右下角的点坐标
@@ -2808,19 +2807,28 @@ class Video extends Component {
2808
2807
  }
2809
2808
  </div>
2810
2809
  )
2811
- const sectionStyle = {
2812
- backgroundImage: `url(${Background})`,
2813
- 'background-repeat': 'no-repeat',
2814
- 'background-size': '100% 100%'
2810
+ const sectionStyle = this.state.tabTitles.length > 0 ? {
2811
+ 'z-index': '-1',
2812
+ width:'100%',
2813
+ height:'100%',
2814
+ position: 'absolute'
2815
+ } :{
2816
+ 'z-index': '0',
2817
+ width:'100%',
2818
+ height:'100%',
2819
+ position: 'absolute'
2815
2820
  };
2816
2821
  return (
2817
2822
  <div className="all">
2818
2823
  <Spin spinning={this.state.loading} tip="视频初始化中...">
2819
2824
  <Header></Header>
2820
2825
  <div className="health">
2821
- {tabTitleList}
2822
2826
  <div className="healthVideo">
2823
- <div className="projection" style={sectionStyle}>
2827
+ <div className="projection">
2828
+ {tabTitleList}
2829
+ <img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" />
2830
+ <div style={{height: this.state.tabTitles.length > 0 ? 'calc(100% - 33px)' : '100%'}}>
2831
+
2824
2832
  <div className="videoDiv" style={{ display: (this.state.isSelect == 'RMScreen') ? '' : 'none', }}>
2825
2833
  <div className="videoDiv">
2826
2834
  <video
@@ -2875,6 +2883,7 @@ class Video extends Component {
2875
2883
  }
2876
2884
 
2877
2885
 
2886
+ </div>
2878
2887
  </div>
2879
2888
  <div className="wrapper" style={{ width: '20%', }}>
2880
2889
  <div
@@ -2900,7 +2909,7 @@ class Video extends Component {
2900
2909
  className="imgClassVoice voiceClass"
2901
2910
  />
2902
2911
  }
2903
- <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2912
+ <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2904
2913
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>坐席</div>
2905
2914
  </div>
2906
2915
  </div>
@@ -2938,7 +2947,7 @@ class Video extends Component {
2938
2947
  className="imgClassVoice voiceVideoClass"
2939
2948
  />
2940
2949
  }
2941
- <canvas style={{ display: (this.state.videoOneName && !this.state.voiceVideoOne) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
2950
+ <canvas style={{ display: (this.state.videoOneName && !this.state.voiceVideoOne) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px'}} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
2942
2951
 
2943
2952
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
2944
2953
  {this.state.videoOneName}
@@ -2966,7 +2975,7 @@ class Video extends Component {
2966
2975
  className="imgClassVoice voiceVideoClass"
2967
2976
  />
2968
2977
  }
2969
- <canvas style={{ display: (this.state.videoTwoName && !this.state.voiceVideoTwo) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
2978
+ <canvas style={{ display: (this.state.videoTwoName && !this.state.voiceVideoTwo) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
2970
2979
 
2971
2980
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
2972
2981
  {this.state.videoTwoName}
@@ -2992,7 +3001,7 @@ class Video extends Component {
2992
3001
  className="imgClassVoice voiceVideoClass"
2993
3002
  />
2994
3003
  }
2995
- <canvas style={{ display: (this.state.videoThreeName && !this.state.voiceVideoThree) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
3004
+ <canvas style={{ display: (this.state.videoThreeName && !this.state.voiceVideoThree) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
2996
3005
 
2997
3006
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
2998
3007
  {this.state.videoThreeName}
@@ -3017,7 +3026,7 @@ class Video extends Component {
3017
3026
  className="imgClassVoice voiceVideoClass"
3018
3027
  />
3019
3028
  }
3020
- <canvas style={{ display: (this.state.videoFourName && !this.state.voiceVideoFour) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
3029
+ <canvas style={{ display: (this.state.videoFourName && !this.state.voiceVideoFour) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
3021
3030
 
3022
3031
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3023
3032
  {this.state.videoFourName}
@@ -3043,7 +3052,7 @@ class Video extends Component {
3043
3052
  className="imgClassVoice voiceVideoClass"
3044
3053
  />
3045
3054
  }
3046
- <canvas style={{ display: (this.state.videoFiveName && !this.state.voiceVideoFive) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
3055
+ <canvas style={{ display: (this.state.videoFiveName && !this.state.voiceVideoFive) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
3047
3056
 
3048
3057
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3049
3058
  {this.state.videoFiveName}
@@ -3068,7 +3077,7 @@ class Video extends Component {
3068
3077
  className="imgClassVoice voiceVideoClass"
3069
3078
  />
3070
3079
  }
3071
- <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
3080
+ <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
3072
3081
 
3073
3082
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3074
3083
  {this.state.videoSixName}
@@ -3105,7 +3114,7 @@ class Video extends Component {
3105
3114
  className="imgClassVoice voiceVideoClass"
3106
3115
  />
3107
3116
  }
3108
- <canvas style={{ display: (this.state.videoSevenName && !this.state.voiceVideoSeven) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
3117
+ <canvas style={{ display: (this.state.videoSevenName && !this.state.voiceVideoSeven) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
3109
3118
 
3110
3119
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3111
3120
  {this.state.videoSevenName}
@@ -3133,7 +3142,7 @@ class Video extends Component {
3133
3142
  className="imgClassVoice voiceVideoClass"
3134
3143
  />
3135
3144
  }
3136
- <canvas style={{ display: (this.state.videoEightName && !this.state.voiceVideoEight) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
3145
+ <canvas style={{ display: (this.state.videoEightName && !this.state.voiceVideoEight) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
3137
3146
 
3138
3147
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3139
3148
  {this.state.videoEightName}
@@ -3158,7 +3167,7 @@ class Video extends Component {
3158
3167
  className="imgClassVoice voiceVideoClass"
3159
3168
  />
3160
3169
  }
3161
- <canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
3170
+ <canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
3162
3171
 
3163
3172
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3164
3173
  {this.state.videoNineName}
@@ -3185,7 +3194,7 @@ class Video extends Component {
3185
3194
  className="imgClassVoice voiceVideoClass"
3186
3195
  />
3187
3196
  }
3188
- <canvas style={{ display: (this.state.videoTenName && !this.state.voiceVideoTen) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
3197
+ <canvas style={{ display: (this.state.videoTenName && !this.state.voiceVideoTen) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
3189
3198
 
3190
3199
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3191
3200
  {this.state.videoTenName}
@@ -3210,7 +3219,7 @@ class Video extends Component {
3210
3219
  className="imgClassVoice voiceVideoClass"
3211
3220
  />
3212
3221
  }
3213
- <canvas style={{ display: (this.state.videoElevenName && !this.state.voiceVideoEleven) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
3222
+ <canvas style={{ display: (this.state.videoElevenName && !this.state.voiceVideoEleven) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
3214
3223
 
3215
3224
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3216
3225
  {this.state.videoElevenName}
@@ -3236,7 +3245,7 @@ class Video extends Component {
3236
3245
  className="imgClassVoice voiceVideoClass"
3237
3246
  />
3238
3247
  }
3239
- <canvas style={{ display: (this.state.videoTwelveName && !this.state.voiceVideoTwelve) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
3248
+ <canvas style={{ display: (this.state.videoTwelveName && !this.state.voiceVideoTwelve) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
3240
3249
 
3241
3250
  <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3242
3251
  {this.state.videoTwelveName}
@@ -3355,7 +3364,7 @@ Video.defaultProps = {
3355
3364
  voiceColor: '#0AE544',
3356
3365
  titleBackground: 'rgba(0,0,0,0.65)',
3357
3366
  titleColor: '#fff',
3358
- microphoneSize: '40',
3367
+ microphoneSize: 25,
3359
3368
  fontSize: '14',
3360
3369
  fontFamily: 'auto',
3361
3370
  menus: ['SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP'],
@@ -13,8 +13,9 @@
13
13
  float: right
14
14
  }
15
15
  .imgClassVoice{
16
- width: 2.1rem;
17
- height: 2.1rem
16
+ width: 1.563rem;
17
+ height: 1.563rem;
18
+ margin-top: 0.25rem;
18
19
  }
19
20
  .sharedScreen{
20
21
  font-size: 10px;
@@ -43,6 +44,7 @@
43
44
  position: relative;
44
45
  background: #333;
45
46
  margin-bottom: 20px;
47
+ border-radius: 6px;
46
48
  }
47
49
  .videoFit{
48
50
  object-fit: contain !important;
@@ -54,12 +56,14 @@
54
56
  .video1{
55
57
  width: 100%;
56
58
  height: 100%;
57
- object-fit: contain
59
+ object-fit: contain;
60
+ border-radius: 6px;
58
61
  }
59
62
  .video{
60
63
  width: 100%;
61
64
  height: 100%;
62
65
  object-fit: contain;
66
+ border-radius: 6px;
63
67
  }
64
68
  .video1Div{
65
69
  width: 100%;
@@ -86,10 +90,12 @@
86
90
  height: 100%;
87
91
  width: 100%;
88
92
  object-fit: cover;
93
+ border-radius: 6px;
89
94
  }
90
95
  .publishVideoDiv{
91
96
  height: 100%;
92
97
  width: 100%;
98
+ border-radius: 6px;
93
99
  }
94
100
  .invitationSpan{
95
101
  padding: 10px 20px;
@@ -125,16 +131,6 @@
125
131
  .faceBody{
126
132
  text-align: center;
127
133
  }
128
- .canvasClass{
129
- // position: absolute;
130
- // bottom: 0;
131
- // right: 0;
132
- }
133
- .canvasClassOne{
134
- // position: absolute;
135
- // bottom: 0;
136
- // right: 0;
137
- }
138
134
  .content{
139
135
  height: 654px;
140
136
  border-radius: 4px;
@@ -148,8 +144,9 @@
148
144
  .projection{
149
145
  width: 80%;
150
146
  position: relative;
151
- background: rgba(0,0,0,0.65);
147
+ background: #f3f3f3;
152
148
  color: #333;
149
+ border-radius: 0 4px 4px 4px;
153
150
  // height: ~"calc(100vh - 130px)";
154
151
  // position: absolute;
155
152
  // z-index: 1;
@@ -176,7 +173,7 @@
176
173
  bottom: 10px;
177
174
  height: 40px;
178
175
  // background: rgba(219, 0, 17, 0.1);
179
- border-radius: 4;
176
+ border-radius: 4px;
180
177
  // transform: rotateY(180deg);
181
178
  // color: #DB0011;
182
179
  // font-size: 14px;
@@ -193,7 +190,7 @@
193
190
  bottom: 10px;
194
191
  height: 40px;
195
192
  // background: rgba(219, 0, 17, 0.1);
196
- border-radius: 4;
193
+ border-radius: 4px;
197
194
  // transform: rotateY(180deg);
198
195
  // color: #DB0011;
199
196
  font-size: 14px;
@@ -274,11 +271,6 @@
274
271
  // left: 0;
275
272
  transform: rotateY(180deg);
276
273
  }
277
- .voiceVideoClass{
278
- // position: absolute;
279
- // bottom: 0;
280
- // right: 0;
281
- }
282
274
  .cameraAnMicrophone{
283
275
  margin: 10px 20px;
284
276
  }