react_hsbc_teller 2.0.48 → 2.0.50

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.48",
3
+ "version": "2.0.50",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -147,6 +147,8 @@ class Copy extends Component {
147
147
  }, 1000);
148
148
  }
149
149
  touchStart=(ev)=> {
150
+ this.ableMouse = false;
151
+ // console.log(new Date().toLocaleTimeString(),'触发touchstart---', ev)
150
152
  this.state.isSignOk = true
151
153
  ev = ev || event
152
154
  ev.preventDefault()
@@ -208,6 +210,7 @@ class Copy extends Component {
208
210
  }
209
211
  }
210
212
  touchMove=(ev)=>{
213
+ // console.log(new Date().toLocaleTimeString(),'触发touchmove---', ev)
211
214
  ev = ev || event
212
215
  ev.preventDefault()
213
216
  if (ev.touches.length == 1) {
@@ -239,10 +242,12 @@ class Copy extends Component {
239
242
  }
240
243
  clearTimeout(this.state.touchEndTimer)
241
244
  this.state.touchEndTimer = setTimeout(() => {
242
- console.log('触发touchEndTimer')
245
+ // console.log('触发touchEndTimer')
243
246
  if (this.state.moveY == obj.y && this.state.moveX == obj.x) {
244
247
  console.log('手动关闭')
245
248
  this.touchEnd(ev)
249
+ // console.log('更新isDown')
250
+ this.state.isDown = false;
246
251
  }
247
252
  }, 300)
248
253
  this.state.moveY = obj.y;
@@ -250,6 +255,7 @@ class Copy extends Component {
250
255
  }
251
256
  }
252
257
  touchEnd=(ev)=> {
258
+ // console.log(new Date().toLocaleTimeString(),'触发touchend---', ev)
253
259
  ev = ev || event
254
260
  ev.preventDefault()
255
261
  if (ev.touches.length == 1) {
@@ -277,6 +283,8 @@ class Copy extends Component {
277
283
  }
278
284
  // pc
279
285
  mouseDown=(ev) =>{
286
+ this.ableMouse = true;
287
+ // console.log(new Date().toLocaleTimeString(),'触发mouseDown---', ev)
280
288
  this.state.isSignOk = true
281
289
  ev.preventDefault();
282
290
  // console.log(ev)
@@ -337,7 +345,12 @@ class Copy extends Component {
337
345
  // }
338
346
  }
339
347
  mouseMove=(ev)=> {
348
+ // console.log(new Date().toLocaleTimeString(),'触发mouseMove---', ev)
340
349
  ev.preventDefault();
350
+ if(!this.ableMouse) {
351
+ // console.log('ableMouse=false阻挡move事件, isdown=', this.state.isDown)
352
+ return
353
+ }
341
354
  if (this.state.isDown) {
342
355
  if (ev.target.id != this.state.curCanvasId) return
343
356
 
@@ -365,10 +378,12 @@ class Copy extends Component {
365
378
  // this.resetTimer();
366
379
  clearTimeout(this.state.touchEndTimer)
367
380
  this.state.touchEndTimer = setTimeout(() => {
368
- console.log('触发mouseEndTimer')
381
+ // console.log('触发mouseEndTimer')
369
382
  if (this.state.moveY == obj.y && this.state.moveX == obj.x) {
370
383
  console.log('手动关闭')
371
384
  this.mouseUp(ev)
385
+ // console.log('更新isDown')
386
+ this.state.isDown = false;
372
387
  }
373
388
  }, 300)
374
389
  this.state.moveY = obj.y;
@@ -376,6 +391,7 @@ class Copy extends Component {
376
391
  }
377
392
  }
378
393
  mouseUp=(ev)=> {
394
+ // console.log(new Date().toLocaleTimeString(),'触发mouseUp---', ev)
379
395
  if (!this.state.isDown) return;
380
396
  ev.preventDefault();
381
397
  let { ctx, stageInfo } = this.state
@@ -63,7 +63,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
63
63
  import axios from 'axios';
64
64
  import CryptoJS from "crypto-js";
65
65
 
66
- const SDK_VERISON = '2.0.48'
66
+ const SDK_VERISON = '2.0.50'
67
67
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
68
68
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
69
69
  const { Option } = Select;
@@ -531,6 +531,7 @@ class Video extends Component {
531
531
  console.log(JSON.parse(window.sessionStorage.getItem('sigData')));
532
532
  // eslint-disable-next-line no-undef
533
533
  const config_param = {};
534
+ config_param.autoUploadLog = true;
534
535
  config_param.workspaceId = this.state.workSpaceId;
535
536
  config_param.uid = this.props.tellerAccount;
536
537
  config_param.biz_name = this.state.bizName; // 'demo'