weapps-plugin-jingtong-verify 1.4.6 → 1.4.7
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/app.json +41 -33
- package/package.json +20 -20
- package/sdk.js +289 -289
- package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.js +31 -31
- package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.wxml +9 -9
- package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.wxss +65 -65
- package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.js +41 -0
- package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.json +4 -0
- package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.wxml +20 -0
- package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.wxss +112 -0
- package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.js +37 -37
- package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.wxml +30 -30
- package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.wxss +79 -79
- package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.js +32 -32
- package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.wxml +16 -16
- package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.wxss +57 -57
- package/weapps-plugin-jingtong-verify/components/gsd-lib/anim/anim.min.js +1 -1
- package/weapps-plugin-jingtong-verify/components/gsd-lib/crypto/crypto.js +37 -37
- package/weapps-plugin-jingtong-verify/components/gsd-lib/crypto/index.js +44 -44
- package/weapps-plugin-jingtong-verify/components/gsd-lib/dayjs/index.js +351 -351
- package/weapps-plugin-jingtong-verify/components/gsd-lib/event/index.js +117 -117
- package/weapps-plugin-jingtong-verify/components/gsd-lib/index.js +63 -63
- package/weapps-plugin-jingtong-verify/components/gsd-lib/map/index.js +10 -10
- package/weapps-plugin-jingtong-verify/components/gsd-lib/map/qmap.js +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-lib/storage/index.js +114 -114
- package/weapps-plugin-jingtong-verify/components/gsd-lib/utils/index.js +218 -218
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/formCheck.js +72 -72
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/formController.js +47 -47
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/icon.js +11 -11
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/list.js +16 -16
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/navigator.js +33 -33
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/primarySecondButton.js +18 -18
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-agree/index.js +12 -12
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-agree/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-agree/index.wxml +15 -15
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-badge/index.js +47 -47
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-badge/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-badge/index.wxml +13 -13
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-button-group/index.js +44 -44
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-button-group/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-button-group/index.wxml +28 -28
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.js +30 -30
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.wxml +42 -42
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.wxss +1 -1
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-date-picker-en/index.js +418 -418
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-date-picker-en/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-date-picker-en/index.wxml +29 -29
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-dropdown/index.js +11 -11
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-dropdown/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-dropdown/index.wxml +4 -4
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.js +182 -179
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.wxml +16 -16
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.js +92 -92
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.wxml +12 -12
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.wxss +2 -2
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-item/index.js +49 -49
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-item/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-item/index.wxml +14 -14
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-icon/index.js +33 -33
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-icon/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-icon/index.wxml +2 -2
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-index-list/index.js +108 -108
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-index-list/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-index-list/index.wxml +53 -53
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.js +241 -236
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.json +8 -8
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.wxml +49 -49
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-picker/index.js +328 -328
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-picker/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-picker/index.wxml +26 -26
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-popover/index.js +159 -159
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-popover/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-popover/index.wxml +10 -10
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-search/index.js +112 -112
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-search/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-search/index.wxml +21 -21
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-switch/index.js +21 -21
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-switch/index.json +7 -7
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-switch/index.wxml +16 -16
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-tips/index.js +50 -50
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-tips/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-tips/index.wxml +27 -27
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/add.svg +13 -13
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/arrow.svg +14 -14
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/delete.svg +16 -16
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/preview.svg +21 -21
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/user.svg +13 -13
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-agree.wxss +147 -147
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-badge.wxss +41 -41
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-button-group.wxss +244 -244
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-cell.wxss +220 -220
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-dropdown.wxss +115 -115
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-form-cell.wxss +101 -101
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-form-item.wxss +174 -174
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-form.wxss +101 -101
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-icon.wxss +268 -268
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-index-list.wxss +206 -206
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-input.wxss +214 -206
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-picker.wxss +139 -139
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-popover.wxss +129 -129
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-search.wxss +171 -171
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-switch.wxss +176 -176
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-tips.wxss +173 -173
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/icon/iconfont.wxss +160 -160
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/main.wxss +283 -283
- package/weapps-plugin-jingtong-verify/components/gsd-ui/utils/helper.js +55 -55
- package/weapps-plugin-jingtong-verify/components/gsd-ui/utils/validType.js +117 -117
- package/weapps-plugin-jingtong-verify/components/gsd-ui/utils/validator.js +106 -106
- package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.js +32 -32
- package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.wxml +8 -8
- package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.wxss +57 -57
- package/weapps-plugin-jingtong-verify/components/modal/modal.js +32 -32
- package/weapps-plugin-jingtong-verify/components/modal/modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/modal/modal.wxml +28 -28
- package/weapps-plugin-jingtong-verify/components/modal/modal.wxss +84 -84
- package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.js +82 -82
- package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxml +18 -18
- package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxss +72 -72
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.js +47 -39
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.wxml +11 -9
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.wxss +51 -51
- package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.js +73 -0
- package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.json +4 -0
- package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.wxml +19 -0
- package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.wxss +72 -0
- package/weapps-plugin-jingtong-verify/i18n/index.js +7 -7
- package/weapps-plugin-jingtong-verify/i18n/logout.js +10 -10
- package/weapps-plugin-jingtong-verify/i18n/rules.js +374 -262
- package/weapps-plugin-jingtong-verify/images/bank-card-verify.png +0 -0
- package/weapps-plugin-jingtong-verify/images/chek_right.png +0 -0
- package/weapps-plugin-jingtong-verify/images/chevron-down.png +0 -0
- package/weapps-plugin-jingtong-verify/images/chevron-up.png +0 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.js +488 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.json +7 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.wxml +73 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.wxss +205 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.js +1218 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.json +10 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxml +254 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxss +389 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-sms-setting/bank-card-login-forgot-sms-setting.js +66 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-sms-setting/bank-card-login-forgot-sms-setting.wxml +2 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.js +461 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.json +8 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.wxml +67 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.wxss +231 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.js +477 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.json +12 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.wxml +120 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.wxss +217 -0
- package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.js +86 -86
- package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.json +6 -6
- package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.wxml +20 -20
- package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.wxss +51 -51
- package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.js +167 -167
- package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.json +3 -3
- package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.wxml +30 -30
- package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.wxss +91 -91
- package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.js +79 -79
- package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.json +5 -5
- package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.wxml +19 -19
- package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.wxss +44 -44
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.js +1687 -1548
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.json +17 -17
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxml +516 -504
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxss +185 -133
- package/weapps-plugin-jingtong-verify/pages/log-off/log-off.js +127 -127
- package/weapps-plugin-jingtong-verify/pages/log-off/log-off.json +5 -5
- package/weapps-plugin-jingtong-verify/pages/log-off/log-off.wxml +36 -36
- package/weapps-plugin-jingtong-verify/pages/log-off/log-off.wxss +60 -60
- package/weapps-plugin-jingtong-verify/pages/login-help/login-help.js +147 -0
- package/weapps-plugin-jingtong-verify/pages/login-help/login-help.json +4 -0
- package/weapps-plugin-jingtong-verify/pages/login-help/login-help.wxml +48 -0
- package/weapps-plugin-jingtong-verify/pages/login-help/login-help.wxss +166 -0
- package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.js +106 -106
- package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.json +3 -3
- package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxml +29 -29
- package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxss +68 -68
- package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.js +156 -0
- package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.json +4 -0
- package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.wxml +19 -0
- package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.wxss +69 -0
- package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.js +24 -24
- package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.json +3 -3
- package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.wxml +12 -12
- package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.wxss +33 -33
- package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.js +110 -110
- package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.json +6 -6
- package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.wxml +9 -9
- package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.wxss +1 -1
- package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.js +854 -854
- package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.json +11 -11
- package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.wxml +162 -162
- package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.wxss +64 -64
- package/weapps-plugin-jingtong-verify/pages/setting/setting.js +331 -328
- package/weapps-plugin-jingtong-verify/pages/setting/setting.json +5 -5
- package/weapps-plugin-jingtong-verify/pages/setting/setting.wxml +91 -91
- package/weapps-plugin-jingtong-verify/pages/setting/setting.wxss +69 -69
- package/weapps-plugin-jingtong-verify/pages/user-info/user-info.js +306 -306
- package/weapps-plugin-jingtong-verify/pages/user-info/user-info.json +7 -7
- package/weapps-plugin-jingtong-verify/pages/user-info/user-info.wxml +142 -142
- package/weapps-plugin-jingtong-verify/pages/user-info/user-info.wxss +110 -110
- package/weapps-plugin-jingtong-verify/style/page.wxss +13 -13
- package/weapps-plugin-jingtong-verify/utils/QDTrackerNew/QDTracker.js +15 -15
- package/weapps-plugin-jingtong-verify/utils/QDTrackerNew/QDTrackerMain.js +59 -59
- package/weapps-plugin-jingtong-verify/utils/constantVal.js +75 -0
- package/weapps-plugin-jingtong-verify/utils/country.js +209 -209
- package/weapps-plugin-jingtong-verify/utils/index.js +306 -306
- package/weapps-plugin-jingtong-verify/utils/jsencrypt.min.js +1 -1
- package/weapps-plugin-jingtong-verify/utils/request.js +604 -1
- package/weapps-plugin-jingtong-verify/utils/rules.js +387 -301
- package/weapps-plugin-jingtong-verify/utils/tifadmin_config.js +61 -61
- package/weapps-plugin-jingtong-verify/utils/validate.js +894 -772
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
@import '../../components/gsd-ui/static/style/main';
|
|
2
|
+
|
|
3
|
+
.top-box {
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.title {
|
|
11
|
+
font-size: 44rpx;
|
|
12
|
+
text-align: center;
|
|
13
|
+
}
|
|
14
|
+
.title_describe{
|
|
15
|
+
font-size: 32rpx;
|
|
16
|
+
margin-bottom: 44rpx;
|
|
17
|
+
margin-top: 30rpx;
|
|
18
|
+
text-align: center;
|
|
19
|
+
color: #62667A;
|
|
20
|
+
}
|
|
21
|
+
.en-page .title {
|
|
22
|
+
font-size: 36rpx;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.info {
|
|
26
|
+
margin-top: 28rpx;
|
|
27
|
+
color: #999999;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.agree-box {
|
|
31
|
+
font-size: 28rpx;
|
|
32
|
+
color: #979797;
|
|
33
|
+
padding: 0 40rpx 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.agree-box text {
|
|
37
|
+
line-height: 40rpx;
|
|
38
|
+
}
|
|
39
|
+
.describe-box {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
padding-left: 20px;
|
|
44
|
+
padding-right: 20px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.special-describe-box {
|
|
48
|
+
display: flex;
|
|
49
|
+
background: #9096a41a;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
border-radius: 8px;
|
|
52
|
+
padding: 12px;
|
|
53
|
+
flex: 1 0 0;
|
|
54
|
+
color: #ce0022;
|
|
55
|
+
font-family: "PingFang SC";
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
line-height: 24px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.img-box {
|
|
63
|
+
width: 160rpx;
|
|
64
|
+
height: 160rpx;
|
|
65
|
+
margin: 56rpx 0 52rpx;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.img {
|
|
69
|
+
width: 160rpx;
|
|
70
|
+
height: 160rpx;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.link {
|
|
74
|
+
color: #ce0022;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.content-box {
|
|
78
|
+
padding-bottom: 60rpx;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.form-tip {
|
|
82
|
+
/* border: 1px solid red; */
|
|
83
|
+
border-radius: 24rpx;
|
|
84
|
+
background: linear-gradient(180deg, #f1f4f9ff 0%, #faf8f700 100%);
|
|
85
|
+
padding: 32rpx 36rpx 0;
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
justify-content: flex-start;
|
|
89
|
+
align-items: flex-start;
|
|
90
|
+
margin-top: -2rpx;
|
|
91
|
+
}
|
|
92
|
+
.space-block {
|
|
93
|
+
width: 6rpx;
|
|
94
|
+
height: 20rpx;
|
|
95
|
+
background: #ce0022;
|
|
96
|
+
margin-right: 8rpx;
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
margin-top: 10rpx;
|
|
99
|
+
}
|
|
100
|
+
.tip-desc {
|
|
101
|
+
color: #27282eff;
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
}
|
|
104
|
+
.form-options {
|
|
105
|
+
width: 750rpx;
|
|
106
|
+
background: linear-gradient( #F5FAFF 0%, #F1F7FF 100%);
|
|
107
|
+
padding: 0 20rpx 20rpx;
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.foreign-tip {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: row;
|
|
114
|
+
justify-content: space-between;
|
|
115
|
+
align-items: center;
|
|
116
|
+
margin: -12rpx 32rpx 0;
|
|
117
|
+
background: #EEF2F6;
|
|
118
|
+
border-radius: 8rpx;
|
|
119
|
+
padding: 24rpx 16rpx 24rpx 24rpx;
|
|
120
|
+
position: relative;
|
|
121
|
+
}
|
|
122
|
+
.foreign-tip::before {
|
|
123
|
+
content: '';
|
|
124
|
+
position: absolute;
|
|
125
|
+
border-left: 17rpx solid transparent;
|
|
126
|
+
border-top: 17rpx solid transparent;
|
|
127
|
+
border-bottom: 17rpx solid #EEF2F6;
|
|
128
|
+
border-right: 17rpx solid transparent;
|
|
129
|
+
top: -30rpx;
|
|
130
|
+
right: 18rpx;
|
|
131
|
+
|
|
132
|
+
}
|
|
133
|
+
.foreign-tip text {
|
|
134
|
+
font-weight: 500;
|
|
135
|
+
font-size: 26rpx;
|
|
136
|
+
color: #62667A;
|
|
137
|
+
line-height: 30rpx;
|
|
138
|
+
}
|
|
139
|
+
.foreign-tip image {
|
|
140
|
+
width: 40rpx;
|
|
141
|
+
height: 40rpx;
|
|
142
|
+
flex-shrink: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.form-item__status-message--warn {
|
|
146
|
+
color: #f13939;
|
|
147
|
+
font-size: 30rpx;
|
|
148
|
+
line-height: 40rpx;
|
|
149
|
+
margin-top: 10rpx;
|
|
150
|
+
padding-left: 40rpx;
|
|
151
|
+
padding-right: 40rpx;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.custom-tips {
|
|
155
|
+
position: fixed;
|
|
156
|
+
z-index: 905;
|
|
157
|
+
box-sizing: border-box;
|
|
158
|
+
top: 0rpx;
|
|
159
|
+
width: 100%;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* 设置密码强度样式 */
|
|
163
|
+
.form-item-header {
|
|
164
|
+
display: flex;
|
|
165
|
+
align-items: center;
|
|
166
|
+
justify-content: space-between;
|
|
167
|
+
margin-top: 40rpx;
|
|
168
|
+
margin-bottom: -30rpx;
|
|
169
|
+
padding: 0 40rpx;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.form-label {
|
|
173
|
+
font-size: 30rpx;
|
|
174
|
+
line-height: 40rpx;
|
|
175
|
+
margin-bottom: 6rpx;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.required-star {
|
|
179
|
+
color: #f13939;
|
|
180
|
+
margin-left: 2rpx;
|
|
181
|
+
font-size: 30rpx;
|
|
182
|
+
font-weight: bold;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.password-strength-indicator {
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
gap: 50rpx;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.strength-bar {
|
|
192
|
+
display: flex;
|
|
193
|
+
gap: 4rpx;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.strength-segment {
|
|
197
|
+
width: 60rpx;
|
|
198
|
+
height: 10rpx;
|
|
199
|
+
border-radius: 4rpx;
|
|
200
|
+
background-color: #e5e5e5;
|
|
201
|
+
transition: background-color 0.3s ease;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.strength-segment.weak.active {
|
|
205
|
+
background-color: #ff4757;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.strength-segment.medium.active {
|
|
209
|
+
background-color: #ffa502;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.strength-segment.strong.active {
|
|
213
|
+
background-color: #2ed573;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.strength-text {
|
|
217
|
+
font-size: 28rpx;
|
|
218
|
+
font-weight: bold;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.strength-text.weak {
|
|
222
|
+
color: #ff4757;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.strength-text.medium {
|
|
226
|
+
color: #ffa502;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.strength-text.strong {
|
|
230
|
+
color: #2ed573;
|
|
231
|
+
}
|
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
// weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.js
|
|
2
|
+
const jingtongVerifyRequest = require('../../utils/request')
|
|
3
|
+
const constantVal = require("../../utils/constantVal")
|
|
4
|
+
const rulesConfig = require("../../utils/rules")
|
|
5
|
+
const utils = require("../../utils/index")
|
|
6
|
+
let cidType = '111'
|
|
7
|
+
let Nation = 'CHN'
|
|
8
|
+
Page({
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 页面的初始数据
|
|
12
|
+
*/
|
|
13
|
+
data: {
|
|
14
|
+
language: 'zh_CN', // 语言环境:默认中文
|
|
15
|
+
formData: {
|
|
16
|
+
cardholder_name: '', // 持卡人行名
|
|
17
|
+
cid_type: '111', // 证件类型
|
|
18
|
+
strCid: '', // 身份证号码(脱敏)
|
|
19
|
+
id_card_number: '', // 证件号码
|
|
20
|
+
strBankCount: '', // 银行卡卡号(脱敏)
|
|
21
|
+
bank_card_account: '', // 银行卡卡号
|
|
22
|
+
bank_phone:'', // 绑定手机号
|
|
23
|
+
verify_expire_time: '', // 登录有效时间
|
|
24
|
+
nation: 'CHN',
|
|
25
|
+
is_bind: '1'
|
|
26
|
+
},
|
|
27
|
+
rules: rulesConfig.bankCardRules('zh_CN'),
|
|
28
|
+
validateType: {
|
|
29
|
+
id_card_number(value) {
|
|
30
|
+
return utils.validate.checkCid(value, cidType, Nation).data
|
|
31
|
+
},
|
|
32
|
+
cardholder_name(value) {
|
|
33
|
+
return utils.validate.checkName(value, cidType).data
|
|
34
|
+
},
|
|
35
|
+
bank_card_account(value) {
|
|
36
|
+
return utils.validate.checkBankCard(value).data
|
|
37
|
+
},
|
|
38
|
+
bank_phone(value) {
|
|
39
|
+
return utils.validate.checkPhone(value).data
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
idCardType: {
|
|
43
|
+
'111': '1',// 大陆
|
|
44
|
+
'414': '2',// 护照
|
|
45
|
+
'516': '3',// 港澳台通行证
|
|
46
|
+
'511': '4',// 台胞证
|
|
47
|
+
'5': '5' // 其他未指定类型
|
|
48
|
+
},
|
|
49
|
+
cidTypeRange: [
|
|
50
|
+
// 微信人脸识别
|
|
51
|
+
{ name: '中华人民共和国居民身份证', value: '111' },
|
|
52
|
+
// { name: '华侨护照(国内签发)', value: '414' },
|
|
53
|
+
// { name: '港澳居民来往内地通行证', value: '516' },
|
|
54
|
+
// { name: '台湾居民来往大陆通行证', value: '511' },
|
|
55
|
+
// { name: '其他未指定类型', value: '5' },
|
|
56
|
+
// // 移民局接口
|
|
57
|
+
// { name: '港澳居民来往内地通行证', value: '516' },
|
|
58
|
+
// { name: '台湾居民来往大陆通行证', value: '511' },
|
|
59
|
+
// { name: '外国人永久居留身份证', value: '553' },
|
|
60
|
+
// { name: '华侨护照(国内签发)', value: '414' },
|
|
61
|
+
// // 银行卡接口
|
|
62
|
+
// { name: '港澳居民居住证', value: '17' },
|
|
63
|
+
// { name: '台湾居民居住证', value: '18' },
|
|
64
|
+
// // 外国护照
|
|
65
|
+
// { name: 'International passport', value: '700' }
|
|
66
|
+
],
|
|
67
|
+
// 银行卡认证弹窗
|
|
68
|
+
showToOtherModal: false,
|
|
69
|
+
// 是否显示自定义校验提示
|
|
70
|
+
showCustomTips: false,
|
|
71
|
+
// 自定义校验提示文本
|
|
72
|
+
customTipsMsg: '',
|
|
73
|
+
source_type: '1', // 来源,1是没有设置密码,直接进入;2是重新设置密码的时候,人脸识别限制了,进来的
|
|
74
|
+
showTipModal: false
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* 生命周期函数--监听页面加载
|
|
79
|
+
*/
|
|
80
|
+
onLoad(options) {
|
|
81
|
+
let { formData } = this.data
|
|
82
|
+
formData.cardholder_name = options.name
|
|
83
|
+
formData.id_card_number = options.id_card_number
|
|
84
|
+
formData.strCid = options.strCid
|
|
85
|
+
formData.verify_expire_time = options.verify_expire_time
|
|
86
|
+
this.setData({
|
|
87
|
+
formData: formData
|
|
88
|
+
})
|
|
89
|
+
if(options.source_type) {
|
|
90
|
+
console.log('接收到类型')
|
|
91
|
+
console.log(options.source_type)
|
|
92
|
+
this.setData({
|
|
93
|
+
source_type: options.source_type
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
// 在 bank-card-verify.js 中添加
|
|
98
|
+
preventInput: function(e) {
|
|
99
|
+
// 阻止输入,保持原值不变
|
|
100
|
+
console.log('输入被阻止');
|
|
101
|
+
return false;
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
preventChange: function(e) {
|
|
105
|
+
// 阻止值改变
|
|
106
|
+
console.log('值改变被阻止');
|
|
107
|
+
return false;
|
|
108
|
+
},
|
|
109
|
+
/**
|
|
110
|
+
* 生命周期函数--监听页面初次渲染完成
|
|
111
|
+
*/
|
|
112
|
+
onReady() {
|
|
113
|
+
|
|
114
|
+
},
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* 生命周期函数--监听页面显示
|
|
118
|
+
*/
|
|
119
|
+
onShow() {
|
|
120
|
+
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 生命周期函数--监听页面隐藏
|
|
125
|
+
*/
|
|
126
|
+
onHide() {
|
|
127
|
+
|
|
128
|
+
},
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* 生命周期函数--监听页面卸载
|
|
132
|
+
*/
|
|
133
|
+
onUnload() {
|
|
134
|
+
|
|
135
|
+
},
|
|
136
|
+
// 输入框去空
|
|
137
|
+
handleChange(e) {
|
|
138
|
+
let value = e.detail.value
|
|
139
|
+
let formId = (e && e.currentTarget && e.currentTarget.id) || (e && e.target && e.target.id) || ''
|
|
140
|
+
|
|
141
|
+
// 删除前后空格
|
|
142
|
+
if (typeof value === 'string' && formId !== 'cid_type') {
|
|
143
|
+
value = value.trim()
|
|
144
|
+
}
|
|
145
|
+
if (formId) {
|
|
146
|
+
this.setData({ [`formData.${formId}`]: value })
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
// 确认提交表单
|
|
150
|
+
async handleFormSubmit(e) {
|
|
151
|
+
const formValid = e.detail.validStatus
|
|
152
|
+
const customValid = this.data.language !== 'en' ? { valid: true, msg: '' } : this.validateFullname()
|
|
153
|
+
if (!formValid || !customValid.valid) {
|
|
154
|
+
// 自定义校验字段有问题,获取表单错误列表
|
|
155
|
+
const formErrList = e.detail.value
|
|
156
|
+
// 如果表单校验有问题,自定义校验没问题,则显示表单校验错误提示
|
|
157
|
+
if (!formValid && customValid.valid) {
|
|
158
|
+
this.showCuntomErrTip(formErrList[0].message)
|
|
159
|
+
return
|
|
160
|
+
}
|
|
161
|
+
// 如果表单校验没有问题,自定义校验有问题,则显示自定义校验错误提示
|
|
162
|
+
if (formValid && !customValid.valid) {
|
|
163
|
+
this.showCuntomErrTip(customValid.msg)
|
|
164
|
+
return
|
|
165
|
+
}
|
|
166
|
+
// 如果两者都有问题,则判断显示谁
|
|
167
|
+
let lastMsg = ''
|
|
168
|
+
if (formErrList.some(i => ["id_card_number", "nation"].includes(i.name))) {
|
|
169
|
+
lastMsg = formErrList[0].message
|
|
170
|
+
} else {
|
|
171
|
+
lastMsg = customValid.msg
|
|
172
|
+
}
|
|
173
|
+
this.showCuntomErrTip(lastMsg)
|
|
174
|
+
return
|
|
175
|
+
}
|
|
176
|
+
const { source_type, formData, idCardType } = this.data
|
|
177
|
+
// 前置判断-判断核验错误次数在5分钟内错误超过3次
|
|
178
|
+
let bankCardFailCount = constantVal.getStorageWithExpire(constantVal.bank_card_verify_fail_count)
|
|
179
|
+
let bankCardFailTime = constantVal.getStorageWithExpire(constantVal.bank_card_verify_fail_time)
|
|
180
|
+
if(bankCardFailTime){
|
|
181
|
+
if(bankCardFailCount >= 3){
|
|
182
|
+
console.log(bankCardFailCount)
|
|
183
|
+
// 当前时间
|
|
184
|
+
const now = Date.now()
|
|
185
|
+
|
|
186
|
+
// 判断是否在10分钟内(1小时 = 3600 * 1000 毫秒)
|
|
187
|
+
const isWithinOneHour = (now - bankCardFailTime) < (10 * 60 * 1000)
|
|
188
|
+
console.log('当前仍在10分钟限制内')
|
|
189
|
+
if(isWithinOneHour){
|
|
190
|
+
this.setData({
|
|
191
|
+
showToOtherModal: true
|
|
192
|
+
})
|
|
193
|
+
return
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
// 点击确定出现该提示
|
|
198
|
+
wx.showLoading({
|
|
199
|
+
title: '验证中...',
|
|
200
|
+
mask: true // 防止用户点击
|
|
201
|
+
})
|
|
202
|
+
const param = {
|
|
203
|
+
'id_card_number': formData.id_card_number,
|
|
204
|
+
'type': 2,
|
|
205
|
+
'isCount': true
|
|
206
|
+
}
|
|
207
|
+
// 接口返回验证成功出现这个提示
|
|
208
|
+
setTimeout(() => {
|
|
209
|
+
// 接口验证有没有超出限制次数
|
|
210
|
+
jingtongVerifyRequest.getVerifyLimit(param).then(res => {
|
|
211
|
+
console.log(res)
|
|
212
|
+
const { data } = res
|
|
213
|
+
if(data.errcode === 4054){
|
|
214
|
+
this.setData({
|
|
215
|
+
showToOtherModal: true
|
|
216
|
+
})
|
|
217
|
+
} else if (data.errcode === 0){
|
|
218
|
+
console.log(idCardType)
|
|
219
|
+
console.log(idCardType[formData.cid_type])
|
|
220
|
+
console.log('来源类型')
|
|
221
|
+
console.log(source_type)
|
|
222
|
+
if(source_type === '2'){
|
|
223
|
+
this.forgotVerify()
|
|
224
|
+
} else {
|
|
225
|
+
this.setPwdVerify()
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
})
|
|
229
|
+
}, 100)
|
|
230
|
+
},
|
|
231
|
+
// 设置密码进入
|
|
232
|
+
setPwdVerify(){
|
|
233
|
+
console.log('设置密码进入')
|
|
234
|
+
// 前置判断-判断核验错误次数在5分钟内错误超过3次
|
|
235
|
+
let bankCardFailCount = constantVal.getStorageWithExpire(constantVal.bank_card_verify_fail_count)
|
|
236
|
+
let bankCardFailTime = constantVal.getStorageWithExpire(constantVal.bank_card_verify_fail_time)
|
|
237
|
+
const { source_type, formData, idCardType } = this.data
|
|
238
|
+
const VerifyBankParam = {
|
|
239
|
+
'id_card_number': formData.id_card_number,
|
|
240
|
+
"cert_name": formData.cardholder_name,
|
|
241
|
+
"verify_type": '110',
|
|
242
|
+
"support_type": '110',
|
|
243
|
+
"id_type": idCardType[formData.cid_type],
|
|
244
|
+
"account_no": formData.bank_card_account,
|
|
245
|
+
"mobile": formData.bank_phone,
|
|
246
|
+
"isbind": 1,
|
|
247
|
+
"nation": formData.nation,
|
|
248
|
+
"login_verify_expire_time": formData.verify_expire_time,
|
|
249
|
+
"login_verify_type": "1",
|
|
250
|
+
"cid_type": "111"
|
|
251
|
+
}
|
|
252
|
+
jingtongVerifyRequest.verifyBank(VerifyBankParam).then(res => {
|
|
253
|
+
console.log(res)
|
|
254
|
+
wx.hideLoading()
|
|
255
|
+
if(res.errcode === 0){
|
|
256
|
+
// 保存银行卡核验成功时间戳
|
|
257
|
+
let timeStamp = new Date().getTime()
|
|
258
|
+
wx.setStorageSync('tif.bankCardTimeStamp', timeStamp)
|
|
259
|
+
// 清空核验银行卡错误缓存
|
|
260
|
+
constantVal.removeStorage(constantVal.bank_card_verify_fail_count)
|
|
261
|
+
constantVal.removeStorage(constantVal.bank_card_verify_fail_time)
|
|
262
|
+
|
|
263
|
+
wx.showToast({
|
|
264
|
+
title: '验证成功,跳转中…',
|
|
265
|
+
icon: 'none',
|
|
266
|
+
duration: 1500
|
|
267
|
+
})
|
|
268
|
+
const { cardholder_name, id_card_number, strCid, cid_type, verify_expire_time } = formData
|
|
269
|
+
wx.navigateTo({
|
|
270
|
+
url: '/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting?name=' + cardholder_name + '&idCardNumber=' + id_card_number + '&strCid=' + utils.hideIdCard(id_card_number, '111') + '&cid_type=' + cid_type + '&verify_expire_time=' + verify_expire_time,
|
|
271
|
+
})
|
|
272
|
+
} else {
|
|
273
|
+
const { errmsg } = res
|
|
274
|
+
if(bankCardFailCount >= 3){
|
|
275
|
+
bankCardFailCount = 0
|
|
276
|
+
}
|
|
277
|
+
bankCardFailCount = bankCardFailCount + 1
|
|
278
|
+
constantVal.setStorageWithExpire(constantVal.bank_card_verify_fail_count, bankCardFailCount)
|
|
279
|
+
if(bankCardFailCount === 1){
|
|
280
|
+
// 设置10分钟后过期
|
|
281
|
+
constantVal.setStorageWithExpire(constantVal.bank_card_verify_fail_time, Date.now(), 10 * 60)
|
|
282
|
+
}
|
|
283
|
+
if(errmsg){
|
|
284
|
+
wx.showToast({
|
|
285
|
+
title: '验证失败,' + errmsg,
|
|
286
|
+
icon: 'none',
|
|
287
|
+
duration: 1500
|
|
288
|
+
})
|
|
289
|
+
} else {
|
|
290
|
+
wx.showToast({
|
|
291
|
+
title: '验证失败,请检查后重试…',
|
|
292
|
+
icon: 'none',
|
|
293
|
+
duration: 1500
|
|
294
|
+
})
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
})
|
|
298
|
+
},
|
|
299
|
+
// 忘记密码进入
|
|
300
|
+
forgotVerify(){
|
|
301
|
+
console.log('进入忘记密码')
|
|
302
|
+
// 前置判断-判断核验错误次数在5分钟内错误超过3次
|
|
303
|
+
let bankCardFailCount = constantVal.getStorageWithExpire(constantVal.bank_card_verify_fail_count)
|
|
304
|
+
let bankCardFailTime = constantVal.getStorageWithExpire(constantVal.bank_card_verify_fail_time)
|
|
305
|
+
const { source_type, formData, idCardType } = this.data
|
|
306
|
+
const VerifyBankParam = {
|
|
307
|
+
'id_card_number': formData.id_card_number,
|
|
308
|
+
"cert_name": formData.cardholder_name,
|
|
309
|
+
"verify_type": '110',
|
|
310
|
+
"support_type": '110',
|
|
311
|
+
"id_type": idCardType[formData.cid_type],
|
|
312
|
+
"account_no": formData.bank_card_account,
|
|
313
|
+
"mobile": formData.bank_phone,
|
|
314
|
+
"isbind": 1,
|
|
315
|
+
"cid_type": "111"
|
|
316
|
+
}
|
|
317
|
+
jingtongVerifyRequest.setNewPwdToBankCardVerifyWithIdCard(VerifyBankParam).then(res => {
|
|
318
|
+
|
|
319
|
+
console.log('银行卡校验')
|
|
320
|
+
console.log(res)
|
|
321
|
+
wx.hideLoading()
|
|
322
|
+
if(res.errcode === 0){
|
|
323
|
+
// 保存银行卡核验成功时间戳
|
|
324
|
+
let timeStamp = new Date().getTime()
|
|
325
|
+
wx.setStorageSync('tif.bankCardTimeStamp', timeStamp)
|
|
326
|
+
// 清空核验银行卡错误缓存
|
|
327
|
+
constantVal.removeStorage(constantVal.bank_card_verify_fail_count)
|
|
328
|
+
constantVal.removeStorage(constantVal.bank_card_verify_fail_time)
|
|
329
|
+
|
|
330
|
+
wx.showToast({
|
|
331
|
+
title: '验证成功,跳转中…',
|
|
332
|
+
icon: 'none',
|
|
333
|
+
duration: 1500
|
|
334
|
+
})
|
|
335
|
+
const { cardholder_name, id_card_number, strCid, cid_type, verify_expire_time } = formData
|
|
336
|
+
wx.navigateTo({
|
|
337
|
+
url: '/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting?name=' + cardholder_name + '&idCardNumber=' + id_card_number + '&strCid=' + utils.hideIdCard(id_card_number, '111') + '&cid_type=' + cid_type + '&verify_expire_time=' + verify_expire_time + '&source_type=' + source_type,
|
|
338
|
+
})
|
|
339
|
+
} else {
|
|
340
|
+
const { errmsg } = res
|
|
341
|
+
if(bankCardFailCount >= 3){
|
|
342
|
+
bankCardFailCount = 0
|
|
343
|
+
}
|
|
344
|
+
bankCardFailCount = bankCardFailCount + 1
|
|
345
|
+
constantVal.setStorageWithExpire(constantVal.bank_card_verify_fail_count, bankCardFailCount)
|
|
346
|
+
if(bankCardFailCount === 1){
|
|
347
|
+
// 设置10分钟后过期
|
|
348
|
+
constantVal.setStorageWithExpire(constantVal.bank_card_verify_fail_time, Date.now(), 10 * 60)
|
|
349
|
+
}
|
|
350
|
+
if(errmsg){
|
|
351
|
+
wx.showToast({
|
|
352
|
+
title: '验证失败,' + errmsg,
|
|
353
|
+
icon: 'none',
|
|
354
|
+
duration: 1500
|
|
355
|
+
})
|
|
356
|
+
} else {
|
|
357
|
+
wx.showToast({
|
|
358
|
+
title: '验证失败,请检查后重试…',
|
|
359
|
+
icon: 'none',
|
|
360
|
+
duration: 1500
|
|
361
|
+
})
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
})
|
|
365
|
+
},
|
|
366
|
+
// 调起人脸识别认证
|
|
367
|
+
handleToFace() {
|
|
368
|
+
console.log('====调起人脸识别认证====')
|
|
369
|
+
const { source_type } = this.data
|
|
370
|
+
if(source_type === 2){
|
|
371
|
+
|
|
372
|
+
console.log(this.data.formData)
|
|
373
|
+
const { cardholder_name, id_card_number, strCid, cid_type, verify_expire_time } = this.data.formData
|
|
374
|
+
|
|
375
|
+
// 跳转去人脸认证
|
|
376
|
+
this.setData({
|
|
377
|
+
showToOtherModal: false
|
|
378
|
+
}, () => {
|
|
379
|
+
setTimeout(() => {
|
|
380
|
+
wx.navigateTo({
|
|
381
|
+
url: '/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting?name=' + cardholder_name + '&idCardNumber=' + id_card_number + '&strCid=' + utils.hideIdCard(id_card_number, '111') + '&cid_type=' + cid_type + '&verify_expire_time=' + verify_expire_time + '&source_type=' + source_type + '&isSuccess=2',
|
|
382
|
+
})
|
|
383
|
+
}, 100)
|
|
384
|
+
})
|
|
385
|
+
} else {
|
|
386
|
+
// 跳转去人脸认证
|
|
387
|
+
this.setData({
|
|
388
|
+
showToOtherModal: false
|
|
389
|
+
}, () => {
|
|
390
|
+
setTimeout(() => {
|
|
391
|
+
wx.navigateBack()
|
|
392
|
+
}, 100)
|
|
393
|
+
})
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
// 关闭提示框
|
|
397
|
+
handleToCancel () {
|
|
398
|
+
this.setData({
|
|
399
|
+
showToOtherModal: false
|
|
400
|
+
})
|
|
401
|
+
},
|
|
402
|
+
// 登录帮助
|
|
403
|
+
handletoLoginHelp () {
|
|
404
|
+
wx.navigateTo({
|
|
405
|
+
url: '/weapps-plugin-jingtong-verify/pages/login-help/login-help',
|
|
406
|
+
})
|
|
407
|
+
},
|
|
408
|
+
// 显示自定义校验错误提示
|
|
409
|
+
showCuntomErrTip(msg) {
|
|
410
|
+
this.setData({
|
|
411
|
+
showCustomTips: true,
|
|
412
|
+
customTipsMsg: msg
|
|
413
|
+
}, () => {
|
|
414
|
+
// 3秒后关闭
|
|
415
|
+
setTimeout(() => {
|
|
416
|
+
this.setData({
|
|
417
|
+
showCustomTips: false,
|
|
418
|
+
customTipsMsg: ''
|
|
419
|
+
});
|
|
420
|
+
}, 3500);
|
|
421
|
+
})
|
|
422
|
+
},
|
|
423
|
+
// 触发问号弹出
|
|
424
|
+
showQuestionTip() {
|
|
425
|
+
this.setData({
|
|
426
|
+
showTipModal: true
|
|
427
|
+
})
|
|
428
|
+
},
|
|
429
|
+
openEye(e) {
|
|
430
|
+
console.log(e)
|
|
431
|
+
const isOpen = e.detail.isOpen
|
|
432
|
+
const key = e.currentTarget.id
|
|
433
|
+
const strKey = e.currentTarget.dataset.star
|
|
434
|
+
console.log('isOpen', isOpen)
|
|
435
|
+
console.log('key', key)
|
|
436
|
+
console.log('strKey', strKey)
|
|
437
|
+
if (isOpen) {
|
|
438
|
+
console.log('显示脱敏')
|
|
439
|
+
const { id_card_number } = this.data.formData
|
|
440
|
+
const value = utils.hideIdCard(id_card_number, '111')
|
|
441
|
+
console.log('value', value)
|
|
442
|
+
this.setData({
|
|
443
|
+
[`formData.${strKey}`]: value
|
|
444
|
+
})
|
|
445
|
+
} else {
|
|
446
|
+
console.log('删除脱敏,显示明文')
|
|
447
|
+
this.setData({
|
|
448
|
+
[`formData.${strKey}`]: ''
|
|
449
|
+
})
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
handleModalOk() {
|
|
453
|
+
this.setData({
|
|
454
|
+
showTipModal: false
|
|
455
|
+
})
|
|
456
|
+
},
|
|
457
|
+
/**
|
|
458
|
+
* 页面相关事件处理函数--监听用户下拉动作
|
|
459
|
+
*/
|
|
460
|
+
onPullDownRefresh() {
|
|
461
|
+
|
|
462
|
+
},
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* 页面上拉触底事件的处理函数
|
|
466
|
+
*/
|
|
467
|
+
onReachBottom() {
|
|
468
|
+
|
|
469
|
+
},
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* 用户点击右上角分享
|
|
473
|
+
*/
|
|
474
|
+
onShareAppMessage() {
|
|
475
|
+
|
|
476
|
+
}
|
|
477
|
+
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"usingComponents": {
|
|
3
|
+
"g-tips": "../../components/gsd-ui/g-tips/index",
|
|
4
|
+
"g-form": "../../components/gsd-ui/g-form/index",
|
|
5
|
+
"g-input": "../../components/gsd-ui/g-input/index",
|
|
6
|
+
"g-picker": "../../components/gsd-ui/g-picker/index",
|
|
7
|
+
"to-other-modal": "../../components/to-other-modal/to-other-modal",
|
|
8
|
+
"tip-modal": "../../components/tip-modal/tip-modal"
|
|
9
|
+
},
|
|
10
|
+
"navigationBarTitleText": "银行卡验证",
|
|
11
|
+
"styleIsolation": "shared"
|
|
12
|
+
}
|