react_hsbc_teller 0.1.8 → 0.1.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/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
let baseURL;
|
|
5
5
|
// let imgUrl = '//elm.cangdu.org/img/';
|
|
6
6
|
if(process.env.NODE_ENV === 'development'){
|
|
7
|
-
baseURL = '
|
|
7
|
+
baseURL = 'https://counter-web.leimondata.cn:18082/api/leimon-counter-api';
|
|
8
8
|
}else{
|
|
9
|
-
baseURL = '
|
|
9
|
+
baseURL = 'https://counter-web.leimondata.cn:18082/api/leimon-counter-api';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
|
|
@@ -16,6 +16,8 @@ import Modal from "antd/lib/modal";
|
|
|
16
16
|
import 'antd/lib/modal/style'
|
|
17
17
|
import message from "antd/lib/message";
|
|
18
18
|
import 'antd/lib/message/style'
|
|
19
|
+
import Spin from "antd/lib/spin";
|
|
20
|
+
import 'antd/lib/spin/style'
|
|
19
21
|
import { Button } from '../../../node_modules/antd/lib/index';
|
|
20
22
|
import CanvasDraw from "react-canvas-draw";
|
|
21
23
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
@@ -27,8 +29,8 @@ const LEAVE_TYPE = {
|
|
|
27
29
|
class Video extends Component {
|
|
28
30
|
signCanvas = React.createRef();
|
|
29
31
|
state = {
|
|
32
|
+
loading: false,
|
|
30
33
|
isModalVisibleSign: false,
|
|
31
|
-
signData: {},
|
|
32
34
|
titleModal: '人脸识别',
|
|
33
35
|
faceCustomerType: 1, // 1无感人脸,2ocr
|
|
34
36
|
faceCustomerUid: '',
|
|
@@ -36,8 +38,6 @@ class Video extends Component {
|
|
|
36
38
|
employeeNumber: '',
|
|
37
39
|
employeeName: '',
|
|
38
40
|
isModalVisibleInvitation: false,
|
|
39
|
-
isTranscribing: false,
|
|
40
|
-
transcribingData: '',
|
|
41
41
|
isPDF: false,
|
|
42
42
|
roomCustomerList: [],
|
|
43
43
|
facialImg: '',
|
|
@@ -514,20 +514,6 @@ class Video extends Component {
|
|
|
514
514
|
if (Mival.sessionId == this.state.sessionId) {
|
|
515
515
|
this.endSession('customerHangUp')
|
|
516
516
|
}
|
|
517
|
-
} else if (Mival.typeId == 1214) {
|
|
518
|
-
console.log(Mival);
|
|
519
|
-
if (Mival.sessionId == this.state.sessionId) {
|
|
520
|
-
this.setState({
|
|
521
|
-
transcribingData: Mival,
|
|
522
|
-
isTranscribing: true
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
} else if (Mival.typeId == 1216) {
|
|
527
|
-
this.setState({
|
|
528
|
-
signData: Mival.callbackUrl,
|
|
529
|
-
isModalVisibleSign: true
|
|
530
|
-
})
|
|
531
517
|
}
|
|
532
518
|
};
|
|
533
519
|
|
|
@@ -1098,36 +1084,37 @@ class Video extends Component {
|
|
|
1098
1084
|
}
|
|
1099
1085
|
}
|
|
1100
1086
|
addToScript = () => {
|
|
1087
|
+
this.setState({
|
|
1088
|
+
loading: true,
|
|
1089
|
+
})
|
|
1101
1090
|
const _dependScripts = [
|
|
1102
|
-
"
|
|
1103
|
-
"
|
|
1104
|
-
"
|
|
1105
|
-
"
|
|
1106
|
-
"
|
|
1107
|
-
"
|
|
1108
|
-
"
|
|
1109
|
-
"
|
|
1110
|
-
"
|
|
1111
|
-
"
|
|
1112
|
-
"
|
|
1113
|
-
"
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1116
|
-
"
|
|
1117
|
-
"
|
|
1118
|
-
"
|
|
1119
|
-
"
|
|
1120
|
-
"
|
|
1121
|
-
"
|
|
1122
|
-
"
|
|
1091
|
+
"https://counter-web.leimondata.cn:7199/log4b.js",
|
|
1092
|
+
"https://counter-web.leimondata.cn:7199/meeting_api_util.js",
|
|
1093
|
+
"https://counter-web.leimondata.cn:7199/mcu.js",
|
|
1094
|
+
"https://counter-web.leimondata.cn:7199/client_record.js",
|
|
1095
|
+
"https://counter-web.leimondata.cn:7199/meeting_vod.js",
|
|
1096
|
+
"https://counter-web.leimondata.cn:7199/remote_record.js",
|
|
1097
|
+
"https://counter-web.leimondata.cn:7199/meeting_invite.js",
|
|
1098
|
+
"https://counter-web.leimondata.cn:7199/meeting_im.js",
|
|
1099
|
+
"https://counter-web.leimondata.cn:7199/meeting_camera_stream.js",
|
|
1100
|
+
"https://counter-web.leimondata.cn:7199/meeting_file_stream.js",
|
|
1101
|
+
"https://counter-web.leimondata.cn:7199/meeting_desk_stream.js",
|
|
1102
|
+
"https://counter-web.leimondata.cn:7199/meeting_html_stream.js",
|
|
1103
|
+
"https://counter-web.leimondata.cn:7199/meeting_beautify_stream.js",
|
|
1104
|
+
"https://counter-web.leimondata.cn:7199/stream.js",
|
|
1105
|
+
"https://counter-web.leimondata.cn:7199/room.js",
|
|
1106
|
+
"https://counter-web.leimondata.cn:7199/backgroundBlur.js",
|
|
1107
|
+
"https://counter-web.leimondata.cn:7199/meeting_api.js",
|
|
1108
|
+
"https://counter-web.leimondata.cn:7199/html2image.js",
|
|
1109
|
+
"https://counter-web.leimondata.cn:7199/reconnecting-websocket.min.js",
|
|
1110
|
+
"https://counter-web.leimondata.cn:7199/mtc_api.js",
|
|
1111
|
+
"https://counter-web.leimondata.cn:7199/BandwidthHandler.js",
|
|
1123
1112
|
"https://gw.alipayobjects.com/os/lib/recordrtc/5.5.9/RecordRTC.min.js",
|
|
1124
|
-
"https://
|
|
1125
|
-
"https://
|
|
1126
|
-
"
|
|
1127
|
-
"
|
|
1128
|
-
"
|
|
1129
|
-
"http://dns.leimon.xyz/beauty.js",
|
|
1130
|
-
"http://dns.leimon.xyz/getMediaInfo.js",
|
|
1113
|
+
"https://counter-web.leimondata.cn:7199/pdf.js",
|
|
1114
|
+
"https://counter-web.leimondata.cn:7199/EBML.js",
|
|
1115
|
+
"https://counter-web.leimondata.cn:7199/adapter.js",
|
|
1116
|
+
"https://counter-web.leimondata.cn:7199/beauty.js",
|
|
1117
|
+
"https://counter-web.leimondata.cn:7199/getMediaInfo.js",
|
|
1131
1118
|
]
|
|
1132
1119
|
const that = this
|
|
1133
1120
|
let i = 0
|
|
@@ -1151,6 +1138,9 @@ class Video extends Component {
|
|
|
1151
1138
|
script.onload = () => {
|
|
1152
1139
|
that.test_controller = new McuController();
|
|
1153
1140
|
that.mountClick()
|
|
1141
|
+
that.setState({
|
|
1142
|
+
loading: false,
|
|
1143
|
+
})
|
|
1154
1144
|
}
|
|
1155
1145
|
}
|
|
1156
1146
|
} else {
|
|
@@ -1439,10 +1429,10 @@ class Video extends Component {
|
|
|
1439
1429
|
isModalVisibleFacial: false
|
|
1440
1430
|
})
|
|
1441
1431
|
};
|
|
1432
|
+
// 坐席签字
|
|
1442
1433
|
transcribingClick = () => {
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
content: JSON.stringify(this.state.transcribingData)
|
|
1434
|
+
this.setState({
|
|
1435
|
+
isModalVisibleSign: true,
|
|
1446
1436
|
})
|
|
1447
1437
|
};
|
|
1448
1438
|
invitationClick = () => {
|
|
@@ -1531,7 +1521,6 @@ class Video extends Component {
|
|
|
1531
1521
|
try {
|
|
1532
1522
|
let result = await API.counterSign({
|
|
1533
1523
|
sessionId: this.state.sessionId,
|
|
1534
|
-
callbackUrl: this.state.signData,
|
|
1535
1524
|
file: data.file
|
|
1536
1525
|
});
|
|
1537
1526
|
console.log(result)
|
|
@@ -1539,7 +1528,6 @@ class Video extends Component {
|
|
|
1539
1528
|
message.success('签字成功')
|
|
1540
1529
|
this.setState({
|
|
1541
1530
|
isModalVisibleSign: false,
|
|
1542
|
-
signData: ''
|
|
1543
1531
|
})
|
|
1544
1532
|
} else {
|
|
1545
1533
|
message.success('签字失败')
|
|
@@ -1556,7 +1544,9 @@ class Video extends Component {
|
|
|
1556
1544
|
render() {
|
|
1557
1545
|
|
|
1558
1546
|
return (
|
|
1547
|
+
|
|
1559
1548
|
<div className="all">
|
|
1549
|
+
<Spin spinning={this.state.loading} tip="视频初始化中...">
|
|
1560
1550
|
<Header></Header>
|
|
1561
1551
|
<div className="health">
|
|
1562
1552
|
<div className="wrapper">
|
|
@@ -1701,7 +1691,6 @@ class Video extends Component {
|
|
|
1701
1691
|
screenName={this.state.screenName}
|
|
1702
1692
|
suspendName={this.state.suspendName}
|
|
1703
1693
|
cameraImg={this.state.cameraImg}
|
|
1704
|
-
isTranscribing={this.state.isTranscribing}
|
|
1705
1694
|
customerList={this.state.customerList}
|
|
1706
1695
|
suspend={this.suspend}
|
|
1707
1696
|
voice={this.voice}
|
|
@@ -1770,8 +1759,9 @@ class Video extends Component {
|
|
|
1770
1759
|
<video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"
|
|
1771
1760
|
webkit-playsinline="true" playsInline={true} x5-playsinline="x5-playsinline"
|
|
1772
1761
|
x-webkit-airplay="true"></video>
|
|
1773
|
-
|
|
1762
|
+
</Spin>
|
|
1774
1763
|
</div>
|
|
1764
|
+
|
|
1775
1765
|
);
|
|
1776
1766
|
}
|
|
1777
1767
|
}
|