react_hsbc_teller 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -123,7 +123,17 @@ createRoomCallback=(data)=>{
123
123
  window.localStorage.setItem('sessionId',data.data.sessionId)
124
124
  this.setState({imRoomId: data.data.imRoomId});
125
125
  window.localStorage.setItem('imRoomId', data.data.imRoomId)
126
-
126
+ // setInterval(
127
+ // () => {
128
+ // console.log('isTranscribing',this.state.isTranscribing)
129
+ // this.state.isTranscribing = !this.state.isTranscribing
130
+ // this.setState({
131
+ // isTranscribing: this.state.isTranscribing
132
+ // })
133
+ // console.log('isTranscribing',this.state.isTranscribing)
134
+ // },
135
+ // 5000
136
+ // );
127
137
  }
128
138
  joinRoomCallback=(data)=>{
129
139
  console.log('joinRoomCallback', data)
@@ -50,8 +50,6 @@ class Video extends Component {
50
50
  isWhiteboard: false,
51
51
  isSelect: '',
52
52
  loading: false,
53
- // isModalVisibleSign: '',
54
- isModalVisibleSign: this.props.isTranscribing,
55
53
  titleModal: '人脸识别',
56
54
  faceCustomerType: 1, // 1无感人脸,2ocr
57
55
  faceCustomerUid: '',
@@ -2977,9 +2975,6 @@ class Video extends Component {
2977
2975
  };
2978
2976
  // 坐席签字
2979
2977
  transcribingClick = () => {
2980
- this.setState({
2981
- isModalVisibleSign: true,
2982
- })
2983
2978
  };
2984
2979
  invitationClick = () => {
2985
2980
  this.state.linkData = ''
@@ -3065,7 +3060,6 @@ class Video extends Component {
3065
3060
  })
3066
3061
  }
3067
3062
  componentWillReceiveProps(props) {
3068
- console.log('componentWillReceiveProps',props)
3069
3063
  this.state.channelId = props.roomId,
3070
3064
  this.state.rtoken = props.mtoken,
3071
3065
  this.state.sessionId = props.sessionId,
@@ -3222,38 +3216,10 @@ class Video extends Component {
3222
3216
  })
3223
3217
  }
3224
3218
  }
3225
- counterSign = async data => {
3226
- try {
3227
- let result = await API.counterSign({
3228
- sessionId: this.state.sessionId,
3229
- file: data.file
3230
- });
3231
- console.log(result)
3232
- if (result.code == 200) {
3233
- this.messageClick('签字成功','success')
3234
- this.setState({
3235
- isModalVisibleSign: false,
3236
- })
3237
- } else {
3238
- this.messageClick('签字失败','error')
3239
- }
3240
- } catch (err) {
3241
- if(err.status == 502 || err.status== 404) {
3242
- this.roomCallBack(2, '连接服务器失败','SYS-02')
3243
- }
3244
- }
3245
- }
3246
3219
  handleOkSign = () => {
3247
- this.setState({
3248
- isModalVisibleSign: false,
3249
- })
3250
- console.log(this.signCanvas.current.canvas.drawing.toDataURL('image/png'))
3251
3220
  this.props.imgRMCallback(
3252
3221
  this.signCanvas.current.canvas.drawing.toDataURL('image/png').replace(/data.+?;base64,/, "")
3253
3222
  )
3254
- // this.counterSign({
3255
- // file: this.signCanvas.current.canvas.drawing.toDataURL('image/png')
3256
- // })
3257
3223
  }
3258
3224
  switchExternal = () => {
3259
3225
  if (!this.state.isWhiteboard) {
@@ -3345,7 +3311,7 @@ class Video extends Component {
3345
3311
  }
3346
3312
  }
3347
3313
  render() {
3348
- const { meetingInfo } = this.props
3314
+ const { meetingInfo,isTranscribing } = this.props
3349
3315
  var pdfChildren
3350
3316
  if (this.props.children) {
3351
3317
  pdfChildren = React.cloneElement(this.props.children, { width: this.state.whiteboardWidth, height: this.state.whiteboardHeight, show: this.state.isSelect == 'RMWhiteboard'})
@@ -3973,7 +3939,7 @@ class Video extends Component {
3973
3939
  }
3974
3940
 
3975
3941
  </Modal>
3976
- <Modal title="签字白板" width={600} destroyOnClose={true} closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3942
+ <Modal title="签字白板" width={600} destroyOnClose={true} closable={false} centered={true} visible={isTranscribing} footer={
3977
3943
  [
3978
3944
  <div key='okSign'>
3979
3945
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>