react_hsbc_teller 2.0.96 → 2.0.97
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/README.md +3 -1
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/api/api.js +1 -11
- package/packages/demo/demo.js +1 -1
- package/packages/pages/multiModule/components/transcription/transcription.jsx +7 -6
- package/packages/pages/multiModule/components/transcription/transcription.less +3 -2
- package/packages/pages/video/video.jsx +2 -2
package/package.json
CHANGED
package/packages/api/api.js
CHANGED
|
@@ -740,17 +740,7 @@ class API extends Server{
|
|
|
740
740
|
async oneClickCopy(params = {}){
|
|
741
741
|
try{
|
|
742
742
|
let result = await this.axios('post', '/hsbc/oneClickCopy/callback', params);
|
|
743
|
-
|
|
744
|
-
return result.data||[];
|
|
745
|
-
} else{
|
|
746
|
-
let err = {
|
|
747
|
-
tip: '服务异常',
|
|
748
|
-
response: result,
|
|
749
|
-
data: params,
|
|
750
|
-
// url: 'https://api.cangdu.org/shopro/data/products',
|
|
751
|
-
}
|
|
752
|
-
throw err;
|
|
753
|
-
}
|
|
743
|
+
return result
|
|
754
744
|
}catch(err){
|
|
755
745
|
throw err;
|
|
756
746
|
}
|
package/packages/demo/demo.js
CHANGED
|
@@ -23,7 +23,7 @@ sessionId
|
|
|
23
23
|
zeroVolAlert: false,
|
|
24
24
|
isVideo: false,
|
|
25
25
|
tellerAccount: '20250528',
|
|
26
|
-
// callbackUrl: '
|
|
26
|
+
// callbackUrl: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
|
|
27
27
|
callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
|
|
28
28
|
businessNumber: '123',
|
|
29
29
|
lang: 'zh',
|
|
@@ -152,7 +152,7 @@ class Transcription extends Component {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
sendMessage = () => {
|
|
155
|
-
this.props.
|
|
155
|
+
this.props.handleReceiveMsg({
|
|
156
156
|
'typeId': 952702,
|
|
157
157
|
'sessionId': window.imRoom.sessionId,
|
|
158
158
|
})
|
|
@@ -162,15 +162,16 @@ class Transcription extends Component {
|
|
|
162
162
|
let result = await API.oneClickCopy({
|
|
163
163
|
...this.props.data
|
|
164
164
|
});
|
|
165
|
-
console.log(result)
|
|
165
|
+
console.log('oneClickCopy', result)
|
|
166
166
|
|
|
167
|
-
if (result.code ==
|
|
168
|
-
this.sendMessage()
|
|
169
|
-
this.props.finish()
|
|
170
|
-
} else {
|
|
167
|
+
if (result.code == 500) {
|
|
171
168
|
this.setState({
|
|
172
169
|
isModalVisibleSubmitError: true
|
|
173
170
|
})
|
|
171
|
+
|
|
172
|
+
} else {
|
|
173
|
+
this.sendMessage()
|
|
174
|
+
this.props.finish()
|
|
174
175
|
}
|
|
175
176
|
} catch (err) {
|
|
176
177
|
this.setState({
|
|
@@ -61,16 +61,17 @@
|
|
|
61
61
|
display: flex;
|
|
62
62
|
justify-content: space-between;
|
|
63
63
|
align-items: center;
|
|
64
|
+
margin-bottom: 20px;
|
|
64
65
|
}
|
|
65
66
|
.item-content{
|
|
66
67
|
// border: 1px #666666 solid;
|
|
67
68
|
// padding: 14px 24px;
|
|
68
|
-
min-height: 50px;
|
|
69
|
+
// min-height: 50px;
|
|
69
70
|
}
|
|
70
71
|
.item-button{
|
|
71
72
|
display: flex;
|
|
72
73
|
justify-content: flex-end;
|
|
73
|
-
padding-bottom: 14px;
|
|
74
|
+
// padding-bottom: 14px;
|
|
74
75
|
}
|
|
75
76
|
.item-button-title{
|
|
76
77
|
font-size: 1rem;
|
|
@@ -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.
|
|
69
|
+
const SDK_VERISON = '2.0.97'
|
|
70
70
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
71
71
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
72
72
|
const { Option } = Select;
|
|
@@ -4008,7 +4008,6 @@ class Video extends Component {
|
|
|
4008
4008
|
if(newanalyser) {
|
|
4009
4009
|
analyser = newanalyser
|
|
4010
4010
|
}
|
|
4011
|
-
this.saveLog('zeroVolAlert: ' + this.props.zeroVolAlert)
|
|
4012
4011
|
if(this.props.zeroVolAlert) {
|
|
4013
4012
|
if (!this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {
|
|
4014
4013
|
this.volumeFunctionTimer = setTimeout(this.volumeFunction.bind(this, sid), 15000)
|
|
@@ -7327,6 +7326,7 @@ class Video extends Component {
|
|
|
7327
7326
|
})
|
|
7328
7327
|
clearTimeout(this.volumePlayTimer)
|
|
7329
7328
|
this.volumePlay = () => {
|
|
7329
|
+
this.saveLog('zeroVolAlert: ' + this.props.zeroVolAlert)
|
|
7330
7330
|
if (this.state.isModalVisibleVolume) {
|
|
7331
7331
|
if (this.volumeAudio) this.volumeAudio.pause()
|
|
7332
7332
|
this.volumeAudio = new Audio(volumeError)
|