react_hsbc_teller 2.0.99 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "2.0.99",
3
+ "version": "2.1.1",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -51,7 +51,7 @@ sessionId
51
51
  financialOffice: "defaultOfficeId", // 理财室
52
52
  audioinputNameList: ['默认值 - 外部麦克风 (Realtek(R) Audio)'],
53
53
  needPreSale: true,
54
- needIpad: true,
54
+ needIpad: false,
55
55
  }
56
56
  componentWillMount() {
57
57
  // if(window.localStorage.getItem('sessionId') && window.localStorage.getItem('sessionId') != 'null' && window.localStorage.getItem('sessionId') != 'undefined') {
@@ -66,7 +66,7 @@ import axios from 'axios';
66
66
  import CryptoJS from "crypto-js";
67
67
 
68
68
 
69
- const SDK_VERISON = '2.0.99'
69
+ const SDK_VERISON = '2.1.1'
70
70
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
71
71
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
72
72
  const { Option } = Select;
@@ -1963,6 +1963,7 @@ class Video extends Component {
1963
1963
  if (Mival.sessionId == this.state.sessionId) {
1964
1964
  // 1-开启,2-关闭
1965
1965
  if (Mival.type == 1) {
1966
+ this.state.isSfpMeeting = true
1966
1967
  this.switchExternal()
1967
1968
  this.saveLog('whiteboard start, typeId=1218,')
1968
1969
  if (typeof this.props.sfpCallback === 'function'){
@@ -3314,7 +3315,17 @@ class Video extends Component {
3314
3315
  })
3315
3316
  this.state.isSharedScreen = false
3316
3317
  this.setSharedScreenState(false)
3317
- this.setSharedScreenTimer(false)
3318
+ // 1218--sfp可以通过api去唤起meeting alisdk的白板进行文档签署
3319
+ // 在这里要多判断一层,要是收到通知1218导致的取消发布的时候不去调用setSharedScreenTimer
3320
+
3321
+ if(!this.state.isSfpMeeting){
3322
+ this.setSharedScreenTimer(false)
3323
+ } else {
3324
+ console.log('isSfpMeeting: true')
3325
+ this.saveLog('isSfpMeeting: true')
3326
+ this.state.isSfpMeeting = false
3327
+ }
3328
+
3318
3329
  this.saveLog('Stop share')
3319
3330
  this.setState({
3320
3331
 
@@ -4913,6 +4924,7 @@ class Video extends Component {
4913
4924
  }
4914
4925
  }
4915
4926
  setSharedScreenTimer = (state) => {
4927
+ console.log('screenName',this.state.screenName)
4916
4928
  // 设置定时,如果x秒内没有重新开启投屏 则弹出提示
4917
4929
  if (!this.props.screenSharedInterval || typeof this.props.screenSharedInterval != 'number') return;
4918
4930
  if (state) {
@@ -7498,7 +7510,7 @@ class Video extends Component {
7498
7510
  <div className="projection" style={{ background: this.state.tabTitles.length > 0 ? '#f0f0f0' : '#ffffff' }}>
7499
7511
  {tabTitleList}
7500
7512
  {/* <img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" /> */}
7501
- <div id="whiteboardDIV" style={{ height: 'calc(100% - 33px)' }}>
7513
+ <div id="whiteboardDIV" style={{ height: 'calc(100%)' }}>
7502
7514
  <CanvasHome zIndexNum={this.state.zIndexNum} style={{ width: isGraffiti ? this.state.widthVideo + 'px' : this.state.whiteboardWidth + 'Px', height: this.state.whiteboardHeight + 'Px', top: this.state.whiteboardTop + 'Px', left: isGraffiti ? this.state.leftVideo + 'px' : this.state.whiteboardLeft + 'Px' }}>
7503
7515
  {this.state.operateShow &&
7504
7516
  <OpreateDiv id="operate">
@@ -1,667 +0,0 @@
1
- .publishVideo1 {
2
- width: 100px;
3
- height: 100px;
4
- }
5
- .mixedvideo {
6
- display: none;
7
- position: absolute;
8
- object-fit: cover;
9
- }
10
- .imgClass {
11
- width: 100%;
12
- height: 100%;
13
- float: right;
14
- }
15
- .imgClassVoice {
16
- width: 25Px;
17
- height: 24Px;
18
- margin-bottom: 4Px;
19
- }
20
- .sharedScreen {
21
- font-size: 10px;
22
- position: absolute;
23
- height: 30px;
24
- line-height: 30px;
25
- color: red;
26
- }
27
- .wrapper {
28
- overflow: auto;
29
- display: flex;
30
- flex-direction: column;
31
- height: 100%;
32
- width: 20%;
33
- background: #f3f3f3;
34
- text-align: center;
35
- margin-left: 20px;
36
- }
37
- .isNoVideo {
38
- display: none;
39
- }
40
- .itemed {
41
- text-align: center;
42
- color: #fff;
43
- font-weight: bold;
44
- min-height: 170px;
45
- position: relative;
46
- background: #333;
47
- margin-bottom: 20px;
48
- border-radius: 6px;
49
- }
50
- .videoFit {
51
- object-fit: cover !important;
52
- }
53
- .video1 {
54
- width: 100%;
55
- height: 100%;
56
- object-fit: cover;
57
- border-radius: 6px;
58
- }
59
- .videoTab {
60
- width: 100%;
61
- height: 100%;
62
- object-fit: contain;
63
- border-radius: 6px;
64
- }
65
- .video {
66
- width: 100%;
67
- height: 100%;
68
- object-fit: cover;
69
- border-radius: 6px;
70
- }
71
- .video1Div {
72
- width: 100%;
73
- height: 100%;
74
- }
75
- .health {
76
- padding: 20Px;
77
- background: #f0f0f0;
78
- }
79
- .healthVideo {
80
- height: calc(100vh - 12.9125rem);
81
- width: 100%;
82
- display: inline-flex;
83
- }
84
- .all {
85
- height: 100%;
86
- }
87
- .ownClass {
88
- height: calc(100vh - 15px);
89
- object-fit: cover;
90
- width: 100%;
91
- }
92
- .publishVideoClass {
93
- height: 100%;
94
- width: 100%;
95
- object-fit: cover;
96
- border-radius: 6px;
97
- }
98
- .publishVideoDiv {
99
- height: 100%;
100
- width: 100%;
101
- border-radius: 6px;
102
- }
103
- .invitationSpan {
104
- margin-top: 5px;
105
- margin-right: 15px;
106
- float: right;
107
- height: 37px !important;
108
- width: 80px !important;
109
- font-size: 16px !important;
110
- border: 1px #3E505D solid !important;
111
- background: #3E505D !important;
112
- color: #fff !important;
113
- }
114
- .inputClick {
115
- width: 65%;
116
- height: 46px;
117
- border-radius: 2px;
118
- outline: none;
119
- font-size: 17px;
120
- padding: 0 5px;
121
- border: 1px #707070 solid;
122
- }
123
- .modalSpan {
124
- margin-right: 20px;
125
- font-size: 17px;
126
- color: #666666;
127
- }
128
- .invitationImg {
129
- width: 20px;
130
- height: 20px;
131
- }
132
- .invitationButton {
133
- color: #1a9adc !important;
134
- border: none !important;
135
- background: #fff !important;
136
- }
137
- .invitationDiv {
138
- margin-left: 40px;
139
- margin-bottom: 15px;
140
- }
141
- .invitationDiv input::-webkit-inner-spin-button {
142
- -webkit-appearance: none;
143
- appearance: none;
144
- margin: 0;
145
- }
146
- .faceImg {
147
- width: 60%;
148
- margin-bottom: 20Px;
149
- }
150
- .faceBody {
151
- text-align: center;
152
- height: 100%;
153
- width: calc(100% - 150px);
154
- }
155
- .faceBody .resuleCard {
156
- text-align: -webkit-left;
157
- padding: 0Px 2Px;
158
- }
159
- .faceBody .resuleCard div {
160
- font-size: 13Px;
161
- color: #646464;
162
- margin: 10Px 20Px;
163
- }
164
- .faceBody .resuleCard div input {
165
- border: #DCDCDC 1px solid;
166
- width: 15rem;
167
- height: 2rem;
168
- line-height: 2rem;
169
- margin-left: 15px;
170
- }
171
- .faceBody .resuleCard div span {
172
- display: inline-block;
173
- min-width: 5rem;
174
- }
175
- .content {
176
- height: 200px;
177
- border-radius: 4px;
178
- border: 1px dashed #DDDDDD;
179
- margin: 24px;
180
- margin-bottom: 3rem;
181
- flex: 1;
182
- }
183
- .ant-spin-nested-loading,
184
- .ant-spin-container {
185
- height: 100%;
186
- }
187
- .projection {
188
- width: 80%;
189
- position: relative;
190
- color: #333;
191
- border-radius: 0 4px 4px 4px;
192
- text-align: left;
193
- }
194
- .projection .videoDiv {
195
- width: 100%;
196
- height: 100%;
197
- }
198
- .projection .videoDiv .video {
199
- width: 100%;
200
- height: 100%;
201
- background: rgba(0, 0, 0, 0.65);
202
- }
203
- .customerTitle {
204
- background: rgba(0, 0, 0, 0.65);
205
- display: inline-flex;
206
- position: absolute;
207
- align-items: center;
208
- left: 10px;
209
- line-height: 40px;
210
- bottom: 10px;
211
- height: 40px;
212
- border-radius: 4px;
213
- }
214
- .tellerTitle {
215
- background: rgba(0, 0, 0, 0.65);
216
- display: inline-flex;
217
- position: absolute;
218
- left: 10px;
219
- line-height: 40px;
220
- bottom: 10px;
221
- height: 40px;
222
- border-radius: 4px;
223
- font-size: 14px;
224
- }
225
- .titleBig {
226
- max-width: 30%;
227
- }
228
- .titleSamlle {
229
- max-width: 70%;
230
- }
231
- .titleName {
232
- white-space: nowrap;
233
- text-overflow: ellipsis;
234
- overflow: hidden;
235
- padding-right: 10px;
236
- }
237
- .themeClass {
238
- position: absolute;
239
- top: 0;
240
- left: 0;
241
- right: 0;
242
- bottom: 0;
243
- margin: auto;
244
- width: 500px;
245
- height: 300px;
246
- font-size: 22px;
247
- color: #222222;
248
- font-weight: 600;
249
- transform: translateX(-100px);
250
- }
251
- .themeClass ul li {
252
- list-style: none;
253
- margin: 21px 0;
254
- text-align: left;
255
- }
256
- .themeClass ul li span {
257
- font-size: 20px;
258
- width: 143px;
259
- text-align: left;
260
- display: inline-block;
261
- }
262
- .themeClass ul li .labelClass {
263
- font-size: 16px;
264
- text-align: left;
265
- display: inline-block;
266
- }
267
- .button {
268
- display: inline-flex;
269
- }
270
- .button .selectSee {
271
- max-width: 8rem;
272
- height: 32px;
273
- text-align: center;
274
- background: #303D46;
275
- border-radius: 0 0 0.104167rem 0.104167rem;
276
- border: 0.052083rem solid #303D46;
277
- color: #ffffff;
278
- font-size: 14px;
279
- }
280
- .button .noSelest {
281
- max-width: 8rem;
282
- height: 32px;
283
- text-align: center;
284
- background: #D7D8D6;
285
- border-radius: 0 0 0.104167rem 0.104167rem;
286
- border: 0.052083rem solid #D7D8D6;
287
- color: #303D46;
288
- font-size: 14px;
289
- }
290
- .button div {
291
- font-size: 16px;
292
- color: #FFFFFF;
293
- padding: 6px 13px;
294
- }
295
- .envClass {
296
- margin-bottom: 0;
297
- padding-left: 1.25rem;
298
- }
299
- .ant-collapse > .ant-collapse-item > .ant-collapse-header {
300
- font-weight: bold;
301
- }
302
- .ant-collapse > .ant-collapse-item.panel-error > .ant-collapse-header {
303
- color: #DA0110;
304
- }
305
- .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {
306
- padding-top: 0 !important;
307
- }
308
- .ant-collapse-header img {
309
- width: 16px;
310
- height: 16px;
311
- margin-left: 10px;
312
- margin-bottom: 1px;
313
- }
314
- .voiceClass {
315
- width: 25Px;
316
- height: 25.3Px;
317
- margin-bottom: 1Px;
318
- }
319
- .cameraAnMicrophone {
320
- margin: 10px 20px;
321
- }
322
- .ant-modal-header {
323
- border-bottom: none !important;
324
- }
325
- .ant-modal-body {
326
- padding: 0 !important;
327
- }
328
- .ant-modal-title {
329
- font-size: 22px !important;
330
- color: #333333 !important;
331
- }
332
- .ant-modal-footer {
333
- margin-top: 0px!important;
334
- }
335
- .modelButtonCancel {
336
- width: 100px!important;
337
- height: 40px!important;
338
- font-size: 16px!important;
339
- color: #333 !important;
340
- border: 1px #333 solid !important;
341
- background: #fff !important;
342
- border-spacing: 20px!important;
343
- }
344
- .modelNoButton {
345
- margin-left: 10px;
346
- }
347
- .modelButtonCancelOne {
348
- width: 170px!important;
349
- height: 40px!important;
350
- font-size: 16px!important;
351
- color: #5C5C5C !important;
352
- border: 1px #5C5C5C solid !important;
353
- border-spacing: 20px!important;
354
- background: #d9d9d9 !important;
355
- }
356
- .modelButtonOkInvitation {
357
- width: 170px!important;
358
- height: 40px!important;
359
- font-size: 16px!important;
360
- color: #ffffff !important;
361
- border: 1px #DB0011 solid !important;
362
- background: #DB0011 !important;
363
- border-spacing: 20px!important;
364
- }
365
- .modelButtonOk {
366
- width: 100px!important;
367
- height: 40px!important;
368
- font-size: 16px!important;
369
- color: #ffffff !important;
370
- border: 1px #DB0011 solid !important;
371
- background: #DB0011 !important;
372
- border-spacing: 20px!important;
373
- }
374
- .modelButtonNo {
375
- width: 100px!important;
376
- height: 40px!important;
377
- font-size: 16px!important;
378
- color: #5C5C5C !important;
379
- border: 1px #5C5C5C solid !important;
380
- background: #d9d9d9 !important;
381
- border-spacing: 20px!important;
382
- }
383
- .modelButtonFaceOk {
384
- width: 170px!important;
385
- height: 40px!important;
386
- font-size: 16px!important;
387
- color: #333 !important;
388
- border: 1px #333 solid !important;
389
- background: #fff !important;
390
- border-spacing: 20px!important;
391
- }
392
- .modelButtonFaceOkColor {
393
- min-width: 170px!important;
394
- height: 40px!important;
395
- font-size: 16px!important;
396
- color: #ffffff !important;
397
- border: 1px #DB0011 solid !important;
398
- background: #DB0011 !important;
399
- border-spacing: 20px!important;
400
- }
401
- .modelButtonFaceOkColorFile {
402
- min-width: 170px!important;
403
- height: 40px!important;
404
- font-size: 16px!important;
405
- color: #5C5C5C !important;
406
- border: 1px #5C5C5C solid !important;
407
- background: #d9d9d9 !important;
408
- border-spacing: 20px!important;
409
- }
410
- .endModal {
411
- font-size: 16px;
412
- padding: 56px 30px 0px 30px;
413
- color: #333333;
414
- }
415
- .ipadModal {
416
- font-size: 16px;
417
- padding: 36px 30px 0px 30px;
418
- color: #333333;
419
- }
420
- .ipadModal .ant-modal-body {
421
- display: flex;
422
- align-items: center;
423
- flex-direction: column;
424
- }
425
- .ipadCode {
426
- margin-top: 16px;
427
- margin-bottom: 16px;
428
- margin-left: 30px;
429
- position: relative;
430
- }
431
- .inspection {
432
- font-size: 16px;
433
- margin: 20px 50px;
434
- }
435
- .CustomerSelectTitle {
436
- margin-bottom: 10px;
437
- }
438
- .errorClassName .ant-message-notice-content {
439
- min-width: 500px;
440
- min-height: 44px;
441
- background: #F9F2F3;
442
- border: 1px #E5B2B5 solid;
443
- font-size: 16px;
444
- color: #252525;
445
- text-align: center;
446
- padding: 7px;
447
- }
448
- .errorClassName img {
449
- margin-right: 8px;
450
- width: 16px;
451
- height: 16px;
452
- margin-bottom: 3px;
453
- }
454
- .successClassName .ant-message-notice-content {
455
- min-width: 500px;
456
- height: 44px;
457
- background: #E5F2F2;
458
- border: 1px #99CECC solid;
459
- font-size: 16px;
460
- color: #252525;
461
- text-align: center;
462
- padding: 7px;
463
- }
464
- .successClassName img {
465
- margin-right: 8px;
466
- width: 16px;
467
- height: 16px;
468
- margin-bottom: 3px;
469
- }
470
- .errorClassFace {
471
- min-width: 350px;
472
- min-height: 44px;
473
- background: #F9F2F3;
474
- border: 1px #E5B2B5 solid;
475
- font-size: 16px;
476
- color: #252525;
477
- text-align: center;
478
- padding: 7px;
479
- }
480
- .errorClassFace img {
481
- margin-right: 8px;
482
- width: 16px;
483
- height: 16px;
484
- margin-bottom: 3px;
485
- }
486
- .videoErrorClass {
487
- height: 60px;
488
- margin: 15px;
489
- }
490
- .successClassFace {
491
- min-width: 350px;
492
- height: 44px;
493
- background: #E5F2F2;
494
- border: 1px #99CECC solid;
495
- font-size: 16px;
496
- color: #252525;
497
- text-align: center;
498
- padding: 7px;
499
- }
500
- .successClassFace img {
501
- margin-right: 8px;
502
- width: 16px;
503
- height: 16px;
504
- margin-bottom: 3px;
505
- }
506
- .radio {
507
- position: relative;
508
- display: inline-block;
509
- font-weight: 400;
510
- padding-left: 25px;
511
- text-align: left;
512
- width: 100%;
513
- display: flex;
514
- }
515
- .radio input {
516
- position: absolute;
517
- left: -9999px;
518
- }
519
- .radio i {
520
- display: block;
521
- position: absolute;
522
- top: 50%;
523
- left: 2px;
524
- width: 12px;
525
- height: 12px;
526
- transform: translateY(-50%);
527
- outline: 0;
528
- border: 1px solid #858585;
529
- background: transparent;
530
- border-radius: 50%;
531
- transition: border-color 0.3s;
532
- -webkit-transition: border-color 0.3s;
533
- box-sizing: content-box;
534
- }
535
- .radio input + i:after {
536
- position: absolute;
537
- content: '';
538
- top: 50%;
539
- left: 50%;
540
- transform: translate(-50%, -50%);
541
- width: 50%;
542
- height: 50%;
543
- border-radius: 50%;
544
- background-color: #269792;
545
- opacity: 0;
546
- transition: opacity 0.1s;
547
- -webkit-transition: opacity 0.1s;
548
- box-sizing: content-box;
549
- }
550
- .radio input:checked + i:after {
551
- opacity: 1;
552
- }
553
- .errorClassInvitationColor {
554
- background: #F9F2F3;
555
- border: 1px #E5B2B5 solid;
556
- }
557
- .errorClassInvitation {
558
- width: 90%;
559
- height: 50px;
560
- margin: 50px 30px 0px;
561
- }
562
- .errorClassInvitation img {
563
- margin: 15px 20px;
564
- width: 18px;
565
- height: 18px;
566
- }
567
- .linkClass {
568
- margin: 20px 40px;
569
- font-size: 14px;
570
- word-break: break-all;
571
- }
572
- .speakerTitle {
573
- color: red;
574
- }
575
- .selectCustomer {
576
- font-size: 16px;
577
- margin: 20Px 40px;
578
- }
579
- .faceImgCard {
580
- width: 25rem;
581
- margin-bottom: 10px;
582
- height: 13.5rem;
583
- }
584
- .faceImgCardTwo {
585
- margin-bottom: 0px !important;
586
- }
587
- .titleDiv {
588
- font-size: 1.2rem;
589
- margin: 10px 0;
590
- }
591
- .videoListClass {
592
- align-content: flex-start;
593
- flex-wrap: wrap;
594
- display: inline-flex;
595
- }
596
- .videoMinutuListClass {
597
- width: 50%;
598
- }
599
- .videoMinutuClass {
600
- width: 100%;
601
- }
602
- .imgDIV {
603
- margin: 0 !important;
604
- text-align: center;
605
- }
606
- .QRCode {
607
- position: absolute;
608
- right: -200px;
609
- top: 30px;
610
- display: flex;
611
- flex-direction: column;
612
- align-items: center;
613
- }
614
- .QRCode .num {
615
- background: #DB0011;
616
- border-radius: 20px;
617
- padding: 0 15px;
618
- text-align: center;
619
- line-height: 40px;
620
- height: 40px;
621
- color: white;
622
- margin-top: 5px;
623
- }
624
- .QRCode .sessionDiv {
625
- display: flex;
626
- flex-direction: column;
627
- }
628
- .QRCode .sessionDiv span {
629
- margin-bottom: 3px;
630
- font-size: 16px;
631
- font-weight: bold;
632
- text-align: center;
633
- }
634
- .QRCode.flex {
635
- position: initial;
636
- flex-direction: row;
637
- }
638
- .QRCode.flex .sessionDiv {
639
- margin-left: 20px;
640
- }
641
- .QRCode.flex .num {
642
- margin-top: 0px;
643
- font-weight: 500;
644
- font-size: 1rem;
645
- }
646
- .QRCode.center {
647
- position: initial;
648
- }
649
- .QRCode.center .ipadCode {
650
- margin-left: 0px;
651
- }
652
- .QRCode.center .num {
653
- margin-top: 0px;
654
- font-weight: 500;
655
- font-size: 1rem;
656
- margin-bottom: 0.5rem;
657
- }
658
- body {
659
- font-size: 100%;
660
- }
661
- .currentDevice {
662
- color: #DB0011;
663
- }
664
- .sliderClass {
665
- width: 70%;
666
- margin-left: 1.25rem;
667
- }