react_hsbc_teller 0.5.9 → 0.6.3

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.
@@ -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: '',
@@ -145,6 +146,7 @@ class Video extends Component {
145
146
  this.props.createRoomCallback({
146
147
  type: 1,
147
148
  errorManage: '',
149
+ errorCode: 0,
148
150
  data: {
149
151
  mtoken: this.state.rtoken,
150
152
  imRoomId: result.imRoomId,
@@ -157,6 +159,7 @@ class Video extends Component {
157
159
  this.props.createRoomCallback({
158
160
  type: 2,
159
161
  errorManage: '保存房间信息失败',
162
+ errorCode:-9,
160
163
  data: {}
161
164
  })
162
165
  }
@@ -182,7 +185,7 @@ class Video extends Component {
182
185
  }
183
186
  } catch (err) {
184
187
  console.error(err);
185
- this.roomCallBack(2, '签名失败')
188
+ this.roomCallBack(2, '签名失败',-8)
186
189
  }
187
190
  };
188
191
  handleEdit = () => {
@@ -645,7 +648,18 @@ class Video extends Component {
645
648
  cobj.font = "28px auto";
646
649
  cobj.textAlign = 'center';
647
650
  cobj.lineWidth = 1;
648
- 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);
649
663
  cobj.stroke();
650
664
  //左边框
651
665
  cobj.beginPath();
@@ -752,17 +766,19 @@ class Video extends Component {
752
766
  });
753
767
  }
754
768
  };
755
- roomCallBack = (type, manege) => {
769
+ roomCallBack = (type, manege,code) => {
756
770
  if (this.state.sessionId) {
757
771
  this.props.joinRoomCallback({
758
772
  type: type,
759
773
  errorManage: manege,
774
+ errorCode: code,
760
775
  data: {}
761
776
  })
762
777
  } else {
763
778
  this.props.createRoomCallback({
764
779
  type: type,
765
780
  errorManage: manege,
781
+ errorCode: code,
766
782
  data: {}
767
783
  })
768
784
  }
@@ -806,11 +822,13 @@ class Video extends Component {
806
822
  this.test_controller.StopRemoteRecord(this.state.recordId)
807
823
  }
808
824
  }
809
- } else if (Mival.typeId == 1010) {
810
- if (Mival.sessionId == this.state.sessionId) {
811
- this.endSession('customerHangUp')
812
- }
813
- } else if (Mival.typeId == 1215) {
825
+ }
826
+ // else if (Mival.typeId == 1010) {
827
+ // if (Mival.sessionId == this.state.sessionId) {
828
+ // this.endSession('customerHangUp')
829
+ // }
830
+ // }
831
+ else if (Mival.typeId == 1215) {
814
832
  // 一炒多的图片
815
833
  if (Mival.sessionId == this.state.sessionId) {
816
834
  this.props.imgCallback(Mival.data.type, Mival.data.file) // 文字抄录和风险抄录,3--风险,,2--文字
@@ -1018,7 +1036,7 @@ class Video extends Component {
1018
1036
  window.IMOpenfire = msg =>{
1019
1037
  console.log('im登录', msg)
1020
1038
  if(!msg) {
1021
- this.roomCallBack(2, 'im建立连接失败')
1039
+ this.roomCallBack(2, 'im建立连接失败',-7)
1022
1040
  } else {
1023
1041
  this.setState({
1024
1042
  imStatus: msg
@@ -1094,6 +1112,7 @@ class Video extends Component {
1094
1112
  this.setState({
1095
1113
  cameraList: obj,
1096
1114
  microphoneList: obj1,
1115
+ speakerList: obj2
1097
1116
  })
1098
1117
  if (!this.state.appId) {
1099
1118
  this.mpaasSig(data);
@@ -1112,7 +1131,7 @@ class Video extends Component {
1112
1131
  this.test_controller.OnGetDevicesFailed = (code, msg) => {
1113
1132
  console.log('获取设备失败', code, msg)
1114
1133
  this.messageClick('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头','error')
1115
- this.roomCallBack(2, '获取失败')
1134
+ this.roomCallBack(2, '获取设备失败',-1)
1116
1135
  };
1117
1136
  // 建立连接成功
1118
1137
  this.test_controller.OnConnectOK = () => {
@@ -1121,7 +1140,7 @@ class Video extends Component {
1121
1140
  };
1122
1141
  this.test_controller.OnConnectFailed = (code, msg) => {
1123
1142
  console.log('建立连接失败', code, msg)
1124
- this.roomCallBack(2, '连接失败')
1143
+ this.roomCallBack(2, '连接失败',-2)
1125
1144
  };
1126
1145
  // 断开连接回调
1127
1146
  this.test_controller.OnConnectClose = (code, msg) => {
@@ -1135,7 +1154,7 @@ class Video extends Component {
1135
1154
  // 初始化房间失败
1136
1155
  this.test_controller.OnInitRoomConfigFail = (err_code, err_msg) => {
1137
1156
  console.log('初始化房间失败', err_code, err_msg)
1138
- this.roomCallBack(2, '初始化失败')
1157
+ this.roomCallBack(2, '初始化失败',-3)
1139
1158
  };
1140
1159
  // 初始化成功回调
1141
1160
  this.test_controller.OnInitRoomConfigOK = () => {
@@ -1161,7 +1180,7 @@ class Video extends Component {
1161
1180
  // 创建房间失败
1162
1181
  this.test_controller.OnCreateRoomFailed = (err_code, err_msg) => {
1163
1182
  console.log('创建房间失败', err_code, err_msg)
1164
- this.roomCallBack(2, '创建失败')
1183
+ this.roomCallBack(2, '创建房间失败',-4)
1165
1184
  };
1166
1185
  // 初始化⾳视频成功
1167
1186
  this.test_controller.OnMediaCallSucc = (sid) => {
@@ -1178,12 +1197,12 @@ class Video extends Component {
1178
1197
  // 加入房间成功
1179
1198
  this.test_controller.OnJoinRoomSucc = () => {
1180
1199
  console.log('加入房间成功')
1181
- this.roomCallBack(1, '')
1200
+ this.roomCallBack(1, '',0)
1182
1201
  };
1183
1202
  // 加入房间失败
1184
1203
  this.test_controller.OnJoinRoomFailed = (err_code, err_msg) => {
1185
1204
  console.log('加入房间失败', err_code, err_msg)
1186
- this.roomCallBack(2, '加入失败')
1205
+ this.roomCallBack(2, '加入失败',-5)
1187
1206
  };
1188
1207
  // 发布媒体流成功
1189
1208
  this.test_controller.OnPublishSucc = (sid) => {
@@ -1203,6 +1222,7 @@ class Video extends Component {
1203
1222
  // 发布媒体流失败
1204
1223
  this.test_controller.OnPublishFailed = (sid, err_code, err_msg) => {
1205
1224
  console.log('发布媒体流失败', sid, err_code, err_msg)
1225
+ this.roomCallBack(2, '发布失败',-6)
1206
1226
  };
1207
1227
  // 订阅媒体流成功
1208
1228
  this.test_controller.OnSubscribeSucc = (feed, sid) => {
@@ -2094,7 +2114,7 @@ class Video extends Component {
2094
2114
  axios.get(this.props.resourcePath + "/beauty/beauty.js")
2095
2115
  .then(response => this.addToScriptClick()).catch(function (error) {
2096
2116
  console.log(error);
2097
- this.roomCallBack(2, '创建房间失败')
2117
+ this.roomCallBack(2, '创建房间失败',-4)
2098
2118
 
2099
2119
  })
2100
2120
 
@@ -2482,6 +2502,10 @@ class Video extends Component {
2482
2502
 
2483
2503
  }
2484
2504
  handleOkInvitation = async () => {
2505
+ if(!this.state.employeeName || this.state.employeeError) {
2506
+ this.messageClick('请输入正确的员工号','error')
2507
+ return
2508
+ }
2485
2509
  try {
2486
2510
  let result = await API.sendLink({
2487
2511
  sessionId: this.state.sessionId,
@@ -2659,6 +2683,7 @@ class Video extends Component {
2659
2683
  }
2660
2684
  }
2661
2685
  queryStaff = async () => {
2686
+ if(!this.state.employeeNumber) return
2662
2687
  try {
2663
2688
  let result = await API.getUsername({
2664
2689
  userId: this.state.employeeNumber
@@ -2666,13 +2691,17 @@ class Video extends Component {
2666
2691
  console.log(result)
2667
2692
  if (result.code == 200) {
2668
2693
  this.setState({
2669
- employeeName: result.data.username
2694
+ employeeName: result.data.username,
2695
+ employeeError: '',
2670
2696
  })
2671
2697
  } else {
2672
2698
  this.messageClick('查询失败','error')
2673
2699
  }
2674
2700
  } catch (err) {
2675
-
2701
+ console.log(err)
2702
+ this.setState({
2703
+ employeeError: '未搜索到相关信息'
2704
+ })
2676
2705
  }
2677
2706
  }
2678
2707
  counterSign = async data => {
@@ -2806,38 +2835,19 @@ class Video extends Component {
2806
2835
  const tabTitleList = (
2807
2836
  <div className="button">
2808
2837
  {
2809
- this.state.tabTitles.map((item) => {
2810
- 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)}>
2811
2840
  {item.name}
2812
2841
  </div>
2813
2842
  })
2814
2843
  }
2815
2844
  </div>
2816
2845
  )
2817
- const videoCustomer =
2818
- this.state.videoList.map((item, index) => {
2819
- return <div className={`itemed`} style={{ display: (item.isVideo) ? '' : 'none', }}>
2820
- <video
2821
- id={'video' + item.videoIndex}
2822
- autoPlay
2823
- muted={true}
2824
- className="video"
2825
- />
2826
- <audio id={'audio' + item.videoIndex} autoPlay />
2827
- <label style={{ display: 'none' }} id={'feedId' + item.videoIndex} type="text" />
2828
- <div className={`customerTitle titleSamlle`}>
2829
- <div className='titleName' style={{ background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
2830
- {this.state.videoTwoName}
2831
- </div>
2832
- </div>
2833
- <canvas className="canvasClassOne" id={'subscribe_volumeView' + item.videoIndex} width="40" height="70"></canvas>
2834
- </div>
2835
- })
2836
2846
  const camera = (
2837
2847
  <div class="cameraAnMicrophone">
2838
2848
  {
2839
- this.state.cameraList.map((item, index) => {
2840
- return <div>
2849
+ this.state.cameraList.map((item,index) => {
2850
+ return <div key={index}>
2841
2851
  <label className="radio">
2842
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>
2843
2853
  {item.actionname}
@@ -2852,8 +2862,8 @@ class Video extends Component {
2852
2862
  const microphone = (
2853
2863
  <div>
2854
2864
  {
2855
- this.state.microphoneList.map((item, index) => {
2856
- return <div class="cameraAnMicrophone">
2865
+ this.state.microphoneList.map((item,index) => {
2866
+ return <div key={index} class="cameraAnMicrophone">
2857
2867
  <label className="radio">
2858
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>
2859
2869
  {item.actionname}
@@ -2864,19 +2874,39 @@ class Video extends Component {
2864
2874
  }
2865
2875
  </div>
2866
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
+
2867
2889
  const sectionStyle = this.state.tabTitles.length > 0 ? {
2868
- 'z-index': '-1',
2890
+ zIndex: '-1',
2869
2891
  width:'100%',
2870
2892
  height:'100%',
2871
2893
  position: 'absolute',
2872
- left: 0
2894
+ left: 0,
2895
+ top: 0,
2896
+ right: 0,
2897
+ bottom: 0,
2898
+ margin: 'auto'
2873
2899
 
2874
2900
  } :{
2875
- 'z-index': '0',
2901
+ zIndex: '0',
2876
2902
  width:'100%',
2877
- height:'100%',
2903
+ // height:'100%',
2878
2904
  position: 'absolute',
2879
- left: 0
2905
+ left: 0,
2906
+ top: 0,
2907
+ right: 0,
2908
+ bottom: 0,
2909
+ margin: 'auto'
2880
2910
  };
2881
2911
  return (
2882
2912
  <div className="all">
@@ -2956,8 +2986,6 @@ class Video extends Component {
2956
2986
  className={`publishVideoClass`}
2957
2987
  autoPlay
2958
2988
  muted={true}
2959
- webkit-playsinline={true}
2960
- playsinline={true}
2961
2989
  />
2962
2990
  <label style={{ display: 'none' }} id="publish_streamId1" type="text" />
2963
2991
 
@@ -2969,15 +2997,12 @@ class Video extends Component {
2969
2997
  className="imgClassVoice voiceClass"
2970
2998
  />
2971
2999
  }
2972
- <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2973
- <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>
2974
3002
  </div>
2975
3003
  </div>
2976
3004
 
2977
3005
  </div>
2978
- {/* {
2979
- videoCustomer
2980
- } */}
2981
3006
  <div
2982
3007
  className={`itemed`}
2983
3008
  style={{ position: "relative", display: (this.state.videoOneName) ? '' : 'none' }}
@@ -3007,9 +3032,9 @@ class Video extends Component {
3007
3032
  className="imgClassVoice voiceVideoClass"
3008
3033
  />
3009
3034
  }
3010
- <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>
3011
3036
 
3012
- <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 }}>
3013
3038
  {this.state.videoOneName}
3014
3039
  </div>
3015
3040
 
@@ -3035,9 +3060,9 @@ class Video extends Component {
3035
3060
  className="imgClassVoice voiceVideoClass"
3036
3061
  />
3037
3062
  }
3038
- <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>
3039
3064
 
3040
- <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 }}>
3041
3066
  {this.state.videoTwoName}
3042
3067
  </div>
3043
3068
  </div>
@@ -3053,7 +3078,7 @@ class Video extends Component {
3053
3078
  <audio id="audio3" autoPlay />
3054
3079
  <label style={{ display: 'none' }} id="feedId3" type="text" />
3055
3080
 
3056
- <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`}>
3057
3082
  {
3058
3083
  this.state.voiceVideoThree && <img
3059
3084
  alt=""
@@ -3061,9 +3086,9 @@ class Video extends Component {
3061
3086
  className="imgClassVoice voiceVideoClass"
3062
3087
  />
3063
3088
  }
3064
- <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>
3065
3090
 
3066
- <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 }}>
3067
3092
  {this.state.videoThreeName}
3068
3093
  </div>
3069
3094
  </div>
@@ -3078,7 +3103,7 @@ class Video extends Component {
3078
3103
  <audio id="audio4" autoPlay />
3079
3104
  <label style={{ display: 'none' }} id="feedId4" type="text" />
3080
3105
 
3081
- <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`}>
3082
3107
  {
3083
3108
  this.state.voiceVideoFour && <img
3084
3109
  alt=""
@@ -3086,9 +3111,9 @@ class Video extends Component {
3086
3111
  className="imgClassVoice voiceVideoClass"
3087
3112
  />
3088
3113
  }
3089
- <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>
3090
3115
 
3091
- <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 }}>
3092
3117
  {this.state.videoFourName}
3093
3118
  </div>
3094
3119
  </div>
@@ -3104,7 +3129,7 @@ class Video extends Component {
3104
3129
  <audio id="audio5" autoPlay />
3105
3130
  <label style={{ display: 'none' }} id="feedId5" type="text" />
3106
3131
 
3107
- <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`}>
3108
3133
  {
3109
3134
  this.state.voiceVideoFive && <img
3110
3135
  alt=""
@@ -3112,9 +3137,9 @@ class Video extends Component {
3112
3137
  className="imgClassVoice voiceVideoClass"
3113
3138
  />
3114
3139
  }
3115
- <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>
3116
3141
 
3117
- <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 }}>
3118
3143
  {this.state.videoFiveName}
3119
3144
  </div>
3120
3145
  </div>
@@ -3129,7 +3154,7 @@ class Video extends Component {
3129
3154
  <audio id="audio6" autoPlay />
3130
3155
  <label style={{ display: 'none' }} id="feedId6" type="text" />
3131
3156
 
3132
- <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`}>
3133
3158
  {
3134
3159
  this.state.voiceVideoSix && <img
3135
3160
  alt=""
@@ -3137,9 +3162,9 @@ class Video extends Component {
3137
3162
  className="imgClassVoice voiceVideoClass"
3138
3163
  />
3139
3164
  }
3140
- <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>
3141
3166
 
3142
- <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 }}>
3143
3168
  {this.state.videoSixName}
3144
3169
  </div>
3145
3170
  </div>
@@ -3174,9 +3199,9 @@ class Video extends Component {
3174
3199
  className="imgClassVoice voiceVideoClass"
3175
3200
  />
3176
3201
  }
3177
- <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>
3178
3203
 
3179
- <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 }}>
3180
3205
  {this.state.videoSevenName}
3181
3206
  </div>
3182
3207
 
@@ -3202,9 +3227,9 @@ class Video extends Component {
3202
3227
  className="imgClassVoice voiceVideoClass"
3203
3228
  />
3204
3229
  }
3205
- <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>
3206
3231
 
3207
- <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 }}>
3208
3233
  {this.state.videoEightName}
3209
3234
  </div>
3210
3235
  </div>
@@ -3219,7 +3244,7 @@ class Video extends Component {
3219
3244
  <audio id="audio9" autoPlay />
3220
3245
  <label style={{ display: 'none' }} id="feedId9" type="text" />
3221
3246
 
3222
- <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`}>
3223
3248
  {
3224
3249
  this.state.voiceVideoNine && <img
3225
3250
  alt=""
@@ -3227,9 +3252,9 @@ class Video extends Component {
3227
3252
  className="imgClassVoice voiceVideoClass"
3228
3253
  />
3229
3254
  }
3230
- <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>
3231
3256
 
3232
- <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 }}>
3233
3258
  {this.state.videoNineName}
3234
3259
  </div>
3235
3260
  </div>
@@ -3246,7 +3271,7 @@ class Video extends Component {
3246
3271
  <audio id="audio10" autoPlay />
3247
3272
  <label style={{ display: 'none' }} id="feedId10" type="text" />
3248
3273
 
3249
- <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`}>
3250
3275
  {
3251
3276
  this.state.voiceVideoTen && <img
3252
3277
  alt=""
@@ -3254,9 +3279,9 @@ class Video extends Component {
3254
3279
  className="imgClassVoice voiceVideoClass"
3255
3280
  />
3256
3281
  }
3257
- <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>
3258
3283
 
3259
- <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 }}>
3260
3285
  {this.state.videoTenName}
3261
3286
  </div>
3262
3287
  </div>
@@ -3271,7 +3296,7 @@ class Video extends Component {
3271
3296
  <audio id="audio11" autoPlay />
3272
3297
  <label style={{ display: 'none' }} id="feedId11" type="text" />
3273
3298
 
3274
- <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`}>
3275
3300
  {
3276
3301
  this.state.voiceVideoEleven && <img
3277
3302
  alt=""
@@ -3279,9 +3304,9 @@ class Video extends Component {
3279
3304
  className="imgClassVoice voiceVideoClass"
3280
3305
  />
3281
3306
  }
3282
- <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>
3283
3308
 
3284
- <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 }}>
3285
3310
  {this.state.videoElevenName}
3286
3311
  </div>
3287
3312
  </div>
@@ -3297,7 +3322,7 @@ class Video extends Component {
3297
3322
  <audio id="audio12" autoPlay />
3298
3323
  <label style={{ display: 'none' }} id="feedId12" type="text" />
3299
3324
 
3300
- <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`}>
3301
3326
  {
3302
3327
  this.state.voiceVideoTwelve && <img
3303
3328
  alt=""
@@ -3305,9 +3330,9 @@ class Video extends Component {
3305
3330
  className="imgClassVoice voiceVideoClass"
3306
3331
  />
3307
3332
  }
3308
- <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>
3309
3334
 
3310
- <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 }}>
3311
3336
  {this.state.videoTwelveName}
3312
3337
  </div>
3313
3338
  </div>
@@ -3387,6 +3412,13 @@ class Video extends Component {
3387
3412
  <span class="modalSpan">&nbsp;&nbsp;&nbsp;姓名:</span><span>{this.state.employeeName}</span>
3388
3413
  </div>
3389
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
+
3390
3422
  </Modal>
3391
3423
  <Modal title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3392
3424
  [
@@ -3414,11 +3446,11 @@ class Video extends Component {
3414
3446
  {camera}
3415
3447
  <div>麦克风设备:</div>
3416
3448
  {microphone}
3449
+ <div>扬声器设备:</div>
3450
+ {speaker}
3417
3451
  </div>
3418
3452
  </Modal>
3419
- <video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"
3420
- webkit-playsinline="true" playsInline={true} x5-playsinline="x5-playsinline"
3421
- x-webkit-airplay="true"></video>
3453
+ <video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"></video>
3422
3454
  </Spin>
3423
3455
  </div>);
3424
3456
  }
@@ -3427,8 +3459,11 @@ Video.defaultProps = {
3427
3459
  tellerAccount: 't001',
3428
3460
  businessNumber: '123',
3429
3461
  callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
3462
+ // roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
3430
3463
  roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
3464
+
3431
3465
  resourcePath: 'https://counter-web.leimondata.cn:7199',
3466
+ // resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
3432
3467
  prohbiitPrompt: '当前无客户',
3433
3468
  voiceColor: '#0AE544',
3434
3469
  titleBackground: 'rgba(0,0,0,0.65)',