react_hsbc_teller 0.5.3 → 0.5.4
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
|
Binary file
|
|
Binary file
|
|
@@ -11,6 +11,7 @@ import voiceImgOpen from '../../assets/img/icon_Mute.png'
|
|
|
11
11
|
import voiceImgCloe from '../../assets/img/icon_MuteOne.png'
|
|
12
12
|
import cameraImgOpen from '../../assets/img/icon_camera.png'
|
|
13
13
|
import cameraImgCloe from '../../assets/img/icon_cameraOne.png'
|
|
14
|
+
import errorPng from '../../assets/img/tooltips2_fail.png'
|
|
14
15
|
import { callNimIM } from '../../utils/cell.js'
|
|
15
16
|
import Modal from "antd/lib/modal";
|
|
16
17
|
import 'antd/lib/modal/style'
|
|
@@ -313,12 +314,12 @@ class Video extends Component {
|
|
|
313
314
|
});
|
|
314
315
|
console.log(result);
|
|
315
316
|
if (result.code == 200) {
|
|
316
|
-
|
|
317
|
+
this.messageClick('人脸识别成功','success')
|
|
317
318
|
this.setState({
|
|
318
319
|
isModalVisibleFacial: false
|
|
319
320
|
})
|
|
320
321
|
} else {
|
|
321
|
-
|
|
322
|
+
this.messageClick('人脸识别失败','error')
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
|
|
@@ -469,12 +470,28 @@ class Video extends Component {
|
|
|
469
470
|
})
|
|
470
471
|
}
|
|
471
472
|
} else {
|
|
472
|
-
|
|
473
|
+
this.messageClick('当前暂无客户','error')
|
|
473
474
|
}
|
|
474
475
|
this.setState({
|
|
475
476
|
customerList: list
|
|
476
477
|
})
|
|
477
478
|
}
|
|
479
|
+
messageClick=(value,valueOne)=>{
|
|
480
|
+
if(valueOne == 'error') {
|
|
481
|
+
message.error({
|
|
482
|
+
content: value,
|
|
483
|
+
icon: <img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>,
|
|
484
|
+
className: 'errorClassName'
|
|
485
|
+
})
|
|
486
|
+
} else if(valueOne == 'success') {
|
|
487
|
+
message.success({
|
|
488
|
+
content: value,
|
|
489
|
+
icon: <img src={require("../../assets/img/tooltips1_pass.png").default} alt="" ></img>,
|
|
490
|
+
className: 'successClassName'
|
|
491
|
+
})
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
}
|
|
478
495
|
// 人脸识别
|
|
479
496
|
facialRecognition = () => {
|
|
480
497
|
if (this.isFileSuccuse()) {
|
|
@@ -1068,7 +1085,7 @@ class Video extends Component {
|
|
|
1068
1085
|
// 获取设备失败
|
|
1069
1086
|
this.test_controller.OnGetDevicesFailed = (code, msg) => {
|
|
1070
1087
|
console.log('获取设备失败', code, msg)
|
|
1071
|
-
|
|
1088
|
+
this.messageClick('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头','error')
|
|
1072
1089
|
this.roomCallBack(2, '获取失败失败')
|
|
1073
1090
|
};
|
|
1074
1091
|
// 建立连接成功
|
|
@@ -1838,7 +1855,7 @@ class Video extends Component {
|
|
|
1838
1855
|
// 切流成功通知
|
|
1839
1856
|
this.test_controller.OnChangeMediaStreamSuccess = (sid) => {
|
|
1840
1857
|
console.log('切流成功通知', sid);
|
|
1841
|
-
|
|
1858
|
+
this.messageClick('切换摄像头或麦克风成功','success')
|
|
1842
1859
|
this.setState({
|
|
1843
1860
|
isModalVisibleInspection: false
|
|
1844
1861
|
})
|
|
@@ -1850,7 +1867,7 @@ class Video extends Component {
|
|
|
1850
1867
|
msg
|
|
1851
1868
|
) => {
|
|
1852
1869
|
console.log('切流失败通知', sid, code, msg)
|
|
1853
|
-
|
|
1870
|
+
this.messageClick('切换摄像头或麦克风失败,请先检查设备','error')
|
|
1854
1871
|
};
|
|
1855
1872
|
// 服务端录制初始化成功
|
|
1856
1873
|
this.test_controller.OnInitRemoteRecordSucc = (
|
|
@@ -1969,12 +1986,12 @@ class Video extends Component {
|
|
|
1969
1986
|
});
|
|
1970
1987
|
console.log(result);
|
|
1971
1988
|
if (result.code == 200) {
|
|
1972
|
-
|
|
1989
|
+
this.messageClick('人脸识别成功','success')
|
|
1973
1990
|
this.setState({
|
|
1974
1991
|
isModalVisibleFacial: false
|
|
1975
1992
|
})
|
|
1976
1993
|
} else {
|
|
1977
|
-
|
|
1994
|
+
this.messageClick('人脸识别失败','error')
|
|
1978
1995
|
}
|
|
1979
1996
|
|
|
1980
1997
|
|
|
@@ -2013,14 +2030,14 @@ class Video extends Component {
|
|
|
2013
2030
|
if (result.code == 200 && result.data.roomStatus == 1) {
|
|
2014
2031
|
this.addToScript()
|
|
2015
2032
|
} else {
|
|
2016
|
-
|
|
2033
|
+
this.messageClick('当前房间状态异常','error')
|
|
2017
2034
|
this.props.onLeaveRoom({
|
|
2018
2035
|
code: LEAVE_TYPE.ROOM_DESTROYED,
|
|
2019
2036
|
errMsg: '当前房间状态异常'
|
|
2020
2037
|
})
|
|
2021
2038
|
}
|
|
2022
2039
|
} catch (err) {
|
|
2023
|
-
|
|
2040
|
+
this.messageClick('当前房间状态异常','error')
|
|
2024
2041
|
this.props.onLeaveRoom({
|
|
2025
2042
|
code: LEAVE_TYPE.ROOM_DESTROYED,
|
|
2026
2043
|
errMsg: '当前房间状态异常'
|
|
@@ -2163,7 +2180,7 @@ class Video extends Component {
|
|
|
2163
2180
|
};
|
|
2164
2181
|
isFileSuccuse = () => {
|
|
2165
2182
|
if (!this.state.sessionId || this.state.isSuspend) {
|
|
2166
|
-
|
|
2183
|
+
this.messageClick(this.props.prohibitPrompt,'error')
|
|
2167
2184
|
return false
|
|
2168
2185
|
} else {
|
|
2169
2186
|
return true
|
|
@@ -2419,12 +2436,12 @@ class Video extends Component {
|
|
|
2419
2436
|
userId: this.state.employeeNumber
|
|
2420
2437
|
});
|
|
2421
2438
|
if (result.code == 200) {
|
|
2422
|
-
|
|
2439
|
+
this.messageClick('发送成功','success')
|
|
2423
2440
|
this.setState({
|
|
2424
2441
|
isModalVisibleInvitation: false
|
|
2425
2442
|
})
|
|
2426
2443
|
} else {
|
|
2427
|
-
|
|
2444
|
+
this.messageClick('发送失败','error')
|
|
2428
2445
|
}
|
|
2429
2446
|
} catch (err) {
|
|
2430
2447
|
|
|
@@ -2489,27 +2506,6 @@ class Video extends Component {
|
|
|
2489
2506
|
console.log(sid)
|
|
2490
2507
|
let userId = ''
|
|
2491
2508
|
let index
|
|
2492
|
-
// this.state.videoList.map((item,index)=>{
|
|
2493
|
-
// let name = 'video' + item.videoIndex
|
|
2494
|
-
// if(document.getElementById(name).name == sid){
|
|
2495
|
-
// userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById(("feedId" + item.videoIndex)).innerText).uid
|
|
2496
|
-
// index = index
|
|
2497
|
-
// }
|
|
2498
|
-
// })
|
|
2499
|
-
// try {
|
|
2500
|
-
// let result = await API.appGetUsername({
|
|
2501
|
-
// userId: userId
|
|
2502
|
-
// });
|
|
2503
|
-
// console.log(result)
|
|
2504
|
-
// if (result.code == 200) {
|
|
2505
|
-
// let data = result.data.userInfo ? result.data.userInfo.userName ? result.data.userInfo.userName : '' : ''
|
|
2506
|
-
// this.state.videoList[index].videoOneName = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById(("feedId" + item.videoIndex)).innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户' + item.videoIndex
|
|
2507
|
-
// } else {
|
|
2508
|
-
// message.success('查询失败')
|
|
2509
|
-
// }
|
|
2510
|
-
// } catch (err) {
|
|
2511
|
-
|
|
2512
|
-
// }
|
|
2513
2509
|
if (document.getElementById('video1').name == sid) {
|
|
2514
2510
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid
|
|
2515
2511
|
}
|
|
@@ -2552,7 +2548,7 @@ class Video extends Component {
|
|
|
2552
2548
|
if (result.code == 200) {
|
|
2553
2549
|
data = result.data.userInfo ? result.data.userInfo.userName ? result.data.userInfo.userName : '' : ''
|
|
2554
2550
|
} else {
|
|
2555
|
-
|
|
2551
|
+
this.messageClick('查询失败','error')
|
|
2556
2552
|
}
|
|
2557
2553
|
if (document.getElementById('video1').name == sid) {
|
|
2558
2554
|
|
|
@@ -2621,7 +2617,7 @@ class Video extends Component {
|
|
|
2621
2617
|
employeeName: result.data.username
|
|
2622
2618
|
})
|
|
2623
2619
|
} else {
|
|
2624
|
-
|
|
2620
|
+
this.messageClick('查询失败','error')
|
|
2625
2621
|
}
|
|
2626
2622
|
} catch (err) {
|
|
2627
2623
|
|
|
@@ -2635,12 +2631,12 @@ class Video extends Component {
|
|
|
2635
2631
|
});
|
|
2636
2632
|
console.log(result)
|
|
2637
2633
|
if (result.code == 200) {
|
|
2638
|
-
|
|
2634
|
+
this.messageClick('签字成功','success')
|
|
2639
2635
|
this.setState({
|
|
2640
2636
|
isModalVisibleSign: false,
|
|
2641
2637
|
})
|
|
2642
2638
|
} else {
|
|
2643
|
-
|
|
2639
|
+
this.messageClick('签字失败','error')
|
|
2644
2640
|
}
|
|
2645
2641
|
} catch (err) {
|
|
2646
2642
|
|
|
@@ -2682,7 +2678,8 @@ class Video extends Component {
|
|
|
2682
2678
|
this.test_controller.Publish(publish_config)
|
|
2683
2679
|
}
|
|
2684
2680
|
} else {
|
|
2685
|
-
|
|
2681
|
+
this.messageClick('当前已经切换RM白板','success')
|
|
2682
|
+
|
|
2686
2683
|
}
|
|
2687
2684
|
|
|
2688
2685
|
|
|
@@ -3298,13 +3295,21 @@ class Video extends Component {
|
|
|
3298
3295
|
]}>
|
|
3299
3296
|
<div className='endModal'>确定是否结束会话?</div>
|
|
3300
3297
|
</Modal>
|
|
3301
|
-
<Modal title={this.state.titleModal}
|
|
3298
|
+
<Modal title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
|
|
3299
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>,
|
|
3300
|
+
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>确定</Button>
|
|
3301
|
+
]}>
|
|
3302
|
+
<div className="faceBody">
|
|
3303
|
+
<img className="faceImg" src={this.state.facialImg} alt=""></img>
|
|
3304
|
+
</div>
|
|
3305
|
+
</Modal>
|
|
3306
|
+
{/* <Modal title={this.state.titleModal} cancelText="取消" okText="确定" visible={this.state.isModalVisibleFacial}
|
|
3302
3307
|
onOk={this.handleOkFacial} onCancel={this.handleCancelFacial}>
|
|
3303
3308
|
<div className="faceBody">
|
|
3304
3309
|
<img className="faceImg" src={this.state.facialImg} alt=""></img>
|
|
3305
3310
|
</div>
|
|
3306
3311
|
|
|
3307
|
-
</Modal>
|
|
3312
|
+
</Modal> */}
|
|
3308
3313
|
<Modal className="modelClass" title="新增预约" closable={false} centered={true} visible={this.state.isModalVisibleInvitation} footer={[
|
|
3309
3314
|
<Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>,
|
|
3310
3315
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInvitation}>确定</Button>
|
|
@@ -3361,7 +3366,7 @@ Video.defaultProps = {
|
|
|
3361
3366
|
callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
|
|
3362
3367
|
roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
3363
3368
|
resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
3364
|
-
|
|
3369
|
+
prohbiitPrompt: '当前无客户',
|
|
3365
3370
|
voiceColor: '#0AE544',
|
|
3366
3371
|
titleBackground: 'rgba(0,0,0,0.65)',
|
|
3367
3372
|
titleColor: '#fff',
|
|
@@ -321,4 +321,44 @@
|
|
|
321
321
|
.inspection{
|
|
322
322
|
font-size: 16px;
|
|
323
323
|
margin: 20px 50px;
|
|
324
|
+
}
|
|
325
|
+
.errorClassName{
|
|
326
|
+
.ant-message-notice-content{
|
|
327
|
+
min-width: 500px;
|
|
328
|
+
height: 44px;
|
|
329
|
+
background: #F9F2F3;
|
|
330
|
+
border: 1px #E5B2B5 solid;
|
|
331
|
+
font-size: 16px;
|
|
332
|
+
color: #252525;
|
|
333
|
+
text-align: center;
|
|
334
|
+
padding: 7px;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
img{
|
|
338
|
+
margin-right: 8px;
|
|
339
|
+
width: 16px;
|
|
340
|
+
height: 16px;
|
|
341
|
+
margin-bottom: 3px;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
}
|
|
345
|
+
.successClassName{
|
|
346
|
+
.ant-message-notice-content{
|
|
347
|
+
min-width: 500px;
|
|
348
|
+
height: 44px;
|
|
349
|
+
background: #E5F2F2;
|
|
350
|
+
border: 1px #99CECC solid;
|
|
351
|
+
font-size: 16px;
|
|
352
|
+
color: #252525;
|
|
353
|
+
text-align: center;
|
|
354
|
+
padding: 7px;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
img{
|
|
358
|
+
margin-right: 8px;
|
|
359
|
+
width: 16px;
|
|
360
|
+
height: 16px;
|
|
361
|
+
margin-bottom: 3px;
|
|
362
|
+
}
|
|
363
|
+
|
|
324
364
|
}
|