weapps-plugin-jingtong-verify 1.7.1 → 1.7.4

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/README.md CHANGED
@@ -1,2 +1,2 @@
1
1
  # SDK #
2
- 1.7.1
2
+ 1.7.4
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "weapps-plugin-jingtong-verify",
3
3
  "pluginName": "weapps-plugin-jingtong-verify",
4
4
  "pluginType": "mp",
5
- "version": "1.7.1",
5
+ "version": "1.7.4",
6
6
  "description": "",
7
7
  "main": "sdk.js",
8
8
  "author": "tongyirenzheng",
@@ -2,7 +2,8 @@
2
2
  <view class="modal-box">
3
3
  <view class="content">
4
4
  <view class="title">温馨提示</view>
5
- <view class="mb50">
5
+ <view class="tip-content">
6
+ <view class="mb50">
6
7
  <view>为确保人脸识别结果准确,请注意:</view>
7
8
  <view>1.请<text class="desc-red">正面对准摄像头</text>进行人脸识别,<text class="desc-red">勿佩戴遮挡脸部物品</text>包括口罩、墨镜、帽子等。</view>
8
9
  <view>2.请确保使用有效的身份证件信息进行人脸识别,如未办理身份证将无法完成人脸识别。</view>
@@ -12,6 +13,7 @@
12
13
  </view>
13
14
  <view class="mb50"><text class="desc-red">您已连续认证失败{{ times }}次</text>,请您检查人脸识别时是否有上述情况,若确认无误可再次尝试进行人脸识别。</view>
14
15
  <view class="desc-red">注:如您连续认证失败{{ isKidsOrOld ? '18' : '6' }}次,将临时锁定您的认证权限,请您切换至京通小程序支付宝端进行尝试,或您可以明天再进行尝试。</view>
16
+ </view>
15
17
  </view>
16
18
  <view class="btn-view" catch:tap="handleOk">我知道了</view>
17
19
  </view>
@@ -16,18 +16,24 @@
16
16
  box-sizing: border-box;
17
17
  width: 560rpx;
18
18
  /* height: 796rpx; */
19
- border-radius: 4rpx;
19
+ border-radius: 24rpx;
20
20
  background: #FFF;
21
21
  }
22
22
 
23
23
  .content {
24
- padding: 40rpx 50rpx 48rpx 50rpx;
24
+ padding: 40rpx 0 48rpx 0;
25
25
  font-size: 28rpx;
26
26
  color: #27282E;
27
27
  font-weight: 500;
28
28
  line-height: 48rpx;
29
29
  }
30
30
 
31
+ .tip-content {
32
+ padding: 0 50rpx;
33
+ max-height: 700rpx;
34
+ overflow: auto;
35
+ }
36
+
31
37
  .title {
32
38
  color: #000;
33
39
  font-size: 32rpx;
@@ -16,7 +16,7 @@
16
16
  box-sizing: border-box;
17
17
  width: 560rpx;
18
18
  /* height: 796rpx; */
19
- border-radius: 4rpx;
19
+ border-radius:24rpx;
20
20
  background: #FFF;
21
21
  }
22
22
 
@@ -333,7 +333,7 @@ Page({
333
333
  cid,
334
334
  age: 20 // 不再区分用户年龄(如老人、小孩),所以传20
335
335
  }).then(res => {
336
- console.log('获取人脸失败次数res', res)
336
+ console.log('获取人脸失败次数res', count, res)
337
337
  const times = Number(res.times) || 0
338
338
 
339
339
  // 老人/小孩:累计刷脸失败6次后,弹长窗提示
@@ -376,7 +376,8 @@ Page({
376
376
  // return
377
377
  // }
378
378
 
379
- if (times < 3) {
379
+ // if (count && times < 3) {
380
+ if (count && times < 1) {
380
381
  this.setData({
381
382
  showFaceModal: false,
382
383
  showLockFaceModal: false,
@@ -384,21 +385,25 @@ Page({
384
385
  })
385
386
  }
386
387
 
387
- if (count && 3 <= times && times <= 5) {
388
+ // if (count && 3 <= times && times <= 5) {
389
+ if (count && times === 1) {
388
390
  console.log('==============累计刷脸失败超过3次,小于6次===============')
389
391
  this.setData({
390
392
  showFaceModal: true,
391
- showFaceModalTimes: times
393
+ // showFaceModalTimes: times
394
+ showFaceModalTimes: 3
392
395
  })
393
396
  }
394
397
 
395
- if (times >= 6) {
398
+ // if (count && times >= 6) {
399
+ if (times >= 2) {
396
400
  console.log('==============累计刷脸失败达到6次===============')
397
401
  wx.hideLoading()
398
402
  this.setData({
399
403
  showFaceModal: false,
400
404
  showLockFaceModal: true,
401
- showFaceModalTimes: times
405
+ // showFaceModalTimes: times
406
+ showFaceModalTimes: 6
402
407
  })
403
408
  // 人脸识别异常温馨提示弹窗
404
409
  count && this.handleFaceError(errCode)
@@ -860,7 +865,24 @@ Page({
860
865
  console.log('微信人脸识别失败', err)
861
866
  let { errmsg, errMsg, errCode } = JSON.parse(err)
862
867
  if (errCode) {
863
- let errCodeArr = [10002, 10003, 10004, 10005, 10012, 10057, 90002, 90003, 90004, 90005, 90006, 90100, 90023, 90024, 90025]
868
+ let errCodeArr = [
869
+ 10002,
870
+ 10003,
871
+ 10004,
872
+ 10005,
873
+ 10012,
874
+ 10057,
875
+ // 10084, // 系统未包含该身份信息
876
+ 90002,
877
+ 90003,
878
+ 90004,
879
+ 90005,
880
+ 90006,
881
+ // 90100, // 用户取消人脸识别
882
+ 90023,
883
+ 90024,
884
+ 90025
885
+ ]
864
886
  if (errCodeArr.indexOf(errCode) >= 0) {
865
887
  console.log('在指定的错误码范围内,人脸失败次数+1')
866
888
  // 设置人脸失败次数
@@ -496,9 +496,9 @@
496
496
  ></tip-modal>
497
497
 
498
498
  <!-- 扫脸失败温馨提示弹窗 -->
499
- <face-error-modal
499
+ <!-- <face-error-modal
500
500
  visible="{{ faceErrorModal }}"
501
501
  faceErrorType="{{ faceErrorType }}"
502
502
  bind:CancelBtn="cancelFaceErrorModal"
503
503
  bind:ConfirmBtn="okFaceErrorModal"
504
- ></face-error-modal>
504
+ ></face-error-modal> -->