react_hsbc_teller 0.6.5 → 0.6.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.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{
|
|
@@ -51,7 +51,7 @@ export default class foot extends Component {
|
|
|
51
51
|
this.props.inspection()
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
const {clickedOcr,clickedFacial,isTranscribing,img,cameraImg,screenName,suspendName,customerList,menus} = this.props
|
|
54
|
+
const {clickedOcr,clickedFacial,isTranscribing,img,cameraImg,screenName,suspendName,customerList,menus,voiceName} = this.props
|
|
55
55
|
const content = (
|
|
56
56
|
<div>
|
|
57
57
|
{customerList.map((item,index)=>{
|
|
@@ -137,7 +137,7 @@ export default class foot extends Component {
|
|
|
137
137
|
<div className="one">
|
|
138
138
|
<img className="imgClass" src={img} alt="" />
|
|
139
139
|
<div className="text">
|
|
140
|
-
|
|
140
|
+
{voiceName}
|
|
141
141
|
</div>
|
|
142
142
|
</div>
|
|
143
143
|
|
|
@@ -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, // 坐席退出
|
|
@@ -54,6 +53,7 @@ class Video extends Component {
|
|
|
54
53
|
cameraImg: cameraImgOpen,
|
|
55
54
|
voiceStatue: false,
|
|
56
55
|
voiceImg: voiceImgOpen,
|
|
56
|
+
voiceName: '静音',
|
|
57
57
|
isCustomer: false,
|
|
58
58
|
publishDevic: 1,
|
|
59
59
|
isSharedScreen: false,
|
|
@@ -2201,7 +2201,8 @@ class Video extends Component {
|
|
|
2201
2201
|
// 静音本地
|
|
2202
2202
|
this.setState({
|
|
2203
2203
|
voiceStatue: true,
|
|
2204
|
-
voiceImg: voiceImgCloe
|
|
2204
|
+
voiceImg: voiceImgCloe,
|
|
2205
|
+
voiceName: '解除静音'
|
|
2205
2206
|
});
|
|
2206
2207
|
let sid = document.getElementById('publish_video1').name;
|
|
2207
2208
|
if (!sid) {
|
|
@@ -2227,7 +2228,8 @@ class Video extends Component {
|
|
|
2227
2228
|
// 打开本地
|
|
2228
2229
|
this.setState({
|
|
2229
2230
|
voiceStatue: false,
|
|
2230
|
-
voiceImg: voiceImgOpen
|
|
2231
|
+
voiceImg: voiceImgOpen,
|
|
2232
|
+
voiceName: '静音'
|
|
2231
2233
|
});
|
|
2232
2234
|
let sid = document.getElementById('publish_video1').name;
|
|
2233
2235
|
if (!sid) {
|
|
@@ -2387,7 +2389,8 @@ class Video extends Component {
|
|
|
2387
2389
|
if (this.state.voiceStatue) {
|
|
2388
2390
|
// 当前是音频
|
|
2389
2391
|
this.setState({
|
|
2390
|
-
voiceImg: voiceImgCloe
|
|
2392
|
+
voiceImg: voiceImgCloe,
|
|
2393
|
+
voiceName: '解除静音'
|
|
2391
2394
|
});
|
|
2392
2395
|
let sid = document.getElementById('publish_video1').name;
|
|
2393
2396
|
if (!sid) {
|
|
@@ -2399,7 +2402,8 @@ class Video extends Component {
|
|
|
2399
2402
|
// 当前是
|
|
2400
2403
|
this.test_controller.SetLocalAudioEnable(1, parseInt(sid, 10));
|
|
2401
2404
|
this.setState({
|
|
2402
|
-
voiceImg: voiceImgOpen
|
|
2405
|
+
voiceImg: voiceImgOpen,
|
|
2406
|
+
voiceName: '静音'
|
|
2403
2407
|
})
|
|
2404
2408
|
}
|
|
2405
2409
|
callNimIM('sendCustomCmdMsg', {
|
|
@@ -2497,7 +2501,10 @@ class Video extends Component {
|
|
|
2497
2501
|
};
|
|
2498
2502
|
invitationClick = () => {
|
|
2499
2503
|
this.setState({
|
|
2500
|
-
isModalVisibleInvitation: true
|
|
2504
|
+
isModalVisibleInvitation: true,
|
|
2505
|
+
employeeNumber: '',
|
|
2506
|
+
employeeName: '',
|
|
2507
|
+
employeeError: ''
|
|
2501
2508
|
})
|
|
2502
2509
|
|
|
2503
2510
|
}
|
|
@@ -2507,9 +2514,9 @@ class Video extends Component {
|
|
|
2507
2514
|
return
|
|
2508
2515
|
}
|
|
2509
2516
|
try {
|
|
2510
|
-
let result = await API.
|
|
2511
|
-
|
|
2512
|
-
|
|
2517
|
+
let result = await API.sendEmail({
|
|
2518
|
+
staffId: this.state.employeeNumber,
|
|
2519
|
+
activityId: this.props.businessNumber
|
|
2513
2520
|
});
|
|
2514
2521
|
if (result.code == 200) {
|
|
2515
2522
|
this.messageClick('发送成功','success')
|
|
@@ -2691,8 +2698,8 @@ class Video extends Component {
|
|
|
2691
2698
|
console.log(result)
|
|
2692
2699
|
if (result.code == 200) {
|
|
2693
2700
|
this.setState({
|
|
2694
|
-
employeeName: result.data.
|
|
2695
|
-
employeeError: '',
|
|
2701
|
+
employeeName: result.data.staffName,
|
|
2702
|
+
employeeError: result.data.staffName ? '' : '查无此人',
|
|
2696
2703
|
})
|
|
2697
2704
|
} else {
|
|
2698
2705
|
this.messageClick('查询失败','error')
|
|
@@ -2700,7 +2707,7 @@ class Video extends Component {
|
|
|
2700
2707
|
} catch (err) {
|
|
2701
2708
|
console.log(err)
|
|
2702
2709
|
this.setState({
|
|
2703
|
-
employeeError: '
|
|
2710
|
+
employeeError: '查无此人'
|
|
2704
2711
|
})
|
|
2705
2712
|
}
|
|
2706
2713
|
}
|
|
@@ -2844,7 +2851,7 @@ class Video extends Component {
|
|
|
2844
2851
|
</div>
|
|
2845
2852
|
)
|
|
2846
2853
|
const camera = (
|
|
2847
|
-
<div
|
|
2854
|
+
<div className="cameraAnMicrophone">
|
|
2848
2855
|
{
|
|
2849
2856
|
this.state.cameraList.map((item,index) => {
|
|
2850
2857
|
return <div key={index}>
|
|
@@ -2863,7 +2870,7 @@ class Video extends Component {
|
|
|
2863
2870
|
<div>
|
|
2864
2871
|
{
|
|
2865
2872
|
this.state.microphoneList.map((item,index) => {
|
|
2866
|
-
return <div key={index}
|
|
2873
|
+
return <div key={index} className="cameraAnMicrophone">
|
|
2867
2874
|
<label className="radio">
|
|
2868
2875
|
<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
2876
|
{item.actionname}
|
|
@@ -2878,7 +2885,7 @@ class Video extends Component {
|
|
|
2878
2885
|
<div>
|
|
2879
2886
|
{
|
|
2880
2887
|
this.state.speakerList.map((item,index) => {
|
|
2881
|
-
return <div key={index}
|
|
2888
|
+
return <div key={index} className="cameraAnMicrophone">
|
|
2882
2889
|
{item.actionname}<br />
|
|
2883
2890
|
</div>
|
|
2884
2891
|
})
|
|
@@ -3344,6 +3351,7 @@ class Video extends Component {
|
|
|
3344
3351
|
</div>
|
|
3345
3352
|
</div>
|
|
3346
3353
|
<Foot
|
|
3354
|
+
voiceName={this.state.voiceName}
|
|
3347
3355
|
img={this.state.voiceImg}
|
|
3348
3356
|
screenName={this.state.screenName}
|
|
3349
3357
|
suspendName={this.state.suspendName}
|
|
@@ -3377,15 +3385,19 @@ class Video extends Component {
|
|
|
3377
3385
|
!this.state.isSuspend && <span>确定是否暂停会话?</span>
|
|
3378
3386
|
}
|
|
3379
3387
|
</Modal>
|
|
3380
|
-
<Modal
|
|
3381
|
-
<
|
|
3388
|
+
<Modal closable={false} centered={true} visible={this.state.isModalVisibleEnd} footer={[
|
|
3389
|
+
<div key='end'>
|
|
3390
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelEnd}>取消</Button>
|
|
3382
3391
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkEnd}>确定</Button>
|
|
3392
|
+
</div>
|
|
3383
3393
|
]}>
|
|
3384
3394
|
<div className='endModal'>确定是否结束会话?</div>
|
|
3385
3395
|
</Modal>
|
|
3386
3396
|
<Modal title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
|
|
3387
|
-
<
|
|
3397
|
+
<div key='facial'>
|
|
3398
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
|
|
3388
3399
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>确定</Button>
|
|
3400
|
+
</div>
|
|
3389
3401
|
]}>
|
|
3390
3402
|
<div className="faceBody">
|
|
3391
3403
|
<img className="faceImg" src={this.state.facialImg} alt=""></img>
|
|
@@ -3399,17 +3411,19 @@ class Video extends Component {
|
|
|
3399
3411
|
|
|
3400
3412
|
</Modal> */}
|
|
3401
3413
|
<Modal className="modelClass" title="新增预约" closable={false} centered={true} visible={this.state.isModalVisibleInvitation} footer={[
|
|
3402
|
-
|
|
3414
|
+
<div key='invitation'>
|
|
3415
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>
|
|
3403
3416
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInvitation}>确定</Button>
|
|
3417
|
+
</div>
|
|
3404
3418
|
]}>
|
|
3405
3419
|
<div>
|
|
3406
3420
|
<div className="invitationDiv">
|
|
3407
|
-
<span
|
|
3421
|
+
<span className="modalSpan">员工号:</span><input type="number"className="inputClick" placeholder="请输入员工号" value={this.state.employeeNumber} onChange={e => this.handleChange(e)}></input>
|
|
3408
3422
|
{/* <span className="invitationSpan" onClick={this.queryStaff}>查 询</span> */}
|
|
3409
3423
|
<Button className="invitationSpan" type="primary" danger onClick={this.queryStaff}>查 询</Button>
|
|
3410
3424
|
</div>
|
|
3411
3425
|
<div className="invitationDiv">
|
|
3412
|
-
<span
|
|
3426
|
+
<span className="modalSpan"> 姓名:</span><span>{this.state.employeeName}</span>
|
|
3413
3427
|
</div>
|
|
3414
3428
|
</div>
|
|
3415
3429
|
{
|
|
@@ -3422,7 +3436,9 @@ class Video extends Component {
|
|
|
3422
3436
|
</Modal>
|
|
3423
3437
|
<Modal title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
|
|
3424
3438
|
[
|
|
3439
|
+
<div key='okSign'>
|
|
3425
3440
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
|
|
3441
|
+
</div>
|
|
3426
3442
|
]
|
|
3427
3443
|
}>
|
|
3428
3444
|
<div className="content">
|
|
@@ -3438,10 +3454,12 @@ class Video extends Component {
|
|
|
3438
3454
|
</div>
|
|
3439
3455
|
</Modal>
|
|
3440
3456
|
<Modal title="设备检测" closable={false} centered={true} visible={this.state.isModalVisibleInspection} footer={[
|
|
3441
|
-
|
|
3457
|
+
<div key='inspection'>
|
|
3458
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelInspection}>取消</Button>
|
|
3442
3459
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInspection}>确定</Button>
|
|
3460
|
+
</div>
|
|
3443
3461
|
]}>
|
|
3444
|
-
<div
|
|
3462
|
+
<div className="inspection">
|
|
3445
3463
|
<div>摄像头设备:</div>
|
|
3446
3464
|
{camera}
|
|
3447
3465
|
<div>麦克风设备:</div>
|
|
@@ -3459,11 +3477,11 @@ Video.defaultProps = {
|
|
|
3459
3477
|
tellerAccount: 't001',
|
|
3460
3478
|
businessNumber: '123',
|
|
3461
3479
|
callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
|
|
3462
|
-
|
|
3463
|
-
roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
3480
|
+
roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
|
|
3481
|
+
// roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
3464
3482
|
|
|
3465
|
-
resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
3466
|
-
|
|
3483
|
+
// resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
3484
|
+
resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
|
|
3467
3485
|
prohbiitPrompt: '当前无客户',
|
|
3468
3486
|
voiceColor: '#0AE544',
|
|
3469
3487
|
titleBackground: 'rgba(0,0,0,0.65)',
|