react_hsbc_teller 2.0.5 → 2.0.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/package.json
CHANGED
|
Binary file
|
|
@@ -27,6 +27,9 @@ export default class foot extends Component {
|
|
|
27
27
|
ocrClick=()=>{
|
|
28
28
|
this.props.ocrClick()
|
|
29
29
|
}
|
|
30
|
+
paperOcrClick=()=>{
|
|
31
|
+
this.props.paperOcrClick()
|
|
32
|
+
}
|
|
30
33
|
pictureInPicture=()=>{
|
|
31
34
|
this.props.pictureInPicture()
|
|
32
35
|
}
|
|
@@ -153,6 +156,15 @@ export default class foot extends Component {
|
|
|
153
156
|
</div>
|
|
154
157
|
// </Popover>
|
|
155
158
|
}
|
|
159
|
+
{
|
|
160
|
+
item == 'PAPER_OCR' &&
|
|
161
|
+
<div className="one" onClick={this.paperOcrClick.bind(this)}>
|
|
162
|
+
<img className="imgClass" src={require("../../assets/img/icon_paper.png").default} alt="" />
|
|
163
|
+
<div className="text">
|
|
164
|
+
纸质识别
|
|
165
|
+
</div>
|
|
166
|
+
</div>
|
|
167
|
+
}
|
|
156
168
|
{
|
|
157
169
|
item == 'INVITE' && <div className="one" onClick={this.invitationClick.bind(this)}>
|
|
158
170
|
<img className="imgClass" src={require("../../assets/img/icon_invitation.png").default} alt="" />
|
|
@@ -303,7 +303,7 @@ class Video extends Component {
|
|
|
303
303
|
saveLog = (val) => {
|
|
304
304
|
axios({
|
|
305
305
|
method: 'get',
|
|
306
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=2.0.
|
|
306
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=2.0.6&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
307
307
|
|
|
308
308
|
}).then(res => {
|
|
309
309
|
|
|
@@ -348,7 +348,7 @@ class Video extends Component {
|
|
|
348
348
|
publish_config.publish_tag = 'tag' + (i+1)
|
|
349
349
|
this.test_controller.Publish(publish_config)
|
|
350
350
|
})
|
|
351
|
-
this.publishAllScreen();
|
|
351
|
+
// this.publishAllScreen();
|
|
352
352
|
|
|
353
353
|
// eslint-disable-next-line no-undef
|
|
354
354
|
setTimeout(() => {
|
|
@@ -964,6 +964,18 @@ class Video extends Component {
|
|
|
964
964
|
this.selectCustomer('ocr')
|
|
965
965
|
}
|
|
966
966
|
};
|
|
967
|
+
paperOcrClick = () => {
|
|
968
|
+
setTimeout(() => {
|
|
969
|
+
// this.messageClick('系统检测到您已签署2/3个地方,还有1处未签署', 'error')
|
|
970
|
+
message.error({
|
|
971
|
+
content: '系统检测到您已签署2/3个地方,还有1处未签署',
|
|
972
|
+
icon: <img src={require("../../assets/img/tooltips2_fail.png").default} alt="" ></img>,
|
|
973
|
+
className: 'errorClassName',
|
|
974
|
+
top: 200,
|
|
975
|
+
duration: 10
|
|
976
|
+
})
|
|
977
|
+
}, 1500);
|
|
978
|
+
};
|
|
967
979
|
endSessionValue = () => {
|
|
968
980
|
this.saveLog('RM actively exits the meeting')
|
|
969
981
|
if (streamShare) {
|
|
@@ -1195,8 +1207,9 @@ class Video extends Component {
|
|
|
1195
1207
|
let str = this.state.sensitiveTitle || ''
|
|
1196
1208
|
if (str)
|
|
1197
1209
|
cobj.fillStyle = 'red';
|
|
1210
|
+
cobj.font = "normal lighter 32px sans-serif";
|
|
1198
1211
|
const textWidth = Math.min(cobj.measureText(str).width, 610)
|
|
1199
|
-
cobj.fillRect(320 - textWidth/ 2,
|
|
1212
|
+
cobj.fillRect(320 - textWidth/ 2, 24, textWidth, 32)
|
|
1200
1213
|
cobj.textAlign = 'center';
|
|
1201
1214
|
cobj.strokeStyle = 'white';
|
|
1202
1215
|
cobj.lineWidth = 2
|
|
@@ -1762,7 +1775,7 @@ class Video extends Component {
|
|
|
1762
1775
|
publish_config.publish_tag = 'tag' + (i+1)
|
|
1763
1776
|
this.test_controller.Publish(publish_config)
|
|
1764
1777
|
})
|
|
1765
|
-
this.publishAllScreen();
|
|
1778
|
+
// this.publishAllScreen();
|
|
1766
1779
|
|
|
1767
1780
|
this.roomCallBack(1, '', 0)
|
|
1768
1781
|
this.saveLog('mrtc join room success')
|
|
@@ -3169,7 +3182,7 @@ class Video extends Component {
|
|
|
3169
3182
|
}
|
|
3170
3183
|
}
|
|
3171
3184
|
componentWillMount() {
|
|
3172
|
-
console.log('hsbc_teller_sdk', '2.0.
|
|
3185
|
+
console.log('hsbc_teller_sdk', '2.0.6')
|
|
3173
3186
|
let arr = []
|
|
3174
3187
|
for(let i=1;i<=12;i++){
|
|
3175
3188
|
arr.push({
|
|
@@ -5704,6 +5717,7 @@ class Video extends Component {
|
|
|
5704
5717
|
invitationClick={this.invitationClick}
|
|
5705
5718
|
customerFaceClick={this.customerFaceClick}
|
|
5706
5719
|
ocrClick={this.ocrClick}
|
|
5720
|
+
paperOcrClick={this.paperOcrClick}
|
|
5707
5721
|
switchExternal={this.switchExternal}
|
|
5708
5722
|
inspection={this.inspection}
|
|
5709
5723
|
toggleAsr={this.toggleAsr}
|
|
@@ -6145,7 +6159,7 @@ Video.defaultProps = {
|
|
|
6145
6159
|
microphoneSize: 25,
|
|
6146
6160
|
fontSize: '14',
|
|
6147
6161
|
fontFamily: 'auto',
|
|
6148
|
-
menus: ['BOARD', 'SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP', 'BEAUTY', 'GRAFFITI', 'BACKGROUND'],
|
|
6162
|
+
menus: ['BOARD', 'SHARE', 'FRIES', 'OCR', 'PAPER_OCR', 'INVITE', 'PIP', 'BEAUTY', 'GRAFFITI', 'BACKGROUND'],
|
|
6149
6163
|
customLeaveRoom: '客户离开房间',
|
|
6150
6164
|
sensitiveWords: ['保本保息', '无风险'],
|
|
6151
6165
|
meetingInfo: {
|