react_hsbc_teller 1.4.7 → 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 +10 -37
- package/packages/pages/video/video.jsx +154 -290
- 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
|
-
errerrorTypeorType: 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,21 +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
1656
|
}
|
|
1717
1657
|
};
|
|
1718
1658
|
window.IMOpenfire = msg =>{
|
|
@@ -1747,13 +1687,6 @@ class Video extends Component {
|
|
|
1747
1687
|
sigType: 1
|
|
1748
1688
|
};
|
|
1749
1689
|
this.workerClick()
|
|
1750
|
-
rateList = []
|
|
1751
|
-
this.rateAll().then((res)=>{
|
|
1752
|
-
res.map((item)=>{
|
|
1753
|
-
rateList.push(item.tag)
|
|
1754
|
-
})
|
|
1755
|
-
console.log('rateList',rateList)
|
|
1756
|
-
})
|
|
1757
1690
|
this.test_controller.GetDevices();
|
|
1758
1691
|
// 获取设备成功
|
|
1759
1692
|
this.test_controller.OnGetDevicesSuccess = (devicesInfo) => {
|
|
@@ -2449,7 +2382,6 @@ class Video extends Component {
|
|
|
2449
2382
|
}, function (code, message, data) {
|
|
2450
2383
|
console.log(data)
|
|
2451
2384
|
})
|
|
2452
|
-
this.sendNotification()
|
|
2453
2385
|
let array = this.state.roomCustomerList;
|
|
2454
2386
|
let newArray = [...array];
|
|
2455
2387
|
newArray.push({
|
|
@@ -2461,8 +2393,7 @@ class Video extends Component {
|
|
|
2461
2393
|
this.state.roomCustomerList = newArray
|
|
2462
2394
|
let config_param
|
|
2463
2395
|
if (feed.uid != this.state.tellerAccount) {
|
|
2464
|
-
if (
|
|
2465
|
-
// if (feed.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
2396
|
+
if (feed.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
2466
2397
|
config_param = {
|
|
2467
2398
|
subscribe_video_id: 'video21',
|
|
2468
2399
|
subscribe_audio_id: 'audio21',
|
|
@@ -2645,9 +2576,9 @@ class Video extends Component {
|
|
|
2645
2576
|
screenName: '共享模式'
|
|
2646
2577
|
});
|
|
2647
2578
|
this.tabTitlesClick('RMScreen', 'delect')
|
|
2648
|
-
if (this.state.isPictureInPicture) {
|
|
2649
|
-
|
|
2650
|
-
}
|
|
2579
|
+
// if (this.state.isPictureInPicture) {
|
|
2580
|
+
// document.exitPictureInPicture()
|
|
2581
|
+
// }
|
|
2651
2582
|
|
|
2652
2583
|
}
|
|
2653
2584
|
};
|
|
@@ -3004,9 +2935,9 @@ class Video extends Component {
|
|
|
3004
2935
|
});
|
|
3005
2936
|
console.log(pictureInPictureVideo)
|
|
3006
2937
|
this.tabTitlesClick('RMScreen', 'delect')
|
|
3007
|
-
if (this.state.isPictureInPicture) {
|
|
3008
|
-
|
|
3009
|
-
}
|
|
2938
|
+
// if (this.state.isPictureInPicture) {
|
|
2939
|
+
// document.exitPictureInPicture()
|
|
2940
|
+
// }
|
|
3010
2941
|
}
|
|
3011
2942
|
};
|
|
3012
2943
|
// 服务端录制初始化成功
|
|
@@ -3144,9 +3075,9 @@ class Video extends Component {
|
|
|
3144
3075
|
});
|
|
3145
3076
|
console.log(pictureInPictureVideo)
|
|
3146
3077
|
this.tabTitlesClick('RMScreen', 'delect')
|
|
3147
|
-
if (this.state.isPictureInPicture) {
|
|
3148
|
-
|
|
3149
|
-
}
|
|
3078
|
+
// if (this.state.isPictureInPicture) {
|
|
3079
|
+
// document.exitPictureInPicture()
|
|
3080
|
+
// }
|
|
3150
3081
|
// if (!this.state.laveRoomSharedScreen && this.state.isSharedScreen) {
|
|
3151
3082
|
// this.sharedScreen()
|
|
3152
3083
|
// }
|
|
@@ -3246,6 +3177,9 @@ class Video extends Component {
|
|
|
3246
3177
|
clearInterval(value)
|
|
3247
3178
|
})
|
|
3248
3179
|
this.timer && clearInterval(this.timer);
|
|
3180
|
+
if (this.state.isPictureInPicture) {
|
|
3181
|
+
document.exitPictureInPicture()
|
|
3182
|
+
}
|
|
3249
3183
|
if(this.state.isSharedScreen) {
|
|
3250
3184
|
this.setState({
|
|
3251
3185
|
screenName: '共享模式',
|
|
@@ -3253,9 +3187,7 @@ class Video extends Component {
|
|
|
3253
3187
|
this.state.isSharedScreen = false
|
|
3254
3188
|
this.state.laveRoomSharedScreen = true
|
|
3255
3189
|
// this.test_controller.UnPublish(document.getElementById('video20').name)
|
|
3256
|
-
|
|
3257
|
-
document.exitPictureInPicture()
|
|
3258
|
-
}
|
|
3190
|
+
|
|
3259
3191
|
|
|
3260
3192
|
this.props.onLeaveRoom({
|
|
3261
3193
|
code: LEAVE_TYPE.TELLER_EXIT,
|
|
@@ -4086,30 +4018,11 @@ class Video extends Component {
|
|
|
4086
4018
|
}
|
|
4087
4019
|
}
|
|
4088
4020
|
handleOkSign = () => {
|
|
4089
|
-
console.log(this.signCanvas.current.canvas.drawing.toDataURL('image/png'))
|
|
4090
4021
|
this.props.imgRMCallback(
|
|
4091
4022
|
this.signCanvas.current.canvas.drawing.toDataURL('image/png').replace(/data.+?;base64,/, "")
|
|
4092
4023
|
)
|
|
4093
4024
|
}
|
|
4094
|
-
onCancelSign=()=>{
|
|
4095
|
-
this.setState({
|
|
4096
|
-
signNoClick: false
|
|
4097
|
-
})
|
|
4098
|
-
this.props.onCancelSign()
|
|
4099
|
-
}
|
|
4100
|
-
signImage=()=>{
|
|
4101
|
-
if(!this.state.signNoClick) {
|
|
4102
|
-
this.setState({
|
|
4103
|
-
signNoClick: true
|
|
4104
|
-
})
|
|
4105
|
-
}
|
|
4106
|
-
}
|
|
4107
4025
|
handleCancelSign=()=>{
|
|
4108
|
-
if(this.state.signNoClick) {
|
|
4109
|
-
this.setState({
|
|
4110
|
-
signNoClick: false
|
|
4111
|
-
})
|
|
4112
|
-
}
|
|
4113
4026
|
this.signCanvas.current.clear()
|
|
4114
4027
|
}
|
|
4115
4028
|
|
|
@@ -4135,9 +4048,9 @@ class Video extends Component {
|
|
|
4135
4048
|
let x = 0
|
|
4136
4049
|
let y = 0
|
|
4137
4050
|
// if(os.isTablet){
|
|
4138
|
-
width = (
|
|
4051
|
+
width = (right - left)* window.screen.width / document.body.clientWidth
|
|
4139
4052
|
height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 50
|
|
4140
|
-
x = left * window.screen.width / document.body.clientWidth +
|
|
4053
|
+
x = left * window.screen.width / document.body.clientWidth + 2
|
|
4141
4054
|
y = top* window.screen.width / document.body.clientWidth
|
|
4142
4055
|
// }
|
|
4143
4056
|
// if(os.isPc) {
|
|
@@ -4241,9 +4154,9 @@ class Video extends Component {
|
|
|
4241
4154
|
screenName: '共享模式'
|
|
4242
4155
|
});
|
|
4243
4156
|
this.tabTitlesClick('RMScreen', 'delect')
|
|
4244
|
-
if (this.state.isPictureInPicture) {
|
|
4245
|
-
|
|
4246
|
-
}
|
|
4157
|
+
// if (this.state.isPictureInPicture) {
|
|
4158
|
+
// document.exitPictureInPicture()
|
|
4159
|
+
// }
|
|
4247
4160
|
}
|
|
4248
4161
|
}
|
|
4249
4162
|
|
|
@@ -4431,43 +4344,6 @@ class Video extends Component {
|
|
|
4431
4344
|
}
|
|
4432
4345
|
|
|
4433
4346
|
}
|
|
4434
|
-
sendNotification = () =>{
|
|
4435
|
-
console.log(this.props.shareMask,this.state.shareMaskState)
|
|
4436
|
-
this.state.shareMaskState = this.props.shareMask
|
|
4437
|
-
callNimIM('sendCustomCmdMsg', {
|
|
4438
|
-
customId: this.state.imRoomId,
|
|
4439
|
-
content: JSON.stringify({
|
|
4440
|
-
'typeId': 1230,
|
|
4441
|
-
'sessionId': this.state.sessionId,
|
|
4442
|
-
'type': this.state.shareMaskState ? 1 : 2
|
|
4443
|
-
})
|
|
4444
|
-
});
|
|
4445
|
-
}
|
|
4446
|
-
componentDidUpdate(prevProps){
|
|
4447
|
-
console.log('componentDidUpdate',prevProps,prevProps.shareMask,this.props.shareMask)
|
|
4448
|
-
if(this.props.shareMask != prevProps.shareMask) {
|
|
4449
|
-
this.sendNotification()
|
|
4450
|
-
}
|
|
4451
|
-
}
|
|
4452
|
-
// shouldComponentUpdate(nextProps,nextState){
|
|
4453
|
-
// console.log('componentDidUpdate',nextProps,nextState)
|
|
4454
|
-
// if(nextProps.shareMask != nextState.shareMaskState){
|
|
4455
|
-
// this.state.shareMaskState = nextProps.shareMask
|
|
4456
|
-
// this.sendNotification()
|
|
4457
|
-
// }
|
|
4458
|
-
// }
|
|
4459
|
-
// static getDerivedStateFromProps(props, state) {
|
|
4460
|
-
// console.log('getDerivedStateFromProps',props,state,props.shareMask)
|
|
4461
|
-
// if(props.shareMask!==state.shareMaskState){
|
|
4462
|
-
// // this.sendNotification()
|
|
4463
|
-
// return {
|
|
4464
|
-
|
|
4465
|
-
// shareMaskState:shareMask,
|
|
4466
|
-
|
|
4467
|
-
// }
|
|
4468
|
-
// }
|
|
4469
|
-
// return null
|
|
4470
|
-
// }
|
|
4471
4347
|
render() {
|
|
4472
4348
|
const { meetingInfo,isTranscribing } = this.props
|
|
4473
4349
|
var pdfChildren
|
|
@@ -5159,25 +5035,15 @@ class Video extends Component {
|
|
|
5159
5035
|
|
|
5160
5036
|
|
|
5161
5037
|
</Modal>
|
|
5162
|
-
<Modal title="签字白板" width={600} destroyOnClose={true} centered={true} visible={isTranscribing}
|
|
5038
|
+
<Modal title="签字白板" width={600} destroyOnClose={true} closable={false} centered={true} visible={isTranscribing} footer={
|
|
5163
5039
|
[
|
|
5164
5040
|
<div key='okSign'>
|
|
5165
|
-
{
|
|
5166
|
-
|
|
5167
|
-
}
|
|
5168
|
-
{
|
|
5169
|
-
this.state.signNoClick && <Button className="modelButtonCancel" onClick={this.handleCancelSign}>清除</Button>
|
|
5170
|
-
}
|
|
5171
|
-
{
|
|
5172
|
-
this.state.signNoClick && <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
|
|
5173
|
-
}
|
|
5174
|
-
{
|
|
5175
|
-
!this.state.signNoClick && <Button className="modelButtonCancelNo" type="primary" danger >确定</Button>
|
|
5176
|
-
}
|
|
5041
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelSign}>清除</Button>
|
|
5042
|
+
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
|
|
5177
5043
|
</div>
|
|
5178
5044
|
]
|
|
5179
5045
|
}>
|
|
5180
|
-
<div className="content"
|
|
5046
|
+
<div className="content">
|
|
5181
5047
|
<CanvasDraw
|
|
5182
5048
|
ref={this.signCanvas}
|
|
5183
5049
|
brushColor="#000"
|
|
@@ -5186,7 +5052,6 @@ class Video extends Component {
|
|
|
5186
5052
|
canvasWidth="100%"
|
|
5187
5053
|
canvasHeight="100%"
|
|
5188
5054
|
hideGrid={true}
|
|
5189
|
-
|
|
5190
5055
|
></CanvasDraw>
|
|
5191
5056
|
</div>
|
|
5192
5057
|
</Modal>
|
|
@@ -5249,7 +5114,6 @@ sessionId: "",
|
|
|
5249
5114
|
otherAttendees: undefined
|
|
5250
5115
|
},
|
|
5251
5116
|
isTranscribing: false,
|
|
5252
|
-
shareMask: false,
|
|
5253
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'
|
|
5254
5118
|
}
|
|
5255
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{
|