react_hsbc_teller 0.6.0 → 0.6.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -144,7 +144,7 @@ export default class foot extends Component {
144
144
  </div>
145
145
  <div className='footHover' onClick={this.inspection.bind(this)}>
146
146
  <div className="one">
147
- <img className="imgClass" src={cameraImg} alt="" />
147
+ <img className="imgClass" src={require("../../assets/img/inspection.png").default} alt="" />
148
148
  <div className="text">
149
149
  设备检测
150
150
  </div>
@@ -1,9 +1,9 @@
1
1
  .foot{
2
2
  background: #fff;
3
- height: 48px;
3
+ height: 60px;
4
4
  display: inline-flex;
5
5
  width: 100%;
6
- margin: 10px 0;
6
+ // margin: 10px 0;
7
7
  // position: absolute;
8
8
  // bottom: 0;
9
9
  // left: 0;
@@ -11,8 +11,9 @@ margin: 10px 0;
11
11
  .total{
12
12
  display: inline-flex;
13
13
  width: 33%;
14
-
14
+ height: 100%;
15
15
  align-items: center;
16
+ margin: 10px 0;
16
17
  .one{
17
18
  padding-top: 5px;
18
19
  display: flex;
@@ -46,6 +46,7 @@ class Main extends Component {
46
46
  }
47
47
  Main.defaultProps = {
48
48
  lang: 'zh',
49
+ // baseURL: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
49
50
  baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
50
51
 
51
52
  }
@@ -101,6 +101,7 @@ class Video extends Component {
101
101
  voiceVideoTwelve: false,
102
102
  cameraList: [],
103
103
  microphoneList: [],
104
+ speakerList: [],
104
105
  isModalVisibleInspection: false,
105
106
  cameraValue: '',
106
107
  microphoneValue: '',
@@ -647,7 +648,18 @@ class Video extends Component {
647
648
  cobj.font = "28px auto";
648
649
  cobj.textAlign = 'center';
649
650
  cobj.lineWidth = 1;
650
- cobj.strokeText(list[i].title, 150, 360 * (i + 1) - 20);
651
+ // 文字
652
+ let str = list[i].title
653
+ for (let k = 0; k < str.length; k++){
654
+ // console.log(str.substring(0,k+1))
655
+ // console.log(cobj.measureText(str.substring(0,k+1)).width)
656
+ if (cobj.measureText(str.substring(0,k+1)).width>300){
657
+ str = str.substring(0,k-2)
658
+ str += '...'
659
+ break;
660
+ }
661
+ }
662
+ cobj.strokeText(str, 150, 360 * (i + 1) - 20);
651
663
  cobj.stroke();
652
664
  //左边框
653
665
  cobj.beginPath();
@@ -1100,6 +1112,7 @@ class Video extends Component {
1100
1112
  this.setState({
1101
1113
  cameraList: obj,
1102
1114
  microphoneList: obj1,
1115
+ speakerList: obj2
1103
1116
  })
1104
1117
  if (!this.state.appId) {
1105
1118
  this.mpaasSig(data);
@@ -2489,6 +2502,10 @@ class Video extends Component {
2489
2502
 
2490
2503
  }
2491
2504
  handleOkInvitation = async () => {
2505
+ if(!this.state.employeeName || this.state.employeeError) {
2506
+ this.messageClick('请输入正确的员工号','error')
2507
+ return
2508
+ }
2492
2509
  try {
2493
2510
  let result = await API.sendLink({
2494
2511
  sessionId: this.state.sessionId,
@@ -2666,6 +2683,7 @@ class Video extends Component {
2666
2683
  }
2667
2684
  }
2668
2685
  queryStaff = async () => {
2686
+ if(!this.state.employeeNumber) return
2669
2687
  try {
2670
2688
  let result = await API.getUsername({
2671
2689
  userId: this.state.employeeNumber
@@ -2673,13 +2691,17 @@ class Video extends Component {
2673
2691
  console.log(result)
2674
2692
  if (result.code == 200) {
2675
2693
  this.setState({
2676
- employeeName: result.data.username
2694
+ employeeName: result.data.username,
2695
+ employeeError: '',
2677
2696
  })
2678
2697
  } else {
2679
2698
  this.messageClick('查询失败','error')
2680
2699
  }
2681
2700
  } catch (err) {
2682
-
2701
+ console.log(err)
2702
+ this.setState({
2703
+ employeeError: '未搜索到相关信息'
2704
+ })
2683
2705
  }
2684
2706
  }
2685
2707
  counterSign = async data => {
@@ -2821,29 +2843,10 @@ class Video extends Component {
2821
2843
  }
2822
2844
  </div>
2823
2845
  )
2824
- const videoCustomer =
2825
- this.state.videoList.map((item, index) => {
2826
- return <div className={`itemed`} style={{ display: (item.isVideo) ? '' : 'none', }}>
2827
- <video
2828
- id={'video' + item.videoIndex}
2829
- autoPlay
2830
- muted={true}
2831
- className="video"
2832
- />
2833
- <audio id={'audio' + item.videoIndex} autoPlay />
2834
- <label style={{ display: 'none' }} id={'feedId' + item.videoIndex} type="text" />
2835
- <div className={`customerTitle titleSamlle`}>
2836
- <div className='titleName' style={{ background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
2837
- {this.state.videoTwoName}
2838
- </div>
2839
- </div>
2840
- <canvas className="canvasClassOne" id={'subscribe_volumeView' + item.videoIndex} width="40" height="70"></canvas>
2841
- </div>
2842
- })
2843
2846
  const camera = (
2844
2847
  <div class="cameraAnMicrophone">
2845
2848
  {
2846
- this.state.cameraList.map((item, index) => {
2849
+ this.state.cameraList.map((item) => {
2847
2850
  return <div>
2848
2851
  <label className="radio">
2849
2852
  <input type="radio" name="camere" value={item.actionid} style={{float: 'left'}} checked={this.state.cameraValue == item.actionid} onChange={(e) => this.getCameraValue(e)} /><i></i>
@@ -2859,7 +2862,7 @@ class Video extends Component {
2859
2862
  const microphone = (
2860
2863
  <div>
2861
2864
  {
2862
- this.state.microphoneList.map((item, index) => {
2865
+ this.state.microphoneList.map((item) => {
2863
2866
  return <div class="cameraAnMicrophone">
2864
2867
  <label className="radio">
2865
2868
  <input type="radio" name="microphone" value={item.actionid} style={{float: 'left'}} checked={this.state.microphoneValue == item.actionid} onChange={(e) => this.getMicrophoneValue(e)} /><i></i>
@@ -2871,8 +2874,20 @@ class Video extends Component {
2871
2874
  }
2872
2875
  </div>
2873
2876
  )
2877
+ const speaker = (
2878
+ <div>
2879
+ {
2880
+ this.state.speakerList.map((item) => {
2881
+ return <div class="cameraAnMicrophone">
2882
+ {item.actionname}<br />
2883
+ </div>
2884
+ })
2885
+ }
2886
+ </div>
2887
+ )
2888
+
2874
2889
  const sectionStyle = this.state.tabTitles.length > 0 ? {
2875
- 'z-index': '-1',
2890
+ zIndex: '-1',
2876
2891
  width:'100%',
2877
2892
  height:'100%',
2878
2893
  position: 'absolute',
@@ -2883,7 +2898,7 @@ class Video extends Component {
2883
2898
  margin: 'auto'
2884
2899
 
2885
2900
  } :{
2886
- 'z-index': '0',
2901
+ zIndex: '0',
2887
2902
  width:'100%',
2888
2903
  // height:'100%',
2889
2904
  position: 'absolute',
@@ -2984,15 +2999,12 @@ class Video extends Component {
2984
2999
  className="imgClassVoice voiceClass"
2985
3000
  />
2986
3001
  }
2987
- <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2988
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>坐席</div>
3002
+ <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
3003
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>坐席</div>
2989
3004
  </div>
2990
3005
  </div>
2991
3006
 
2992
3007
  </div>
2993
- {/* {
2994
- videoCustomer
2995
- } */}
2996
3008
  <div
2997
3009
  className={`itemed`}
2998
3010
  style={{ position: "relative", display: (this.state.videoOneName) ? '' : 'none' }}
@@ -3022,9 +3034,9 @@ class Video extends Component {
3022
3034
  className="imgClassVoice voiceVideoClass"
3023
3035
  />
3024
3036
  }
3025
- <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>
3037
+ <canvas style={{ display: (this.state.videoOneName && !this.state.voiceVideoOne) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px'}} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
3026
3038
 
3027
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3039
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3028
3040
  {this.state.videoOneName}
3029
3041
  </div>
3030
3042
 
@@ -3050,9 +3062,9 @@ class Video extends Component {
3050
3062
  className="imgClassVoice voiceVideoClass"
3051
3063
  />
3052
3064
  }
3053
- <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>
3065
+ <canvas style={{ display: (this.state.videoTwoName && !this.state.voiceVideoTwo) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
3054
3066
 
3055
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3067
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3056
3068
  {this.state.videoTwoName}
3057
3069
  </div>
3058
3070
  </div>
@@ -3068,7 +3080,7 @@ class Video extends Component {
3068
3080
  <audio id="audio3" autoPlay />
3069
3081
  <label style={{ display: 'none' }} id="feedId3" type="text" />
3070
3082
 
3071
- <div style={{ display: (this.state.videoThreeName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3083
+ <div style={{ display: (this.state.videoThreeName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3072
3084
  {
3073
3085
  this.state.voiceVideoThree && <img
3074
3086
  alt=""
@@ -3076,9 +3088,9 @@ class Video extends Component {
3076
3088
  className="imgClassVoice voiceVideoClass"
3077
3089
  />
3078
3090
  }
3079
- <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>
3091
+ <canvas style={{ display: (this.state.videoThreeName && !this.state.voiceVideoThree) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
3080
3092
 
3081
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3093
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3082
3094
  {this.state.videoThreeName}
3083
3095
  </div>
3084
3096
  </div>
@@ -3093,7 +3105,7 @@ class Video extends Component {
3093
3105
  <audio id="audio4" autoPlay />
3094
3106
  <label style={{ display: 'none' }} id="feedId4" type="text" />
3095
3107
 
3096
- <div style={{ display: (this.state.videoFourName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3108
+ <div style={{ display: (this.state.videoFourName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3097
3109
  {
3098
3110
  this.state.voiceVideoFour && <img
3099
3111
  alt=""
@@ -3101,9 +3113,9 @@ class Video extends Component {
3101
3113
  className="imgClassVoice voiceVideoClass"
3102
3114
  />
3103
3115
  }
3104
- <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>
3116
+ <canvas style={{ display: (this.state.videoFourName && !this.state.voiceVideoFour) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
3105
3117
 
3106
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3118
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3107
3119
  {this.state.videoFourName}
3108
3120
  </div>
3109
3121
  </div>
@@ -3119,7 +3131,7 @@ class Video extends Component {
3119
3131
  <audio id="audio5" autoPlay />
3120
3132
  <label style={{ display: 'none' }} id="feedId5" type="text" />
3121
3133
 
3122
- <div style={{ display: (this.state.videoFiveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3134
+ <div style={{ display: (this.state.videoFiveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3123
3135
  {
3124
3136
  this.state.voiceVideoFive && <img
3125
3137
  alt=""
@@ -3127,9 +3139,9 @@ class Video extends Component {
3127
3139
  className="imgClassVoice voiceVideoClass"
3128
3140
  />
3129
3141
  }
3130
- <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>
3142
+ <canvas style={{ display: (this.state.videoFiveName && !this.state.voiceVideoFive) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
3131
3143
 
3132
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3144
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3133
3145
  {this.state.videoFiveName}
3134
3146
  </div>
3135
3147
  </div>
@@ -3144,7 +3156,7 @@ class Video extends Component {
3144
3156
  <audio id="audio6" autoPlay />
3145
3157
  <label style={{ display: 'none' }} id="feedId6" type="text" />
3146
3158
 
3147
- <div style={{ display: (this.state.videoSixName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3159
+ <div style={{ display: (this.state.videoSixName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3148
3160
  {
3149
3161
  this.state.voiceVideoSix && <img
3150
3162
  alt=""
@@ -3152,9 +3164,9 @@ class Video extends Component {
3152
3164
  className="imgClassVoice voiceVideoClass"
3153
3165
  />
3154
3166
  }
3155
- <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
3167
+ <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
3156
3168
 
3157
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3169
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3158
3170
  {this.state.videoSixName}
3159
3171
  </div>
3160
3172
  </div>
@@ -3189,9 +3201,9 @@ class Video extends Component {
3189
3201
  className="imgClassVoice voiceVideoClass"
3190
3202
  />
3191
3203
  }
3192
- <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>
3204
+ <canvas style={{ display: (this.state.videoSevenName && !this.state.voiceVideoSeven) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
3193
3205
 
3194
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3206
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3195
3207
  {this.state.videoSevenName}
3196
3208
  </div>
3197
3209
 
@@ -3217,9 +3229,9 @@ class Video extends Component {
3217
3229
  className="imgClassVoice voiceVideoClass"
3218
3230
  />
3219
3231
  }
3220
- <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>
3232
+ <canvas style={{ display: (this.state.videoEightName && !this.state.voiceVideoEight) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
3221
3233
 
3222
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3234
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3223
3235
  {this.state.videoEightName}
3224
3236
  </div>
3225
3237
  </div>
@@ -3234,7 +3246,7 @@ class Video extends Component {
3234
3246
  <audio id="audio9" autoPlay />
3235
3247
  <label style={{ display: 'none' }} id="feedId9" type="text" />
3236
3248
 
3237
- <div style={{ display: (this.state.videoNineName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3249
+ <div style={{ display: (this.state.videoNineName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3238
3250
  {
3239
3251
  this.state.voiceVideoNine && <img
3240
3252
  alt=""
@@ -3242,9 +3254,9 @@ class Video extends Component {
3242
3254
  className="imgClassVoice voiceVideoClass"
3243
3255
  />
3244
3256
  }
3245
- <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>
3257
+ <canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
3246
3258
 
3247
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3259
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3248
3260
  {this.state.videoNineName}
3249
3261
  </div>
3250
3262
  </div>
@@ -3261,7 +3273,7 @@ class Video extends Component {
3261
3273
  <audio id="audio10" autoPlay />
3262
3274
  <label style={{ display: 'none' }} id="feedId10" type="text" />
3263
3275
 
3264
- <div style={{ display: (this.state.videoTenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3276
+ <div style={{ display: (this.state.videoTenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3265
3277
  {
3266
3278
  this.state.voiceVideoTen && <img
3267
3279
  alt=""
@@ -3269,9 +3281,9 @@ class Video extends Component {
3269
3281
  className="imgClassVoice voiceVideoClass"
3270
3282
  />
3271
3283
  }
3272
- <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>
3284
+ <canvas style={{ display: (this.state.videoTenName && !this.state.voiceVideoTen) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
3273
3285
 
3274
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3286
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3275
3287
  {this.state.videoTenName}
3276
3288
  </div>
3277
3289
  </div>
@@ -3286,7 +3298,7 @@ class Video extends Component {
3286
3298
  <audio id="audio11" autoPlay />
3287
3299
  <label style={{ display: 'none' }} id="feedId11" type="text" />
3288
3300
 
3289
- <div style={{ display: (this.state.videoElevenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3301
+ <div style={{ display: (this.state.videoElevenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3290
3302
  {
3291
3303
  this.state.voiceVideoEleven && <img
3292
3304
  alt=""
@@ -3294,9 +3306,9 @@ class Video extends Component {
3294
3306
  className="imgClassVoice voiceVideoClass"
3295
3307
  />
3296
3308
  }
3297
- <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>
3309
+ <canvas style={{ display: (this.state.videoElevenName && !this.state.voiceVideoEleven) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
3298
3310
 
3299
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3311
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3300
3312
  {this.state.videoElevenName}
3301
3313
  </div>
3302
3314
  </div>
@@ -3312,7 +3324,7 @@ class Video extends Component {
3312
3324
  <audio id="audio12" autoPlay />
3313
3325
  <label style={{ display: 'none' }} id="feedId12" type="text" />
3314
3326
 
3315
- <div style={{ display: (this.state.videoTwelveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3327
+ <div style={{ display: (this.state.videoTwelveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3316
3328
  {
3317
3329
  this.state.voiceVideoTwelve && <img
3318
3330
  alt=""
@@ -3320,9 +3332,9 @@ class Video extends Component {
3320
3332
  className="imgClassVoice voiceVideoClass"
3321
3333
  />
3322
3334
  }
3323
- <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>
3335
+ <canvas style={{ display: (this.state.videoTwelveName && !this.state.voiceVideoTwelve) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
3324
3336
 
3325
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3337
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3326
3338
  {this.state.videoTwelveName}
3327
3339
  </div>
3328
3340
  </div>
@@ -3402,6 +3414,13 @@ class Video extends Component {
3402
3414
  <span class="modalSpan">&nbsp;&nbsp;&nbsp;姓名:</span><span>{this.state.employeeName}</span>
3403
3415
  </div>
3404
3416
  </div>
3417
+ {
3418
+ this.state.employeeError && <div className='errorClassInvitation'>
3419
+ <img alt="" src={require("../../assets/img/tooltips2_fail.png").default} />
3420
+ <span>{this.state.employeeError}</span>
3421
+ </div>
3422
+ }
3423
+
3405
3424
  </Modal>
3406
3425
  <Modal title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3407
3426
  [
@@ -3429,11 +3448,13 @@ class Video extends Component {
3429
3448
  {camera}
3430
3449
  <div>麦克风设备:</div>
3431
3450
  {microphone}
3451
+ <div>扬声器设备:</div>
3452
+ {speaker}
3432
3453
  </div>
3433
3454
  </Modal>
3434
3455
  <video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"
3435
- webkit-playsinline="true" playsInline={true} x5-playsinline="x5-playsinline"
3436
- x-webkit-airplay="true"></video>
3456
+ webkit-playsinline={true} playsInline={true} x5-playsinline="x5-playsinline"
3457
+ x-webkit-airplay={true}></video>
3437
3458
  </Spin>
3438
3459
  </div>);
3439
3460
  }
@@ -3442,8 +3463,11 @@ Video.defaultProps = {
3442
3463
  tellerAccount: 't001',
3443
3464
  businessNumber: '123',
3444
3465
  callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
3466
+ // roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
3445
3467
  roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
3468
+
3446
3469
  resourcePath: 'https://counter-web.leimondata.cn:7199',
3470
+ // resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
3447
3471
  prohbiitPrompt: '当前无客户',
3448
3472
  voiceColor: '#0AE544',
3449
3473
  titleBackground: 'rgba(0,0,0,0.65)',
@@ -115,6 +115,7 @@
115
115
  // border: 0px;
116
116
  outline: none;
117
117
  font-size: 17px;
118
+ padding: 0 5px;
118
119
  border: 1px #707070 solid;
119
120
  }
120
121
  .modalSpan{
@@ -154,6 +155,7 @@
154
155
  background: #f3f3f3;
155
156
  color: #333;
156
157
  border-radius: 0 4px 4px 4px;
158
+ text-align: left;
157
159
  // height: ~"calc(100vh - 130px)";
158
160
  // position: absolute;
159
161
  // z-index: 1;
@@ -387,33 +389,49 @@
387
389
  .radio i {
388
390
  display: block;
389
391
  position: absolute;
390
- top: 3px;
392
+ top: 50%;
391
393
  left: 2px;
392
- width: 15px;
393
- height: 15px;
394
+ width: 12px;
395
+ height: 12px;
396
+ transform: translateY(-50%);
394
397
  outline: 0;
395
398
  border: 1px solid rgb(133, 133, 133);
396
399
  background: transparent;
397
400
  border-radius: 50%;
398
401
  transition: border-color .3s;
399
402
  -webkit-transition: border-color .3s;
403
+ box-sizing: content-box;
400
404
  }
401
405
 
402
406
  .radio input+i:after {
403
407
  position: absolute;
404
408
  content: '';
405
- top: 1.5px;
406
- left: 1.5px;
407
- width: 10px;
408
- height: 10px;
409
+ top: 50%;
410
+ left: 50%;
411
+ transform: translate(-50%,-50%);
412
+ width: 50%;
413
+ height: 50%;
409
414
  border-radius: 50%;
410
415
  background-color: #269792;
411
- border: 1px solid #269792;
416
+ // border: 1px solid #269792;
412
417
  opacity: 0;
413
418
  transition: opacity .1s;
414
419
  -webkit-transition: opacity .1s;
420
+ box-sizing: content-box;
415
421
  }
416
422
 
417
423
  .radio input:checked+i:after {
418
424
  opacity: 1;
425
+ }
426
+ .errorClassInvitation{
427
+ width: 90%;
428
+ height: 50px;
429
+ margin: 50px 30px 0px;
430
+ background: #F9F2F3;
431
+ border: 1px #E5B2B5 solid;
432
+ img{
433
+ margin: 15px 20px;
434
+ width: 18px;
435
+ height: 18px;
436
+ }
419
437
  }