react_hsbc_teller 1.8.5 → 1.8.6
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/pages/video/video.jsx +98 -103
- package/packages/pages/video/video.less +4 -0
package/package.json
CHANGED
|
@@ -318,7 +318,12 @@ class Video extends Component {
|
|
|
318
318
|
isCustomerSelect: true,
|
|
319
319
|
customerTitleName: '客户身份识别',
|
|
320
320
|
certificateType: 'identityCard',
|
|
321
|
-
customerName: ''
|
|
321
|
+
customerName: '',
|
|
322
|
+
IDtypeFrontOrBack: '',
|
|
323
|
+
disabledIdCard: true,
|
|
324
|
+
isModalVisibleSFP: false,
|
|
325
|
+
StaffidSFP: '',
|
|
326
|
+
PasswordSFP: ''
|
|
322
327
|
};
|
|
323
328
|
// eslint-disable-next-line no-undef
|
|
324
329
|
test_controller = '';
|
|
@@ -326,7 +331,7 @@ class Video extends Component {
|
|
|
326
331
|
saveLog=(val)=>{
|
|
327
332
|
axios({
|
|
328
333
|
method: 'get',
|
|
329
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.8.
|
|
334
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.8.6&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
330
335
|
|
|
331
336
|
}).then(res => {
|
|
332
337
|
|
|
@@ -413,6 +418,7 @@ class Video extends Component {
|
|
|
413
418
|
let result = await API.getBase64Image({ fileName: data});
|
|
414
419
|
console.log('getBase64Image',result)
|
|
415
420
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
421
|
+
this.saveLog('imgCallback success' + Mival.data.type)
|
|
416
422
|
this.props.imgCallback({
|
|
417
423
|
type: result.data.type + '',
|
|
418
424
|
file: result.data.base64Image,
|
|
@@ -840,14 +846,6 @@ class Video extends Component {
|
|
|
840
846
|
name: this.state.videoOneName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
841
847
|
tourist: false
|
|
842
848
|
})
|
|
843
|
-
if(this.state.videoOneName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
844
|
-
list.push({
|
|
845
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
|
|
846
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
|
|
847
|
-
name: this.state.videoOneName + '--查询客户',
|
|
848
|
-
tourist: true
|
|
849
|
-
})
|
|
850
|
-
}
|
|
851
849
|
}
|
|
852
850
|
if (document.getElementById('video2').name && !this.state.isPIBIntranet[1].type) {
|
|
853
851
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText))
|
|
@@ -858,14 +856,6 @@ class Video extends Component {
|
|
|
858
856
|
name: this.state.videoTwoName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
859
857
|
tourist: false
|
|
860
858
|
})
|
|
861
|
-
if(this.state.videoTwoName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
862
|
-
list.push({
|
|
863
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
|
|
864
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
|
|
865
|
-
name: this.state.videoTwoName + '--查询客户',
|
|
866
|
-
tourist: true
|
|
867
|
-
})
|
|
868
|
-
}
|
|
869
859
|
}
|
|
870
860
|
if (document.getElementById('video3').name && !this.state.isPIBIntranet[2].type) {
|
|
871
861
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText))
|
|
@@ -876,14 +866,6 @@ class Video extends Component {
|
|
|
876
866
|
name: this.state.videoThreeName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
877
867
|
tourist: false
|
|
878
868
|
})
|
|
879
|
-
if(this.state.videoThreeName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
880
|
-
list.push({
|
|
881
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
|
|
882
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
|
|
883
|
-
name: this.state.videoThreeName + '--查询客户',
|
|
884
|
-
tourist: true
|
|
885
|
-
})
|
|
886
|
-
}
|
|
887
869
|
}
|
|
888
870
|
if (document.getElementById('video4').name && !this.state.isPIBIntranet[3].type) {
|
|
889
871
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText))
|
|
@@ -894,14 +876,6 @@ class Video extends Component {
|
|
|
894
876
|
name: this.state.videoFourName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
895
877
|
tourist: false
|
|
896
878
|
})
|
|
897
|
-
if(this.state.videoFourName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
898
|
-
list.push({
|
|
899
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
|
|
900
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
|
|
901
|
-
name: this.state.videoFourName + '--查询客户',
|
|
902
|
-
tourist: true
|
|
903
|
-
})
|
|
904
|
-
}
|
|
905
879
|
}
|
|
906
880
|
if (document.getElementById('video5').name && !this.state.isPIBIntranet[4].type) {
|
|
907
881
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText))
|
|
@@ -912,14 +886,6 @@ class Video extends Component {
|
|
|
912
886
|
name: this.state.videoFiveName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
913
887
|
tourist: false
|
|
914
888
|
})
|
|
915
|
-
if(this.state.videoFiveName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
916
|
-
list.push({
|
|
917
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
|
|
918
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
|
|
919
|
-
name: this.state.videoFiveName + '--查询客户',
|
|
920
|
-
tourist: true
|
|
921
|
-
})
|
|
922
|
-
}
|
|
923
889
|
}
|
|
924
890
|
if (document.getElementById('video6').name && !this.state.isPIBIntranet[5].type) {
|
|
925
891
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText))
|
|
@@ -929,14 +895,6 @@ class Video extends Component {
|
|
|
929
895
|
name: this.state.videoSixName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
930
896
|
tourist: false
|
|
931
897
|
})
|
|
932
|
-
if(this.state.videoSixName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
933
|
-
list.push({
|
|
934
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
|
|
935
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
|
|
936
|
-
name: this.state.videoSixName + '--查询客户',
|
|
937
|
-
tourist: true
|
|
938
|
-
})
|
|
939
|
-
}
|
|
940
898
|
}
|
|
941
899
|
if (document.getElementById('video7').name && !this.state.isPIBIntranet[6].type) {
|
|
942
900
|
list.push({
|
|
@@ -945,14 +903,6 @@ class Video extends Component {
|
|
|
945
903
|
name: this.state.videoSevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
946
904
|
tourist: false
|
|
947
905
|
})
|
|
948
|
-
if(this.state.videoSevenName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
949
|
-
list.push({
|
|
950
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
|
|
951
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
|
|
952
|
-
name: this.state.videoSevenName + '--查询客户',
|
|
953
|
-
tourist: true
|
|
954
|
-
})
|
|
955
|
-
}
|
|
956
906
|
}
|
|
957
907
|
if (document.getElementById('video8').name && !this.state.isPIBIntranet[7].type) {
|
|
958
908
|
list.push({
|
|
@@ -961,14 +911,6 @@ class Video extends Component {
|
|
|
961
911
|
name: this.state.videoEightName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
962
912
|
tourist: false
|
|
963
913
|
})
|
|
964
|
-
if(this.state.videoEightName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
965
|
-
list.push({
|
|
966
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
|
|
967
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
|
|
968
|
-
name: this.state.videoEightName + '--查询客户',
|
|
969
|
-
tourist: true
|
|
970
|
-
})
|
|
971
|
-
}
|
|
972
914
|
}
|
|
973
915
|
if (document.getElementById('video9').name && !this.state.isPIBIntranet[8].type) {
|
|
974
916
|
list.push({
|
|
@@ -977,14 +919,6 @@ class Video extends Component {
|
|
|
977
919
|
name: this.state.videoNineName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
978
920
|
tourist: false
|
|
979
921
|
})
|
|
980
|
-
if(this.state.videoNineName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
981
|
-
list.push({
|
|
982
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
|
|
983
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
|
|
984
|
-
name: this.state.videoNineName + '--查询客户',
|
|
985
|
-
tourist: true
|
|
986
|
-
})
|
|
987
|
-
}
|
|
988
922
|
}
|
|
989
923
|
if (document.getElementById('video10').name && !this.state.isPIBIntranet[9].type) {
|
|
990
924
|
list.push({
|
|
@@ -993,14 +927,6 @@ class Video extends Component {
|
|
|
993
927
|
name: this.state.videoTenName +(this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
994
928
|
tourist: false
|
|
995
929
|
})
|
|
996
|
-
if(this.state.videoTenName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
997
|
-
list.push({
|
|
998
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
|
|
999
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
|
|
1000
|
-
name: this.state.videoTenName + '--查询客户',
|
|
1001
|
-
tourist: true
|
|
1002
|
-
})
|
|
1003
|
-
}
|
|
1004
930
|
}
|
|
1005
931
|
if (document.getElementById('video11').name && !this.state.isPIBIntranet[10].type) {
|
|
1006
932
|
list.push({
|
|
@@ -1009,14 +935,6 @@ class Video extends Component {
|
|
|
1009
935
|
name: this.state.videoElevenName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
1010
936
|
tourist: false
|
|
1011
937
|
})
|
|
1012
|
-
if(this.state.videoElevenName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
1013
|
-
list.push({
|
|
1014
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
|
|
1015
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
|
|
1016
|
-
name: this.state.videoElevenName + '--查询客户',
|
|
1017
|
-
tourist: true
|
|
1018
|
-
})
|
|
1019
|
-
}
|
|
1020
938
|
}
|
|
1021
939
|
if (document.getElementById('video12').name && !this.state.isPIBIntranet[11].type) {
|
|
1022
940
|
list.push({
|
|
@@ -1025,14 +943,6 @@ class Video extends Component {
|
|
|
1025
943
|
name: this.state.videoTwelveName + (this.state.faceCustomerType == 1 ? '--人脸识别' :'--OCR'),
|
|
1026
944
|
tourist: false
|
|
1027
945
|
})
|
|
1028
|
-
if(this.state.videoTwelveName.indexOf("客户") == -1 && this.state.faceCustomerType == 2) {
|
|
1029
|
-
list.push({
|
|
1030
|
-
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
|
|
1031
|
-
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
|
|
1032
|
-
name: this.state.videoTwelveName + '--查询客户',
|
|
1033
|
-
tourist: true
|
|
1034
|
-
})
|
|
1035
|
-
}
|
|
1036
946
|
}
|
|
1037
947
|
console.log(list)
|
|
1038
948
|
this.setState({
|
|
@@ -1041,6 +951,7 @@ class Video extends Component {
|
|
|
1041
951
|
if (list.length > 0) {
|
|
1042
952
|
if (val == 'ocr') {
|
|
1043
953
|
this.setState({
|
|
954
|
+
documentType: '',
|
|
1044
955
|
isModalVisibleCustomer: true,
|
|
1045
956
|
isCustomerSelect: true,
|
|
1046
957
|
customerSelect: '',
|
|
@@ -1521,9 +1432,11 @@ class Video extends Component {
|
|
|
1521
1432
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1522
1433
|
if (Mival.type == 1) {
|
|
1523
1434
|
// 开启录制
|
|
1435
|
+
this.saveLog('Start recording')
|
|
1524
1436
|
this.enableServerRecording()
|
|
1525
1437
|
} else if (Mival.type == 2) {
|
|
1526
1438
|
// 关闭录制
|
|
1439
|
+
this.saveLog('stop recording')
|
|
1527
1440
|
this.test_controller.StopRemoteRecord(this.state.recordId)
|
|
1528
1441
|
}
|
|
1529
1442
|
}
|
|
@@ -1693,6 +1606,7 @@ class Video extends Component {
|
|
|
1693
1606
|
else if (Mival.typeId == 1220) {
|
|
1694
1607
|
// 一炒多的图片 1214
|
|
1695
1608
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1609
|
+
this.saveLog('imgCallback success' + Mival.data.type)
|
|
1696
1610
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
1697
1611
|
this.props.imgCallback({
|
|
1698
1612
|
type: Mival.data.type + '',
|
|
@@ -1706,6 +1620,7 @@ class Video extends Component {
|
|
|
1706
1620
|
// 签字回调 1213
|
|
1707
1621
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1708
1622
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
1623
|
+
this.saveLog('signatureCallback success')
|
|
1709
1624
|
this.props.signatureCallback({
|
|
1710
1625
|
errorType: 0
|
|
1711
1626
|
})
|
|
@@ -1900,6 +1815,7 @@ class Video extends Component {
|
|
|
1900
1815
|
}
|
|
1901
1816
|
} else if (Mival.typeId == 121305) {
|
|
1902
1817
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1818
|
+
this.saveLog('signatureCallback fail')
|
|
1903
1819
|
this.props.signatureCallback({
|
|
1904
1820
|
errorType: -1
|
|
1905
1821
|
})
|
|
@@ -1907,6 +1823,7 @@ class Video extends Component {
|
|
|
1907
1823
|
} else if (Mival.typeId == 121405) {
|
|
1908
1824
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1909
1825
|
console.log('imgCallback')
|
|
1826
|
+
this.saveLog('imgCallback fail')
|
|
1910
1827
|
this.props.imgCallback({
|
|
1911
1828
|
type: '',
|
|
1912
1829
|
file: '',
|
|
@@ -3850,7 +3767,7 @@ userType:'1'
|
|
|
3850
3767
|
}
|
|
3851
3768
|
}
|
|
3852
3769
|
componentWillMount() {
|
|
3853
|
-
console.log('hsbc_teller_sdk', '1.8.
|
|
3770
|
+
console.log('hsbc_teller_sdk', '1.8.6')
|
|
3854
3771
|
if (this.props.sessionId) {
|
|
3855
3772
|
this.getRoomStatus({
|
|
3856
3773
|
sessionId: this.props.sessionId
|
|
@@ -4171,6 +4088,34 @@ userType:'1'
|
|
|
4171
4088
|
isModalVisibleEnd: false
|
|
4172
4089
|
})
|
|
4173
4090
|
};
|
|
4091
|
+
updateConfirm=()=>{
|
|
4092
|
+
this.setState({
|
|
4093
|
+
isModalVisibleSFP: true,
|
|
4094
|
+
StaffidSFP: '',
|
|
4095
|
+
PasswordSFP: ''
|
|
4096
|
+
})
|
|
4097
|
+
}
|
|
4098
|
+
handleCancelSFP=()=>{
|
|
4099
|
+
this.setState({
|
|
4100
|
+
isModalVisibleSFP: false
|
|
4101
|
+
})
|
|
4102
|
+
}
|
|
4103
|
+
handleOkSFP=()=>{
|
|
4104
|
+
this.setState({
|
|
4105
|
+
isModalVisibleSFP: false,
|
|
4106
|
+
disabledIdCard: false
|
|
4107
|
+
})
|
|
4108
|
+
}
|
|
4109
|
+
handleChangeStaffid = (event) => {
|
|
4110
|
+
this.setState({
|
|
4111
|
+
StaffidSFP: event.target.value
|
|
4112
|
+
})
|
|
4113
|
+
}
|
|
4114
|
+
handleChangePasswordd = (event) => {
|
|
4115
|
+
this.setState({
|
|
4116
|
+
PasswordSFP: event.target.value
|
|
4117
|
+
})
|
|
4118
|
+
}
|
|
4174
4119
|
confirmCallback=async(data)=>{
|
|
4175
4120
|
try {
|
|
4176
4121
|
let result = await API.confirmCallback({
|
|
@@ -4370,30 +4315,43 @@ userType:'1'
|
|
|
4370
4315
|
});
|
|
4371
4316
|
}
|
|
4372
4317
|
var sid
|
|
4318
|
+
var videoName
|
|
4373
4319
|
if (item.feedId == document.getElementById("feedId1").innerText) {
|
|
4374
4320
|
sid = document.getElementById('video1').name;
|
|
4321
|
+
videoName = 'video1'
|
|
4375
4322
|
} else if (item.feedId == document.getElementById("feedId2").innerText) {
|
|
4376
4323
|
sid = document.getElementById('video2').name;
|
|
4324
|
+
videoName = 'video2'
|
|
4377
4325
|
} else if (item.feedId == document.getElementById("feedId3").innerText) {
|
|
4378
4326
|
sid = document.getElementById('video3').name;
|
|
4327
|
+
videoName = 'video3'
|
|
4379
4328
|
} else if (item.feedId == document.getElementById("feedId4").innerText) {
|
|
4380
4329
|
sid = document.getElementById('video4').name;
|
|
4330
|
+
videoName = 'video4'
|
|
4381
4331
|
} else if (item.feedId == document.getElementById("feedId5").innerText) {
|
|
4382
4332
|
sid = document.getElementById('video5').name;
|
|
4333
|
+
videoName = 'video5'
|
|
4383
4334
|
} else if (item.feedId == document.getElementById("feedId6").innerText) {
|
|
4384
4335
|
sid = document.getElementById('video6').name;
|
|
4336
|
+
videoName = 'video6'
|
|
4385
4337
|
} else if (item.feedId == document.getElementById("feedId7").innerText) {
|
|
4386
4338
|
sid = document.getElementById('video7').name;
|
|
4339
|
+
videoName = 'video7'
|
|
4387
4340
|
} else if (item.feedId == document.getElementById("feedId8").innerText) {
|
|
4388
4341
|
sid = document.getElementById('video8').name;
|
|
4342
|
+
videoName = 'video8'
|
|
4389
4343
|
} else if (item.feedId == document.getElementById("feedId9").innerText) {
|
|
4390
4344
|
sid = document.getElementById('video9').name;
|
|
4345
|
+
videoName = 'video'
|
|
4391
4346
|
} else if (item.feedId == document.getElementById("feedId10").innerText) {
|
|
4392
4347
|
sid = document.getElementById('video10').name;
|
|
4348
|
+
videoName = 'video10'
|
|
4393
4349
|
} else if (item.feedId == document.getElementById("feedId11").innerText) {
|
|
4394
4350
|
sid = document.getElementById('video11').name;
|
|
4351
|
+
videoName = 'video11'
|
|
4395
4352
|
} else if (item.feedId == document.getElementById("feedId12").innerText) {
|
|
4396
4353
|
sid = document.getElementById('video12').name;
|
|
4354
|
+
videoName = 'video12'
|
|
4397
4355
|
}
|
|
4398
4356
|
console.log(sid)
|
|
4399
4357
|
this.state.customOcrSid = sid
|
|
@@ -4404,9 +4362,16 @@ userType:'1'
|
|
|
4404
4362
|
clickedOcr: false,
|
|
4405
4363
|
isFaceImage: false,
|
|
4406
4364
|
facialImg: ocrImage,
|
|
4365
|
+
disabledIdCard: true,
|
|
4366
|
+
IDtypeFrontOrBack: '请截取证件正面'
|
|
4407
4367
|
},()=>{
|
|
4368
|
+
|
|
4369
|
+
|
|
4408
4370
|
this.setState({
|
|
4409
4371
|
isModalVisibleFacial: true,
|
|
4372
|
+
},()=>{
|
|
4373
|
+
const videoMedia = document.getElementById('publish_video_2');
|
|
4374
|
+
videoMedia.srcObject = document.getElementById(videoName).srcObject
|
|
4410
4375
|
})
|
|
4411
4376
|
})
|
|
4412
4377
|
}
|
|
@@ -5422,7 +5387,7 @@ userType:'1'
|
|
|
5422
5387
|
<canvas id="canvas" className="canvas"></canvas>
|
|
5423
5388
|
</CanvasHome>
|
|
5424
5389
|
<div className="videoDiv" style={{ display: (this.state.isSelect == 'RMScreen' || this.state.isSelect == 'staffScreen') ? '' : 'none', }}>
|
|
5425
|
-
<div className="videoDiv" style={{'
|
|
5390
|
+
<div className="videoDiv" style={{'textAlign': 'center'}}>
|
|
5426
5391
|
<video
|
|
5427
5392
|
id="video20"
|
|
5428
5393
|
autoPlay
|
|
@@ -5946,6 +5911,9 @@ userType:'1'
|
|
|
5946
5911
|
|
|
5947
5912
|
</div>,
|
|
5948
5913
|
this.state.idCardName && <div key='facial'>
|
|
5914
|
+
{
|
|
5915
|
+
this.state.disabledIdCard &&<Button className="modelButtonFaceOk" danger onClick={(e)=>this.updateConfirm('noFace')}>修改</Button>
|
|
5916
|
+
}
|
|
5949
5917
|
<Button className="modelButtonFaceOk" danger onClick={(e)=>this.confirmCallback('face')}>完成并发起人脸识别</Button>
|
|
5950
5918
|
<Button className="modelButtonOk" type="primary" danger onClick={(e)=>this.confirmCallback('noFace')}>完成</Button>
|
|
5951
5919
|
</div>
|
|
@@ -5959,19 +5927,46 @@ userType:'1'
|
|
|
5959
5927
|
} */}
|
|
5960
5928
|
<div className='faceCardImg'>
|
|
5961
5929
|
{/* <div>{this.state.IDtypeFrontOrBack}</div> */}
|
|
5962
|
-
|
|
5930
|
+
{
|
|
5931
|
+
!this.state.idCardName &&<div>
|
|
5932
|
+
<video className="faceImg" id="publish_video_2" autoPlay muted={true}></video>
|
|
5933
|
+
</div>
|
|
5934
|
+
}
|
|
5935
|
+
|
|
5936
|
+
<img className="faceImg" src={this.state.facialImg} alt=""></img>
|
|
5963
5937
|
</div>
|
|
5964
5938
|
{
|
|
5965
5939
|
this.state.idCardName &&<div className='resuleCard'>
|
|
5966
5940
|
<div>证件信息确认</div>
|
|
5967
|
-
<div><span>客户姓名</span> <input type="text" value={this.state.idCardName} onChange={this.handleChangeIdCardName} /></div>
|
|
5968
|
-
<div><span>身份证号</span> <input type="text" value={this.state.idCardNumber} onChange={this.handleChangeIdCardNumber} /></div>
|
|
5941
|
+
<div><span>客户姓名</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardName} onChange={this.handleChangeIdCardName} /></div>
|
|
5942
|
+
<div><span>身份证号</span> <input disabled={this.state.disabledIdCard} type="text" value={this.state.idCardNumber} onChange={this.handleChangeIdCardNumber} /></div>
|
|
5969
5943
|
</div>
|
|
5970
5944
|
}
|
|
5971
5945
|
|
|
5972
5946
|
|
|
5973
5947
|
</div>
|
|
5974
5948
|
</Modal>
|
|
5949
|
+
<Modal title="经理人员授权(SFP双录同款)" closable={false} centered={true} visible={this.state.isModalVisibleSFP}
|
|
5950
|
+
footer={[
|
|
5951
|
+
<div key='end'>
|
|
5952
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelSFP}>取消</Button>
|
|
5953
|
+
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSFP}>确定</Button>
|
|
5954
|
+
</div>
|
|
5955
|
+
]}>
|
|
5956
|
+
<div className="faceBody">
|
|
5957
|
+
<div className='resuleCard'>
|
|
5958
|
+
<div>
|
|
5959
|
+
<span>Staffid</span>
|
|
5960
|
+
<input type="text" value={this.state.StaffidSFP} onChange={this.handleChangeStaffid}></input>
|
|
5961
|
+
</div>
|
|
5962
|
+
<div>
|
|
5963
|
+
<span>Password</span>
|
|
5964
|
+
<input type="text" value={this.state.PasswordSFP} onChange={this.handleChangePasswordd}></input>
|
|
5965
|
+
</div>
|
|
5966
|
+
</div>
|
|
5967
|
+
</div>
|
|
5968
|
+
|
|
5969
|
+
</Modal>
|
|
5975
5970
|
<Modal title={this.state.customerTitleName} closable={false} centered={true} visible={this.state.isModalVisibleCustomer}
|
|
5976
5971
|
footer={[
|
|
5977
5972
|
<div key='end'>
|