react_hsbc_teller 0.4.8 → 0.4.9
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
|
@@ -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 <
|
|
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
|
-
</
|
|
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=
|
|
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
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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;
|
|
@@ -1931,7 +1931,7 @@ class Video extends Component {
|
|
|
1931
1931
|
analyser.getByteFrequencyData(dataArray);
|
|
1932
1932
|
let step = Math.round(dataArray.length / 60); //采样步长
|
|
1933
1933
|
var img = document.getElementById("icon_huatong");
|
|
1934
|
-
ctx.drawImage(img, 0, 0,
|
|
1934
|
+
ctx.drawImage(img, 0, 0, this.props.microphoneSize, this.props.microphoneSize);
|
|
1935
1935
|
// 以画布左上角为坐标原点
|
|
1936
1936
|
let drawArea = {
|
|
1937
1937
|
x1: 28 / 50 * canvas.width, // 波动范围右下角的点坐标
|
|
@@ -2808,7 +2808,9 @@ class Video extends Component {
|
|
|
2808
2808
|
}
|
|
2809
2809
|
</div>
|
|
2810
2810
|
)
|
|
2811
|
-
const sectionStyle = {
|
|
2811
|
+
const sectionStyle = this.state.tabTitles.length > 0 ? {
|
|
2812
|
+
background: '#f3f3f3',
|
|
2813
|
+
} :{
|
|
2812
2814
|
backgroundImage: `url(${Background})`,
|
|
2813
2815
|
'background-repeat': 'no-repeat',
|
|
2814
2816
|
'background-size': '100% 100%'
|
|
@@ -2818,9 +2820,10 @@ class Video extends Component {
|
|
|
2818
2820
|
<Spin spinning={this.state.loading} tip="视频初始化中...">
|
|
2819
2821
|
<Header></Header>
|
|
2820
2822
|
<div className="health">
|
|
2821
|
-
{tabTitleList}
|
|
2822
2823
|
<div className="healthVideo">
|
|
2823
2824
|
<div className="projection" style={sectionStyle}>
|
|
2825
|
+
{tabTitleList}
|
|
2826
|
+
<div style={{height: this.state.tabTitles.length > 0 ? 'calc(100% - 33px)' : '100%'}}>
|
|
2824
2827
|
<div className="videoDiv" style={{ display: (this.state.isSelect == 'RMScreen') ? '' : 'none', }}>
|
|
2825
2828
|
<div className="videoDiv">
|
|
2826
2829
|
<video
|
|
@@ -2875,6 +2878,7 @@ class Video extends Component {
|
|
|
2875
2878
|
}
|
|
2876
2879
|
|
|
2877
2880
|
|
|
2881
|
+
</div>
|
|
2878
2882
|
</div>
|
|
2879
2883
|
<div className="wrapper" style={{ width: '20%', }}>
|
|
2880
2884
|
<div
|
|
@@ -2900,7 +2904,7 @@ class Video extends Component {
|
|
|
2900
2904
|
className="imgClassVoice voiceClass"
|
|
2901
2905
|
/>
|
|
2902
2906
|
}
|
|
2903
|
-
<canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
|
|
2907
|
+
<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
2908
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>坐席</div>
|
|
2905
2909
|
</div>
|
|
2906
2910
|
</div>
|
|
@@ -2938,7 +2942,7 @@ class Video extends Component {
|
|
|
2938
2942
|
className="imgClassVoice voiceVideoClass"
|
|
2939
2943
|
/>
|
|
2940
2944
|
}
|
|
2941
|
-
<canvas style={{ display: (this.state.videoOneName && !this.state.voiceVideoOne) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
|
|
2945
|
+
<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
2946
|
|
|
2943
2947
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2944
2948
|
{this.state.videoOneName}
|
|
@@ -2966,7 +2970,7 @@ class Video extends Component {
|
|
|
2966
2970
|
className="imgClassVoice voiceVideoClass"
|
|
2967
2971
|
/>
|
|
2968
2972
|
}
|
|
2969
|
-
<canvas style={{ display: (this.state.videoTwoName && !this.state.voiceVideoTwo) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
|
|
2973
|
+
<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
2974
|
|
|
2971
2975
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2972
2976
|
{this.state.videoTwoName}
|
|
@@ -2992,7 +2996,7 @@ class Video extends Component {
|
|
|
2992
2996
|
className="imgClassVoice voiceVideoClass"
|
|
2993
2997
|
/>
|
|
2994
2998
|
}
|
|
2995
|
-
<canvas style={{ display: (this.state.videoThreeName && !this.state.voiceVideoThree) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
|
|
2999
|
+
<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
3000
|
|
|
2997
3001
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2998
3002
|
{this.state.videoThreeName}
|
|
@@ -3017,7 +3021,7 @@ class Video extends Component {
|
|
|
3017
3021
|
className="imgClassVoice voiceVideoClass"
|
|
3018
3022
|
/>
|
|
3019
3023
|
}
|
|
3020
|
-
<canvas style={{ display: (this.state.videoFourName && !this.state.voiceVideoFour) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
|
|
3024
|
+
<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
3025
|
|
|
3022
3026
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3023
3027
|
{this.state.videoFourName}
|
|
@@ -3043,7 +3047,7 @@ class Video extends Component {
|
|
|
3043
3047
|
className="imgClassVoice voiceVideoClass"
|
|
3044
3048
|
/>
|
|
3045
3049
|
}
|
|
3046
|
-
<canvas style={{ display: (this.state.videoFiveName && !this.state.voiceVideoFive) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
|
|
3050
|
+
<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
3051
|
|
|
3048
3052
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3049
3053
|
{this.state.videoFiveName}
|
|
@@ -3068,7 +3072,7 @@ class Video extends Component {
|
|
|
3068
3072
|
className="imgClassVoice voiceVideoClass"
|
|
3069
3073
|
/>
|
|
3070
3074
|
}
|
|
3071
|
-
<canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
|
|
3075
|
+
<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
3076
|
|
|
3073
3077
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3074
3078
|
{this.state.videoSixName}
|
|
@@ -3105,7 +3109,7 @@ class Video extends Component {
|
|
|
3105
3109
|
className="imgClassVoice voiceVideoClass"
|
|
3106
3110
|
/>
|
|
3107
3111
|
}
|
|
3108
|
-
<canvas style={{ display: (this.state.videoSevenName && !this.state.voiceVideoSeven) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
|
|
3112
|
+
<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
3113
|
|
|
3110
3114
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3111
3115
|
{this.state.videoSevenName}
|
|
@@ -3133,7 +3137,7 @@ class Video extends Component {
|
|
|
3133
3137
|
className="imgClassVoice voiceVideoClass"
|
|
3134
3138
|
/>
|
|
3135
3139
|
}
|
|
3136
|
-
<canvas style={{ display: (this.state.videoEightName && !this.state.voiceVideoEight) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
|
|
3140
|
+
<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
3141
|
|
|
3138
3142
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3139
3143
|
{this.state.videoEightName}
|
|
@@ -3158,7 +3162,7 @@ class Video extends Component {
|
|
|
3158
3162
|
className="imgClassVoice voiceVideoClass"
|
|
3159
3163
|
/>
|
|
3160
3164
|
}
|
|
3161
|
-
<canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
|
|
3165
|
+
<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
3166
|
|
|
3163
3167
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3164
3168
|
{this.state.videoNineName}
|
|
@@ -3185,7 +3189,7 @@ class Video extends Component {
|
|
|
3185
3189
|
className="imgClassVoice voiceVideoClass"
|
|
3186
3190
|
/>
|
|
3187
3191
|
}
|
|
3188
|
-
<canvas style={{ display: (this.state.videoTenName && !this.state.voiceVideoTen) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
|
|
3192
|
+
<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
3193
|
|
|
3190
3194
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3191
3195
|
{this.state.videoTenName}
|
|
@@ -3210,7 +3214,7 @@ class Video extends Component {
|
|
|
3210
3214
|
className="imgClassVoice voiceVideoClass"
|
|
3211
3215
|
/>
|
|
3212
3216
|
}
|
|
3213
|
-
<canvas style={{ display: (this.state.videoElevenName && !this.state.voiceVideoEleven) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
|
|
3217
|
+
<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
3218
|
|
|
3215
3219
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3216
3220
|
{this.state.videoElevenName}
|
|
@@ -3236,7 +3240,7 @@ class Video extends Component {
|
|
|
3236
3240
|
className="imgClassVoice voiceVideoClass"
|
|
3237
3241
|
/>
|
|
3238
3242
|
}
|
|
3239
|
-
<canvas style={{ display: (this.state.videoTwelveName && !this.state.voiceVideoTwelve) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
|
|
3243
|
+
<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
3244
|
|
|
3241
3245
|
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3242
3246
|
{this.state.videoTwelveName}
|
|
@@ -3355,7 +3359,7 @@ Video.defaultProps = {
|
|
|
3355
3359
|
voiceColor: '#0AE544',
|
|
3356
3360
|
titleBackground: 'rgba(0,0,0,0.65)',
|
|
3357
3361
|
titleColor: '#fff',
|
|
3358
|
-
microphoneSize:
|
|
3362
|
+
microphoneSize: 25,
|
|
3359
3363
|
fontSize: '14',
|
|
3360
3364
|
fontFamily: 'auto',
|
|
3361
3365
|
menus: ['SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP'],
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
float: right
|
|
14
14
|
}
|
|
15
15
|
.imgClassVoice{
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
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: rgba(0,0,0,0.65);
|
|
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:
|
|
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:
|
|
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
|
}
|