react_hsbc_teller 1.4.6 → 1.4.9
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/demo/demo.js +1 -1
- package/packages/pages/video/video.jsx +11 -5
package/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -283,7 +283,8 @@ class Video extends Component {
|
|
|
283
283
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
284
284
|
this.props.imgCallback({
|
|
285
285
|
type: result.data.type + '',
|
|
286
|
-
file: result.data.base64Image
|
|
286
|
+
file: result.data.base64Image,
|
|
287
|
+
errorType: 0}
|
|
287
288
|
)
|
|
288
289
|
} catch (err) {
|
|
289
290
|
console.error(err);
|
|
@@ -1712,6 +1713,11 @@ class Video extends Component {
|
|
|
1712
1713
|
errorType: -1
|
|
1713
1714
|
})
|
|
1714
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
|
+
}
|
|
1715
1721
|
}
|
|
1716
1722
|
};
|
|
1717
1723
|
window.IMOpenfire = msg =>{
|
|
@@ -3715,7 +3721,7 @@ class Video extends Component {
|
|
|
3715
3721
|
activityId: this.props.businessNumber,
|
|
3716
3722
|
appAccount: this.state.faceCustomerUid,
|
|
3717
3723
|
fileBase64: this.state.facialImg.replace(/^data:image\/\w+;base64,/,""),
|
|
3718
|
-
type:
|
|
3724
|
+
type: 1
|
|
3719
3725
|
});
|
|
3720
3726
|
if (result.code == 200) {
|
|
3721
3727
|
this.messageClick('识别成功','success')
|
|
@@ -3866,7 +3872,7 @@ class Video extends Component {
|
|
|
3866
3872
|
handleChangeOcr =(val)=> {
|
|
3867
3873
|
console.log(val)
|
|
3868
3874
|
this.setState({
|
|
3869
|
-
defaultValue:
|
|
3875
|
+
defaultValue: 1,
|
|
3870
3876
|
facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png')
|
|
3871
3877
|
})
|
|
3872
3878
|
}
|
|
@@ -5104,12 +5110,12 @@ class Video extends Component {
|
|
|
5104
5110
|
</div>
|
|
5105
5111
|
]}>
|
|
5106
5112
|
<div className="faceBody">
|
|
5107
|
-
{this.state.faceCustomerType == 2 &&
|
|
5113
|
+
{/* {this.state.faceCustomerType == 2 &&
|
|
5108
5114
|
<Select defaultValue={this.state.defaultValue} style={{ width: 120,marginBottom: '20px' }} onChange={this.handleChangeOcr}>
|
|
5109
5115
|
<Option value="1">正面</Option>
|
|
5110
5116
|
<Option value="2">反面</Option>
|
|
5111
5117
|
</Select>
|
|
5112
|
-
}
|
|
5118
|
+
} */}
|
|
5113
5119
|
<div>
|
|
5114
5120
|
<img className="faceImg" src={this.state.facialImg} alt=""></img>
|
|
5115
5121
|
</div>
|