react_hsbc_teller 0.6.4 → 0.6.8
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/lib/hsbc.js.LICENSE.txt +0 -21
- package/package.json +1 -1
- package/packages/api/api.js +20 -0
- package/packages/pages/foot/foot.less +6 -5
- package/packages/pages/index.jsx +2 -2
- package/packages/pages/video/video.jsx +35 -23
package/lib/hsbc.js.LICENSE.txt
CHANGED
|
@@ -11,27 +11,6 @@
|
|
|
11
11
|
* @license MIT
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
/*!
|
|
15
|
-
* html2canvas 1.4.0 <https://html2canvas.hertzen.com>
|
|
16
|
-
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
17
|
-
* Released under MIT License
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
/*! *****************************************************************************
|
|
21
|
-
Copyright (c) Microsoft Corporation.
|
|
22
|
-
|
|
23
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
24
|
-
purpose with or without fee is hereby granted.
|
|
25
|
-
|
|
26
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
27
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
28
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
29
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
30
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
31
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
32
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
33
|
-
***************************************************************************** */
|
|
34
|
-
|
|
35
14
|
/*! *****************************************************************************
|
|
36
15
|
Copyright (c) Microsoft Corporation.
|
|
37
16
|
|
package/package.json
CHANGED
package/packages/api/api.js
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import Server from './server';
|
|
2
2
|
|
|
3
3
|
class API extends Server{
|
|
4
|
+
async sendEmail(params = {}){
|
|
5
|
+
// return this.axios('get', '/lang/select/2', params);
|
|
6
|
+
try{
|
|
7
|
+
let result = await this.axios('post', '/hsbc/sendEmail', params);
|
|
8
|
+
console.log(result)
|
|
9
|
+
if(result && (result.data instanceof Object) && result.code === 200){
|
|
10
|
+
return result||[];
|
|
11
|
+
}else{
|
|
12
|
+
let err = {
|
|
13
|
+
tip: '服务异常',
|
|
14
|
+
response: result,
|
|
15
|
+
data: params,
|
|
16
|
+
// url: 'https://api.cangdu.org/shopro/data/products',
|
|
17
|
+
}
|
|
18
|
+
throw err;
|
|
19
|
+
}
|
|
20
|
+
}catch(err){
|
|
21
|
+
throw err;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
4
24
|
async appGetUsername(params = {}){
|
|
5
25
|
// return this.axios('get', '/lang/select/2', params);
|
|
6
26
|
try{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.foot{
|
|
2
2
|
background: #fff;
|
|
3
|
-
height:
|
|
3
|
+
height: 4rem;
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
width: 100%;
|
|
6
6
|
// margin: 10px 0;
|
|
@@ -13,9 +13,10 @@ width: 100%;
|
|
|
13
13
|
width: 33%;
|
|
14
14
|
height: 100%;
|
|
15
15
|
align-items: center;
|
|
16
|
-
|
|
16
|
+
// margin: 10px 0;
|
|
17
17
|
.one{
|
|
18
|
-
padding-top: 5px;
|
|
18
|
+
// padding-top: 5px;
|
|
19
|
+
padding: 5px 0;
|
|
19
20
|
display: flex;
|
|
20
21
|
line-height: 32px;
|
|
21
22
|
flex-direction: column;
|
|
@@ -27,7 +28,7 @@ width: 100%;
|
|
|
27
28
|
border-radius: 8px;
|
|
28
29
|
}
|
|
29
30
|
.text{
|
|
30
|
-
margin-top:
|
|
31
|
+
margin-top: 8px;
|
|
31
32
|
padding-bottom: 10px;
|
|
32
33
|
text-align: center;
|
|
33
34
|
width: 80px;
|
|
@@ -43,7 +44,7 @@ line-height: 11px;
|
|
|
43
44
|
justify-content: center;
|
|
44
45
|
}
|
|
45
46
|
.totalThree{
|
|
46
|
-
margin-top: 10px;
|
|
47
|
+
// margin-top: 10px;
|
|
47
48
|
justify-content: flex-end;
|
|
48
49
|
}
|
|
49
50
|
.buttonClass{
|
package/packages/pages/index.jsx
CHANGED
|
@@ -46,8 +46,8 @@ class Main extends Component {
|
|
|
46
46
|
}
|
|
47
47
|
Main.defaultProps = {
|
|
48
48
|
lang: 'zh',
|
|
49
|
-
|
|
50
|
-
baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
|
|
49
|
+
baseURL: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
|
|
50
|
+
// baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
|
|
51
51
|
|
|
52
52
|
}
|
|
53
53
|
export default Main
|
|
@@ -22,7 +22,6 @@ import 'antd/lib/spin/style'
|
|
|
22
22
|
import { Button } from '../../../node_modules/antd/lib/index';
|
|
23
23
|
import CanvasDraw from "react-canvas-draw";
|
|
24
24
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
25
|
-
import html2canvas from 'html2canvas';
|
|
26
25
|
import axios from 'axios';
|
|
27
26
|
const LEAVE_TYPE = {
|
|
28
27
|
TELLER_EXIT: 1, // 坐席退出
|
|
@@ -2497,7 +2496,10 @@ class Video extends Component {
|
|
|
2497
2496
|
};
|
|
2498
2497
|
invitationClick = () => {
|
|
2499
2498
|
this.setState({
|
|
2500
|
-
isModalVisibleInvitation: true
|
|
2499
|
+
isModalVisibleInvitation: true,
|
|
2500
|
+
employeeNumber: '',
|
|
2501
|
+
employeeName: '',
|
|
2502
|
+
employeeError: ''
|
|
2501
2503
|
})
|
|
2502
2504
|
|
|
2503
2505
|
}
|
|
@@ -2507,9 +2509,9 @@ class Video extends Component {
|
|
|
2507
2509
|
return
|
|
2508
2510
|
}
|
|
2509
2511
|
try {
|
|
2510
|
-
let result = await API.
|
|
2511
|
-
|
|
2512
|
-
|
|
2512
|
+
let result = await API.sendEmail({
|
|
2513
|
+
staffId: this.state.employeeNumber,
|
|
2514
|
+
activityId: this.props.businessNumber
|
|
2513
2515
|
});
|
|
2514
2516
|
if (result.code == 200) {
|
|
2515
2517
|
this.messageClick('发送成功','success')
|
|
@@ -2691,8 +2693,8 @@ class Video extends Component {
|
|
|
2691
2693
|
console.log(result)
|
|
2692
2694
|
if (result.code == 200) {
|
|
2693
2695
|
this.setState({
|
|
2694
|
-
employeeName: result.data.
|
|
2695
|
-
employeeError: '',
|
|
2696
|
+
employeeName: result.data.staffName,
|
|
2697
|
+
employeeError: result.data.staffName ? '' : '查无此人',
|
|
2696
2698
|
})
|
|
2697
2699
|
} else {
|
|
2698
2700
|
this.messageClick('查询失败','error')
|
|
@@ -2700,7 +2702,7 @@ class Video extends Component {
|
|
|
2700
2702
|
} catch (err) {
|
|
2701
2703
|
console.log(err)
|
|
2702
2704
|
this.setState({
|
|
2703
|
-
employeeError: '
|
|
2705
|
+
employeeError: '查无此人'
|
|
2704
2706
|
})
|
|
2705
2707
|
}
|
|
2706
2708
|
}
|
|
@@ -2844,7 +2846,7 @@ class Video extends Component {
|
|
|
2844
2846
|
</div>
|
|
2845
2847
|
)
|
|
2846
2848
|
const camera = (
|
|
2847
|
-
<div
|
|
2849
|
+
<div className="cameraAnMicrophone">
|
|
2848
2850
|
{
|
|
2849
2851
|
this.state.cameraList.map((item,index) => {
|
|
2850
2852
|
return <div key={index}>
|
|
@@ -2863,7 +2865,7 @@ class Video extends Component {
|
|
|
2863
2865
|
<div>
|
|
2864
2866
|
{
|
|
2865
2867
|
this.state.microphoneList.map((item,index) => {
|
|
2866
|
-
return <div key={index}
|
|
2868
|
+
return <div key={index} className="cameraAnMicrophone">
|
|
2867
2869
|
<label className="radio">
|
|
2868
2870
|
<input type="radio" name="microphone" value={item.actionid} style={{float: 'left'}} checked={this.state.microphoneValue == item.actionid} onChange={(e) => this.getMicrophoneValue(e)} /><i></i>
|
|
2869
2871
|
{item.actionname}
|
|
@@ -2878,7 +2880,7 @@ class Video extends Component {
|
|
|
2878
2880
|
<div>
|
|
2879
2881
|
{
|
|
2880
2882
|
this.state.speakerList.map((item,index) => {
|
|
2881
|
-
return <div key={index}
|
|
2883
|
+
return <div key={index} className="cameraAnMicrophone">
|
|
2882
2884
|
{item.actionname}<br />
|
|
2883
2885
|
</div>
|
|
2884
2886
|
})
|
|
@@ -3377,15 +3379,19 @@ class Video extends Component {
|
|
|
3377
3379
|
!this.state.isSuspend && <span>确定是否暂停会话?</span>
|
|
3378
3380
|
}
|
|
3379
3381
|
</Modal>
|
|
3380
|
-
<Modal
|
|
3381
|
-
<
|
|
3382
|
+
<Modal closable={false} centered={true} visible={this.state.isModalVisibleEnd} footer={[
|
|
3383
|
+
<div key='end'>
|
|
3384
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelEnd}>取消</Button>
|
|
3382
3385
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkEnd}>确定</Button>
|
|
3386
|
+
</div>
|
|
3383
3387
|
]}>
|
|
3384
3388
|
<div className='endModal'>确定是否结束会话?</div>
|
|
3385
3389
|
</Modal>
|
|
3386
3390
|
<Modal title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
|
|
3387
|
-
<
|
|
3391
|
+
<div key='facial'>
|
|
3392
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
|
|
3388
3393
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>确定</Button>
|
|
3394
|
+
</div>
|
|
3389
3395
|
]}>
|
|
3390
3396
|
<div className="faceBody">
|
|
3391
3397
|
<img className="faceImg" src={this.state.facialImg} alt=""></img>
|
|
@@ -3399,17 +3405,19 @@ class Video extends Component {
|
|
|
3399
3405
|
|
|
3400
3406
|
</Modal> */}
|
|
3401
3407
|
<Modal className="modelClass" title="新增预约" closable={false} centered={true} visible={this.state.isModalVisibleInvitation} footer={[
|
|
3402
|
-
|
|
3408
|
+
<div key='invitation'>
|
|
3409
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>
|
|
3403
3410
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInvitation}>确定</Button>
|
|
3411
|
+
</div>
|
|
3404
3412
|
]}>
|
|
3405
3413
|
<div>
|
|
3406
3414
|
<div className="invitationDiv">
|
|
3407
|
-
<span
|
|
3415
|
+
<span className="modalSpan">员工号:</span><input type="number"className="inputClick" placeholder="请输入员工号" value={this.state.employeeNumber} onChange={e => this.handleChange(e)}></input>
|
|
3408
3416
|
{/* <span className="invitationSpan" onClick={this.queryStaff}>查 询</span> */}
|
|
3409
3417
|
<Button className="invitationSpan" type="primary" danger onClick={this.queryStaff}>查 询</Button>
|
|
3410
3418
|
</div>
|
|
3411
3419
|
<div className="invitationDiv">
|
|
3412
|
-
<span
|
|
3420
|
+
<span className="modalSpan"> 姓名:</span><span>{this.state.employeeName}</span>
|
|
3413
3421
|
</div>
|
|
3414
3422
|
</div>
|
|
3415
3423
|
{
|
|
@@ -3422,7 +3430,9 @@ class Video extends Component {
|
|
|
3422
3430
|
</Modal>
|
|
3423
3431
|
<Modal title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
|
|
3424
3432
|
[
|
|
3433
|
+
<div key='okSign'>
|
|
3425
3434
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
|
|
3435
|
+
</div>
|
|
3426
3436
|
]
|
|
3427
3437
|
}>
|
|
3428
3438
|
<div className="content">
|
|
@@ -3438,10 +3448,12 @@ class Video extends Component {
|
|
|
3438
3448
|
</div>
|
|
3439
3449
|
</Modal>
|
|
3440
3450
|
<Modal title="设备检测" closable={false} centered={true} visible={this.state.isModalVisibleInspection} footer={[
|
|
3441
|
-
|
|
3451
|
+
<div key='inspection'>
|
|
3452
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelInspection}>取消</Button>
|
|
3442
3453
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInspection}>确定</Button>
|
|
3454
|
+
</div>
|
|
3443
3455
|
]}>
|
|
3444
|
-
<div
|
|
3456
|
+
<div className="inspection">
|
|
3445
3457
|
<div>摄像头设备:</div>
|
|
3446
3458
|
{camera}
|
|
3447
3459
|
<div>麦克风设备:</div>
|
|
@@ -3459,11 +3471,11 @@ Video.defaultProps = {
|
|
|
3459
3471
|
tellerAccount: 't001',
|
|
3460
3472
|
businessNumber: '123',
|
|
3461
3473
|
callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
|
|
3462
|
-
|
|
3463
|
-
roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
3474
|
+
roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
|
|
3475
|
+
// roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
3464
3476
|
|
|
3465
|
-
resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
3466
|
-
|
|
3477
|
+
// resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
3478
|
+
resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
|
|
3467
3479
|
prohbiitPrompt: '当前无客户',
|
|
3468
3480
|
voiceColor: '#0AE544',
|
|
3469
3481
|
titleBackground: 'rgba(0,0,0,0.65)',
|