react_hsbc_teller 0.6.0 → 0.6.4

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.4",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -54,8 +54,8 @@ export default class foot extends Component {
54
54
  const {clickedOcr,clickedFacial,isTranscribing,img,cameraImg,screenName,suspendName,customerList,menus} = this.props
55
55
  const content = (
56
56
  <div>
57
- {customerList.map((item)=>{
58
- return <div className="customer" onClick={this.customerFaceClick.bind(this,item)}>
57
+ {customerList.map((item,index)=>{
58
+ return <div key={index}className="customer" onClick={this.customerFaceClick.bind(this,item)}>
59
59
  <img className="imgClass" alt="" src={require("../../assets/img/youke.png").default} />
60
60
  <li className="listLi" key={item.customerId}>{item.name}</li>
61
61
  </div>
@@ -67,8 +67,8 @@ export default class foot extends Component {
67
67
  const defaultList = (
68
68
  <div className="total totalTwo">
69
69
  {
70
- menus.map((item)=>{
71
- return <div className='footHover'>
70
+ menus.map((item,index)=>{
71
+ return <div key={index}className='footHover'>
72
72
  {
73
73
  isTranscribing &&
74
74
  <div className="one" onClick={this.transcribingClick.bind(this)}>
@@ -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 => {
@@ -2799,7 +2821,7 @@ class Video extends Component {
2799
2821
  <span className='labelClass'>
2800
2822
  {
2801
2823
  meetingInfo.customers.map((item, index) => {
2802
- return <label>
2824
+ return <label key={index}>
2803
2825
  {item}
2804
2826
  {
2805
2827
  meetingInfo.customers.length > 0 && index != meetingInfo.customers.length - 1 && <label>,</label>
@@ -2813,38 +2835,19 @@ class Video extends Component {
2813
2835
  const tabTitleList = (
2814
2836
  <div className="button">
2815
2837
  {
2816
- this.state.tabTitles.map((item) => {
2817
- return <div className={`${this.state.isSelect == item.value ? 'selectSee' : "noSelest"}`} onClick={this.switchSelect.bind(this, item.value)}>
2838
+ this.state.tabTitles.map((item,index) => {
2839
+ return <div key={index} className={`${this.state.isSelect == item.value ? 'selectSee' : "noSelest"}`} onClick={this.switchSelect.bind(this, item.value)}>
2818
2840
  {item.name}
2819
2841
  </div>
2820
2842
  })
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) => {
2847
- return <div>
2849
+ this.state.cameraList.map((item,index) => {
2850
+ return <div key={index}>
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>
2850
2853
  {item.actionname}
@@ -2859,8 +2862,8 @@ class Video extends Component {
2859
2862
  const microphone = (
2860
2863
  <div>
2861
2864
  {
2862
- this.state.microphoneList.map((item, index) => {
2863
- return <div class="cameraAnMicrophone">
2865
+ this.state.microphoneList.map((item,index) => {
2866
+ return <div key={index} 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>
2866
2869
  {item.actionname}
@@ -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,index) => {
2881
+ return <div key={index} 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',
@@ -2971,8 +2986,6 @@ class Video extends Component {
2971
2986
  className={`publishVideoClass`}
2972
2987
  autoPlay
2973
2988
  muted={true}
2974
- webkit-playsinline={true}
2975
- playsinline={true}
2976
2989
  />
2977
2990
  <label style={{ display: 'none' }} id="publish_streamId1" type="text" />
2978
2991
 
@@ -2984,15 +2997,12 @@ class Video extends Component {
2984
2997
  className="imgClassVoice voiceClass"
2985
2998
  />
2986
2999
  }
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>
3000
+ <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
3001
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>坐席</div>
2989
3002
  </div>
2990
3003
  </div>
2991
3004
 
2992
3005
  </div>
2993
- {/* {
2994
- videoCustomer
2995
- } */}
2996
3006
  <div
2997
3007
  className={`itemed`}
2998
3008
  style={{ position: "relative", display: (this.state.videoOneName) ? '' : 'none' }}
@@ -3022,9 +3032,9 @@ class Video extends Component {
3022
3032
  className="imgClassVoice voiceVideoClass"
3023
3033
  />
3024
3034
  }
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>
3035
+ <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
3036
 
3027
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3037
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3028
3038
  {this.state.videoOneName}
3029
3039
  </div>
3030
3040
 
@@ -3050,9 +3060,9 @@ class Video extends Component {
3050
3060
  className="imgClassVoice voiceVideoClass"
3051
3061
  />
3052
3062
  }
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>
3063
+ <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
3064
 
3055
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3065
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3056
3066
  {this.state.videoTwoName}
3057
3067
  </div>
3058
3068
  </div>
@@ -3068,7 +3078,7 @@ class Video extends Component {
3068
3078
  <audio id="audio3" autoPlay />
3069
3079
  <label style={{ display: 'none' }} id="feedId3" type="text" />
3070
3080
 
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`}>
3081
+ <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
3082
  {
3073
3083
  this.state.voiceVideoThree && <img
3074
3084
  alt=""
@@ -3076,9 +3086,9 @@ class Video extends Component {
3076
3086
  className="imgClassVoice voiceVideoClass"
3077
3087
  />
3078
3088
  }
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>
3089
+ <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
3090
 
3081
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3091
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3082
3092
  {this.state.videoThreeName}
3083
3093
  </div>
3084
3094
  </div>
@@ -3093,7 +3103,7 @@ class Video extends Component {
3093
3103
  <audio id="audio4" autoPlay />
3094
3104
  <label style={{ display: 'none' }} id="feedId4" type="text" />
3095
3105
 
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`}>
3106
+ <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
3107
  {
3098
3108
  this.state.voiceVideoFour && <img
3099
3109
  alt=""
@@ -3101,9 +3111,9 @@ class Video extends Component {
3101
3111
  className="imgClassVoice voiceVideoClass"
3102
3112
  />
3103
3113
  }
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>
3114
+ <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
3115
 
3106
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3116
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3107
3117
  {this.state.videoFourName}
3108
3118
  </div>
3109
3119
  </div>
@@ -3119,7 +3129,7 @@ class Video extends Component {
3119
3129
  <audio id="audio5" autoPlay />
3120
3130
  <label style={{ display: 'none' }} id="feedId5" type="text" />
3121
3131
 
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`}>
3132
+ <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
3133
  {
3124
3134
  this.state.voiceVideoFive && <img
3125
3135
  alt=""
@@ -3127,9 +3137,9 @@ class Video extends Component {
3127
3137
  className="imgClassVoice voiceVideoClass"
3128
3138
  />
3129
3139
  }
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>
3140
+ <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
3141
 
3132
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3142
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3133
3143
  {this.state.videoFiveName}
3134
3144
  </div>
3135
3145
  </div>
@@ -3144,7 +3154,7 @@ class Video extends Component {
3144
3154
  <audio id="audio6" autoPlay />
3145
3155
  <label style={{ display: 'none' }} id="feedId6" type="text" />
3146
3156
 
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`}>
3157
+ <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
3158
  {
3149
3159
  this.state.voiceVideoSix && <img
3150
3160
  alt=""
@@ -3152,9 +3162,9 @@ class Video extends Component {
3152
3162
  className="imgClassVoice voiceVideoClass"
3153
3163
  />
3154
3164
  }
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>
3165
+ <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
3156
3166
 
3157
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3167
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3158
3168
  {this.state.videoSixName}
3159
3169
  </div>
3160
3170
  </div>
@@ -3189,9 +3199,9 @@ class Video extends Component {
3189
3199
  className="imgClassVoice voiceVideoClass"
3190
3200
  />
3191
3201
  }
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>
3202
+ <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
3203
 
3194
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3204
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3195
3205
  {this.state.videoSevenName}
3196
3206
  </div>
3197
3207
 
@@ -3217,9 +3227,9 @@ class Video extends Component {
3217
3227
  className="imgClassVoice voiceVideoClass"
3218
3228
  />
3219
3229
  }
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>
3230
+ <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
3231
 
3222
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3232
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3223
3233
  {this.state.videoEightName}
3224
3234
  </div>
3225
3235
  </div>
@@ -3234,7 +3244,7 @@ class Video extends Component {
3234
3244
  <audio id="audio9" autoPlay />
3235
3245
  <label style={{ display: 'none' }} id="feedId9" type="text" />
3236
3246
 
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`}>
3247
+ <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
3248
  {
3239
3249
  this.state.voiceVideoNine && <img
3240
3250
  alt=""
@@ -3242,9 +3252,9 @@ class Video extends Component {
3242
3252
  className="imgClassVoice voiceVideoClass"
3243
3253
  />
3244
3254
  }
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>
3255
+ <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
3256
 
3247
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3257
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3248
3258
  {this.state.videoNineName}
3249
3259
  </div>
3250
3260
  </div>
@@ -3261,7 +3271,7 @@ class Video extends Component {
3261
3271
  <audio id="audio10" autoPlay />
3262
3272
  <label style={{ display: 'none' }} id="feedId10" type="text" />
3263
3273
 
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`}>
3274
+ <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
3275
  {
3266
3276
  this.state.voiceVideoTen && <img
3267
3277
  alt=""
@@ -3269,9 +3279,9 @@ class Video extends Component {
3269
3279
  className="imgClassVoice voiceVideoClass"
3270
3280
  />
3271
3281
  }
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>
3282
+ <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
3283
 
3274
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3284
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3275
3285
  {this.state.videoTenName}
3276
3286
  </div>
3277
3287
  </div>
@@ -3286,7 +3296,7 @@ class Video extends Component {
3286
3296
  <audio id="audio11" autoPlay />
3287
3297
  <label style={{ display: 'none' }} id="feedId11" type="text" />
3288
3298
 
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`}>
3299
+ <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
3300
  {
3291
3301
  this.state.voiceVideoEleven && <img
3292
3302
  alt=""
@@ -3294,9 +3304,9 @@ class Video extends Component {
3294
3304
  className="imgClassVoice voiceVideoClass"
3295
3305
  />
3296
3306
  }
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>
3307
+ <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
3308
 
3299
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3309
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3300
3310
  {this.state.videoElevenName}
3301
3311
  </div>
3302
3312
  </div>
@@ -3312,7 +3322,7 @@ class Video extends Component {
3312
3322
  <audio id="audio12" autoPlay />
3313
3323
  <label style={{ display: 'none' }} id="feedId12" type="text" />
3314
3324
 
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`}>
3325
+ <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
3326
  {
3317
3327
  this.state.voiceVideoTwelve && <img
3318
3328
  alt=""
@@ -3320,9 +3330,9 @@ class Video extends Component {
3320
3330
  className="imgClassVoice voiceVideoClass"
3321
3331
  />
3322
3332
  }
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>
3333
+ <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
3334
 
3325
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3335
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3326
3336
  {this.state.videoTwelveName}
3327
3337
  </div>
3328
3338
  </div>
@@ -3402,6 +3412,13 @@ class Video extends Component {
3402
3412
  <span class="modalSpan">&nbsp;&nbsp;&nbsp;姓名:</span><span>{this.state.employeeName}</span>
3403
3413
  </div>
3404
3414
  </div>
3415
+ {
3416
+ this.state.employeeError && <div className='errorClassInvitation'>
3417
+ <img alt="" src={require("../../assets/img/tooltips2_fail.png").default} />
3418
+ <span>{this.state.employeeError}</span>
3419
+ </div>
3420
+ }
3421
+
3405
3422
  </Modal>
3406
3423
  <Modal title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3407
3424
  [
@@ -3429,11 +3446,11 @@ class Video extends Component {
3429
3446
  {camera}
3430
3447
  <div>麦克风设备:</div>
3431
3448
  {microphone}
3449
+ <div>扬声器设备:</div>
3450
+ {speaker}
3432
3451
  </div>
3433
3452
  </Modal>
3434
- <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>
3453
+ <video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"></video>
3437
3454
  </Spin>
3438
3455
  </div>);
3439
3456
  }
@@ -3442,8 +3459,11 @@ Video.defaultProps = {
3442
3459
  tellerAccount: 't001',
3443
3460
  businessNumber: '123',
3444
3461
  callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
3462
+ // roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
3445
3463
  roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
3464
+
3446
3465
  resourcePath: 'https://counter-web.leimondata.cn:7199',
3466
+ // resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
3447
3467
  prohbiitPrompt: '当前无客户',
3448
3468
  voiceColor: '#0AE544',
3449
3469
  titleBackground: 'rgba(0,0,0,0.65)',
@@ -42,7 +42,7 @@
42
42
  font-weight: bold;
43
43
  height: 170px;
44
44
  position: relative;
45
- background: #333;
45
+ background: rgba(0, 0, 0, 0.65);
46
46
  margin-bottom: 20px;
47
47
  border-radius: 6px;
48
48
  }
@@ -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;
@@ -164,7 +166,7 @@
164
166
  .video{
165
167
  width: 100%;
166
168
  height: 100%;
167
- background: #333;
169
+ background: rgba(0, 0, 0, 0.65);
168
170
  }
169
171
  }
170
172
  }
@@ -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
  }