weapps-plugin-jingtong-verify 1.5.9 → 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 -1373
- 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 -892
- 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
package/README.md
CHANGED
package/app.json
CHANGED
|
@@ -17,16 +17,7 @@
|
|
|
17
17
|
"pages/log-off/log-off",
|
|
18
18
|
"pages/logoff-success/logoff-success",
|
|
19
19
|
"pages/nation-list/nation-list",
|
|
20
|
-
"pages/face-error-reason/face-error-reason"
|
|
21
|
-
"pages/bank-card-verify/bank-card-verify",
|
|
22
|
-
"components/to-other-modal/to-other-modal",
|
|
23
|
-
"pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting",
|
|
24
|
-
"pages/bank-card-login/bank-card-login",
|
|
25
|
-
"pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting",
|
|
26
|
-
"components/custom-steps/custom-steps",
|
|
27
|
-
"pages/bank-card-login-forgot-sms-setting/bank-card-login-forgot-sms-setting",
|
|
28
|
-
"pages/login-help/login-help",
|
|
29
|
-
"pages/login-manage-setting/login-manage-setting"
|
|
20
|
+
"pages/face-error-reason/face-error-reason"
|
|
30
21
|
]
|
|
31
22
|
}
|
|
32
23
|
],
|
|
@@ -38,5 +29,6 @@
|
|
|
38
29
|
},
|
|
39
30
|
"style": "v2",
|
|
40
31
|
"sitemapLocation": "sitemap.json",
|
|
41
|
-
|
|
32
|
+
"plugins": {
|
|
33
|
+
}
|
|
42
34
|
}
|
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.
|
|
5
|
+
"version": "1.6.1",
|
|
6
6
|
"description": "",
|
|
7
7
|
"main": "sdk.js",
|
|
8
8
|
"author": "tongyirenzheng",
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
"crypto-js": "^3.3.0",
|
|
19
19
|
"miniprogram-sm-crypto": "^0.3.13"
|
|
20
20
|
}
|
|
21
|
-
}
|
|
21
|
+
}
|
package/sdk.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
const jingtongVerifyRequest = require('./weapps-plugin-jingtong-verify/utils/request')
|
|
2
2
|
const { nation } = require("./weapps-plugin-jingtong-verify/utils/country")
|
|
3
|
-
// const jingtongVerifyRequest = require('./utils/request')
|
|
4
|
-
// const { nation } = require("./utils/country")
|
|
5
3
|
const {
|
|
6
4
|
flow,
|
|
7
5
|
config
|
|
@@ -26,13 +24,6 @@ const parseOptions = (options) => {
|
|
|
26
24
|
return options
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
// 身份验证
|
|
30
|
-
exports.goToFace = () => {
|
|
31
|
-
console.log('跳转到子包 === 身份验证服务')
|
|
32
|
-
return flow.createFlow('/weapps-plugin-jingtong-verify/pages/face-verify/face-verify', {
|
|
33
|
-
needUnite: 'false' // 需串联起来
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
27
|
// 获取会话
|
|
37
28
|
exports.getSession = (options) => {
|
|
38
29
|
// 对参数做兼容性处理
|
|
@@ -79,29 +70,7 @@ const toBindPhone = (source) => {
|
|
|
79
70
|
source
|
|
80
71
|
})
|
|
81
72
|
}
|
|
82
|
-
|
|
83
|
-
exports.goToBankCardLoginPwdSetting = (options) => {
|
|
84
|
-
console.log('跳转到子包 === 设置登录密码')
|
|
85
|
-
// 对参数做兼容性处理
|
|
86
|
-
let optionsParse = parseOptions(options)
|
|
87
|
-
jingtongVerifyRequest.getSession({
|
|
88
|
-
success: res => {
|
|
89
|
-
console.log(res)
|
|
90
|
-
return flow.createFlow('/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting',{
|
|
91
|
-
"name": res.name,
|
|
92
|
-
"idCardNumber": res.cid,
|
|
93
|
-
"strCid": res.star_cid,
|
|
94
|
-
"cid_type": res.cid_type,
|
|
95
|
-
"verify_expire_time": res.verify_expire_time
|
|
96
|
-
})
|
|
97
|
-
},
|
|
98
|
-
fail: fail => {
|
|
99
|
-
console.log('getSession-fail', fail)
|
|
100
|
-
optionsParse && optionsParse.fail && optionsParse.fail(fail)
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
|
|
104
|
-
}
|
|
73
|
+
|
|
105
74
|
// 比较两个时间 time1,time2均为日期类型
|
|
106
75
|
// 判断当前日期与time1日期是否相差小于6月
|
|
107
76
|
const completeDate = (time1, m) => {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
class="input__element {{icon === 'info'?'input__elementIcon':''}}"
|
|
12
12
|
type="{{type}}" password="{{password}}"
|
|
13
13
|
placeholder="{{placeholder}}"
|
|
14
|
-
placeholder-class="
|
|
14
|
+
placeholder-class="input__placeholder"
|
|
15
15
|
disabled="{{disabled}}" maxlength="{{maxlength}}"
|
|
16
16
|
cursor-spacing="{{cursorSpacing}}"
|
|
17
17
|
focus="{{_focus}}" confirm-type="{{confirmType}}"
|
package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-input.wxss
CHANGED
|
@@ -142,15 +142,7 @@ input.input__element {
|
|
|
142
142
|
font-size: 36rpx;
|
|
143
143
|
line-height: 48rpx;
|
|
144
144
|
}
|
|
145
|
-
|
|
146
|
-
.bank-card-verify-placeholder {
|
|
147
|
-
font-family: "PingFang SC";
|
|
148
|
-
font-style: normal;
|
|
149
|
-
font-weight: 400;
|
|
150
|
-
font-size: 32rpx !important;
|
|
151
|
-
line-height: 40rpx !important;
|
|
152
|
-
color: #bbbec4 !important;
|
|
153
|
-
}
|
|
145
|
+
|
|
154
146
|
.input__prepend {
|
|
155
147
|
font-size: 36rpx;
|
|
156
148
|
line-height: 48rpx;
|
|
@@ -4,8 +4,6 @@
|
|
|
4
4
|
<view class="title">温馨提示</view>
|
|
5
5
|
<view class="desc" style="{{ 'text-align:' + xAlign }}">{{ desc1 }}</view>
|
|
6
6
|
<view class="desc" style="{{ 'text-align:' + xAlign }}">{{ desc2 }}</view>
|
|
7
|
-
<view class="desc" style="{{ 'text-align:' + xAlign }}">{{ desc3 }}</view>
|
|
8
|
-
<view class="desc" style="{{ 'text-align:' + xAlign }}">{{ desc4 }}</view>
|
|
9
7
|
<view class="btn" catch:tap="handleCancel">我知道了</view>
|
|
10
8
|
</view>
|
|
11
9
|
</view>
|
|
@@ -13,12 +13,12 @@ const rules = {
|
|
|
13
13
|
},
|
|
14
14
|
id_card_number: {
|
|
15
15
|
required: {
|
|
16
|
-
zh_CN: '
|
|
17
|
-
en: 'Please enter
|
|
16
|
+
zh_CN: '请输入有效的证件号码',
|
|
17
|
+
en: 'Please enter a valid Passport number'
|
|
18
18
|
},
|
|
19
19
|
validate: {
|
|
20
|
-
zh_CN: '
|
|
21
|
-
en: 'Please enter a valid
|
|
20
|
+
zh_CN: '请输入有效的证件号码',
|
|
21
|
+
en: 'Please enter a valid Passport number'
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
verify_expire_time: {
|
|
@@ -32,22 +32,6 @@ const rules = {
|
|
|
32
32
|
zh_CN: '请阅读下文规则并勾选同意',
|
|
33
33
|
en: 'Please read the text below and tick the checkbox if you agree'
|
|
34
34
|
}
|
|
35
|
-
},
|
|
36
|
-
phone_number: {
|
|
37
|
-
required: {
|
|
38
|
-
zh_CN: '请输入手机号码',
|
|
39
|
-
en: 'Please enter your phone number'
|
|
40
|
-
},
|
|
41
|
-
validate: {
|
|
42
|
-
zh_CN: '请输入有效的手机号码',
|
|
43
|
-
en: 'Please enter a valid mobile phone number'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
verification_code: {
|
|
47
|
-
required: {
|
|
48
|
-
zh_CN: '请输入短信验证码',
|
|
49
|
-
en: 'Please enter the SMS verification code'
|
|
50
|
-
}
|
|
51
35
|
}
|
|
52
36
|
},
|
|
53
37
|
|
|
@@ -271,132 +255,7 @@ const rules = {
|
|
|
271
255
|
en: '请输入有效的通行证号码'
|
|
272
256
|
}
|
|
273
257
|
}
|
|
274
|
-
}
|
|
275
|
-
// 银联卡实人核验能力
|
|
276
|
-
bankCardRules: {
|
|
277
|
-
cardholder_name: {
|
|
278
|
-
required: {
|
|
279
|
-
zh_CN: '请输入持卡人姓名',
|
|
280
|
-
en: 'Please enter the cardholder name'
|
|
281
|
-
},
|
|
282
|
-
validate: {
|
|
283
|
-
zh_CN: '请输入有效的持卡人姓名',
|
|
284
|
-
en: 'Please enter a valid cardholder name'
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
id_card_number: {
|
|
288
|
-
required: {
|
|
289
|
-
zh_CN: '请输入有效的证件号码',
|
|
290
|
-
en: 'Please enter a valid Passport number'
|
|
291
|
-
},
|
|
292
|
-
validate: {
|
|
293
|
-
zh_CN: '请输入有效的证件号码',
|
|
294
|
-
en: 'Please enter a valid Passport number'
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
bank_card_account: {
|
|
298
|
-
required: {
|
|
299
|
-
zh_CN: '请输入支持银联的银行卡卡号(带有银联标识)',
|
|
300
|
-
en: 'Please enter the card number of a UnionPay-supported bank card (with UnionPay logo)'
|
|
301
|
-
},
|
|
302
|
-
validate: {
|
|
303
|
-
zh_CN: '请输入有效支持银联的银行卡卡号(带有银联标识)',
|
|
304
|
-
en: 'Please enter the card number of a UnionPay-supported bank card (with UnionPay logo)'
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
bank_phone: {
|
|
308
|
-
required: {
|
|
309
|
-
zh_CN: '请输入银行卡绑定的手机号码',
|
|
310
|
-
en: 'Please enter the phone number associated with the bank card'
|
|
311
|
-
},
|
|
312
|
-
validate: {
|
|
313
|
-
zh_CN: '请输入有效的银行卡绑定的手机号码',
|
|
314
|
-
en: 'Please enter the phone number associated with the bank card'
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
bank_card_password: {
|
|
318
|
-
required: {
|
|
319
|
-
zh_CN: '请输入登录密码',
|
|
320
|
-
en: 'Please enter your login password'
|
|
321
|
-
},
|
|
322
|
-
validate: {
|
|
323
|
-
zh_CN: '请输入有效登录密码',
|
|
324
|
-
en: 'Please enter your login password'
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
bank_card_pwd_password: {
|
|
328
|
-
required: {
|
|
329
|
-
zh_CN: '请再次输入登录密码',
|
|
330
|
-
en: 'Please enter your login password again'
|
|
331
|
-
},
|
|
332
|
-
validate: {
|
|
333
|
-
zh_CN: '两次密码输入不一致',
|
|
334
|
-
en: 'Please enter your login password again'
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
login_password: {
|
|
338
|
-
required: {
|
|
339
|
-
zh_CN: '请输入登录密码',
|
|
340
|
-
en: 'Please enter your login password'
|
|
341
|
-
},
|
|
342
|
-
validate: {
|
|
343
|
-
zh_CN: '请输入有效登录密码',
|
|
344
|
-
en: 'Please enter your login password'
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
verification_code: {
|
|
348
|
-
required: {
|
|
349
|
-
zh_CN: '请输入验证码',
|
|
350
|
-
en: 'Please enter the verification code'
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
},
|
|
354
|
-
// 设置密码
|
|
355
|
-
bankCardSetPwdRules: {
|
|
356
|
-
bank_card_password: {
|
|
357
|
-
required: {
|
|
358
|
-
zh_CN: '请输入登录密码',
|
|
359
|
-
en: 'Please enter your login password'
|
|
360
|
-
},
|
|
361
|
-
validate: {
|
|
362
|
-
zh_CN: '请输入有效登录密码',
|
|
363
|
-
en: 'Please enter your login password'
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
bank_card_pwd_password: {
|
|
367
|
-
required: {
|
|
368
|
-
zh_CN: '请再次输入登录密码',
|
|
369
|
-
en: 'Please enter your login password again'
|
|
370
|
-
},
|
|
371
|
-
validate: {
|
|
372
|
-
zh_CN: '两次密码输入不一致',
|
|
373
|
-
en: 'Please enter your login password again'
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
},
|
|
377
|
-
// 忘记密码设置新密码
|
|
378
|
-
bankCardSetNewPwdRules: {
|
|
379
|
-
bank_card_password: {
|
|
380
|
-
required: {
|
|
381
|
-
zh_CN: '请输入新登录密码',
|
|
382
|
-
en: 'Please enter your login password'
|
|
383
|
-
},
|
|
384
|
-
validate: {
|
|
385
|
-
zh_CN: '请输入有效新登录密码',
|
|
386
|
-
en: 'Please enter your login password'
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
bank_card_pwd_password: {
|
|
390
|
-
required: {
|
|
391
|
-
zh_CN: '请再次输入新登录密码',
|
|
392
|
-
en: 'Please enter your login password again'
|
|
393
|
-
},
|
|
394
|
-
validate: {
|
|
395
|
-
zh_CN: '两次密码输入不一致',
|
|
396
|
-
en: 'Please enter your login password again'
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
},
|
|
258
|
+
}
|
|
400
259
|
}
|
|
401
260
|
|
|
402
261
|
module.exports = {
|