react_hsbc_teller 1.9.81 → 2.0.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.
@@ -26,6 +26,12 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
26
  PERFORMANCE OF THIS SOFTWARE.
27
27
  ***************************************************************************** */
28
28
 
29
+ /**
30
+ * @license qrcode.react
31
+ * Copyright (c) Paul O'Shannessy
32
+ * SPDX-License-Identifier: ISC
33
+ */
34
+
29
35
  /** @license React v16.13.1
30
36
  * react-is.production.min.js
31
37
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "1.9.81",
3
+ "version": "2.0.0",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -89,6 +89,7 @@
89
89
  "axios": "0.19.0",
90
90
  "crypto-js": "^4.1.1",
91
91
  "html2canvas": "^1.4.0",
92
+ "qrcode.react": "^3.1.0",
92
93
  "react": "^17.0.1",
93
94
  "react-canvas-draw": "^1.1.1",
94
95
  "react-dom": "^17.0.1",
@@ -4,7 +4,7 @@ class API extends Server{
4
4
  // /hsbc/getAuthorizeResult/{activityId}/{appAccount}
5
5
  async getAuthorizeResult(params = {}){
6
6
  try{
7
- let result = await this.axios('get', '/hsbc/getAuthorizeResult/'+params.activityId + '/' + params.appAccount, params);
7
+ let result = await this.axios('get', '/hsbc/getAuthorizeResult/'+params.activityId + '/' + params.appAccount +'/' + params.certificateType, params);
8
8
  if(result && result.code === 200){
9
9
  return result||'';
10
10
  }else{
@@ -237,7 +237,7 @@ class API extends Server{
237
237
  async appGetUsername(params = {}){
238
238
  // return this.axios('get', '/lang/select/2', params);
239
239
  try{
240
- let result = await this.axios('get', '/app/getUsername?userId=' + params.userId+ '&sessionId=' + params.sessionId, params);
240
+ let result = await this.axios('get', '/app/getUsername?userId=' + params.userId+ '&sessionId=' + params.sessionId + '&activityId=' + params.activityId, params);
241
241
  console.log(result)
242
242
  if(result && (result.data instanceof Object) && result.code === 200){
243
243
  return result||[];
Binary file
@@ -0,0 +1,32 @@
1
+ import React, { Component } from 'react';
2
+ import Steps from "antd/lib/steps";
3
+ import 'antd/lib/steps/style'
4
+ const { Step } = Steps;
5
+
6
+ export default class step extends Component {
7
+ render() {
8
+ let current = this.props.current;
9
+ return (
10
+ <div style={{...this.props.style}}>
11
+ <div style={{marginBottom: '10px'}}>客户身份验证</div>
12
+ <Steps current={current} direction={this.props.direction} size="small" style={{width:'150px', height: '200px'}}>
13
+ {/* step1 */}
14
+ <Step status={current==0? '':'wait'} title="选择客户" />
15
+
16
+ {/* step2 */}
17
+ <Step status={current==1? '':'wait'} title="确认客户证件类型&客户授权" />
18
+
19
+ {/* step3 */}
20
+ <Step status={current==2? '':'wait'} title="证件信息核查" />
21
+
22
+ {/* step4 */}
23
+ { current==3 && <Step title="人脸识别" />}
24
+ </Steps>
25
+ </div>
26
+ )
27
+ }
28
+ }
29
+ step.defaultProps = {
30
+ current: 0,
31
+ direction: 'vertical',
32
+ }
File without changes
@@ -142,7 +142,7 @@ export default class foot extends Component {
142
142
  <div className="one" onClick={this.ocrClick.bind(this)}>
143
143
  <img className="imgClass" src={require("../../assets/img/icon_ocr.png").default} alt="" />
144
144
  <div className="text">
145
- OCR识别
145
+ 证件识别
146
146
  </div>
147
147
  </div>
148
148
  // </Popover>