react_hsbc_teller 0.0.1
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/.babelrc +4 -0
- package/README.en.md +36 -0
- package/README.md +57 -0
- package/config/webpack.config.js +114 -0
- package/config/webpack.dev.js +108 -0
- package/config/webpack.prod.js +113 -0
- package/package.json +94 -0
- package/packages/api/api.js +135 -0
- package/packages/api/server.js +48 -0
- package/packages/assets/img/Face_recognition.png +0 -0
- package/packages/assets/img/Projection_screen.png +0 -0
- package/packages/assets/img/huazhonghua.png +0 -0
- package/packages/assets/img/icon_Graffiti.png +0 -0
- package/packages/assets/img/icon_Mute.png +0 -0
- package/packages/assets/img/icon_MuteOne.png +0 -0
- package/packages/assets/img/icon_camera.png +0 -0
- package/packages/assets/img/icon_cameraOne.png +0 -0
- package/packages/assets/img/icon_copy.png +0 -0
- package/packages/assets/img/icon_invitation.png +0 -0
- package/packages/assets/img/icon_ocr.png +0 -0
- package/packages/assets/img/icon_suspend.png +0 -0
- package/packages/assets/img/sign_out.png +0 -0
- package/packages/assets/img/yingpin.png +0 -0
- package/packages/assets/img/zanTing.png +0 -0
- package/packages/assets/pdf/1.png +0 -0
- package/packages/assets/pdf/2.png +0 -0
- package/packages/assets/pdf/3.png +0 -0
- package/packages/assets/pdf/4.png +0 -0
- package/packages/assets/pdf/5.png +0 -0
- package/packages/assets/pdf/6.png +0 -0
- package/packages/common/JKL.js +61 -0
- package/packages/common/XML.js +271 -0
- package/packages/common/websocket.js +246 -0
- package/packages/demo/demo.js +27 -0
- package/packages/demo/index.js +3 -0
- package/packages/envconfig/envconfig.js +13 -0
- package/packages/index.js +2 -0
- package/packages/pages/foot/foot.jsx +101 -0
- package/packages/pages/foot/foot.less +49 -0
- package/packages/pages/header/header.jsx +25 -0
- package/packages/pages/header/header.less +52 -0
- package/packages/pages/pdf/pdf.jsx +72 -0
- package/packages/pages/pdf/pdf.less +18 -0
- package/packages/pages/video/video.jsx +1317 -0
- package/packages/pages/video/video.less +97 -0
- package/packages/style/index.less +1 -0
- package/packages/style/reset.less +345 -0
- package/packages/utils/asyncComponent.jsx +27 -0
- package/packages/utils/cell.js +64 -0
- package/packages/utils/mixin.js +27 -0
- package/packages/utils/setRem.js +11 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +40 -0
- package/public/snowman.svg +1 -0
- package/script.js +0 -0
- package/src/index.js +10 -0
- package/src/index.less +1 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.publishVideo1{
|
|
2
|
+
width: 100px;
|
|
3
|
+
height: 100px
|
|
4
|
+
}
|
|
5
|
+
.mixedvideo{
|
|
6
|
+
display: none;
|
|
7
|
+
position:absolute;
|
|
8
|
+
}
|
|
9
|
+
.imgClass{
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
float: right
|
|
13
|
+
}
|
|
14
|
+
.sharedScreen{
|
|
15
|
+
font-size: 10px;
|
|
16
|
+
position: absolute;
|
|
17
|
+
height: 30px;
|
|
18
|
+
line-height: 30px;
|
|
19
|
+
color: red;
|
|
20
|
+
}
|
|
21
|
+
.wrapper {
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
height: 100%;
|
|
24
|
+
width: 100%;
|
|
25
|
+
background: #f3f3f3;
|
|
26
|
+
text-align: center;
|
|
27
|
+
display: grid;
|
|
28
|
+
grid-template-columns: 16.6% 16.6% 16.6% 16.6% 16.6% 16.6%;
|
|
29
|
+
grid-template-rows: 16.6% 16.6% 16.6% 16.6% 16.6% 16.6%;
|
|
30
|
+
}
|
|
31
|
+
.itemed {
|
|
32
|
+
text-align: center;
|
|
33
|
+
// border: 1px solid #fff;
|
|
34
|
+
color: #fff;
|
|
35
|
+
font-weight: bold;
|
|
36
|
+
line-height: 150px;
|
|
37
|
+
}
|
|
38
|
+
.item1 {
|
|
39
|
+
grid-column-start: 1;
|
|
40
|
+
grid-column-end: 6;
|
|
41
|
+
grid-row-start: 1;
|
|
42
|
+
grid-row-end: 7;
|
|
43
|
+
}
|
|
44
|
+
.item2 {
|
|
45
|
+
grid-column-start: 1;
|
|
46
|
+
grid-column-end: 3;
|
|
47
|
+
grid-row-start: 4;
|
|
48
|
+
grid-row-end: 1;
|
|
49
|
+
position: absolute;
|
|
50
|
+
z-index: 2000;
|
|
51
|
+
}
|
|
52
|
+
.videoFit{
|
|
53
|
+
object-fit: cover;
|
|
54
|
+
}
|
|
55
|
+
.itemPublic {
|
|
56
|
+
grid-column-start: 1;
|
|
57
|
+
grid-column-end: 7;
|
|
58
|
+
grid-row-start: 1;
|
|
59
|
+
grid-row-end: 7;
|
|
60
|
+
}
|
|
61
|
+
.isBack {
|
|
62
|
+
transform: rotateY(180deg);
|
|
63
|
+
background: #333;
|
|
64
|
+
}
|
|
65
|
+
.video1{
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
object-fit: cover
|
|
69
|
+
}
|
|
70
|
+
.video{
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 100%;
|
|
73
|
+
}
|
|
74
|
+
.video1Div{
|
|
75
|
+
width: 100%;
|
|
76
|
+
height: 100%;
|
|
77
|
+
}
|
|
78
|
+
.health{
|
|
79
|
+
margin: 20px;
|
|
80
|
+
height: calc(100vh - 15px);
|
|
81
|
+
}
|
|
82
|
+
.all{
|
|
83
|
+
height: 100%;
|
|
84
|
+
}
|
|
85
|
+
.ownClass{
|
|
86
|
+
height: calc(100vh - 15px);
|
|
87
|
+
object-fit: cover;
|
|
88
|
+
width: 100%;
|
|
89
|
+
}
|
|
90
|
+
.publishVideoClass{
|
|
91
|
+
height: 100%;
|
|
92
|
+
width: 100%;
|
|
93
|
+
}
|
|
94
|
+
.publishVideoDiv{
|
|
95
|
+
height: 100%;
|
|
96
|
+
width: 100%;
|
|
97
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "reset.less";
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* 1. Correct the line height in all browsers.
|
|
4
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
html {
|
|
8
|
+
line-height: 1.15; /* 1 */
|
|
9
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Sections
|
|
13
|
+
========================================================================== */
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Remove the margin in all browsers.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Render the `main` element consistently in IE.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
main {
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
33
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
h1 {
|
|
37
|
+
font-size: 2em;
|
|
38
|
+
margin: 0.67em 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Grouping content
|
|
42
|
+
========================================================================== */
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 1. Add the correct box sizing in Firefox.
|
|
46
|
+
* 2. Show the overflow in Edge and IE.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
hr {
|
|
50
|
+
box-sizing: content-box; /* 1 */
|
|
51
|
+
height: 0; /* 1 */
|
|
52
|
+
overflow: visible; /* 2 */
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
57
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
pre {
|
|
61
|
+
font-family: monospace, monospace; /* 1 */
|
|
62
|
+
font-size: 1em; /* 2 */
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Text-level semantics
|
|
66
|
+
========================================================================== */
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Remove the gray background on active links in IE 10.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
a {
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
78
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
abbr[title] {
|
|
82
|
+
border-bottom: none; /* 1 */
|
|
83
|
+
text-decoration: underline; /* 2 */
|
|
84
|
+
text-decoration: underline dotted; /* 2 */
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
b,
|
|
92
|
+
strong {
|
|
93
|
+
font-weight: bolder;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
98
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
code,
|
|
102
|
+
kbd,
|
|
103
|
+
samp {
|
|
104
|
+
font-family: monospace, monospace; /* 1 */
|
|
105
|
+
font-size: 1em; /* 2 */
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Add the correct font size in all browsers.
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
small {
|
|
113
|
+
font-size: 80%;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
118
|
+
* all browsers.
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
sub,
|
|
122
|
+
sup {
|
|
123
|
+
font-size: 75%;
|
|
124
|
+
line-height: 0;
|
|
125
|
+
position: relative;
|
|
126
|
+
vertical-align: baseline;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
sub {
|
|
130
|
+
bottom: -0.25em;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
sup {
|
|
134
|
+
top: -0.5em;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Embedded content
|
|
138
|
+
========================================================================== */
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Remove the border on images inside links in IE 10.
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
img {
|
|
145
|
+
border-style: none;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Forms
|
|
149
|
+
========================================================================== */
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* 1. Change the font styles in all browsers.
|
|
153
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
button,
|
|
157
|
+
input,
|
|
158
|
+
optgroup,
|
|
159
|
+
select,
|
|
160
|
+
textarea {
|
|
161
|
+
font-family: inherit; /* 1 */
|
|
162
|
+
font-size: 100%; /* 1 */
|
|
163
|
+
line-height: 1.15; /* 1 */
|
|
164
|
+
margin: 0; /* 2 */
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Show the overflow in IE.
|
|
169
|
+
* 1. Show the overflow in Edge.
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
button,
|
|
173
|
+
input { /* 1 */
|
|
174
|
+
overflow: visible;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
179
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
180
|
+
*/
|
|
181
|
+
|
|
182
|
+
button,
|
|
183
|
+
select { /* 1 */
|
|
184
|
+
text-transform: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
189
|
+
*/
|
|
190
|
+
|
|
191
|
+
button,
|
|
192
|
+
[type="button"],
|
|
193
|
+
[type="reset"],
|
|
194
|
+
[type="submit"] {
|
|
195
|
+
-webkit-appearance: button;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Remove the inner border and padding in Firefox.
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
button::-moz-focus-inner,
|
|
203
|
+
[type="button"]::-moz-focus-inner,
|
|
204
|
+
[type="reset"]::-moz-focus-inner,
|
|
205
|
+
[type="submit"]::-moz-focus-inner {
|
|
206
|
+
border-style: none;
|
|
207
|
+
padding: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Restore the focus styles unset by the previous rule.
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
button:-moz-focusring,
|
|
215
|
+
[type="button"]:-moz-focusring,
|
|
216
|
+
[type="reset"]:-moz-focusring,
|
|
217
|
+
[type="submit"]:-moz-focusring {
|
|
218
|
+
outline: 1px dotted ButtonText;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Correct the padding in Firefox.
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
fieldset {
|
|
226
|
+
padding: 0.35em 0.75em 0.625em;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
231
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
232
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
233
|
+
* `fieldset` elements in all browsers.
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
legend {
|
|
237
|
+
box-sizing: border-box; /* 1 */
|
|
238
|
+
color: inherit; /* 2 */
|
|
239
|
+
display: table; /* 1 */
|
|
240
|
+
max-width: 100%; /* 1 */
|
|
241
|
+
padding: 0; /* 3 */
|
|
242
|
+
white-space: normal; /* 1 */
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
progress {
|
|
250
|
+
vertical-align: baseline;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
textarea {
|
|
258
|
+
overflow: auto;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* 1. Add the correct box sizing in IE 10.
|
|
263
|
+
* 2. Remove the padding in IE 10.
|
|
264
|
+
*/
|
|
265
|
+
|
|
266
|
+
[type="checkbox"],
|
|
267
|
+
[type="radio"] {
|
|
268
|
+
box-sizing: border-box; /* 1 */
|
|
269
|
+
padding: 0; /* 2 */
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
274
|
+
*/
|
|
275
|
+
|
|
276
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
277
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
278
|
+
height: auto;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
283
|
+
* 2. Correct the outline style in Safari.
|
|
284
|
+
*/
|
|
285
|
+
|
|
286
|
+
[type="search"] {
|
|
287
|
+
-webkit-appearance: textfield; /* 1 */
|
|
288
|
+
outline-offset: -2px; /* 2 */
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
[type="search"]::-webkit-search-decoration {
|
|
296
|
+
-webkit-appearance: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
301
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
302
|
+
*/
|
|
303
|
+
|
|
304
|
+
::-webkit-file-upload-button {
|
|
305
|
+
-webkit-appearance: button; /* 1 */
|
|
306
|
+
font: inherit; /* 2 */
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* Interactive
|
|
310
|
+
========================================================================== */
|
|
311
|
+
|
|
312
|
+
/*
|
|
313
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
314
|
+
*/
|
|
315
|
+
|
|
316
|
+
details {
|
|
317
|
+
display: block;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/*
|
|
321
|
+
* Add the correct display in all browsers.
|
|
322
|
+
*/
|
|
323
|
+
|
|
324
|
+
summary {
|
|
325
|
+
display: list-item;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/* Misc
|
|
329
|
+
========================================================================== */
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Add the correct display in IE 10+.
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
template {
|
|
336
|
+
display: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Add the correct display in IE 10.
|
|
341
|
+
*/
|
|
342
|
+
|
|
343
|
+
[hidden] {
|
|
344
|
+
display: none;
|
|
345
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { Component } from "react";
|
|
2
|
+
|
|
3
|
+
export default function asyncComponent(importComponent) {
|
|
4
|
+
class AsyncComponent extends Component {
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super(props);
|
|
7
|
+
|
|
8
|
+
this.state = {
|
|
9
|
+
component: null
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
async componentDidMount() {
|
|
14
|
+
const { default: component } = await importComponent();
|
|
15
|
+
|
|
16
|
+
this.setState({component});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
const C = this.state.component;
|
|
21
|
+
|
|
22
|
+
return C ? <C {...this.props} /> : null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return AsyncComponent;
|
|
27
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* eslint-disable eqeqeq */
|
|
2
|
+
/* eslint-disable no-undef */
|
|
3
|
+
|
|
4
|
+
var index = 0
|
|
5
|
+
var maxIndex = 10
|
|
6
|
+
var callbackRegister = new Map()
|
|
7
|
+
function callNimIM(method, json, callback) {
|
|
8
|
+
// 回调处理
|
|
9
|
+
const fn = function(status, resData) {
|
|
10
|
+
// 回调
|
|
11
|
+
if (callback) {
|
|
12
|
+
// -----------------------//
|
|
13
|
+
// 根据第一个字段code来判断调用是否成功,成功取值data中的数据,失败取值message中的数据
|
|
14
|
+
// 可以根据需要,在公共层判断,还是逻辑层判断
|
|
15
|
+
// -----------------------//
|
|
16
|
+
console.log('resData.code---' + resData.code)
|
|
17
|
+
if (resData.code !== 0) {
|
|
18
|
+
alert('调用失败,message=' + resData.message)
|
|
19
|
+
}
|
|
20
|
+
callback(resData.code, resData.message, resData.data)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const callId = _generateId()
|
|
25
|
+
|
|
26
|
+
callbackRegister.set(callId, fn)
|
|
27
|
+
if (method == 'sendGroupMsg') {
|
|
28
|
+
sendMessage(json.groupId, (window.sessionStorage.getItem('tellerId') + '@' + window.sessionStorage.getItem('hostname')), 'groupchat', json.content)
|
|
29
|
+
} else if (method == 'sendCustomCmdMsg') {
|
|
30
|
+
sendMessage(json.customId, (window.sessionStorage.getItem('tellerId') + '@' + window.sessionStorage.getItem('hostname')), 'groupchat', json.content)
|
|
31
|
+
} else if (method == 'transfer' || method == 'transferreject' || method == 'transferagree') {
|
|
32
|
+
// 发起转接或者邀请
|
|
33
|
+
json.event = 'IMVedio'
|
|
34
|
+
if (method == 'transfer') {
|
|
35
|
+
json.command = 'transfer'
|
|
36
|
+
} else if (method == 'transferagree') {
|
|
37
|
+
json.command = 'transfer_agree'
|
|
38
|
+
} else if (method == 'transferreject') {
|
|
39
|
+
json.command = 'transfer_reject'
|
|
40
|
+
}
|
|
41
|
+
console.log('json', json)
|
|
42
|
+
sendMessage((json.distUserId + '@' + window.sessionStorage.getItem('hostname')), (window.sessionStorage.getItem('tellerId') + '@' + window.sessionStorage.getItem('hostname')), 'chat', JSON.stringify(json))
|
|
43
|
+
}
|
|
44
|
+
// window.RemoteShellBridge.callNimIM(method, JSON.stringify(json), callId)
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 生成索引ID
|
|
48
|
+
* @returns {string}
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
function _generateId() {
|
|
52
|
+
// 增加索引
|
|
53
|
+
index++
|
|
54
|
+
// 超出最大值后,循环
|
|
55
|
+
if (index >= maxIndex) {
|
|
56
|
+
index = 0
|
|
57
|
+
}
|
|
58
|
+
// 返回id
|
|
59
|
+
return 'remote_' + index
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
_generateId,
|
|
63
|
+
callNimIM,
|
|
64
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default methods => {
|
|
2
|
+
return target => {
|
|
3
|
+
Object.assign(target.prototype, methods);
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 字符串填充函数
|
|
9
|
+
* @param {string} value 目标字符串
|
|
10
|
+
* @param {array} position 需要填充的位置
|
|
11
|
+
* @param {string} padstr 填充字符串
|
|
12
|
+
* @return {string} 返回目标字符串
|
|
13
|
+
*/
|
|
14
|
+
export const padStr = (value, position, padstr, inputElement) => {
|
|
15
|
+
position.forEach((item, index) => {
|
|
16
|
+
if (value.length > item + index) {
|
|
17
|
+
value = value.substring(0, item + index) + padstr + value.substring(item + index)
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
value = value.trim();
|
|
21
|
+
// 解决安卓部分浏览器插入空格后光标错位问题
|
|
22
|
+
requestAnimationFrame(() => {
|
|
23
|
+
inputElement.setSelectionRange(value.length, value.length);
|
|
24
|
+
})
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
(function(psdw){
|
|
2
|
+
var dpr=0 , rem=0 , scale=0;
|
|
3
|
+
var htmlDOM=document.documentElement;
|
|
4
|
+
dpr=window.devicePixelRatio;
|
|
5
|
+
var currentWidth=htmlDOM.clientWidth;
|
|
6
|
+
scale=currentWidth/psdw;
|
|
7
|
+
rem=psdw/14;
|
|
8
|
+
rem=rem*scale;
|
|
9
|
+
htmlDOM.style.fontSize=rem+'px';
|
|
10
|
+
htmlDOM.setAttribute('data-dpr',dpr)
|
|
11
|
+
})(1920)
|
|
Binary file
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8"/>
|
|
5
|
+
<link rel="shortcut icon" href="favicon.ico">
|
|
6
|
+
<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport" />
|
|
7
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/log4b.js"></script>
|
|
8
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_api_util.js"></script>
|
|
9
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/mcu.js"></script>
|
|
10
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/client_record.js"></script>
|
|
11
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_vod.js"></script>
|
|
12
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/remote_record.js"></script>
|
|
13
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_invite.js"></script>
|
|
14
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_im.js"></script>
|
|
15
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_camera_stream.js"></script>
|
|
16
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_file_stream.js"></script>
|
|
17
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_desk_stream.js"></script>
|
|
18
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_html_stream.js"></script>
|
|
19
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_beautify_stream.js"></script>
|
|
20
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/stream.js"></script>
|
|
21
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/room.js"></script>
|
|
22
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/backgroundBlur.js"></script>
|
|
23
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/meeting_api.js"></script>
|
|
24
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/html2image.js"></script>
|
|
25
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/reconnecting-websocket.min.js"></script>
|
|
26
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/mtc_api.js"></script>
|
|
27
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/BandwidthHandler.js"></script>
|
|
28
|
+
<!-- <script type="text/javascript" src="http://dns.leimon.xyz/RecordRTC.min.js"></script>-->
|
|
29
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/pdf.js"></script>
|
|
30
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/EBML.js"></script>
|
|
31
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/adapter.js"></script>
|
|
32
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/beauty.js"></script>
|
|
33
|
+
<script type="text/javascript" src="http://dns.leimon.xyz/getMediaInfo.js"></script>
|
|
34
|
+
<!-- <script type="text/javascript" src="http://dns.leimon.xyz/websocket.js"></script>-->
|
|
35
|
+
<title>汇丰银行营业厅 | <%= htmlWebpackPlugin.options.title %></title>
|
|
36
|
+
</head>
|
|
37
|
+
<body>
|
|
38
|
+
<div id="root"></div>
|
|
39
|
+
</body>
|
|
40
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="692d8699-1238-4b33-ba17-8bcd4ac1de29" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="566.04" height="759.48" viewBox="0 0 566.04 759.48"><defs><linearGradient id="1c71d675-c1b9-4d0f-bd4a-1880cc952bc1" x1="601.75" y1="829.74" x2="601.75" y2="120.23" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="gray" stop-opacity="0.25"/><stop offset="0.54" stop-color="gray" stop-opacity="0.12"/><stop offset="1" stop-color="gray" stop-opacity="0.1"/></linearGradient><linearGradient id="dca6d3c2-408a-4324-89e9-e21c9b320daf" x1="602.33" y1="155.81" x2="602.33" y2="70.26" xlink:href="#1c71d675-c1b9-4d0f-bd4a-1880cc952bc1"/><linearGradient id="7c916d8a-5b23-438f-825e-48cc083aa3fe" x1="396.02" y1="304.93" x2="396.02" y2="70.55" xlink:href="#1c71d675-c1b9-4d0f-bd4a-1880cc952bc1"/><linearGradient id="60e8d838-c250-4804-a89f-cb3484b6bec6" x1="803.94" y1="304.1" x2="803.94" y2="103.3" xlink:href="#1c71d675-c1b9-4d0f-bd4a-1880cc952bc1"/></defs><title>snowman_1</title><path d="M761.32,396.69a163.62,163.62,0,0,0,3.32-32.89c0-65-37.3-112.42-92.39-138.55,4.85-10.11,6.77-16.59,6.77-28.55,0-42.68-37.49-76.47-80.16-76.47S523.35,154,523.35,196.7c0,12,1,7.1,4.37,29.68-55.09,26.12-88.86,72.39-88.86,137.42,0,2.22.06,4.42.14,6.61a5.43,5.43,0,0,0,.18,3.55,163,163,0,0,0,3,22.73C398.92,443,372,508,372,580c0,140.72,102.85,249.79,229.73,249.79S831.47,720.67,831.47,580C831.47,508,804.57,443,761.32,396.69Z" transform="translate(-316.98 -70.26)" fill="url(#1c71d675-c1b9-4d0f-bd4a-1880cc952bc1)"/><path d="M752.9,400.57a154.54,154.54,0,0,0-85.13-170.64,73.19,73.19,0,1,0-132,0,154.31,154.31,0,0,0-88.27,139.49c0,2.1.05,4.18.14,6.26a5.14,5.14,0,0,0,.17,3.36,154.4,154.4,0,0,0,2.84,21.53c-41,43.89-66.45,105.43-66.45,173.59,0,133.29,97.42,241.34,217.6,241.34s217.6-108.05,217.6-241.34C819.35,506,793.86,444.46,752.9,400.57Z" transform="translate(-316.98 -70.26)" fill="#fff"/><circle cx="252.36" cy="104.9" r="6.94" fill="#263238"/><circle cx="307.92" cy="104.9" r="6.94" fill="#263238"/><path d="M535.77,229.56s50.93,57.87,57.87,96.07L618,315.21l-34.72-62.5s56.71,3.47,84.49-23.15Z" transform="translate(-316.98 -70.26)" fill="#6c63ff"/><path d="M591.33,197.34v63.29a4.81,4.81,0,0,0,4.81,4.81h0a4.81,4.81,0,0,0,4.8-4.43l5-63.29a4.81,4.81,0,0,0-4.8-5.19h-5A4.81,4.81,0,0,0,591.33,197.34Z" transform="translate(-316.98 -70.26)" fill="#ff6e40"/><path d="M650,127.16V88.54a17.32,17.32,0,0,0-24.19-15.89c-16.28,7-30.64,4.39-41.57-.7a17.38,17.38,0,0,0-24.82,13.91l-4.43,41.31H540.3v28.65h124V127.16Z" transform="translate(-316.98 -70.26)" fill="url(#dca6d3c2-408a-4324-89e9-e21c9b320daf)"/><rect x="225.74" y="59.76" width="119.22" height="21.99" fill="#6c63ff"/><path d="M585.8,75.59a44.78,44.78,0,0,0,37.88.64,15.78,15.78,0,0,1,22,14.48v41.63H558.92l4.27-44.07A15.84,15.84,0,0,1,585.8,75.59Z" transform="translate(-316.98 -70.26)" fill="#6c63ff"/><circle cx="281.3" cy="292.41" r="8.1" fill="#263238"/><circle cx="281.3" cy="319.03" r="8.1" fill="#263238"/><circle cx="281.3" cy="345.65" r="8.1" fill="#263238"/><circle cx="281.3" cy="372.27" r="8.1" fill="#263238"/><path d="M470.88,292.87a167.92,167.92,0,0,1-98.23-87.26c23.45-1,41.47-18.9,50.53-39.69C435,138.69,438.46,107,444.52,78.15c1.6-7.63-10.11-10.89-11.71-3.23-5.17,24.67-9,50.14-16.38,74.26-6.57,21.5-21.43,44.68-46.6,44.33a6.14,6.14,0,0,0-2.24.39A170.35,170.35,0,0,1,357.39,110c1-7.74-11.15-7.64-12.15,0A177.66,177.66,0,0,0,347,166.76a42.18,42.18,0,0,0-27.22,6.68c-6.53,4.26-.43,14.78,6.13,10.49a30.32,30.32,0,0,1,24-4.46A182.27,182.27,0,0,0,467.65,304.58C475.09,307.08,478.25,295.34,470.88,292.87Z" transform="translate(-316.98 -70.26)" fill="url(#7c916d8a-5b23-438f-825e-48cc083aa3fe)"/><path d="M471.53,289.69a159.24,159.24,0,0,1-93.15-82.75c22.23-1,39.33-17.93,47.92-37.64,11.25-25.82,14.49-55.83,20.24-83.24,1.52-7.23-9.59-10.33-11.11-3.06-4.9,23.39-8.55,47.55-15.53,70.42-6.23,20.39-20.32,42.37-44.19,42a5.83,5.83,0,0,0-2.13.37,161.54,161.54,0,0,1-9.66-79.58c1-7.34-10.57-7.25-11.52,0A168.48,168.48,0,0,0,354,170.11a40,40,0,0,0-25.82,6.34c-6.19,4-.41,14,5.81,9.95a28.75,28.75,0,0,1,22.77-4.23A172.85,172.85,0,0,0,468.46,300.8C475.52,303.17,478.52,292,471.53,289.69Z" transform="translate(-316.98 -70.26)" fill="#795548"/><path d="M880.22,172.57A42.2,42.2,0,0,0,853,165.88a177.74,177.74,0,0,0,1.75-56.81c-1-7.65-13.17-7.75-12.15,0,10.46,80-36.75,157.26-113.53,183-7.38,2.47-4.22,14.21,3.23,11.72A182.34,182.34,0,0,0,850.07,178.6a30.33,30.33,0,0,1,24,4.46C880.66,187.35,886.76,176.83,880.22,172.57Z" transform="translate(-316.98 -70.26)" fill="url(#60e8d838-c250-4804-a89f-cb3484b6bec6)"/><path d="M871.73,176.45a40,40,0,0,0-25.82-6.34,168.48,168.48,0,0,0,1.66-53.85c-.95-7.25-12.48-7.34-11.52,0,9.92,75.87-34.83,149.07-107.62,173.44-7,2.34-4,13.47,3.06,11.11A172.85,172.85,0,0,0,843.15,182.16a28.75,28.75,0,0,1,22.77,4.23C872.15,190.46,877.93,180.49,871.73,176.45Z" transform="translate(-316.98 -70.26)" fill="#795548"/></svg>
|
package/script.js
ADDED
|
File without changes
|
package/src/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ReactDOM from "react-dom";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
// import { HSBC } from "../lib/hsbc";
|
|
5
|
+
import {HSBC} from "../packages";
|
|
6
|
+
|
|
7
|
+
ReactDOM.render(
|
|
8
|
+
<div className="hsbc"><HSBC></HSBC></div>,
|
|
9
|
+
document.getElementById("root")
|
|
10
|
+
);
|
package/src/index.less
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.hsbc {}
|