react_hsbc_teller 2.0.98 → 2.0.99

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": "2.0.98",
3
+ "version": "2.0.99",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -51,7 +51,7 @@ sessionId
51
51
  financialOffice: "defaultOfficeId", // 理财室
52
52
  audioinputNameList: ['默认值 - 外部麦克风 (Realtek(R) Audio)'],
53
53
  needPreSale: true,
54
- needIpad: false,
54
+ needIpad: true,
55
55
  }
56
56
  componentWillMount() {
57
57
  // if(window.localStorage.getItem('sessionId') && window.localStorage.getItem('sessionId') != 'null' && window.localStorage.getItem('sessionId') != 'undefined') {
@@ -66,7 +66,7 @@ import axios from 'axios';
66
66
  import CryptoJS from "crypto-js";
67
67
 
68
68
 
69
- const SDK_VERISON = '2.0.98'
69
+ const SDK_VERISON = '2.0.99'
70
70
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
71
71
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
72
72
  const { Option } = Select;
@@ -1392,19 +1392,23 @@ class Video extends Component {
1392
1392
  };
1393
1393
  // 画中画
1394
1394
  pictureInPicture = (val) => {
1395
- if (this.isFileSuccuse()) {
1396
- if (this.state.isPictureInPicture) {
1397
- if (!val) {
1398
- document.exitPictureInPicture()
1395
+ // recordMode 为1 或者needIpad 为true 时,才支持画中画
1396
+ if(this.props.recordMode == '1' || this.props.needIpad) {
1397
+ if (this.isFileSuccuse()) {
1398
+ if (this.state.isPictureInPicture) {
1399
+ if (!val) {
1400
+ document.exitPictureInPicture()
1401
+ } else {
1402
+ this.pictureInPictureClick('update')
1403
+ }
1399
1404
  } else {
1400
- this.pictureInPictureClick('update')
1401
- }
1402
- } else {
1403
- if (!val) {
1404
- this.pictureInPictureClick('add')
1405
+ if (!val) {
1406
+ this.pictureInPictureClick('add')
1407
+ }
1405
1408
  }
1406
1409
  }
1407
1410
  }
1411
+
1408
1412
  };
1409
1413
  pictureInPictureClick = (val) => {
1410
1414
  let interval
@@ -7588,7 +7592,7 @@ class Video extends Component {
7588
7592
 
7589
7593
  </ul>
7590
7594
  </div>
7591
- {!this.state.loading && this.state.sessionType && this.state.sessionId && this.props.recordMode == 2?
7595
+ {!this.state.loading && this.state.sessionType && this.state.sessionId && (this.props.recordMode == 2 && this.props.needIpad)?
7592
7596
  <div className='QRCode'>
7593
7597
  <QRCode
7594
7598
  value={JSON.stringify({
@@ -8299,7 +8303,7 @@ class Video extends Component {
8299
8303
  </div>
8300
8304
  </Panel>
8301
8305
  {
8302
- this.props.recordMode == 2 &&
8306
+ this.props.recordMode == 2 && this.props.needIpad &&
8303
8307
  <Panel header={<span>双录iPad设备 - {this.state.ipadTag? '合格':'未开启'} {this.state.ipadTag? <img src={IconSuccess} />: <img src={IconFail} />}</span>} key="6" className={this.state.ipadTag? '':'panel-error'}>
8304
8308
  <p className="envClass">{this.state.ipadTag? 'iPad设备已加入':'请使用双录iPAD扫描以下会议二维码或输入会议号,开启双录'}</p>
8305
8309
  <div className='QRCode flex' style={{display: this.state.ipadTag? 'none':''}}>