react_hsbc_teller 1.4.9 → 1.4.21
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 +1 -1
- package/package.json +1 -1
- package/packages/api/api.js +0 -20
- package/packages/demo/demo.js +9 -36
- package/packages/pages/video/video.jsx +158 -299
- package/packages/pages/video/video.less +1 -11
|
@@ -38,7 +38,6 @@ let streamShare
|
|
|
38
38
|
let muteJson = new Map()
|
|
39
39
|
let dateTime = 0
|
|
40
40
|
let messageValue = ''
|
|
41
|
-
let rateList = []
|
|
42
41
|
var os = function() {
|
|
43
42
|
var ua = navigator.userAgent,
|
|
44
43
|
isWindowsPhone = /(?:Windows Phone)/.test(ua),
|
|
@@ -69,7 +68,6 @@ class Video extends Component {
|
|
|
69
68
|
cancel = axios.CancelToken.source()
|
|
70
69
|
signCanvas = React.createRef();
|
|
71
70
|
state = {
|
|
72
|
-
signNoClick: false,
|
|
73
71
|
listVideoPicture: [],
|
|
74
72
|
isScreenSwitching: false,
|
|
75
73
|
whiteboardWidth: '',
|
|
@@ -206,11 +204,11 @@ class Video extends Component {
|
|
|
206
204
|
{
|
|
207
205
|
type: false
|
|
208
206
|
}
|
|
209
|
-
]
|
|
210
|
-
shareMaskState: false,
|
|
207
|
+
]
|
|
211
208
|
};
|
|
212
209
|
// eslint-disable-next-line no-undef
|
|
213
210
|
test_controller = '';
|
|
211
|
+
|
|
214
212
|
/**
|
|
215
213
|
* 创建房间成功后回调后台
|
|
216
214
|
* @param {JSON} data 数据类型
|
|
@@ -280,11 +278,9 @@ class Video extends Component {
|
|
|
280
278
|
try {
|
|
281
279
|
let result = await API.getBase64Image({ fileName: data});
|
|
282
280
|
console.log('getBase64Image',result)
|
|
283
|
-
this.tabTitlesClick('customerScreen', 'delect')
|
|
284
281
|
this.props.imgCallback({
|
|
285
282
|
type: result.data.type + '',
|
|
286
|
-
file: result.data.base64Image
|
|
287
|
-
errorType: 0}
|
|
283
|
+
file: result.data.base64Image}
|
|
288
284
|
)
|
|
289
285
|
} catch (err) {
|
|
290
286
|
console.error(err);
|
|
@@ -401,168 +397,132 @@ class Video extends Component {
|
|
|
401
397
|
];
|
|
402
398
|
this.test_controller.InitRoomConfig(config_param)
|
|
403
399
|
};
|
|
404
|
-
rateAll = async() =>{
|
|
405
|
-
let data = ''
|
|
406
|
-
try {
|
|
407
|
-
let result = await API.rateAll();
|
|
408
|
-
console.log(result)
|
|
409
|
-
|
|
410
|
-
if (result.code == 200) {
|
|
411
|
-
data = result.data ? result.data : ''
|
|
412
|
-
}
|
|
413
|
-
return data
|
|
414
|
-
}catch (err) {
|
|
415
|
-
return data
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
400
|
// 开启录制
|
|
419
401
|
enableServerRecording = () => {
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
//
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
//
|
|
438
|
-
//
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
recordParam.startTimeout = 10;
|
|
545
|
-
recordParam.splitType = 0;
|
|
546
|
-
recordParam.endType = 1;
|
|
547
|
-
recordParam.crf = 26
|
|
548
|
-
recordParam.overlaps = [
|
|
549
|
-
{
|
|
550
|
-
tag: '', // 流 tag,如果不设置或为空,则为全局⽔印
|
|
551
|
-
type: 1, // 1 为时间戳⽔印;2 为⽂字⽔印;3 为图⽚⽔印
|
|
552
|
-
id: 1, // ⽔印 ID
|
|
553
|
-
enable: true,
|
|
554
|
-
xPosition: 10, // x 轴位置
|
|
555
|
-
yPosition: 10, // y 轴位置
|
|
556
|
-
text: '', // ⽔印⽂字
|
|
557
|
-
fontSize: 16, // 字体⼤⼩
|
|
558
|
-
url: '' // ⽔印图⽚ HTTP 地址
|
|
559
|
-
},
|
|
560
|
-
];
|
|
561
|
-
recordParam.tagPositions = list
|
|
562
|
-
console.log('recordParam', recordParam);
|
|
563
|
-
that.test_controller.StartRemoteRecord(filePath, recordParam, '')
|
|
564
|
-
|
|
565
|
-
})
|
|
402
|
+
const filePath = 'recordId_' + new Date().valueOf();
|
|
403
|
+
const recordParam = {};
|
|
404
|
+
recordParam.width = 1920;
|
|
405
|
+
recordParam.height = 1080;
|
|
406
|
+
recordParam.recordTotalStream = 0;
|
|
407
|
+
recordParam.startTimeout = 10;
|
|
408
|
+
recordParam.splitType = 0;
|
|
409
|
+
recordParam.endType = 1;
|
|
410
|
+
recordParam.crf = 26
|
|
411
|
+
recordParam.overlaps = [
|
|
412
|
+
{
|
|
413
|
+
tag: '', // 流 tag,如果不设置或为空,则为全局⽔印
|
|
414
|
+
type: 1, // 1 为时间戳⽔印;2 为⽂字⽔印;3 为图⽚⽔印
|
|
415
|
+
id: 1, // ⽔印 ID
|
|
416
|
+
enable: true,
|
|
417
|
+
xPosition: 10, // x 轴位置
|
|
418
|
+
yPosition: 10, // y 轴位置
|
|
419
|
+
text: '', // ⽔印⽂字
|
|
420
|
+
fontSize: 16, // 字体⼤⼩
|
|
421
|
+
url: '' // ⽔印图⽚ HTTP 地址
|
|
422
|
+
},
|
|
423
|
+
];
|
|
424
|
+
recordParam.tagPositions = [
|
|
425
|
+
{
|
|
426
|
+
tag: 'projectionWhiteboard',
|
|
427
|
+
xPosition: 0,
|
|
428
|
+
yPosition: 270,
|
|
429
|
+
width: 1280,
|
|
430
|
+
height: 720
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
tag: 'VIDEO_SOURCE_SCREEN',
|
|
434
|
+
xPosition: 1290,
|
|
435
|
+
yPosition: 630,
|
|
436
|
+
width: 630,
|
|
437
|
+
height: 360
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
tag: 'tag1',
|
|
441
|
+
xPosition: 0,
|
|
442
|
+
yPosition: 0,
|
|
443
|
+
width: 310,
|
|
444
|
+
height: 180
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
tag: 'customer1',
|
|
448
|
+
xPosition: 320,
|
|
449
|
+
yPosition: 0,
|
|
450
|
+
width: 310,
|
|
451
|
+
height: 180
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
tag: 'customer2',
|
|
455
|
+
xPosition: 640,
|
|
456
|
+
yPosition: 0,
|
|
457
|
+
width: 310,
|
|
458
|
+
height: 180
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
tag: 'customer3',
|
|
462
|
+
xPosition: 960,
|
|
463
|
+
yPosition: 0,
|
|
464
|
+
width: 310,
|
|
465
|
+
height: 180
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
tag: 'customer4',
|
|
469
|
+
xPosition: 1280,
|
|
470
|
+
yPosition: 0,
|
|
471
|
+
width: 310,
|
|
472
|
+
height: 180
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
tag: 'customer5',
|
|
476
|
+
xPosition: 1600,
|
|
477
|
+
yPosition: 0,
|
|
478
|
+
width: 310,
|
|
479
|
+
height: 180
|
|
480
|
+
},
|
|
481
|
+
// {
|
|
482
|
+
// tag: 'customer6',
|
|
483
|
+
// xPosition: 1440,
|
|
484
|
+
// yPosition: 0,
|
|
485
|
+
// width: 240,
|
|
486
|
+
// height: 180
|
|
487
|
+
// },
|
|
488
|
+
// {
|
|
489
|
+
// tag: 'customer7',
|
|
490
|
+
// xPosition: 1680,
|
|
491
|
+
// yPosition: 0,
|
|
492
|
+
// width: 240,
|
|
493
|
+
// height: 180
|
|
494
|
+
// },
|
|
495
|
+
// {
|
|
496
|
+
// tag: 'customer8',
|
|
497
|
+
// xPosition: 1680,
|
|
498
|
+
// yPosition: 180,
|
|
499
|
+
// width: 240,
|
|
500
|
+
// height: 180
|
|
501
|
+
// },
|
|
502
|
+
// {
|
|
503
|
+
// tag: 'customer9',
|
|
504
|
+
// xPosition: 1680,
|
|
505
|
+
// yPosition: 360,
|
|
506
|
+
// width: 240,
|
|
507
|
+
// height: 180
|
|
508
|
+
// },
|
|
509
|
+
// {
|
|
510
|
+
// tag: 'customer10',
|
|
511
|
+
// xPosition: 1680,
|
|
512
|
+
// yPosition: 540,
|
|
513
|
+
// width: 240,
|
|
514
|
+
// height: 180
|
|
515
|
+
// },
|
|
516
|
+
// {
|
|
517
|
+
// tag: 'customer11',
|
|
518
|
+
// xPosition: 1680,
|
|
519
|
+
// yPosition: 720,
|
|
520
|
+
// width: 240,
|
|
521
|
+
// height: 180
|
|
522
|
+
// }
|
|
523
|
+
]
|
|
524
|
+
console.log('recordParam', recordParam);
|
|
525
|
+
this.test_controller.StartRemoteRecord(filePath, recordParam, '')
|
|
566
526
|
|
|
567
527
|
};
|
|
568
528
|
// 结束会话
|
|
@@ -1491,24 +1451,19 @@ class Video extends Component {
|
|
|
1491
1451
|
}
|
|
1492
1452
|
}
|
|
1493
1453
|
else if (Mival.typeId == 1220) {
|
|
1494
|
-
// 一炒多的图片
|
|
1454
|
+
// 一炒多的图片
|
|
1495
1455
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1496
|
-
this.tabTitlesClick('customerScreen', 'delect')
|
|
1497
1456
|
this.props.imgCallback({
|
|
1498
1457
|
type: Mival.data.type + '',
|
|
1499
|
-
file: Mival.data.file
|
|
1500
|
-
errorType: 0}
|
|
1458
|
+
file: Mival.data.file}
|
|
1501
1459
|
) // 文字抄录和风险抄录,3--风险,,2--文字
|
|
1502
1460
|
}
|
|
1503
1461
|
} else if (Mival.typeId == 1321) {
|
|
1504
1462
|
this.getBase64Image(Mival.fileName)
|
|
1505
1463
|
} else if (Mival.typeId == 1216) {
|
|
1506
|
-
// 签字回调
|
|
1464
|
+
// 签字回调
|
|
1507
1465
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1508
|
-
this.
|
|
1509
|
-
this.props.signatureCallback({
|
|
1510
|
-
errorType: 0
|
|
1511
|
-
})
|
|
1466
|
+
this.props.signatureCallback()
|
|
1512
1467
|
}
|
|
1513
1468
|
} else if (Mival.typeId == 1218) {
|
|
1514
1469
|
if (Mival.sessionId == this.state.sessionId) {
|
|
@@ -1698,26 +1653,6 @@ class Video extends Component {
|
|
|
1698
1653
|
|
|
1699
1654
|
}
|
|
1700
1655
|
}
|
|
1701
|
-
} else if (Mival.typeId == 121305) {
|
|
1702
|
-
if (Mival.sessionId == this.state.sessionId) {
|
|
1703
|
-
this.props.signatureCallback({
|
|
1704
|
-
errorType: -1
|
|
1705
|
-
})
|
|
1706
|
-
}
|
|
1707
|
-
} else if (Mival.typeId == 121405) {
|
|
1708
|
-
if (Mival.sessionId == this.state.sessionId) {
|
|
1709
|
-
console.log('imgCallback')
|
|
1710
|
-
this.props.imgCallback({
|
|
1711
|
-
type: '',
|
|
1712
|
-
file: '',
|
|
1713
|
-
errorType: -1
|
|
1714
|
-
})
|
|
1715
|
-
}
|
|
1716
|
-
} else if (Mival.typeId == 4100 && Mival.data.sessionId == this.state.sessionId) {
|
|
1717
|
-
// 手机端停止投屏
|
|
1718
|
-
if (!document.getElementById("video21").name) {
|
|
1719
|
-
this.tabTitlesClick('customerScreen', 'delect')
|
|
1720
|
-
}
|
|
1721
1656
|
}
|
|
1722
1657
|
};
|
|
1723
1658
|
window.IMOpenfire = msg =>{
|
|
@@ -1752,13 +1687,6 @@ class Video extends Component {
|
|
|
1752
1687
|
sigType: 1
|
|
1753
1688
|
};
|
|
1754
1689
|
this.workerClick()
|
|
1755
|
-
rateList = []
|
|
1756
|
-
this.rateAll().then((res)=>{
|
|
1757
|
-
res.map((item)=>{
|
|
1758
|
-
rateList.push(item.tag)
|
|
1759
|
-
})
|
|
1760
|
-
console.log('rateList',rateList)
|
|
1761
|
-
})
|
|
1762
1690
|
this.test_controller.GetDevices();
|
|
1763
1691
|
// 获取设备成功
|
|
1764
1692
|
this.test_controller.OnGetDevicesSuccess = (devicesInfo) => {
|
|
@@ -2454,7 +2382,6 @@ class Video extends Component {
|
|
|
2454
2382
|
}, function (code, message, data) {
|
|
2455
2383
|
console.log(data)
|
|
2456
2384
|
})
|
|
2457
|
-
this.sendNotification()
|
|
2458
2385
|
let array = this.state.roomCustomerList;
|
|
2459
2386
|
let newArray = [...array];
|
|
2460
2387
|
newArray.push({
|
|
@@ -2466,8 +2393,7 @@ class Video extends Component {
|
|
|
2466
2393
|
this.state.roomCustomerList = newArray
|
|
2467
2394
|
let config_param
|
|
2468
2395
|
if (feed.uid != this.state.tellerAccount) {
|
|
2469
|
-
if (
|
|
2470
|
-
// if (feed.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
2396
|
+
if (feed.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
2471
2397
|
config_param = {
|
|
2472
2398
|
subscribe_video_id: 'video21',
|
|
2473
2399
|
subscribe_audio_id: 'audio21',
|
|
@@ -2650,9 +2576,9 @@ class Video extends Component {
|
|
|
2650
2576
|
screenName: '共享模式'
|
|
2651
2577
|
});
|
|
2652
2578
|
this.tabTitlesClick('RMScreen', 'delect')
|
|
2653
|
-
if (this.state.isPictureInPicture) {
|
|
2654
|
-
|
|
2655
|
-
}
|
|
2579
|
+
// if (this.state.isPictureInPicture) {
|
|
2580
|
+
// document.exitPictureInPicture()
|
|
2581
|
+
// }
|
|
2656
2582
|
|
|
2657
2583
|
}
|
|
2658
2584
|
};
|
|
@@ -3009,9 +2935,9 @@ class Video extends Component {
|
|
|
3009
2935
|
});
|
|
3010
2936
|
console.log(pictureInPictureVideo)
|
|
3011
2937
|
this.tabTitlesClick('RMScreen', 'delect')
|
|
3012
|
-
if (this.state.isPictureInPicture) {
|
|
3013
|
-
|
|
3014
|
-
}
|
|
2938
|
+
// if (this.state.isPictureInPicture) {
|
|
2939
|
+
// document.exitPictureInPicture()
|
|
2940
|
+
// }
|
|
3015
2941
|
}
|
|
3016
2942
|
};
|
|
3017
2943
|
// 服务端录制初始化成功
|
|
@@ -3149,9 +3075,9 @@ class Video extends Component {
|
|
|
3149
3075
|
});
|
|
3150
3076
|
console.log(pictureInPictureVideo)
|
|
3151
3077
|
this.tabTitlesClick('RMScreen', 'delect')
|
|
3152
|
-
if (this.state.isPictureInPicture) {
|
|
3153
|
-
|
|
3154
|
-
}
|
|
3078
|
+
// if (this.state.isPictureInPicture) {
|
|
3079
|
+
// document.exitPictureInPicture()
|
|
3080
|
+
// }
|
|
3155
3081
|
// if (!this.state.laveRoomSharedScreen && this.state.isSharedScreen) {
|
|
3156
3082
|
// this.sharedScreen()
|
|
3157
3083
|
// }
|
|
@@ -3251,6 +3177,9 @@ class Video extends Component {
|
|
|
3251
3177
|
clearInterval(value)
|
|
3252
3178
|
})
|
|
3253
3179
|
this.timer && clearInterval(this.timer);
|
|
3180
|
+
if (this.state.isPictureInPicture) {
|
|
3181
|
+
document.exitPictureInPicture()
|
|
3182
|
+
}
|
|
3254
3183
|
if(this.state.isSharedScreen) {
|
|
3255
3184
|
this.setState({
|
|
3256
3185
|
screenName: '共享模式',
|
|
@@ -3258,9 +3187,7 @@ class Video extends Component {
|
|
|
3258
3187
|
this.state.isSharedScreen = false
|
|
3259
3188
|
this.state.laveRoomSharedScreen = true
|
|
3260
3189
|
// this.test_controller.UnPublish(document.getElementById('video20').name)
|
|
3261
|
-
|
|
3262
|
-
document.exitPictureInPicture()
|
|
3263
|
-
}
|
|
3190
|
+
|
|
3264
3191
|
|
|
3265
3192
|
this.props.onLeaveRoom({
|
|
3266
3193
|
code: LEAVE_TYPE.TELLER_EXIT,
|
|
@@ -3721,7 +3648,7 @@ class Video extends Component {
|
|
|
3721
3648
|
activityId: this.props.businessNumber,
|
|
3722
3649
|
appAccount: this.state.faceCustomerUid,
|
|
3723
3650
|
fileBase64: this.state.facialImg.replace(/^data:image\/\w+;base64,/,""),
|
|
3724
|
-
type:
|
|
3651
|
+
type: this.state.defaultValue
|
|
3725
3652
|
});
|
|
3726
3653
|
if (result.code == 200) {
|
|
3727
3654
|
this.messageClick('识别成功','success')
|
|
@@ -3872,7 +3799,7 @@ class Video extends Component {
|
|
|
3872
3799
|
handleChangeOcr =(val)=> {
|
|
3873
3800
|
console.log(val)
|
|
3874
3801
|
this.setState({
|
|
3875
|
-
defaultValue:
|
|
3802
|
+
defaultValue: val,
|
|
3876
3803
|
facialImg: this.test_controller.TakePicture(1, undefined, undefined, this.state.customOcrSid, 'png')
|
|
3877
3804
|
})
|
|
3878
3805
|
}
|
|
@@ -4091,30 +4018,11 @@ class Video extends Component {
|
|
|
4091
4018
|
}
|
|
4092
4019
|
}
|
|
4093
4020
|
handleOkSign = () => {
|
|
4094
|
-
console.log(this.signCanvas.current.canvas.drawing.toDataURL('image/png'))
|
|
4095
4021
|
this.props.imgRMCallback(
|
|
4096
4022
|
this.signCanvas.current.canvas.drawing.toDataURL('image/png').replace(/data.+?;base64,/, "")
|
|
4097
4023
|
)
|
|
4098
4024
|
}
|
|
4099
|
-
onCancelSign=()=>{
|
|
4100
|
-
this.setState({
|
|
4101
|
-
signNoClick: false
|
|
4102
|
-
})
|
|
4103
|
-
this.props.onCancelSign()
|
|
4104
|
-
}
|
|
4105
|
-
signImage=()=>{
|
|
4106
|
-
if(!this.state.signNoClick) {
|
|
4107
|
-
this.setState({
|
|
4108
|
-
signNoClick: true
|
|
4109
|
-
})
|
|
4110
|
-
}
|
|
4111
|
-
}
|
|
4112
4025
|
handleCancelSign=()=>{
|
|
4113
|
-
if(this.state.signNoClick) {
|
|
4114
|
-
this.setState({
|
|
4115
|
-
signNoClick: false
|
|
4116
|
-
})
|
|
4117
|
-
}
|
|
4118
4026
|
this.signCanvas.current.clear()
|
|
4119
4027
|
}
|
|
4120
4028
|
|
|
@@ -4140,9 +4048,9 @@ class Video extends Component {
|
|
|
4140
4048
|
let x = 0
|
|
4141
4049
|
let y = 0
|
|
4142
4050
|
// if(os.isTablet){
|
|
4143
|
-
width = (
|
|
4051
|
+
width = (right - left)* window.screen.width / document.body.clientWidth
|
|
4144
4052
|
height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 50
|
|
4145
|
-
x = left * window.screen.width / document.body.clientWidth +
|
|
4053
|
+
x = left * window.screen.width / document.body.clientWidth + 2
|
|
4146
4054
|
y = top* window.screen.width / document.body.clientWidth
|
|
4147
4055
|
// }
|
|
4148
4056
|
// if(os.isPc) {
|
|
@@ -4246,9 +4154,9 @@ class Video extends Component {
|
|
|
4246
4154
|
screenName: '共享模式'
|
|
4247
4155
|
});
|
|
4248
4156
|
this.tabTitlesClick('RMScreen', 'delect')
|
|
4249
|
-
if (this.state.isPictureInPicture) {
|
|
4250
|
-
|
|
4251
|
-
}
|
|
4157
|
+
// if (this.state.isPictureInPicture) {
|
|
4158
|
+
// document.exitPictureInPicture()
|
|
4159
|
+
// }
|
|
4252
4160
|
}
|
|
4253
4161
|
}
|
|
4254
4162
|
|
|
@@ -4436,43 +4344,6 @@ class Video extends Component {
|
|
|
4436
4344
|
}
|
|
4437
4345
|
|
|
4438
4346
|
}
|
|
4439
|
-
sendNotification = () =>{
|
|
4440
|
-
console.log(this.props.shareMask,this.state.shareMaskState)
|
|
4441
|
-
this.state.shareMaskState = this.props.shareMask
|
|
4442
|
-
callNimIM('sendCustomCmdMsg', {
|
|
4443
|
-
customId: this.state.imRoomId,
|
|
4444
|
-
content: JSON.stringify({
|
|
4445
|
-
'typeId': 1230,
|
|
4446
|
-
'sessionId': this.state.sessionId,
|
|
4447
|
-
'type': this.state.shareMaskState ? 1 : 2
|
|
4448
|
-
})
|
|
4449
|
-
});
|
|
4450
|
-
}
|
|
4451
|
-
componentDidUpdate(prevProps){
|
|
4452
|
-
console.log('componentDidUpdate',prevProps,prevProps.shareMask,this.props.shareMask)
|
|
4453
|
-
if(this.props.shareMask != prevProps.shareMask) {
|
|
4454
|
-
this.sendNotification()
|
|
4455
|
-
}
|
|
4456
|
-
}
|
|
4457
|
-
// shouldComponentUpdate(nextProps,nextState){
|
|
4458
|
-
// console.log('componentDidUpdate',nextProps,nextState)
|
|
4459
|
-
// if(nextProps.shareMask != nextState.shareMaskState){
|
|
4460
|
-
// this.state.shareMaskState = nextProps.shareMask
|
|
4461
|
-
// this.sendNotification()
|
|
4462
|
-
// }
|
|
4463
|
-
// }
|
|
4464
|
-
// static getDerivedStateFromProps(props, state) {
|
|
4465
|
-
// console.log('getDerivedStateFromProps',props,state,props.shareMask)
|
|
4466
|
-
// if(props.shareMask!==state.shareMaskState){
|
|
4467
|
-
// // this.sendNotification()
|
|
4468
|
-
// return {
|
|
4469
|
-
|
|
4470
|
-
// shareMaskState:shareMask,
|
|
4471
|
-
|
|
4472
|
-
// }
|
|
4473
|
-
// }
|
|
4474
|
-
// return null
|
|
4475
|
-
// }
|
|
4476
4347
|
render() {
|
|
4477
4348
|
const { meetingInfo,isTranscribing } = this.props
|
|
4478
4349
|
var pdfChildren
|
|
@@ -5110,12 +4981,12 @@ class Video extends Component {
|
|
|
5110
4981
|
</div>
|
|
5111
4982
|
]}>
|
|
5112
4983
|
<div className="faceBody">
|
|
5113
|
-
{
|
|
4984
|
+
{this.state.faceCustomerType == 2 &&
|
|
5114
4985
|
<Select defaultValue={this.state.defaultValue} style={{ width: 120,marginBottom: '20px' }} onChange={this.handleChangeOcr}>
|
|
5115
4986
|
<Option value="1">正面</Option>
|
|
5116
4987
|
<Option value="2">反面</Option>
|
|
5117
4988
|
</Select>
|
|
5118
|
-
}
|
|
4989
|
+
}
|
|
5119
4990
|
<div>
|
|
5120
4991
|
<img className="faceImg" src={this.state.facialImg} alt=""></img>
|
|
5121
4992
|
</div>
|
|
@@ -5164,25 +5035,15 @@ class Video extends Component {
|
|
|
5164
5035
|
|
|
5165
5036
|
|
|
5166
5037
|
</Modal>
|
|
5167
|
-
<Modal title="签字白板" width={600} destroyOnClose={true} centered={true} visible={isTranscribing}
|
|
5038
|
+
<Modal title="签字白板" width={600} destroyOnClose={true} closable={false} centered={true} visible={isTranscribing} footer={
|
|
5168
5039
|
[
|
|
5169
5040
|
<div key='okSign'>
|
|
5170
|
-
{
|
|
5171
|
-
|
|
5172
|
-
}
|
|
5173
|
-
{
|
|
5174
|
-
this.state.signNoClick && <Button className="modelButtonCancel" onClick={this.handleCancelSign}>清除</Button>
|
|
5175
|
-
}
|
|
5176
|
-
{
|
|
5177
|
-
this.state.signNoClick && <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
|
|
5178
|
-
}
|
|
5179
|
-
{
|
|
5180
|
-
!this.state.signNoClick && <Button className="modelButtonCancelNo" type="primary" danger >确定</Button>
|
|
5181
|
-
}
|
|
5041
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelSign}>清除</Button>
|
|
5042
|
+
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
|
|
5182
5043
|
</div>
|
|
5183
5044
|
]
|
|
5184
5045
|
}>
|
|
5185
|
-
<div className="content"
|
|
5046
|
+
<div className="content">
|
|
5186
5047
|
<CanvasDraw
|
|
5187
5048
|
ref={this.signCanvas}
|
|
5188
5049
|
brushColor="#000"
|
|
@@ -5191,7 +5052,6 @@ class Video extends Component {
|
|
|
5191
5052
|
canvasWidth="100%"
|
|
5192
5053
|
canvasHeight="100%"
|
|
5193
5054
|
hideGrid={true}
|
|
5194
|
-
|
|
5195
5055
|
></CanvasDraw>
|
|
5196
5056
|
</div>
|
|
5197
5057
|
</Modal>
|
|
@@ -5254,7 +5114,6 @@ sessionId: "",
|
|
|
5254
5114
|
otherAttendees: undefined
|
|
5255
5115
|
},
|
|
5256
5116
|
isTranscribing: false,
|
|
5257
|
-
shareMask: false,
|
|
5258
5117
|
internalUrl: 'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting'
|
|
5259
5118
|
}
|
|
5260
5119
|
export default Video
|
|
@@ -320,22 +320,12 @@
|
|
|
320
320
|
margin-top: 50px!important;
|
|
321
321
|
padding: 20px 30px 30px!important;
|
|
322
322
|
}
|
|
323
|
-
.
|
|
323
|
+
.modelButtonCancel{
|
|
324
324
|
width: 100px!important;
|
|
325
325
|
height: 40px!important;
|
|
326
326
|
font-size: 16px!important;
|
|
327
327
|
color: #5C5C5C!important;
|
|
328
328
|
border: 1px #5C5C5C solid!important;
|
|
329
|
-
background: #d9d9d9!important;
|
|
330
|
-
border-spacing: 20px!important;
|
|
331
|
-
}
|
|
332
|
-
.modelButtonCancel{
|
|
333
|
-
width: 100px!important;
|
|
334
|
-
height: 40px!important;
|
|
335
|
-
font-size: 16px!important;
|
|
336
|
-
color: #333!important;
|
|
337
|
-
border: 1px #333 solid!important;
|
|
338
|
-
background: #fff!important;
|
|
339
329
|
border-spacing: 20px!important;
|
|
340
330
|
}
|
|
341
331
|
.modelButtonCancelOne{
|