weapps-plugin-jingtong-verify 1.6.0 → 1.6.1
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 +2 -1
- package/app.json +3 -11
- package/package.json +2 -2
- package/sdk.js +1 -32
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.js +0 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.js +0 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.wxml +1 -1
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-input.wxss +1 -9
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.js +0 -8
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.wxml +0 -2
- package/weapps-plugin-jingtong-verify/i18n/rules.js +5 -146
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.js +12 -276
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxml +1 -19
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxss +1 -53
- package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.js +12 -2
- package/weapps-plugin-jingtong-verify/pages/setting/setting.js +7 -10
- package/weapps-plugin-jingtong-verify/utils/request.js +1 -670
- package/weapps-plugin-jingtong-verify/utils/rules.js +1 -105
- package/weapps-plugin-jingtong-verify/utils/validate.js +1 -139
- package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.js +0 -41
- package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.json +0 -4
- package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.wxml +0 -20
- package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.wxss +0 -112
- package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.js +0 -73
- package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.json +0 -4
- package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.wxml +0 -19
- package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.wxss +0 -72
- 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 +0 -506
- package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.json +0 -8
- package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.wxml +0 -79
- package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.wxss +0 -212
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.js +0 -1392
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.json +0 -10
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxml +0 -247
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxss +0 -397
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-sms-setting/bank-card-login-forgot-sms-setting.js +0 -66
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-sms-setting/bank-card-login-forgot-sms-setting.wxml +0 -2
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.js +0 -463
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.json +0 -8
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.wxml +0 -69
- package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.wxss +0 -232
- package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.js +0 -984
- package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.json +0 -12
- package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.wxml +0 -157
- package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.wxss +0 -258
- package/weapps-plugin-jingtong-verify/pages/login-help/login-help.js +0 -147
- package/weapps-plugin-jingtong-verify/pages/login-help/login-help.json +0 -4
- package/weapps-plugin-jingtong-verify/pages/login-help/login-help.wxml +0 -48
- package/weapps-plugin-jingtong-verify/pages/login-help/login-help.wxss +0 -166
- package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.js +0 -189
- package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.json +0 -4
- package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.wxml +0 -19
- package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.wxss +0 -69
- package/weapps-plugin-jingtong-verify/utils/constantVal.js +0 -75
- package/weapps-plugin-jingtong-verify/utils/md5.js +0 -184
|
@@ -4,8 +4,6 @@ const utils = require("../../utils/index")
|
|
|
4
4
|
const { flow } = require("@wecity/weda-plugin-utils");
|
|
5
5
|
const rulesConfig = require("../../utils/rules")
|
|
6
6
|
import { SDKTrack, setAccountInfo } from '../../utils/QDTrackerNew/QDTrackerMain'
|
|
7
|
-
const validator = require('../../components/gsd-ui/utils/validator')
|
|
8
|
-
const constantVal = require("../../utils/constantVal")
|
|
9
7
|
let cidType = '111'
|
|
10
8
|
let Nation = 'CHN'
|
|
11
9
|
|
|
@@ -22,7 +20,7 @@ Page({
|
|
|
22
20
|
strCid: '', // 身份证号码(脱敏)
|
|
23
21
|
id_card_number: '', // 证件号码
|
|
24
22
|
strBankCount: '', // 银行卡卡号(脱敏)
|
|
25
|
-
bank_account: '',
|
|
23
|
+
bank_account: '',
|
|
26
24
|
nation: 'CHN', // 国籍
|
|
27
25
|
nation_name: '中国',
|
|
28
26
|
sur_name: '', // 姓
|
|
@@ -190,12 +188,7 @@ Page({
|
|
|
190
188
|
// 是否显示自定义校验提示
|
|
191
189
|
showCustomTips: false,
|
|
192
190
|
// 自定义校验提示文本
|
|
193
|
-
customTipsMsg: ''
|
|
194
|
-
submitMode: '',
|
|
195
|
-
// 防重复点击标记 - 基于接口返回状态
|
|
196
|
-
isSubmitting: false,
|
|
197
|
-
checkType: 1, // 1:无密码和手机号,2:无密码有手机号,3:无手机号有密码
|
|
198
|
-
showOtherWayTipModal: false, // 提示
|
|
191
|
+
customTipsMsg: ''
|
|
199
192
|
},
|
|
200
193
|
|
|
201
194
|
/**
|
|
@@ -271,7 +264,7 @@ Page({
|
|
|
271
264
|
// 生命周期函数--监听页面显示
|
|
272
265
|
onShow: function () {
|
|
273
266
|
wx.hideShareMenu()
|
|
274
|
-
|
|
267
|
+
|
|
275
268
|
// 获取国籍
|
|
276
269
|
let pages = getCurrentPages()
|
|
277
270
|
let currentPage = pages[pages.length - 1]
|
|
@@ -317,7 +310,7 @@ Page({
|
|
|
317
310
|
|
|
318
311
|
/**
|
|
319
312
|
* 获取/设置人脸失败次数
|
|
320
|
-
* @param {*} count
|
|
313
|
+
* @param {*} count
|
|
321
314
|
* count:true 设置次数+1
|
|
322
315
|
* count:false 获取次数
|
|
323
316
|
*/
|
|
@@ -332,7 +325,7 @@ Page({
|
|
|
332
325
|
this.setData({
|
|
333
326
|
isKidsOrOld
|
|
334
327
|
})
|
|
335
|
-
|
|
328
|
+
|
|
336
329
|
return new Promise((resolve, reject) => {
|
|
337
330
|
jingtongVerifyRequest.operateFaceFailCount({
|
|
338
331
|
count,
|
|
@@ -449,7 +442,7 @@ Page({
|
|
|
449
442
|
this.setData({
|
|
450
443
|
formData
|
|
451
444
|
})
|
|
452
|
-
}
|
|
445
|
+
}
|
|
453
446
|
// else if (cid_type === '516' && this.data.exitHmSession) {
|
|
454
447
|
// console.log('存在可回显的HM数据', this.data.HmSession)
|
|
455
448
|
// const { star_name, name, star_cid, cid, verify_expire_time, nation } = this.data.HmSession
|
|
@@ -512,7 +505,7 @@ Page({
|
|
|
512
505
|
value = value.trim()
|
|
513
506
|
console.log('==删除前后空格==', value, '==删除前后空格==')
|
|
514
507
|
}
|
|
515
|
-
|
|
508
|
+
|
|
516
509
|
let starId = e.target.dataset.star
|
|
517
510
|
// 切换“证件类型”
|
|
518
511
|
let oldCidType = this.data.formData.cid_type
|
|
@@ -714,40 +707,7 @@ Page({
|
|
|
714
707
|
},
|
|
715
708
|
|
|
716
709
|
async handleFormSubmit(e) {
|
|
717
|
-
const isOther = this.data.submitMode === 'other'
|
|
718
710
|
const formValid = e.detail.validStatus
|
|
719
|
-
if (isOther) {
|
|
720
|
-
wx.showLoading({
|
|
721
|
-
title: '加载中…',
|
|
722
|
-
mask: true
|
|
723
|
-
})
|
|
724
|
-
// 自定义英文名校验(与现有一致)
|
|
725
|
-
const customValid = this.data.language !== 'en' ? { valid: true, msg: '' } : this.validateFullname()
|
|
726
|
-
|
|
727
|
-
if (!formValid || !customValid.valid) {
|
|
728
|
-
// 与现有提示优先级一致
|
|
729
|
-
const formErrList = e.detail.value || []
|
|
730
|
-
if (!formValid && customValid.valid) {
|
|
731
|
-
this.showCuntomErrTip(formErrList[0].message)
|
|
732
|
-
} else if (formValid && !customValid.valid) {
|
|
733
|
-
this.showCuntomErrTip(customValid.msg)
|
|
734
|
-
} else {
|
|
735
|
-
const needPrior = formErrList.find(i => ["id_card_number", "nation"].includes(i.name))
|
|
736
|
-
const lastMsg = needPrior ? needPrior.message : customValid.msg
|
|
737
|
-
this.showCuntomErrTip(lastMsg)
|
|
738
|
-
}
|
|
739
|
-
this.data.submitMode = ''
|
|
740
|
-
this.data.isSubmitting = false
|
|
741
|
-
wx.hideLoading()
|
|
742
|
-
return
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
// 通过后再跳"其他方式"业务(可按需补入参清洗,沿用 handleFormSubmit 的清洗逻辑)
|
|
746
|
-
this.toBankCardLogin()
|
|
747
|
-
// 注意:isSubmitting 状态在 toBankCardLogin 方法中重置
|
|
748
|
-
return
|
|
749
|
-
}
|
|
750
|
-
// const formValid = e.detail.validStatus
|
|
751
711
|
const customValid = this.data.language !== 'en' ? { valid: true, msg: '' } : this.validateFullname()
|
|
752
712
|
if (!formValid || !customValid.valid) {
|
|
753
713
|
// 自定义校验字段有问题,获取表单错误列表
|
|
@@ -1123,7 +1083,7 @@ Page({
|
|
|
1123
1083
|
}
|
|
1124
1084
|
}
|
|
1125
1085
|
})
|
|
1126
|
-
}
|
|
1086
|
+
}
|
|
1127
1087
|
},
|
|
1128
1088
|
|
|
1129
1089
|
// 外国人护照核验不通过逻辑
|
|
@@ -1164,7 +1124,7 @@ Page({
|
|
|
1164
1124
|
})
|
|
1165
1125
|
return
|
|
1166
1126
|
}
|
|
1167
|
-
|
|
1127
|
+
|
|
1168
1128
|
const [err, res] = await utils.awaitTo(jingtongVerifyRequest.passportAuth(formData))
|
|
1169
1129
|
if (err) {
|
|
1170
1130
|
console.log('外国人护照核验接口认证失败', err)
|
|
@@ -1188,7 +1148,7 @@ Page({
|
|
|
1188
1148
|
|
|
1189
1149
|
// 外国人护照核验通过
|
|
1190
1150
|
passportAuthSuccess() {
|
|
1191
|
-
// 调用删除接口/静默登录并返回session信息
|
|
1151
|
+
// 调用删除接口/静默登录并返回session信息
|
|
1192
1152
|
jingtongVerifyRequest.deletePassportAuth({
|
|
1193
1153
|
success: session => {
|
|
1194
1154
|
console.log('返回session信息', session)
|
|
@@ -1393,8 +1353,7 @@ Page({
|
|
|
1393
1353
|
showFaceModal: false,
|
|
1394
1354
|
showLockFaceModal: false,
|
|
1395
1355
|
showCardModal: false,
|
|
1396
|
-
showTipModal: false
|
|
1397
|
-
showOtherWayTipModal: false
|
|
1356
|
+
showTipModal: false
|
|
1398
1357
|
})
|
|
1399
1358
|
},
|
|
1400
1359
|
|
|
@@ -1586,227 +1545,4 @@ Page({
|
|
|
1586
1545
|
msg: valid ? '' : msg
|
|
1587
1546
|
}
|
|
1588
1547
|
},
|
|
1589
|
-
|
|
1590
|
-
// 判断是否是PC端登录
|
|
1591
|
-
await this.getDevice()
|
|
1592
|
-
wx.showLoading({
|
|
1593
|
-
title: '验证中…',
|
|
1594
|
-
mask: true
|
|
1595
|
-
})
|
|
1596
|
-
// 验证是否在锁定期内,在的话,直接弹窗提示,并返回
|
|
1597
|
-
let bankCardFailTime = constantVal.getStorageWithExpire(constantVal.bank_card_verify_fail_time)
|
|
1598
|
-
if(bankCardFailTime){
|
|
1599
|
-
// 当前时间
|
|
1600
|
-
const now = Date.now()
|
|
1601
|
-
|
|
1602
|
-
// 判断是否在30分钟内(1小时 = 3600 * 1000 毫秒)
|
|
1603
|
-
const isWithinOneHour = (now - bankCardFailTime) < (30 * 60 * 1000)
|
|
1604
|
-
if(isWithinOneHour){
|
|
1605
|
-
console.log('当前仍在10分钟限制内')
|
|
1606
|
-
this.setData({
|
|
1607
|
-
showOtherWayTipModal: true
|
|
1608
|
-
})
|
|
1609
|
-
wx.showToast({
|
|
1610
|
-
title: '还存在银行卡验证失败锁定期内,请稍后再试',
|
|
1611
|
-
})
|
|
1612
|
-
return
|
|
1613
|
-
}
|
|
1614
|
-
}
|
|
1615
|
-
// 身份二要素校验
|
|
1616
|
-
const { name, id_card_number } = this.data.formData
|
|
1617
|
-
const verifyIdCardParams = {
|
|
1618
|
-
"id_card_number": id_card_number,
|
|
1619
|
-
"name": name,
|
|
1620
|
-
"verify_type": "101",
|
|
1621
|
-
"support_type": "0x40"
|
|
1622
|
-
}
|
|
1623
|
-
jingtongVerifyRequest.verifyIdcard(verifyIdCardParams).then(res => {
|
|
1624
|
-
console.log('获取身份证二要素核验结果')
|
|
1625
|
-
console.log(res)
|
|
1626
|
-
if(res.errcode === 0){
|
|
1627
|
-
// 可进行
|
|
1628
|
-
} else {
|
|
1629
|
-
wx.showToast({
|
|
1630
|
-
title: res.errmsg,
|
|
1631
|
-
icon: 'none',
|
|
1632
|
-
duration: 2000
|
|
1633
|
-
})
|
|
1634
|
-
this.data.submitMode = ''
|
|
1635
|
-
this.data.isSubmitting = false
|
|
1636
|
-
return
|
|
1637
|
-
}
|
|
1638
|
-
wx.hideLoading()
|
|
1639
|
-
}).catch(error => {
|
|
1640
|
-
this.data.submitMode = ''
|
|
1641
|
-
this.data.isSubmitting = false
|
|
1642
|
-
return
|
|
1643
|
-
})
|
|
1644
|
-
// 验证手机号
|
|
1645
|
-
const infoCheckParam = {
|
|
1646
|
-
"id_card_number": id_card_number,
|
|
1647
|
-
"phone_number": ''
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
let isPhoneNumber = false
|
|
1651
|
-
jingtongVerifyRequest.getInfoCheck(infoCheckParam).then(res =>{
|
|
1652
|
-
const { errmsg, errcode } = res
|
|
1653
|
-
console.log(res)
|
|
1654
|
-
if(errcode === 0){
|
|
1655
|
-
if(res.data.phone_suffix){
|
|
1656
|
-
isPhoneNumber = false
|
|
1657
|
-
// 1:无密码和手机号,2:无密码有手机号,3:无手机号有密码
|
|
1658
|
-
this.setData({
|
|
1659
|
-
checkType:2
|
|
1660
|
-
})
|
|
1661
|
-
} else {
|
|
1662
|
-
isPhoneNumber = true
|
|
1663
|
-
// 1:无密码和手机号,2:无密码有手机号,3:无手机号有密码
|
|
1664
|
-
this.setData({
|
|
1665
|
-
checkType:3
|
|
1666
|
-
})
|
|
1667
|
-
}
|
|
1668
|
-
} else{
|
|
1669
|
-
isPhoneNumber = true
|
|
1670
|
-
}
|
|
1671
|
-
}).catch(error => {
|
|
1672
|
-
this.data.submitMode = ''
|
|
1673
|
-
this.data.isSubmitting = false
|
|
1674
|
-
return
|
|
1675
|
-
})
|
|
1676
|
-
jingtongVerifyRequest.checkPhonePwd(this.data.formData.id_card_number).then(res => {
|
|
1677
|
-
console.log(res)
|
|
1678
|
-
wx.hideLoading()
|
|
1679
|
-
const { errmsg, errcode } = res
|
|
1680
|
-
console.log(isPhoneNumber)
|
|
1681
|
-
console.log(!res.data.is_new)
|
|
1682
|
-
if (errcode === 0) {
|
|
1683
|
-
// isPhoneNumber 为true,即系没有手机号,res.data.is_new为true即系无密码
|
|
1684
|
-
if(isPhoneNumber && res.data.is_new){
|
|
1685
|
-
// 1:无密码和手机号,2:无密码有手机号,3:无手机号有密码
|
|
1686
|
-
this.setData({
|
|
1687
|
-
checkType: 1
|
|
1688
|
-
})
|
|
1689
|
-
wx.navigateTo({
|
|
1690
|
-
url: '/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify?id_card_number='+ this.data.formData.id_card_number
|
|
1691
|
-
+ '&cid_type=' + this.data.formData.cid_type
|
|
1692
|
-
+ '&name=' + this.data.formData.name
|
|
1693
|
-
+ '&strCid=' + this.data.formData.strCid
|
|
1694
|
-
+ '&verify_expire_time=' + this.data.formData.verify_expire_time
|
|
1695
|
-
+ '&checkType=' + this.data.checkType
|
|
1696
|
-
})
|
|
1697
|
-
} else if(isPhoneNumber && !res.data.is_new){
|
|
1698
|
-
// isPhoneNumber 为true,即系没有手机号,res.data.is_new为true即系无密码
|
|
1699
|
-
// 1:无密码和手机号,2:无密码有手机号,3:无手机号有密码
|
|
1700
|
-
this.setData({
|
|
1701
|
-
checkType: 3
|
|
1702
|
-
})
|
|
1703
|
-
wx.navigateTo({
|
|
1704
|
-
url: '/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify?id_card_number='+ this.data.formData.id_card_number
|
|
1705
|
-
+ '&cid_type=' + this.data.formData.cid_type
|
|
1706
|
-
+ '&name=' + this.data.formData.name
|
|
1707
|
-
+ '&strCid=' + this.data.formData.strCid
|
|
1708
|
-
+ '&verify_expire_time=' + this.data.formData.verify_expire_time
|
|
1709
|
-
+ '&checkType=' + this.data.checkType
|
|
1710
|
-
})
|
|
1711
|
-
} else if(!isPhoneNumber && res.data.is_new){
|
|
1712
|
-
// isPhoneNumber 为true,即系没有手机号,res.data.is_new为true即系无密码
|
|
1713
|
-
// 1:无密码和手机号,2:无密码有手机号,3:无手机号有密码
|
|
1714
|
-
this.setData({
|
|
1715
|
-
checkType: 2
|
|
1716
|
-
})
|
|
1717
|
-
wx.navigateTo({
|
|
1718
|
-
url: '/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify?id_card_number='+ this.data.formData.id_card_number
|
|
1719
|
-
+ '&cid_type=' + this.data.formData.cid_type
|
|
1720
|
-
+ '&name=' + this.data.formData.name
|
|
1721
|
-
+ '&strCid=' + this.data.formData.strCid
|
|
1722
|
-
+ '&verify_expire_time=' + this.data.formData.verify_expire_time
|
|
1723
|
-
+ '&checkType=' + this.data.checkType
|
|
1724
|
-
})
|
|
1725
|
-
} else {
|
|
1726
|
-
wx.navigateTo({
|
|
1727
|
-
url: '/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login?cardNumber='
|
|
1728
|
-
+ this.data.formData.id_card_number
|
|
1729
|
-
+ '&cid_type=' + this.data.formData.cid_type
|
|
1730
|
-
+ '&name=' + this.data.formData.name
|
|
1731
|
-
+ '&strCid=' + this.data.formData.strCid
|
|
1732
|
-
+ '&verify_expire_time=' + this.data.formData.verify_expire_time
|
|
1733
|
-
})
|
|
1734
|
-
}
|
|
1735
|
-
wx.hideLoading()
|
|
1736
|
-
// 成功跳转后重置防重复点击标记
|
|
1737
|
-
this.data.isSubmitting = false
|
|
1738
|
-
} else {
|
|
1739
|
-
wx.showToast({
|
|
1740
|
-
title: errmsg,
|
|
1741
|
-
icon: 'none',
|
|
1742
|
-
duration: 2000,
|
|
1743
|
-
})
|
|
1744
|
-
// 出错时重置防重复点击标记
|
|
1745
|
-
this.data.isSubmitting = false
|
|
1746
|
-
}
|
|
1747
|
-
}).catch(error => {
|
|
1748
|
-
console.log('异常')
|
|
1749
|
-
console.log(error)
|
|
1750
|
-
const { errcode, errmsg } = error
|
|
1751
|
-
wx.showToast({
|
|
1752
|
-
title: errmsg,
|
|
1753
|
-
icon: 'none',
|
|
1754
|
-
duration: 2000,
|
|
1755
|
-
})
|
|
1756
|
-
// 出错时重置防重复点击标记
|
|
1757
|
-
this.data.isSubmitting = false
|
|
1758
|
-
})
|
|
1759
|
-
this.data.submitMode = ''
|
|
1760
|
-
this.data.isSubmitting = false
|
|
1761
|
-
},
|
|
1762
|
-
// 防重复点击的点击处理方法
|
|
1763
|
-
async handletoOther() {
|
|
1764
|
-
console.log('点击其他方式')
|
|
1765
|
-
|
|
1766
|
-
// 检查是否正在处理中
|
|
1767
|
-
if (this.data.isSubmitting) {
|
|
1768
|
-
console.log('正在处理中,请勿重复点击')
|
|
1769
|
-
wx.showToast({
|
|
1770
|
-
title: '正在处理中,请稍候...',
|
|
1771
|
-
icon: 'none',
|
|
1772
|
-
duration: 1500
|
|
1773
|
-
})
|
|
1774
|
-
return
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
// 立即设置处理状态,防止重复点击
|
|
1778
|
-
this.data.isSubmitting = true
|
|
1779
|
-
|
|
1780
|
-
try {
|
|
1781
|
-
console.log('跳转其他页面')
|
|
1782
|
-
// console.log(this.data.formData)
|
|
1783
|
-
// console.log(this.data.formData.name)
|
|
1784
|
-
// console.log(this.data.formData.id_card_number)
|
|
1785
|
-
// console.log(this.data.formData.cid_type)
|
|
1786
|
-
|
|
1787
|
-
// 方案B
|
|
1788
|
-
this.data.submitMode = 'other' // 设置来源标记
|
|
1789
|
-
const form = this.selectComponent('#form')
|
|
1790
|
-
if (form && typeof form.handleSubmit === 'function') {
|
|
1791
|
-
// 触发表单的内置校验流程,结果会回调到 handleFormSubmit
|
|
1792
|
-
form.handleSubmit()
|
|
1793
|
-
// 注意:这里不重置 isSubmitting,等待 handleFormSubmit 中的处理完成
|
|
1794
|
-
} else {
|
|
1795
|
-
wx.showToast({ title: '表单未就绪,请稍后再试', icon: 'none' })
|
|
1796
|
-
// 表单未就绪时立即重置状态
|
|
1797
|
-
this.data.isSubmitting = false
|
|
1798
|
-
}
|
|
1799
|
-
} catch (error) {
|
|
1800
|
-
console.error('handletoOther 执行出错:', error)
|
|
1801
|
-
// 出错时重置状态
|
|
1802
|
-
this.data.isSubmitting = false
|
|
1803
|
-
}
|
|
1804
|
-
},
|
|
1805
|
-
handletoLoginHelp () {
|
|
1806
|
-
console.log('点击登录帮助')
|
|
1807
|
-
console.log('跳转其他页面')
|
|
1808
|
-
wx.navigateTo({
|
|
1809
|
-
url: '/weapps-plugin-jingtong-verify/pages/login-help/login-help',
|
|
1810
|
-
})
|
|
1811
|
-
}
|
|
1812
|
-
})
|
|
1548
|
+
})
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
</view>
|
|
303
303
|
|
|
304
304
|
<!-- 共有:协议勾选 -->
|
|
305
|
-
<view class="agree-box" style="margin-top:
|
|
305
|
+
<view class="agree-box" style="margin-top: 50rpx">
|
|
306
306
|
<g-agree id="agree" bind:change="handleChange" value="{{ formData.agree }}">
|
|
307
307
|
<view>
|
|
308
308
|
<text>{{ agreeInfo }}</text>
|
|
@@ -316,18 +316,6 @@
|
|
|
316
316
|
</g-agree>
|
|
317
317
|
</view>
|
|
318
318
|
</g-form>
|
|
319
|
-
<!-- 其他方式 start -->
|
|
320
|
-
<view class="other-way" wx:if="{{ formData.cid_type === '111' }}">
|
|
321
|
-
<view class="other-way-btn" bind:tap="handletoOther">
|
|
322
|
-
其他方式
|
|
323
|
-
</view>
|
|
324
|
-
</view>
|
|
325
|
-
<view class="login-help">
|
|
326
|
-
<view class="login-help-btn" bind:tap="handletoLoginHelp">
|
|
327
|
-
登录帮助
|
|
328
|
-
</view>
|
|
329
|
-
</view>
|
|
330
|
-
<!-- 其他方式 end -->
|
|
331
319
|
</view>
|
|
332
320
|
|
|
333
321
|
<!-- 英文版:证件类型为外国人护照 -->
|
|
@@ -514,9 +502,3 @@
|
|
|
514
502
|
bind:CancelBtn="cancelFaceErrorModal"
|
|
515
503
|
bind:ConfirmBtn="okFaceErrorModal"
|
|
516
504
|
></face-error-modal>
|
|
517
|
-
<!-- 其他方式锁定提示 -->
|
|
518
|
-
<tip-modal
|
|
519
|
-
visible="{{ showOtherWayTipModal }}"
|
|
520
|
-
bind:cancel="handleModalOk"
|
|
521
|
-
desc1="因您多次人脸识别验证未能通过,为保障账户安全,人脸识别的验证方式已暂时锁定,待锁定时效(10分钟)结束后,重新尝试人脸识别验证。"
|
|
522
|
-
></tip-modal>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
.img-box {
|
|
37
37
|
width: 160rpx;
|
|
38
38
|
height: 160rpx;
|
|
39
|
-
margin:
|
|
39
|
+
margin: 56rpx 0 52rpx;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.img {
|
|
@@ -131,56 +131,4 @@
|
|
|
131
131
|
box-sizing: border-box;
|
|
132
132
|
top: 0rpx;
|
|
133
133
|
width: 100%;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.other-way{
|
|
137
|
-
display: flex;
|
|
138
|
-
align-items: center;
|
|
139
|
-
justify-content: center;
|
|
140
|
-
padding-left:40rpx;
|
|
141
|
-
padding-right: 40rpx;
|
|
142
|
-
padding-top: 30rpx;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.other-way-btn{
|
|
146
|
-
width: 100%;
|
|
147
|
-
height: 96rpx;
|
|
148
|
-
border: 1px solid;
|
|
149
|
-
display: flex;
|
|
150
|
-
align-items: center;
|
|
151
|
-
justify-content: center;
|
|
152
|
-
border-radius: 10rpx;
|
|
153
|
-
border: 1px solid #CE0022;
|
|
154
|
-
color: #ce0022;
|
|
155
|
-
text-align: center;
|
|
156
|
-
font-family: "PingFang SC";
|
|
157
|
-
font-size: 17px;
|
|
158
|
-
font-style: normal;
|
|
159
|
-
font-weight: 500;
|
|
160
|
-
line-height: normal;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.login-help{
|
|
164
|
-
display: flex;
|
|
165
|
-
align-items: center;
|
|
166
|
-
justify-content: center;
|
|
167
|
-
padding-left:40rpx;
|
|
168
|
-
padding-right: 40rpx;
|
|
169
|
-
padding-top: 30rpx;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.login-help-btn{
|
|
173
|
-
width: 100%;
|
|
174
|
-
height: 76rpx;
|
|
175
|
-
display: flex;
|
|
176
|
-
align-items: center;
|
|
177
|
-
justify-content: center;
|
|
178
|
-
border-radius: 10rpx;
|
|
179
|
-
color: #62667a;
|
|
180
|
-
text-align: center;
|
|
181
|
-
font-family: "PingFang SC";
|
|
182
|
-
font-size: 17px;
|
|
183
|
-
font-style: normal;
|
|
184
|
-
font-weight: 500;
|
|
185
|
-
line-height: normal;
|
|
186
134
|
}
|
|
@@ -20,9 +20,19 @@ Page({
|
|
|
20
20
|
* @return {Array} 查询的结果
|
|
21
21
|
*/
|
|
22
22
|
fuzzyQuery(list, keyWord) {
|
|
23
|
-
let arr = [];
|
|
23
|
+
// let arr = [];
|
|
24
|
+
// for (let i = 0; i < list.length; i++) {
|
|
25
|
+
// if (list[i].name.match(keyWord) != null) {
|
|
26
|
+
// arr.push(list[i]);
|
|
27
|
+
// }
|
|
28
|
+
// }
|
|
29
|
+
// return arr;
|
|
30
|
+
const arr = [];
|
|
31
|
+
// 先将关键词转为小写(避免keyWord本身有大小写)
|
|
32
|
+
const lowerKeyWord = keyWord.toLowerCase();
|
|
24
33
|
for (let i = 0; i < list.length; i++) {
|
|
25
|
-
|
|
34
|
+
// 将name也转为小写,再用includes匹配(简单场景)
|
|
35
|
+
if (list[i].name.toLowerCase().includes(lowerKeyWord)) {
|
|
26
36
|
arr.push(list[i]);
|
|
27
37
|
}
|
|
28
38
|
}
|
|
@@ -160,17 +160,14 @@ Page({
|
|
|
160
160
|
// 跳转登录管理页面
|
|
161
161
|
goToLoginManage() {
|
|
162
162
|
// 上报事件
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
163
|
+
SDKTrack('function_btn_click', {
|
|
164
|
+
item_type: '8', // 业务分类
|
|
165
|
+
item_code: '110000000000511111993403700000', // 事项ID
|
|
166
|
+
item_access: '', // 业务入口
|
|
167
|
+
})
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
// })
|
|
172
|
-
wx.navigateTo({
|
|
173
|
-
url: '../../pages/login-manage-setting/login-manage-setting'
|
|
169
|
+
flow.navigateTo({
|
|
170
|
+
url: '../../pages/login-manage/login-manage'
|
|
174
171
|
})
|
|
175
172
|
},
|
|
176
173
|
|