react_hsbc_teller 0.5.8 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,9 +23,10 @@ import { Button } from '../../../node_modules/antd/lib/index';
23
23
  import CanvasDraw from "react-canvas-draw";
24
24
  import { FormattedMessage, injectIntl } from 'react-intl';
25
25
  import html2canvas from 'html2canvas';
26
+ import axios from 'axios';
26
27
  const LEAVE_TYPE = {
27
- TELLER_EXIT: '1', // 坐席退出
28
- ROOM_DESTROYED: '-1', // 房间异常
28
+ TELLER_EXIT: 1, // 坐席退出
29
+ ROOM_DESTROYED: -1, // 房间异常
29
30
  }
30
31
  let pictureInPictureVideo = ''
31
32
  @injectIntl
@@ -100,6 +101,7 @@ class Video extends Component {
100
101
  voiceVideoTwelve: false,
101
102
  cameraList: [],
102
103
  microphoneList: [],
104
+ speakerList: [],
103
105
  isModalVisibleInspection: false,
104
106
  cameraValue: '',
105
107
  microphoneValue: '',
@@ -144,6 +146,7 @@ class Video extends Component {
144
146
  this.props.createRoomCallback({
145
147
  type: 1,
146
148
  errorManage: '',
149
+ errorCode: 0,
147
150
  data: {
148
151
  mtoken: this.state.rtoken,
149
152
  imRoomId: result.imRoomId,
@@ -156,6 +159,7 @@ class Video extends Component {
156
159
  this.props.createRoomCallback({
157
160
  type: 2,
158
161
  errorManage: '保存房间信息失败',
162
+ errorCode:-9,
159
163
  data: {}
160
164
  })
161
165
  }
@@ -181,7 +185,7 @@ class Video extends Component {
181
185
  }
182
186
  } catch (err) {
183
187
  console.error(err);
184
- this.roomCallBack(2, '签名失败')
188
+ this.roomCallBack(2, '签名失败',-8)
185
189
  }
186
190
  };
187
191
  handleEdit = () => {
@@ -644,7 +648,18 @@ class Video extends Component {
644
648
  cobj.font = "28px auto";
645
649
  cobj.textAlign = 'center';
646
650
  cobj.lineWidth = 1;
647
- 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);
648
663
  cobj.stroke();
649
664
  //左边框
650
665
  cobj.beginPath();
@@ -751,17 +766,19 @@ class Video extends Component {
751
766
  });
752
767
  }
753
768
  };
754
- roomCallBack = (type, manege) => {
769
+ roomCallBack = (type, manege,code) => {
755
770
  if (this.state.sessionId) {
756
771
  this.props.joinRoomCallback({
757
772
  type: type,
758
773
  errorManage: manege,
774
+ errorCode: code,
759
775
  data: {}
760
776
  })
761
777
  } else {
762
778
  this.props.createRoomCallback({
763
779
  type: type,
764
780
  errorManage: manege,
781
+ errorCode: code,
765
782
  data: {}
766
783
  })
767
784
  }
@@ -805,11 +822,13 @@ class Video extends Component {
805
822
  this.test_controller.StopRemoteRecord(this.state.recordId)
806
823
  }
807
824
  }
808
- } else if (Mival.typeId == 1010) {
809
- if (Mival.sessionId == this.state.sessionId) {
810
- this.endSession('customerHangUp')
811
- }
812
- } 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) {
813
832
  // 一炒多的图片
814
833
  if (Mival.sessionId == this.state.sessionId) {
815
834
  this.props.imgCallback(Mival.data.type, Mival.data.file) // 文字抄录和风险抄录,3--风险,,2--文字
@@ -1017,7 +1036,7 @@ class Video extends Component {
1017
1036
  window.IMOpenfire = msg =>{
1018
1037
  console.log('im登录', msg)
1019
1038
  if(!msg) {
1020
- this.roomCallBack(2, 'im建立连接失败')
1039
+ this.roomCallBack(2, 'im建立连接失败',-7)
1021
1040
  } else {
1022
1041
  this.setState({
1023
1042
  imStatus: msg
@@ -1093,6 +1112,7 @@ class Video extends Component {
1093
1112
  this.setState({
1094
1113
  cameraList: obj,
1095
1114
  microphoneList: obj1,
1115
+ speakerList: obj2
1096
1116
  })
1097
1117
  if (!this.state.appId) {
1098
1118
  this.mpaasSig(data);
@@ -1111,7 +1131,7 @@ class Video extends Component {
1111
1131
  this.test_controller.OnGetDevicesFailed = (code, msg) => {
1112
1132
  console.log('获取设备失败', code, msg)
1113
1133
  this.messageClick('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头','error')
1114
- this.roomCallBack(2, '获取失败')
1134
+ this.roomCallBack(2, '获取设备失败',-1)
1115
1135
  };
1116
1136
  // 建立连接成功
1117
1137
  this.test_controller.OnConnectOK = () => {
@@ -1120,7 +1140,7 @@ class Video extends Component {
1120
1140
  };
1121
1141
  this.test_controller.OnConnectFailed = (code, msg) => {
1122
1142
  console.log('建立连接失败', code, msg)
1123
- this.roomCallBack(2, '连接失败')
1143
+ this.roomCallBack(2, '连接失败',-2)
1124
1144
  };
1125
1145
  // 断开连接回调
1126
1146
  this.test_controller.OnConnectClose = (code, msg) => {
@@ -1134,7 +1154,7 @@ class Video extends Component {
1134
1154
  // 初始化房间失败
1135
1155
  this.test_controller.OnInitRoomConfigFail = (err_code, err_msg) => {
1136
1156
  console.log('初始化房间失败', err_code, err_msg)
1137
- this.roomCallBack(2, '初始化失败')
1157
+ this.roomCallBack(2, '初始化失败',-3)
1138
1158
  };
1139
1159
  // 初始化成功回调
1140
1160
  this.test_controller.OnInitRoomConfigOK = () => {
@@ -1160,7 +1180,7 @@ class Video extends Component {
1160
1180
  // 创建房间失败
1161
1181
  this.test_controller.OnCreateRoomFailed = (err_code, err_msg) => {
1162
1182
  console.log('创建房间失败', err_code, err_msg)
1163
- this.roomCallBack(2, '创建失败')
1183
+ this.roomCallBack(2, '创建房间失败',-4)
1164
1184
  };
1165
1185
  // 初始化⾳视频成功
1166
1186
  this.test_controller.OnMediaCallSucc = (sid) => {
@@ -1177,12 +1197,12 @@ class Video extends Component {
1177
1197
  // 加入房间成功
1178
1198
  this.test_controller.OnJoinRoomSucc = () => {
1179
1199
  console.log('加入房间成功')
1180
- this.roomCallBack(1, '')
1200
+ this.roomCallBack(1, '',0)
1181
1201
  };
1182
1202
  // 加入房间失败
1183
1203
  this.test_controller.OnJoinRoomFailed = (err_code, err_msg) => {
1184
1204
  console.log('加入房间失败', err_code, err_msg)
1185
- this.roomCallBack(2, '加入失败')
1205
+ this.roomCallBack(2, '加入失败',-5)
1186
1206
  };
1187
1207
  // 发布媒体流成功
1188
1208
  this.test_controller.OnPublishSucc = (sid) => {
@@ -1202,6 +1222,7 @@ class Video extends Component {
1202
1222
  // 发布媒体流失败
1203
1223
  this.test_controller.OnPublishFailed = (sid, err_code, err_msg) => {
1204
1224
  console.log('发布媒体流失败', sid, err_code, err_msg)
1225
+ this.roomCallBack(2, '发布失败',-6)
1205
1226
  };
1206
1227
  // 订阅媒体流成功
1207
1228
  this.test_controller.OnSubscribeSucc = (feed, sid) => {
@@ -2090,6 +2111,15 @@ class Video extends Component {
2090
2111
  this.setState({
2091
2112
  loading: true,
2092
2113
  })
2114
+ axios.get(this.props.resourcePath + "/beauty/beauty.js")
2115
+ .then(response => this.addToScriptClick()).catch(function (error) {
2116
+ console.log(error);
2117
+ this.roomCallBack(2, '创建房间失败',-4)
2118
+
2119
+ })
2120
+
2121
+ }
2122
+ addToScriptClick=()=>{
2093
2123
  const _dependScripts = [
2094
2124
  // https://counter-web.leimondata.cn:7199
2095
2125
  this.props.resourcePath + "/beauty/beauty.js",
@@ -2472,6 +2502,10 @@ class Video extends Component {
2472
2502
 
2473
2503
  }
2474
2504
  handleOkInvitation = async () => {
2505
+ if(!this.state.employeeName || this.state.employeeError) {
2506
+ this.messageClick('请输入正确的员工号','error')
2507
+ return
2508
+ }
2475
2509
  try {
2476
2510
  let result = await API.sendLink({
2477
2511
  sessionId: this.state.sessionId,
@@ -2649,6 +2683,7 @@ class Video extends Component {
2649
2683
  }
2650
2684
  }
2651
2685
  queryStaff = async () => {
2686
+ if(!this.state.employeeNumber) return
2652
2687
  try {
2653
2688
  let result = await API.getUsername({
2654
2689
  userId: this.state.employeeNumber
@@ -2656,13 +2691,17 @@ class Video extends Component {
2656
2691
  console.log(result)
2657
2692
  if (result.code == 200) {
2658
2693
  this.setState({
2659
- employeeName: result.data.username
2694
+ employeeName: result.data.username,
2695
+ employeeError: '',
2660
2696
  })
2661
2697
  } else {
2662
2698
  this.messageClick('查询失败','error')
2663
2699
  }
2664
2700
  } catch (err) {
2665
-
2701
+ console.log(err)
2702
+ this.setState({
2703
+ employeeError: '未搜索到相关信息'
2704
+ })
2666
2705
  }
2667
2706
  }
2668
2707
  counterSign = async data => {
@@ -2804,30 +2843,11 @@ class Video extends Component {
2804
2843
  }
2805
2844
  </div>
2806
2845
  )
2807
- const videoCustomer =
2808
- this.state.videoList.map((item, index) => {
2809
- return <div className={`itemed`} style={{ display: (item.isVideo) ? '' : 'none', }}>
2810
- <video
2811
- id={'video' + item.videoIndex}
2812
- autoPlay
2813
- muted={true}
2814
- className="video"
2815
- />
2816
- <audio id={'audio' + item.videoIndex} autoPlay />
2817
- <label style={{ display: 'none' }} id={'feedId' + item.videoIndex} type="text" />
2818
- <div className={`customerTitle titleSamlle`}>
2819
- <div className='titleName' style={{ background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
2820
- {this.state.videoTwoName}
2821
- </div>
2822
- </div>
2823
- <canvas className="canvasClassOne" id={'subscribe_volumeView' + item.videoIndex} width="40" height="70"></canvas>
2824
- </div>
2825
- })
2826
2846
  const camera = (
2827
2847
  <div class="cameraAnMicrophone">
2828
2848
  {
2829
- this.state.cameraList.map((item, index) => {
2830
- return <div>
2849
+ this.state.cameraList.map((item,index) => {
2850
+ return <div key={index}>
2831
2851
  <label className="radio">
2832
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>
2833
2853
  {item.actionname}
@@ -2842,8 +2862,8 @@ class Video extends Component {
2842
2862
  const microphone = (
2843
2863
  <div>
2844
2864
  {
2845
- this.state.microphoneList.map((item, index) => {
2846
- return <div class="cameraAnMicrophone">
2865
+ this.state.microphoneList.map((item,index) => {
2866
+ return <div key={index} class="cameraAnMicrophone">
2847
2867
  <label className="radio">
2848
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>
2849
2869
  {item.actionname}
@@ -2854,19 +2874,39 @@ class Video extends Component {
2854
2874
  }
2855
2875
  </div>
2856
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
+
2857
2889
  const sectionStyle = this.state.tabTitles.length > 0 ? {
2858
- 'z-index': '-1',
2890
+ zIndex: '-1',
2859
2891
  width:'100%',
2860
2892
  height:'100%',
2861
2893
  position: 'absolute',
2862
- left: 0
2894
+ left: 0,
2895
+ top: 0,
2896
+ right: 0,
2897
+ bottom: 0,
2898
+ margin: 'auto'
2863
2899
 
2864
2900
  } :{
2865
- 'z-index': '0',
2901
+ zIndex: '0',
2866
2902
  width:'100%',
2867
- height:'100%',
2903
+ // height:'100%',
2868
2904
  position: 'absolute',
2869
- left: 0
2905
+ left: 0,
2906
+ top: 0,
2907
+ right: 0,
2908
+ bottom: 0,
2909
+ margin: 'auto'
2870
2910
  };
2871
2911
  return (
2872
2912
  <div className="all">
@@ -2920,11 +2960,11 @@ class Video extends Component {
2920
2960
  <label className='labelClass'>{meetingInfo.title}</label>
2921
2961
  </li>
2922
2962
  <li>
2923
- <span>主持人:</span>
2963
+ <span>客户:</span>
2924
2964
  <label className='labelClass'>{meetingInfo.host}</label>
2925
2965
  </li>
2926
2966
  <li>
2927
- <span>参会客户:</span>
2967
+ <span>参会人:</span>
2928
2968
  {customerNameList}
2929
2969
  </li>
2930
2970
  </ul>
@@ -2946,8 +2986,6 @@ class Video extends Component {
2946
2986
  className={`publishVideoClass`}
2947
2987
  autoPlay
2948
2988
  muted={true}
2949
- webkit-playsinline={true}
2950
- playsinline={true}
2951
2989
  />
2952
2990
  <label style={{ display: 'none' }} id="publish_streamId1" type="text" />
2953
2991
 
@@ -2959,15 +2997,12 @@ class Video extends Component {
2959
2997
  className="imgClassVoice voiceClass"
2960
2998
  />
2961
2999
  }
2962
- <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2963
- <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>
2964
3002
  </div>
2965
3003
  </div>
2966
3004
 
2967
3005
  </div>
2968
- {/* {
2969
- videoCustomer
2970
- } */}
2971
3006
  <div
2972
3007
  className={`itemed`}
2973
3008
  style={{ position: "relative", display: (this.state.videoOneName) ? '' : 'none' }}
@@ -2997,9 +3032,9 @@ class Video extends Component {
2997
3032
  className="imgClassVoice voiceVideoClass"
2998
3033
  />
2999
3034
  }
3000
- <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>
3001
3036
 
3002
- <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 }}>
3003
3038
  {this.state.videoOneName}
3004
3039
  </div>
3005
3040
 
@@ -3025,9 +3060,9 @@ class Video extends Component {
3025
3060
  className="imgClassVoice voiceVideoClass"
3026
3061
  />
3027
3062
  }
3028
- <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>
3029
3064
 
3030
- <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 }}>
3031
3066
  {this.state.videoTwoName}
3032
3067
  </div>
3033
3068
  </div>
@@ -3043,7 +3078,7 @@ class Video extends Component {
3043
3078
  <audio id="audio3" autoPlay />
3044
3079
  <label style={{ display: 'none' }} id="feedId3" type="text" />
3045
3080
 
3046
- <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`}>
3047
3082
  {
3048
3083
  this.state.voiceVideoThree && <img
3049
3084
  alt=""
@@ -3051,9 +3086,9 @@ class Video extends Component {
3051
3086
  className="imgClassVoice voiceVideoClass"
3052
3087
  />
3053
3088
  }
3054
- <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>
3055
3090
 
3056
- <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 }}>
3057
3092
  {this.state.videoThreeName}
3058
3093
  </div>
3059
3094
  </div>
@@ -3068,7 +3103,7 @@ class Video extends Component {
3068
3103
  <audio id="audio4" autoPlay />
3069
3104
  <label style={{ display: 'none' }} id="feedId4" type="text" />
3070
3105
 
3071
- <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`}>
3072
3107
  {
3073
3108
  this.state.voiceVideoFour && <img
3074
3109
  alt=""
@@ -3076,9 +3111,9 @@ class Video extends Component {
3076
3111
  className="imgClassVoice voiceVideoClass"
3077
3112
  />
3078
3113
  }
3079
- <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>
3080
3115
 
3081
- <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 }}>
3082
3117
  {this.state.videoFourName}
3083
3118
  </div>
3084
3119
  </div>
@@ -3094,7 +3129,7 @@ class Video extends Component {
3094
3129
  <audio id="audio5" autoPlay />
3095
3130
  <label style={{ display: 'none' }} id="feedId5" type="text" />
3096
3131
 
3097
- <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`}>
3098
3133
  {
3099
3134
  this.state.voiceVideoFive && <img
3100
3135
  alt=""
@@ -3102,9 +3137,9 @@ class Video extends Component {
3102
3137
  className="imgClassVoice voiceVideoClass"
3103
3138
  />
3104
3139
  }
3105
- <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>
3106
3141
 
3107
- <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 }}>
3108
3143
  {this.state.videoFiveName}
3109
3144
  </div>
3110
3145
  </div>
@@ -3119,7 +3154,7 @@ class Video extends Component {
3119
3154
  <audio id="audio6" autoPlay />
3120
3155
  <label style={{ display: 'none' }} id="feedId6" type="text" />
3121
3156
 
3122
- <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`}>
3123
3158
  {
3124
3159
  this.state.voiceVideoSix && <img
3125
3160
  alt=""
@@ -3127,9 +3162,9 @@ class Video extends Component {
3127
3162
  className="imgClassVoice voiceVideoClass"
3128
3163
  />
3129
3164
  }
3130
- <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>
3131
3166
 
3132
- <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 }}>
3133
3168
  {this.state.videoSixName}
3134
3169
  </div>
3135
3170
  </div>
@@ -3164,9 +3199,9 @@ class Video extends Component {
3164
3199
  className="imgClassVoice voiceVideoClass"
3165
3200
  />
3166
3201
  }
3167
- <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>
3168
3203
 
3169
- <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 }}>
3170
3205
  {this.state.videoSevenName}
3171
3206
  </div>
3172
3207
 
@@ -3192,9 +3227,9 @@ class Video extends Component {
3192
3227
  className="imgClassVoice voiceVideoClass"
3193
3228
  />
3194
3229
  }
3195
- <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>
3196
3231
 
3197
- <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 }}>
3198
3233
  {this.state.videoEightName}
3199
3234
  </div>
3200
3235
  </div>
@@ -3209,7 +3244,7 @@ class Video extends Component {
3209
3244
  <audio id="audio9" autoPlay />
3210
3245
  <label style={{ display: 'none' }} id="feedId9" type="text" />
3211
3246
 
3212
- <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`}>
3213
3248
  {
3214
3249
  this.state.voiceVideoNine && <img
3215
3250
  alt=""
@@ -3217,9 +3252,9 @@ class Video extends Component {
3217
3252
  className="imgClassVoice voiceVideoClass"
3218
3253
  />
3219
3254
  }
3220
- <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>
3221
3256
 
3222
- <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 }}>
3223
3258
  {this.state.videoNineName}
3224
3259
  </div>
3225
3260
  </div>
@@ -3236,7 +3271,7 @@ class Video extends Component {
3236
3271
  <audio id="audio10" autoPlay />
3237
3272
  <label style={{ display: 'none' }} id="feedId10" type="text" />
3238
3273
 
3239
- <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`}>
3240
3275
  {
3241
3276
  this.state.voiceVideoTen && <img
3242
3277
  alt=""
@@ -3244,9 +3279,9 @@ class Video extends Component {
3244
3279
  className="imgClassVoice voiceVideoClass"
3245
3280
  />
3246
3281
  }
3247
- <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>
3248
3283
 
3249
- <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 }}>
3250
3285
  {this.state.videoTenName}
3251
3286
  </div>
3252
3287
  </div>
@@ -3261,7 +3296,7 @@ class Video extends Component {
3261
3296
  <audio id="audio11" autoPlay />
3262
3297
  <label style={{ display: 'none' }} id="feedId11" type="text" />
3263
3298
 
3264
- <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`}>
3265
3300
  {
3266
3301
  this.state.voiceVideoEleven && <img
3267
3302
  alt=""
@@ -3269,9 +3304,9 @@ class Video extends Component {
3269
3304
  className="imgClassVoice voiceVideoClass"
3270
3305
  />
3271
3306
  }
3272
- <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>
3273
3308
 
3274
- <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 }}>
3275
3310
  {this.state.videoElevenName}
3276
3311
  </div>
3277
3312
  </div>
@@ -3287,7 +3322,7 @@ class Video extends Component {
3287
3322
  <audio id="audio12" autoPlay />
3288
3323
  <label style={{ display: 'none' }} id="feedId12" type="text" />
3289
3324
 
3290
- <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`}>
3291
3326
  {
3292
3327
  this.state.voiceVideoTwelve && <img
3293
3328
  alt=""
@@ -3295,9 +3330,9 @@ class Video extends Component {
3295
3330
  className="imgClassVoice voiceVideoClass"
3296
3331
  />
3297
3332
  }
3298
- <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>
3299
3334
 
3300
- <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 }}>
3301
3336
  {this.state.videoTwelveName}
3302
3337
  </div>
3303
3338
  </div>
@@ -3377,6 +3412,13 @@ class Video extends Component {
3377
3412
  <span class="modalSpan">&nbsp;&nbsp;&nbsp;姓名:</span><span>{this.state.employeeName}</span>
3378
3413
  </div>
3379
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
+
3380
3422
  </Modal>
3381
3423
  <Modal title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3382
3424
  [
@@ -3404,11 +3446,11 @@ class Video extends Component {
3404
3446
  {camera}
3405
3447
  <div>麦克风设备:</div>
3406
3448
  {microphone}
3449
+ <div>扬声器设备:</div>
3450
+ {speaker}
3407
3451
  </div>
3408
3452
  </Modal>
3409
- <video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"
3410
- webkit-playsinline="true" playsInline={true} x5-playsinline="x5-playsinline"
3411
- x-webkit-airplay="true"></video>
3453
+ <video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"></video>
3412
3454
  </Spin>
3413
3455
  </div>);
3414
3456
  }
@@ -3417,8 +3459,11 @@ Video.defaultProps = {
3417
3459
  tellerAccount: 't001',
3418
3460
  businessNumber: '123',
3419
3461
  callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
3462
+ // roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
3420
3463
  roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
3464
+
3421
3465
  resourcePath: 'https://counter-web.leimondata.cn:7199',
3466
+ // resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
3422
3467
  prohbiitPrompt: '当前无客户',
3423
3468
  voiceColor: '#0AE544',
3424
3469
  titleBackground: 'rgba(0,0,0,0.65)',