weapps-plugin-jingtong-verify 1.4.8 → 1.5.0
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 +1 -1
- package/package.json +1 -1
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.js +27 -14
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxml +1 -1
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxss +6 -0
- package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.js +21 -13
- package/weapps-plugin-jingtong-verify/utils/request.js +2 -2
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# SDK #
|
|
2
|
-
1.
|
|
2
|
+
1.5.0
|
package/package.json
CHANGED
|
@@ -166,6 +166,10 @@ Page({
|
|
|
166
166
|
* 获取手机号尾号并设置证件号码
|
|
167
167
|
*/
|
|
168
168
|
getTailNumber (e) {
|
|
169
|
+
let value = e.detail.value
|
|
170
|
+
if(value === '' || value === null){
|
|
171
|
+
return
|
|
172
|
+
}
|
|
169
173
|
const { formData, formSafeData } = this.data
|
|
170
174
|
let params = {
|
|
171
175
|
"cid_type": formData.cid_type, // 证件类型
|
|
@@ -179,12 +183,11 @@ Page({
|
|
|
179
183
|
console.log('结果')
|
|
180
184
|
console.log(this.toOtherWay(params, 2, value))
|
|
181
185
|
|
|
182
|
-
let value = e.detail.value
|
|
183
186
|
this.toOtherWay(params, 2, value)
|
|
184
|
-
setTimeout(() => {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}, 100)
|
|
187
|
+
// setTimeout(() => {
|
|
188
|
+
// console.log(this.data.isIdCardSuccess)
|
|
189
|
+
// // this.toGetTailNumber(value)
|
|
190
|
+
// }, 100)
|
|
188
191
|
},
|
|
189
192
|
toGetTailNumber (value) {
|
|
190
193
|
const { isIdCardSuccess } = this.data
|
|
@@ -359,15 +362,15 @@ Page({
|
|
|
359
362
|
console.log('获取人脸识别失败次数结果')
|
|
360
363
|
console.log(res)
|
|
361
364
|
console.log(res.data)
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
365
|
+
if(res.errcode === 0 ) {
|
|
366
|
+
const { data } = res
|
|
367
|
+
if(data.times >= 3){
|
|
368
|
+
// 人脸错误次数大于3次,提示
|
|
369
|
+
this.setData({
|
|
370
|
+
showToOtherModal: true
|
|
371
|
+
})
|
|
372
|
+
return
|
|
373
|
+
}
|
|
371
374
|
jingtongVerifyRequest.verifyIdcard(this.data.formData).then(res => {
|
|
372
375
|
console.log('获取身份证二要素核验结果')
|
|
373
376
|
console.log(res)
|
|
@@ -701,7 +704,17 @@ Page({
|
|
|
701
704
|
});
|
|
702
705
|
return;
|
|
703
706
|
}
|
|
707
|
+
// 判断手机尾号是否一致
|
|
704
708
|
const { formSafeDataCodeMobile } = this.data
|
|
709
|
+
const phoneEndNumber = phone_number.slice(-4)
|
|
710
|
+
if(phoneEndNumber !== formSafeDataCodeMobile) {
|
|
711
|
+
wx.showToast({
|
|
712
|
+
title: '手机号码与绑定号码不一致,请重新输入',
|
|
713
|
+
icon: 'none',
|
|
714
|
+
duration: 2000
|
|
715
|
+
})
|
|
716
|
+
return
|
|
717
|
+
}
|
|
705
718
|
if(formSafeDataCodeMobile === ''){
|
|
706
719
|
wx.showToast({
|
|
707
720
|
title: '手机号码与绑定手机号码不一致,请检查后输入',
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
<!-- 设置登录密码 -->
|
|
169
169
|
<view class="form-item-wrap">
|
|
170
170
|
<view class="form-item-header">
|
|
171
|
-
<text class="form-label"
|
|
171
|
+
<text class="form-label">设置新密码<text class="required-star">*</text></text>
|
|
172
172
|
<view class="password-strength-indicator">
|
|
173
173
|
<view class="strength-bar">
|
|
174
174
|
<view class="strength-segment weak {{ passwordStrength >= 1 ? 'active' : '' }}"></view>
|
|
@@ -209,21 +209,29 @@ Page({
|
|
|
209
209
|
// 接口验证有没有超出限制次数
|
|
210
210
|
jingtongVerifyRequest.getVerifyLimit(param).then(res => {
|
|
211
211
|
console.log(res)
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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()
|
|
212
|
+
if (res.errcode === 0){
|
|
213
|
+
const { data } = res
|
|
214
|
+
if(data.times >= 3){
|
|
215
|
+
this.setData({
|
|
216
|
+
showToOtherModal: true
|
|
217
|
+
})
|
|
224
218
|
} else {
|
|
225
|
-
|
|
219
|
+
console.log(idCardType)
|
|
220
|
+
console.log(idCardType[formData.cid_type])
|
|
221
|
+
console.log('来源类型')
|
|
222
|
+
console.log(source_type)
|
|
223
|
+
if(source_type === '2'){
|
|
224
|
+
this.forgotVerify()
|
|
225
|
+
} else {
|
|
226
|
+
this.setPwdVerify()
|
|
227
|
+
}
|
|
226
228
|
}
|
|
229
|
+
} else {
|
|
230
|
+
wx.showToast({
|
|
231
|
+
title: res.timeLimit,
|
|
232
|
+
icon: 'none',
|
|
233
|
+
duration: 1500
|
|
234
|
+
})
|
|
227
235
|
}
|
|
228
236
|
})
|
|
229
237
|
}, 100)
|
|
@@ -1457,9 +1457,9 @@ function _getVerifyLimit(options) {
|
|
|
1457
1457
|
success: res => {
|
|
1458
1458
|
let { errcode, data } = res.data
|
|
1459
1459
|
if (errcode !== 0) {
|
|
1460
|
-
return
|
|
1460
|
+
return resolve(res.data)
|
|
1461
1461
|
}
|
|
1462
|
-
return resolve(res)
|
|
1462
|
+
return resolve(res.data)
|
|
1463
1463
|
},
|
|
1464
1464
|
fail: err => {
|
|
1465
1465
|
return reject(JSON.stringify(err.data))
|