react_hsbc_teller 0.5.7 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,31 +2843,16 @@ 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) => {
2849
+ this.state.cameraList.map((item) => {
2830
2850
  return <div>
2831
- <input type="radio" name="camere" value={item.actionid} checked={this.state.cameraValue == item.actionid} onChange={(e) => this.getCameraValue(e)} /><label for={item.actionid}>{item.actionname}</label> <br />
2851
+ <label className="radio">
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>
2853
+ {item.actionname}
2854
+ </label>
2855
+ {/* <input type="radio" name="camere" value={item.actionid} checked={this.state.cameraValue == item.actionid} onChange={(e) => this.getCameraValue(e)} /><label for={item.actionid}>{item.actionname}</label> <br /> */}
2832
2856
  </div>
2833
2857
  })
2834
2858
  }
@@ -2838,27 +2862,51 @@ class Video extends Component {
2838
2862
  const microphone = (
2839
2863
  <div>
2840
2864
  {
2841
- this.state.microphoneList.map((item, index) => {
2865
+ this.state.microphoneList.map((item) => {
2842
2866
  return <div class="cameraAnMicrophone">
2843
- <input type="radio" name="microphone" value={item.actionid} checked={this.state.microphoneValue == item.actionid} onChange={(e) => this.getMicrophoneValue(e)} /><label for={item.actionid}>{item.actionname}</label> <br />
2867
+ <label className="radio">
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>
2869
+ {item.actionname}
2870
+ </label>
2871
+ {/* <input type="radio" name="microphone" value={item.actionid} checked={this.state.microphoneValue == item.actionid} onChange={(e) => this.getMicrophoneValue(e)} /><label for={item.actionid}>{item.actionname}</label> <br /> */}
2844
2872
  </div>
2845
2873
  })
2846
2874
  }
2847
2875
  </div>
2848
2876
  )
2877
+ const speaker = (
2878
+ <div>
2879
+ {
2880
+ this.state.speakerList.map((item) => {
2881
+ return <div class="cameraAnMicrophone">
2882
+ {item.actionname}<br />
2883
+ </div>
2884
+ })
2885
+ }
2886
+ </div>
2887
+ )
2888
+
2849
2889
  const sectionStyle = this.state.tabTitles.length > 0 ? {
2850
- 'z-index': '-1',
2890
+ zIndex: '-1',
2851
2891
  width:'100%',
2852
2892
  height:'100%',
2853
2893
  position: 'absolute',
2854
- left: 0
2894
+ left: 0,
2895
+ top: 0,
2896
+ right: 0,
2897
+ bottom: 0,
2898
+ margin: 'auto'
2855
2899
 
2856
2900
  } :{
2857
- 'z-index': '0',
2901
+ zIndex: '0',
2858
2902
  width:'100%',
2859
- height:'100%',
2903
+ // height:'100%',
2860
2904
  position: 'absolute',
2861
- left: 0
2905
+ left: 0,
2906
+ top: 0,
2907
+ right: 0,
2908
+ bottom: 0,
2909
+ margin: 'auto'
2862
2910
  };
2863
2911
  return (
2864
2912
  <div className="all">
@@ -2912,11 +2960,11 @@ class Video extends Component {
2912
2960
  <label className='labelClass'>{meetingInfo.title}</label>
2913
2961
  </li>
2914
2962
  <li>
2915
- <span>主持人:</span>
2963
+ <span>客户:</span>
2916
2964
  <label className='labelClass'>{meetingInfo.host}</label>
2917
2965
  </li>
2918
2966
  <li>
2919
- <span>参会客户:</span>
2967
+ <span>参会人:</span>
2920
2968
  {customerNameList}
2921
2969
  </li>
2922
2970
  </ul>
@@ -2951,15 +2999,12 @@ class Video extends Component {
2951
2999
  className="imgClassVoice voiceClass"
2952
3000
  />
2953
3001
  }
2954
- <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2955
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>坐席</div>
3002
+ <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
3003
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>坐席</div>
2956
3004
  </div>
2957
3005
  </div>
2958
3006
 
2959
3007
  </div>
2960
- {/* {
2961
- videoCustomer
2962
- } */}
2963
3008
  <div
2964
3009
  className={`itemed`}
2965
3010
  style={{ position: "relative", display: (this.state.videoOneName) ? '' : 'none' }}
@@ -2989,9 +3034,9 @@ class Video extends Component {
2989
3034
  className="imgClassVoice voiceVideoClass"
2990
3035
  />
2991
3036
  }
2992
- <canvas style={{ display: (this.state.videoOneName && !this.state.voiceVideoOne) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px'}} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
3037
+ <canvas style={{ display: (this.state.videoOneName && !this.state.voiceVideoOne) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px'}} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
2993
3038
 
2994
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3039
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
2995
3040
  {this.state.videoOneName}
2996
3041
  </div>
2997
3042
 
@@ -3017,9 +3062,9 @@ class Video extends Component {
3017
3062
  className="imgClassVoice voiceVideoClass"
3018
3063
  />
3019
3064
  }
3020
- <canvas style={{ display: (this.state.videoTwoName && !this.state.voiceVideoTwo) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
3065
+ <canvas style={{ display: (this.state.videoTwoName && !this.state.voiceVideoTwo) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
3021
3066
 
3022
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3067
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3023
3068
  {this.state.videoTwoName}
3024
3069
  </div>
3025
3070
  </div>
@@ -3035,7 +3080,7 @@ class Video extends Component {
3035
3080
  <audio id="audio3" autoPlay />
3036
3081
  <label style={{ display: 'none' }} id="feedId3" type="text" />
3037
3082
 
3038
- <div style={{ display: (this.state.videoThreeName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3083
+ <div style={{ display: (this.state.videoThreeName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3039
3084
  {
3040
3085
  this.state.voiceVideoThree && <img
3041
3086
  alt=""
@@ -3043,9 +3088,9 @@ class Video extends Component {
3043
3088
  className="imgClassVoice voiceVideoClass"
3044
3089
  />
3045
3090
  }
3046
- <canvas style={{ display: (this.state.videoThreeName && !this.state.voiceVideoThree) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
3091
+ <canvas style={{ display: (this.state.videoThreeName && !this.state.voiceVideoThree) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
3047
3092
 
3048
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3093
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3049
3094
  {this.state.videoThreeName}
3050
3095
  </div>
3051
3096
  </div>
@@ -3060,7 +3105,7 @@ class Video extends Component {
3060
3105
  <audio id="audio4" autoPlay />
3061
3106
  <label style={{ display: 'none' }} id="feedId4" type="text" />
3062
3107
 
3063
- <div style={{ display: (this.state.videoFourName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3108
+ <div style={{ display: (this.state.videoFourName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3064
3109
  {
3065
3110
  this.state.voiceVideoFour && <img
3066
3111
  alt=""
@@ -3068,9 +3113,9 @@ class Video extends Component {
3068
3113
  className="imgClassVoice voiceVideoClass"
3069
3114
  />
3070
3115
  }
3071
- <canvas style={{ display: (this.state.videoFourName && !this.state.voiceVideoFour) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
3116
+ <canvas style={{ display: (this.state.videoFourName && !this.state.voiceVideoFour) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
3072
3117
 
3073
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3118
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3074
3119
  {this.state.videoFourName}
3075
3120
  </div>
3076
3121
  </div>
@@ -3086,7 +3131,7 @@ class Video extends Component {
3086
3131
  <audio id="audio5" autoPlay />
3087
3132
  <label style={{ display: 'none' }} id="feedId5" type="text" />
3088
3133
 
3089
- <div style={{ display: (this.state.videoFiveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3134
+ <div style={{ display: (this.state.videoFiveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3090
3135
  {
3091
3136
  this.state.voiceVideoFive && <img
3092
3137
  alt=""
@@ -3094,9 +3139,9 @@ class Video extends Component {
3094
3139
  className="imgClassVoice voiceVideoClass"
3095
3140
  />
3096
3141
  }
3097
- <canvas style={{ display: (this.state.videoFiveName && !this.state.voiceVideoFive) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
3142
+ <canvas style={{ display: (this.state.videoFiveName && !this.state.voiceVideoFive) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
3098
3143
 
3099
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3144
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3100
3145
  {this.state.videoFiveName}
3101
3146
  </div>
3102
3147
  </div>
@@ -3111,7 +3156,7 @@ class Video extends Component {
3111
3156
  <audio id="audio6" autoPlay />
3112
3157
  <label style={{ display: 'none' }} id="feedId6" type="text" />
3113
3158
 
3114
- <div style={{ display: (this.state.videoSixName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3159
+ <div style={{ display: (this.state.videoSixName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3115
3160
  {
3116
3161
  this.state.voiceVideoSix && <img
3117
3162
  alt=""
@@ -3119,9 +3164,9 @@ class Video extends Component {
3119
3164
  className="imgClassVoice voiceVideoClass"
3120
3165
  />
3121
3166
  }
3122
- <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
3167
+ <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
3123
3168
 
3124
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3169
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3125
3170
  {this.state.videoSixName}
3126
3171
  </div>
3127
3172
  </div>
@@ -3156,9 +3201,9 @@ class Video extends Component {
3156
3201
  className="imgClassVoice voiceVideoClass"
3157
3202
  />
3158
3203
  }
3159
- <canvas style={{ display: (this.state.videoSevenName && !this.state.voiceVideoSeven) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
3204
+ <canvas style={{ display: (this.state.videoSevenName && !this.state.voiceVideoSeven) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
3160
3205
 
3161
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3206
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3162
3207
  {this.state.videoSevenName}
3163
3208
  </div>
3164
3209
 
@@ -3184,9 +3229,9 @@ class Video extends Component {
3184
3229
  className="imgClassVoice voiceVideoClass"
3185
3230
  />
3186
3231
  }
3187
- <canvas style={{ display: (this.state.videoEightName && !this.state.voiceVideoEight) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
3232
+ <canvas style={{ display: (this.state.videoEightName && !this.state.voiceVideoEight) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
3188
3233
 
3189
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3234
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3190
3235
  {this.state.videoEightName}
3191
3236
  </div>
3192
3237
  </div>
@@ -3201,7 +3246,7 @@ class Video extends Component {
3201
3246
  <audio id="audio9" autoPlay />
3202
3247
  <label style={{ display: 'none' }} id="feedId9" type="text" />
3203
3248
 
3204
- <div style={{ display: (this.state.videoNineName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3249
+ <div style={{ display: (this.state.videoNineName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3205
3250
  {
3206
3251
  this.state.voiceVideoNine && <img
3207
3252
  alt=""
@@ -3209,9 +3254,9 @@ class Video extends Component {
3209
3254
  className="imgClassVoice voiceVideoClass"
3210
3255
  />
3211
3256
  }
3212
- <canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
3257
+ <canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
3213
3258
 
3214
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3259
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3215
3260
  {this.state.videoNineName}
3216
3261
  </div>
3217
3262
  </div>
@@ -3228,7 +3273,7 @@ class Video extends Component {
3228
3273
  <audio id="audio10" autoPlay />
3229
3274
  <label style={{ display: 'none' }} id="feedId10" type="text" />
3230
3275
 
3231
- <div style={{ display: (this.state.videoTenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3276
+ <div style={{ display: (this.state.videoTenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3232
3277
  {
3233
3278
  this.state.voiceVideoTen && <img
3234
3279
  alt=""
@@ -3236,9 +3281,9 @@ class Video extends Component {
3236
3281
  className="imgClassVoice voiceVideoClass"
3237
3282
  />
3238
3283
  }
3239
- <canvas style={{ display: (this.state.videoTenName && !this.state.voiceVideoTen) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
3284
+ <canvas style={{ display: (this.state.videoTenName && !this.state.voiceVideoTen) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
3240
3285
 
3241
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3286
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3242
3287
  {this.state.videoTenName}
3243
3288
  </div>
3244
3289
  </div>
@@ -3253,7 +3298,7 @@ class Video extends Component {
3253
3298
  <audio id="audio11" autoPlay />
3254
3299
  <label style={{ display: 'none' }} id="feedId11" type="text" />
3255
3300
 
3256
- <div style={{ display: (this.state.videoElevenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3301
+ <div style={{ display: (this.state.videoElevenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3257
3302
  {
3258
3303
  this.state.voiceVideoEleven && <img
3259
3304
  alt=""
@@ -3261,9 +3306,9 @@ class Video extends Component {
3261
3306
  className="imgClassVoice voiceVideoClass"
3262
3307
  />
3263
3308
  }
3264
- <canvas style={{ display: (this.state.videoElevenName && !this.state.voiceVideoEleven) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
3309
+ <canvas style={{ display: (this.state.videoElevenName && !this.state.voiceVideoEleven) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
3265
3310
 
3266
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3311
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3267
3312
  {this.state.videoElevenName}
3268
3313
  </div>
3269
3314
  </div>
@@ -3279,7 +3324,7 @@ class Video extends Component {
3279
3324
  <audio id="audio12" autoPlay />
3280
3325
  <label style={{ display: 'none' }} id="feedId12" type="text" />
3281
3326
 
3282
- <div style={{ display: (this.state.videoTwelveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3327
+ <div style={{ display: (this.state.videoTwelveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3283
3328
  {
3284
3329
  this.state.voiceVideoTwelve && <img
3285
3330
  alt=""
@@ -3287,9 +3332,9 @@ class Video extends Component {
3287
3332
  className="imgClassVoice voiceVideoClass"
3288
3333
  />
3289
3334
  }
3290
- <canvas style={{ display: (this.state.videoTwelveName && !this.state.voiceVideoTwelve) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
3335
+ <canvas style={{ display: (this.state.videoTwelveName && !this.state.voiceVideoTwelve) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
3291
3336
 
3292
- <div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
3337
+ <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
3293
3338
  {this.state.videoTwelveName}
3294
3339
  </div>
3295
3340
  </div>
@@ -3369,6 +3414,13 @@ class Video extends Component {
3369
3414
  <span class="modalSpan">&nbsp;&nbsp;&nbsp;姓名:</span><span>{this.state.employeeName}</span>
3370
3415
  </div>
3371
3416
  </div>
3417
+ {
3418
+ this.state.employeeError && <div className='errorClassInvitation'>
3419
+ <img alt="" src={require("../../assets/img/tooltips2_fail.png").default} />
3420
+ <span>{this.state.employeeError}</span>
3421
+ </div>
3422
+ }
3423
+
3372
3424
  </Modal>
3373
3425
  <Modal title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3374
3426
  [
@@ -3396,11 +3448,13 @@ class Video extends Component {
3396
3448
  {camera}
3397
3449
  <div>麦克风设备:</div>
3398
3450
  {microphone}
3451
+ <div>扬声器设备:</div>
3452
+ {speaker}
3399
3453
  </div>
3400
3454
  </Modal>
3401
3455
  <video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"
3402
- webkit-playsinline="true" playsInline={true} x5-playsinline="x5-playsinline"
3403
- x-webkit-airplay="true"></video>
3456
+ webkit-playsinline={true} playsInline={true} x5-playsinline="x5-playsinline"
3457
+ x-webkit-airplay={true}></video>
3404
3458
  </Spin>
3405
3459
  </div>);
3406
3460
  }
@@ -3409,8 +3463,11 @@ Video.defaultProps = {
3409
3463
  tellerAccount: 't001',
3410
3464
  businessNumber: '123',
3411
3465
  callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
3466
+ // roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
3412
3467
  roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
3468
+
3413
3469
  resourcePath: 'https://counter-web.leimondata.cn:7199',
3470
+ // resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
3414
3471
  prohbiitPrompt: '当前无客户',
3415
3472
  voiceColor: '#0AE544',
3416
3473
  titleBackground: 'rgba(0,0,0,0.65)',