react_hsbc_teller 1.4.7 → 1.5.0

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.4.7",
3
+ "version": "1.5.0",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -1497,7 +1497,7 @@ class Video extends Component {
1497
1497
  this.props.imgCallback({
1498
1498
  type: Mival.data.type + '',
1499
1499
  file: Mival.data.file,
1500
- errerrorTypeorType: 0}
1500
+ errorType: 0}
1501
1501
  ) // 文字抄录和风险抄录,3--风险,,2--文字
1502
1502
  }
1503
1503
  } else if (Mival.typeId == 1321) {
@@ -1713,6 +1713,11 @@ class Video extends Component {
1713
1713
  errorType: -1
1714
1714
  })
1715
1715
  }
1716
+ } else if (Mival.typeId == 4100 && Mival.data.sessionId == this.state.sessionId) {
1717
+ // 手机端停止投屏
1718
+ if (!document.getElementById("video21").name) {
1719
+ this.tabTitlesClick('customerScreen', 'delect')
1720
+ }
1716
1721
  }
1717
1722
  };
1718
1723
  window.IMOpenfire = msg =>{
@@ -3716,7 +3721,7 @@ class Video extends Component {
3716
3721
  activityId: this.props.businessNumber,
3717
3722
  appAccount: this.state.faceCustomerUid,
3718
3723
  fileBase64: this.state.facialImg.replace(/^data:image\/\w+;base64,/,""),
3719
- type: this.state.defaultValue
3724
+ type: 1
3720
3725
  });
3721
3726
  if (result.code == 200) {
3722
3727
  this.messageClick('识别成功','success')
@@ -3867,7 +3872,7 @@ class Video extends Component {
3867
3872
  handleChangeOcr =(val)=> {
3868
3873
  console.log(val)
3869
3874
  this.setState({
3870
- defaultValue: val,
3875
+ defaultValue: 1,
3871
3876
  facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png')
3872
3877
  })
3873
3878
  }
@@ -4136,7 +4141,7 @@ class Video extends Component {
4136
4141
  let y = 0
4137
4142
  // if(os.isTablet){
4138
4143
  width = ((right - left)* window.screen.width / document.body.clientWidth) - 5
4139
- height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 50
4144
+ height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 15
4140
4145
  x = left * window.screen.width / document.body.clientWidth + 5
4141
4146
  y = top* window.screen.width / document.body.clientWidth
4142
4147
  // }
@@ -5105,12 +5110,12 @@ class Video extends Component {
5105
5110
  </div>
5106
5111
  ]}>
5107
5112
  <div className="faceBody">
5108
- {this.state.faceCustomerType == 2 &&
5113
+ {/* {this.state.faceCustomerType == 2 &&
5109
5114
  <Select defaultValue={this.state.defaultValue} style={{ width: 120,marginBottom: '20px' }} onChange={this.handleChangeOcr}>
5110
5115
  <Option value="1">正面</Option>
5111
5116
  <Option value="2">反面</Option>
5112
5117
  </Select>
5113
- }
5118
+ } */}
5114
5119
  <div>
5115
5120
  <img className="faceImg" src={this.state.facialImg} alt=""></img>
5116
5121
  </div>