weapps-plugin-jingtong-verify 1.4.1 → 1.4.2

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.
Files changed (183) hide show
  1. package/README.md +2 -1
  2. package/app.json +33 -33
  3. package/package.json +20 -20
  4. package/sdk.js +289 -289
  5. package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.js +31 -31
  6. package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.json +3 -3
  7. package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.wxml +9 -9
  8. package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.wxss +65 -65
  9. package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.js +37 -37
  10. package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.json +3 -3
  11. package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.wxml +30 -30
  12. package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.wxss +79 -79
  13. package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.js +32 -32
  14. package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.json +3 -3
  15. package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.wxml +16 -16
  16. package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.wxss +57 -57
  17. package/weapps-plugin-jingtong-verify/components/gsd-lib/anim/anim.min.js +1 -1
  18. package/weapps-plugin-jingtong-verify/components/gsd-lib/crypto/crypto.js +37 -37
  19. package/weapps-plugin-jingtong-verify/components/gsd-lib/crypto/index.js +44 -44
  20. package/weapps-plugin-jingtong-verify/components/gsd-lib/dayjs/index.js +351 -351
  21. package/weapps-plugin-jingtong-verify/components/gsd-lib/event/index.js +117 -117
  22. package/weapps-plugin-jingtong-verify/components/gsd-lib/index.js +63 -63
  23. package/weapps-plugin-jingtong-verify/components/gsd-lib/map/index.js +10 -10
  24. package/weapps-plugin-jingtong-verify/components/gsd-lib/map/qmap.js +6 -6
  25. package/weapps-plugin-jingtong-verify/components/gsd-lib/storage/index.js +114 -114
  26. package/weapps-plugin-jingtong-verify/components/gsd-lib/utils/index.js +218 -218
  27. package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/formCheck.js +72 -72
  28. package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/formController.js +47 -47
  29. package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/icon.js +11 -11
  30. package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/list.js +16 -16
  31. package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/navigator.js +33 -33
  32. package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/primarySecondButton.js +18 -18
  33. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-agree/index.js +12 -12
  34. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-agree/index.json +5 -5
  35. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-agree/index.wxml +15 -15
  36. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-badge/index.js +47 -47
  37. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-badge/index.json +3 -3
  38. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-badge/index.wxml +13 -13
  39. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-button-group/index.js +44 -44
  40. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-button-group/index.json +5 -5
  41. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-button-group/index.wxml +28 -28
  42. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.js +30 -30
  43. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.json +6 -6
  44. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.wxml +42 -42
  45. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.wxss +1 -1
  46. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-date-picker-en/index.js +418 -418
  47. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-date-picker-en/index.json +5 -5
  48. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-date-picker-en/index.wxml +29 -29
  49. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-dropdown/index.js +11 -11
  50. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-dropdown/index.json +3 -3
  51. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-dropdown/index.wxml +4 -4
  52. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.js +179 -179
  53. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.json +6 -6
  54. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.wxml +16 -16
  55. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.js +92 -92
  56. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.json +6 -6
  57. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.wxml +12 -12
  58. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.wxss +2 -2
  59. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-item/index.js +49 -49
  60. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-item/index.json +3 -3
  61. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-item/index.wxml +14 -14
  62. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-icon/index.js +33 -33
  63. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-icon/index.json +3 -3
  64. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-icon/index.wxml +2 -2
  65. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-index-list/index.js +108 -108
  66. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-index-list/index.json +6 -6
  67. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-index-list/index.wxml +53 -53
  68. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.js +236 -237
  69. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.json +8 -8
  70. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.wxml +49 -49
  71. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-picker/index.js +328 -328
  72. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-picker/index.json +6 -6
  73. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-picker/index.wxml +26 -26
  74. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-popover/index.js +159 -159
  75. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-popover/index.json +3 -3
  76. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-popover/index.wxml +10 -10
  77. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-search/index.js +112 -112
  78. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-search/index.json +5 -5
  79. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-search/index.wxml +21 -21
  80. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-switch/index.js +21 -21
  81. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-switch/index.json +7 -7
  82. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-switch/index.wxml +16 -16
  83. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-tips/index.js +50 -50
  84. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-tips/index.json +5 -5
  85. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-tips/index.wxml +27 -27
  86. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/add.svg +13 -13
  87. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/arrow.svg +14 -14
  88. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/delete.svg +16 -16
  89. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/preview.svg +21 -21
  90. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/user.svg +13 -13
  91. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-agree.wxss +147 -147
  92. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-badge.wxss +41 -41
  93. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-button-group.wxss +244 -244
  94. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-cell.wxss +220 -220
  95. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-dropdown.wxss +115 -115
  96. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-form-cell.wxss +101 -101
  97. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-form-item.wxss +174 -174
  98. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-form.wxss +101 -101
  99. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-icon.wxss +268 -268
  100. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-index-list.wxss +206 -206
  101. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-input.wxss +206 -206
  102. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-picker.wxss +139 -139
  103. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-popover.wxss +129 -129
  104. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-search.wxss +171 -171
  105. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-switch.wxss +176 -176
  106. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-tips.wxss +173 -173
  107. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/icon/iconfont.wxss +160 -160
  108. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/main.wxss +283 -283
  109. package/weapps-plugin-jingtong-verify/components/gsd-ui/utils/helper.js +55 -55
  110. package/weapps-plugin-jingtong-verify/components/gsd-ui/utils/validType.js +117 -117
  111. package/weapps-plugin-jingtong-verify/components/gsd-ui/utils/validator.js +106 -106
  112. package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.js +32 -32
  113. package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.json +3 -3
  114. package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.wxml +8 -8
  115. package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.wxss +57 -57
  116. package/weapps-plugin-jingtong-verify/components/modal/modal.js +32 -32
  117. package/weapps-plugin-jingtong-verify/components/modal/modal.json +3 -3
  118. package/weapps-plugin-jingtong-verify/components/modal/modal.wxml +28 -28
  119. package/weapps-plugin-jingtong-verify/components/modal/modal.wxss +84 -84
  120. package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.js +82 -82
  121. package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.json +3 -3
  122. package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxml +18 -18
  123. package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxss +72 -72
  124. package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.js +39 -39
  125. package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.json +3 -3
  126. package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.wxml +9 -9
  127. package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.wxss +51 -51
  128. package/weapps-plugin-jingtong-verify/i18n/index.js +7 -7
  129. package/weapps-plugin-jingtong-verify/i18n/logout.js +10 -10
  130. package/weapps-plugin-jingtong-verify/i18n/rules.js +263 -203
  131. package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.js +86 -86
  132. package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.json +6 -6
  133. package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.wxml +20 -20
  134. package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.wxss +51 -51
  135. package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.js +167 -167
  136. package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.json +3 -3
  137. package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.wxml +30 -30
  138. package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.wxss +91 -91
  139. package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.js +79 -79
  140. package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.json +5 -5
  141. package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.wxml +19 -19
  142. package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.wxss +44 -44
  143. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.js +1382 -1382
  144. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.json +16 -16
  145. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxml +494 -494
  146. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxss +116 -116
  147. package/weapps-plugin-jingtong-verify/pages/log-off/log-off.js +127 -127
  148. package/weapps-plugin-jingtong-verify/pages/log-off/log-off.json +5 -5
  149. package/weapps-plugin-jingtong-verify/pages/log-off/log-off.wxml +36 -36
  150. package/weapps-plugin-jingtong-verify/pages/log-off/log-off.wxss +60 -60
  151. package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.js +106 -106
  152. package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.json +3 -3
  153. package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxml +29 -29
  154. package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxss +68 -68
  155. package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.js +24 -24
  156. package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.json +3 -3
  157. package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.wxml +12 -12
  158. package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.wxss +33 -33
  159. package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.js +110 -110
  160. package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.json +6 -6
  161. package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.wxml +9 -9
  162. package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.wxss +1 -1
  163. package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.js +845 -641
  164. package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.json +11 -10
  165. package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.wxml +161 -152
  166. package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.wxss +64 -47
  167. package/weapps-plugin-jingtong-verify/pages/setting/setting.js +328 -328
  168. package/weapps-plugin-jingtong-verify/pages/setting/setting.json +5 -5
  169. package/weapps-plugin-jingtong-verify/pages/setting/setting.wxml +91 -91
  170. package/weapps-plugin-jingtong-verify/pages/setting/setting.wxss +69 -69
  171. package/weapps-plugin-jingtong-verify/pages/user-info/user-info.js +306 -306
  172. package/weapps-plugin-jingtong-verify/pages/user-info/user-info.json +7 -7
  173. package/weapps-plugin-jingtong-verify/pages/user-info/user-info.wxml +142 -142
  174. package/weapps-plugin-jingtong-verify/pages/user-info/user-info.wxss +110 -110
  175. package/weapps-plugin-jingtong-verify/style/page.wxss +13 -13
  176. package/weapps-plugin-jingtong-verify/utils/QDTrackerNew/QDTracker.js +15 -15
  177. package/weapps-plugin-jingtong-verify/utils/QDTrackerNew/QDTrackerMain.js +59 -59
  178. package/weapps-plugin-jingtong-verify/utils/country.js +209 -209
  179. package/weapps-plugin-jingtong-verify/utils/index.js +306 -306
  180. package/weapps-plugin-jingtong-verify/utils/jsencrypt.min.js +1 -1
  181. package/weapps-plugin-jingtong-verify/utils/rules.js +302 -258
  182. package/weapps-plugin-jingtong-verify/utils/tifadmin_config.js +61 -61
  183. package/weapps-plugin-jingtong-verify/utils/validate.js +772 -772
@@ -1,203 +1,263 @@
1
- const rules = {
2
- // 身份证
3
- chinaRules: {
4
- name: {
5
- required: {
6
- zh_CN: '请输入中文姓名',
7
- en: 'Please enter a valid name'
8
- },
9
- validate: {
10
- zh_CN: '请输入有效的姓名',
11
- en: 'Please enter a valid name'
12
- }
13
- },
14
- id_card_number: {
15
- required: {
16
- zh_CN: '请输入有效的证件号码',
17
- en: 'Please enter a valid Passport number'
18
- },
19
- validate: {
20
- zh_CN: '请输入有效的证件号码',
21
- en: 'Please enter a valid Passport number'
22
- }
23
- },
24
- verify_expire_time: {
25
- required: {
26
- zh_CN: '请选择登录有效期',
27
- en: 'Please select a login validity period'
28
- }
29
- },
30
- agree: {
31
- required: {
32
- zh_CN: '请阅读下文规则并勾选同意',
33
- en: 'Please read the text below and tick the checkbox if you agree'
34
- }
35
- }
36
- },
37
-
38
- // 港澳台通行证+华侨护照+永居证
39
- HMORules: {
40
- name: {
41
- required: {
42
- zh_CN: '请输入证件上的姓名',
43
- en: 'Please enter'
44
- }
45
- },
46
- nation: {
47
- required: {
48
- zh_CN: '请选择国籍',
49
- en: 'Please select your nationality'
50
- }
51
- },
52
- sex: {
53
- zh_CN: '请选择本人性别',
54
- en: 'Please select your gender information'
55
- },
56
- birthday: {
57
- zh_CN: '请选择本人出生日期',
58
- en: 'Please select your date of birth'
59
- },
60
- id_card_number: {
61
- required: {
62
- zh_CN: '请输入有效的证件号码',
63
- en: 'Please enter your passport No.'
64
- },
65
- validate: {
66
- zh_CN: '请输入有效的证件号码',
67
- en: 'Please enter your passport No.'
68
- }
69
- },
70
- cid_expire_date: {
71
- zh_CN: '请选择证件有效期截止日期',
72
- en: 'Please select the expiration date of your passport'
73
- },
74
- },
75
-
76
- // 外国护照
77
- foreignerRules: {
78
- id_card_number: {
79
- required: {
80
- zh_CN: '请输入护照号码',
81
- en: 'Please enter your passport No.'
82
- },
83
- validate: {
84
- zh_CN: '证件号码不允许汉字、全角字符、特殊字符',
85
- en: 'Please enter your passport No.'
86
- }
87
- },
88
- nation: {
89
- required: {
90
- zh_CN: '请选择国籍',
91
- en: 'Please select your nationality'
92
- }
93
- },
94
- sur_name: {
95
- required: {
96
- zh_CN: '请输入姓',
97
- en: 'Please enter your surname'
98
- },
99
- validate: {
100
- zh_CN: '不能输入小写字母',
101
- en: 'Please enter capital letters'
102
- },
103
- },
104
- first_name: {
105
- required: {
106
- zh_CN: '请输入名',
107
- en: 'Please enter your given names'
108
- },
109
- validate: {
110
- zh_CN: '不能输入小写字母',
111
- en: 'Please enter capital letters'
112
- },
113
- },
114
- sex: {
115
- zh_CN: '请选择性别',
116
- en: 'Please select your gender information'
117
- },
118
- birthday: {
119
- zh_CN: '请选择出生日期',
120
- en: 'Please select your date of birth'
121
- },
122
- cid_expire_date: {
123
- zh_CN: '请选择护照有效期',
124
- en: 'Please select the expiration date of your passport'
125
- },
126
- phone: {
127
- required: {
128
- zh_CN: '请输入手机号码',
129
- en: 'Please enter your mobile phone number'
130
- }
131
- }
132
- },
133
-
134
- // 银行卡
135
- cardRules: {
136
- id_card_number: {
137
- required: {
138
- zh_CN: '请输入证件号码',
139
- en: '请输入证件号码'
140
- },
141
- validate: {
142
- zh_CN: '请输入有效的证件号码',
143
- en: '请输入有效的证件号码'
144
- }
145
- },
146
- bank_account: {
147
- required: {
148
- zh_CN: '请输入银行卡卡号(支持国内各主要银行)',
149
- en: '请输入银行卡卡号(支持国内各主要银行)'
150
- }
151
- },
152
- name: {
153
- required: {
154
- zh_CN: '请输入银行卡绑定证件姓名',
155
- en: '请输入银行卡绑定证件姓名'
156
- }
157
- },
158
- phone: {
159
- required: {
160
- zh_CN: '请输入银行卡绑定手机号码',
161
- en: '请输入银行卡绑定手机号码'
162
- }
163
- }
164
- },
165
-
166
- // 居住证
167
- residenceAuthRules: {
168
- name: {
169
- required: {
170
- zh_CN: '请输入本人姓名',
171
- en: '请输入本人姓名'
172
- },
173
- },
174
- id_card_number: {
175
- required: {
176
- zh_CN: '请输入本人居住证号码',
177
- en: '请输入本人居住证号码'
178
- },
179
- validate: {
180
- zh_CN: '请输入有效的居住证号码',
181
- en: '请输入有效的居住证号码'
182
- }
183
- },
184
- validity_period: {
185
- required: {
186
- zh_CN: '请选择居住证有效期起始日期',
187
- en: '请选择居住证有效期起始日期'
188
- }
189
- },
190
- passport_number: {
191
- required: {
192
- zh_CN: '请输入本人通行证号码',
193
- en: '请输入本人通行证号码'
194
- },
195
- validate: {
196
- zh_CN: '请输入有效的通行证号码',
197
- en: '请输入有效的通行证号码'
198
- }
199
- }
200
- }
201
- }
202
-
203
- module.exports = { rules }
1
+ const rules = {
2
+ // 身份证
3
+ chinaRules: {
4
+ name: {
5
+ required: {
6
+ zh_CN: '请输入中文姓名',
7
+ en: 'Please enter a valid name'
8
+ },
9
+ validate: {
10
+ zh_CN: '请输入有效的姓名',
11
+ en: 'Please enter a valid name'
12
+ }
13
+ },
14
+ id_card_number: {
15
+ required: {
16
+ zh_CN: '请输入有效的证件号码',
17
+ en: 'Please enter a valid Passport number'
18
+ },
19
+ validate: {
20
+ zh_CN: '请输入有效的证件号码',
21
+ en: 'Please enter a valid Passport number'
22
+ }
23
+ },
24
+ verify_expire_time: {
25
+ required: {
26
+ zh_CN: '请选择登录有效期',
27
+ en: 'Please select a login validity period'
28
+ }
29
+ },
30
+ agree: {
31
+ required: {
32
+ zh_CN: '请阅读下文规则并勾选同意',
33
+ en: 'Please read the text below and tick the checkbox if you agree'
34
+ }
35
+ }
36
+ },
37
+
38
+ // 港澳台通行证+华侨护照+永居证
39
+ HMORules: {
40
+ name: {
41
+ required: {
42
+ zh_CN: '请输入证件上的姓名',
43
+ en: 'Please enter'
44
+ }
45
+ },
46
+ nation: {
47
+ required: {
48
+ zh_CN: '请选择国籍',
49
+ en: 'Please select your nationality'
50
+ }
51
+ },
52
+ sex: {
53
+ zh_CN: '请选择本人性别',
54
+ en: 'Please select your gender information'
55
+ },
56
+ birthday: {
57
+ zh_CN: '请选择本人出生日期',
58
+ en: 'Please select your date of birth'
59
+ },
60
+ id_card_number: {
61
+ required: {
62
+ zh_CN: '请输入有效的证件号码',
63
+ en: 'Please enter your passport No.'
64
+ },
65
+ validate: {
66
+ zh_CN: '请输入有效的证件号码',
67
+ en: 'Please enter your passport No.'
68
+ }
69
+ },
70
+ cid_expire_date: {
71
+ zh_CN: '请选择证件有效期截止日期',
72
+ en: 'Please select the expiration date of your passport'
73
+ },
74
+ },
75
+
76
+ // 外国护照
77
+ foreignerRules: {
78
+ id_card_number: {
79
+ required: {
80
+ zh_CN: '请输入护照号码',
81
+ en: 'Please enter your passport No.'
82
+ },
83
+ validate: {
84
+ zh_CN: '证件号码不允许汉字、全角字符、特殊字符',
85
+ en: 'Please enter your passport No.'
86
+ }
87
+ },
88
+ nation: {
89
+ required: {
90
+ zh_CN: '请选择国籍',
91
+ en: 'Please select your nationality'
92
+ }
93
+ },
94
+ sur_name: {
95
+ required: {
96
+ zh_CN: '请输入姓',
97
+ en: 'Please enter your surname'
98
+ },
99
+ validate: {
100
+ zh_CN: '不能输入小写字母',
101
+ en: 'Please enter capital letters'
102
+ },
103
+ },
104
+ first_name: {
105
+ required: {
106
+ zh_CN: '请输入名',
107
+ en: 'Please enter your given names'
108
+ },
109
+ validate: {
110
+ zh_CN: '不能输入小写字母',
111
+ en: 'Please enter capital letters'
112
+ },
113
+ },
114
+ sex: {
115
+ zh_CN: '请选择性别',
116
+ en: 'Please select your gender information'
117
+ },
118
+ birthday: {
119
+ zh_CN: '请选择出生日期',
120
+ en: 'Please select your date of birth'
121
+ },
122
+ cid_expire_date: {
123
+ zh_CN: '请选择护照有效期',
124
+ en: 'Please select the expiration date of your passport'
125
+ },
126
+ phone: {
127
+ required: {
128
+ zh_CN: '请输入手机号码',
129
+ en: 'Please enter your mobile phone number'
130
+ }
131
+ }
132
+ },
133
+
134
+ // 外国护照(人脸识别)
135
+ foreignerRulesFace: {
136
+ id_card_number: {
137
+ required: {
138
+ zh_CN: '请输入护照号码',
139
+ en: 'Please enter your passport No.'
140
+ },
141
+ validate: {
142
+ zh_CN: '证件号码不允许汉字、全角字符、特殊字符',
143
+ en: 'Please enter your passport No.'
144
+ }
145
+ },
146
+ nation: {
147
+ required: {
148
+ zh_CN: '请选择国籍',
149
+ en: 'Please select your nationality'
150
+ }
151
+ },
152
+ sur_name: {
153
+ required: {
154
+ zh_CN: '请输入姓',
155
+ en: 'Please enter your surname'
156
+ },
157
+ validate: {
158
+ zh_CN: '不能输入小写字母',
159
+ en: 'Please enter capital letters'
160
+ },
161
+ },
162
+ first_name: {
163
+ required: {
164
+ zh_CN: '请输入名',
165
+ en: 'Please enter your given names'
166
+ },
167
+ validate: {
168
+ zh_CN: '不能输入小写字母',
169
+ en: 'Please enter capital letters'
170
+ },
171
+ },
172
+ sex: {
173
+ zh_CN: '请选择性别',
174
+ en: 'Please select your gender information'
175
+ },
176
+ birthday: {
177
+ zh_CN: '请选择出生日期',
178
+ en: 'Please select your date of birth'
179
+ },
180
+ cid_expire_date: {
181
+ zh_CN: '请选择护照有效期',
182
+ en: 'Please select the expiration date of your passport'
183
+ },
184
+ phone: {
185
+ required: {
186
+ zh_CN: '请输入手机号码',
187
+ en: 'Please enter your mobile phone number'
188
+ }
189
+ }
190
+ },
191
+
192
+ // 银行卡
193
+ cardRules: {
194
+ id_card_number: {
195
+ required: {
196
+ zh_CN: '请输入证件号码',
197
+ en: '请输入证件号码'
198
+ },
199
+ validate: {
200
+ zh_CN: '请输入有效的证件号码',
201
+ en: '请输入有效的证件号码'
202
+ }
203
+ },
204
+ bank_account: {
205
+ required: {
206
+ zh_CN: '请输入银行卡卡号(支持国内各主要银行)',
207
+ en: '请输入银行卡卡号(支持国内各主要银行)'
208
+ }
209
+ },
210
+ name: {
211
+ required: {
212
+ zh_CN: '请输入银行卡绑定证件姓名',
213
+ en: '请输入银行卡绑定证件姓名'
214
+ }
215
+ },
216
+ phone: {
217
+ required: {
218
+ zh_CN: '请输入银行卡绑定手机号码',
219
+ en: '请输入银行卡绑定手机号码'
220
+ }
221
+ }
222
+ },
223
+
224
+ // 居住证
225
+ residenceAuthRules: {
226
+ name: {
227
+ required: {
228
+ zh_CN: '请输入本人姓名',
229
+ en: '请输入本人姓名'
230
+ },
231
+ },
232
+ id_card_number: {
233
+ required: {
234
+ zh_CN: '请输入本人居住证号码',
235
+ en: '请输入本人居住证号码'
236
+ },
237
+ validate: {
238
+ zh_CN: '请输入有效的居住证号码',
239
+ en: '请输入有效的居住证号码'
240
+ }
241
+ },
242
+ validity_period: {
243
+ required: {
244
+ zh_CN: '请选择居住证有效期起始日期',
245
+ en: '请选择居住证有效期起始日期'
246
+ }
247
+ },
248
+ passport_number: {
249
+ required: {
250
+ zh_CN: '请输入本人通行证号码',
251
+ en: '请输入本人通行证号码'
252
+ },
253
+ validate: {
254
+ zh_CN: '请输入有效的通行证号码',
255
+ en: '请输入有效的通行证号码'
256
+ }
257
+ }
258
+ }
259
+ }
260
+
261
+ module.exports = {
262
+ rules
263
+ }
@@ -1,87 +1,87 @@
1
- // weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.js
2
- const jingtongVerifyRequest = require('../../utils/request')
3
- const utils = require("../../utils/index")
4
- const { flow } = require("@wecity/weda-plugin-utils");
5
-
6
- Page({
7
-
8
- /**
9
- * 页面的初始数据
10
- */
11
- data: {
12
- source: ''
13
- },
14
-
15
- // 微信获取手机号码授权
16
- async getPhoneNumber(e) {
17
- console.log('微信获取手机号码授权', e)
18
- if (e.detail.iv) {
19
- const params = Object.assign(e.detail, {
20
- source: this.data.source || ''
21
- })
22
- const [err1, session] = await utils.awaitTo(jingtongVerifyRequest.loginPhone(params))
23
- if (err1) {
24
- wx.showToast({
25
- title: err1.errmsg || '手机号码获取失败',
26
- icon: 'none',
27
- mask: true
28
- })
29
-
30
- // 解决用户未找到的问题:跳转到认证信息填写页面
31
- if (err1.errcode === 2034) {
32
- setTimeout(() => {
33
- flow.redirectTo({
34
- url: '../face-verify/face-verify?needUnite=true'
35
- })
36
- }, 1500)
37
- }
38
- return
39
- }
40
-
41
- wx.showToast({
42
- title: '绑定成功, 跳转中…',
43
- icon: 'none',
44
- duration: 5000,
45
- mask: true
46
- })
47
-
48
- // 登录成功回调 => 业务侧操作事项
49
- wx.$_ServiceConfiguration && wx.$_ServiceConfiguration.methods && wx.$_ServiceConfiguration.methods._loginSuccessCallBack && wx.$_ServiceConfiguration.methods._loginSuccessCallBack(session)
50
-
51
- const [err2, token] = await utils.awaitTo(jingtongVerifyRequest.personToken({ source: '8' }))
52
- if (err2) {
53
- return
54
- }
55
-
56
- // 埋点 - 个人用户实体全属性上报
57
- let last_login_time = utils.getCurrentTime()
58
- wx.setStorageSync('tif.lastLoginTime', last_login_time)
59
- const data = Object.assign(session, {
60
- user_status: '1',
61
- last_login_time,
62
- user_date_of_birth: session.cid_type === '111' ? utils.getBirthByIDCard(session.cid) : ''
63
- })
64
- await utils.awaitTo(jingtongVerifyRequest.userEntityReport(data))
65
-
66
- // 返回主包
67
- setTimeout(() => {
68
- flow.resolve({
69
- token
70
- })
71
- }, 1200)
72
- } else {
73
- wx.showToast({
74
- title: '您的微信版本太低,无法授权',
75
- icon: 'none'
76
- })
77
- }
78
- },
79
-
80
- onLoad(options) {
81
- console.log('参数', options)
82
- this.setData({
83
- source: options && options.source || ''
84
- })
85
- wx.hideShareMenu()
86
- }
1
+ // weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.js
2
+ const jingtongVerifyRequest = require('../../utils/request')
3
+ const utils = require("../../utils/index")
4
+ const { flow } = require("@wecity/weda-plugin-utils");
5
+
6
+ Page({
7
+
8
+ /**
9
+ * 页面的初始数据
10
+ */
11
+ data: {
12
+ source: ''
13
+ },
14
+
15
+ // 微信获取手机号码授权
16
+ async getPhoneNumber(e) {
17
+ console.log('微信获取手机号码授权', e)
18
+ if (e.detail.iv) {
19
+ const params = Object.assign(e.detail, {
20
+ source: this.data.source || ''
21
+ })
22
+ const [err1, session] = await utils.awaitTo(jingtongVerifyRequest.loginPhone(params))
23
+ if (err1) {
24
+ wx.showToast({
25
+ title: err1.errmsg || '手机号码获取失败',
26
+ icon: 'none',
27
+ mask: true
28
+ })
29
+
30
+ // 解决用户未找到的问题:跳转到认证信息填写页面
31
+ if (err1.errcode === 2034) {
32
+ setTimeout(() => {
33
+ flow.redirectTo({
34
+ url: '../face-verify/face-verify?needUnite=true'
35
+ })
36
+ }, 1500)
37
+ }
38
+ return
39
+ }
40
+
41
+ wx.showToast({
42
+ title: '绑定成功, 跳转中…',
43
+ icon: 'none',
44
+ duration: 5000,
45
+ mask: true
46
+ })
47
+
48
+ // 登录成功回调 => 业务侧操作事项
49
+ wx.$_ServiceConfiguration && wx.$_ServiceConfiguration.methods && wx.$_ServiceConfiguration.methods._loginSuccessCallBack && wx.$_ServiceConfiguration.methods._loginSuccessCallBack(session)
50
+
51
+ const [err2, token] = await utils.awaitTo(jingtongVerifyRequest.personToken({ source: '8' }))
52
+ if (err2) {
53
+ return
54
+ }
55
+
56
+ // 埋点 - 个人用户实体全属性上报
57
+ let last_login_time = utils.getCurrentTime()
58
+ wx.setStorageSync('tif.lastLoginTime', last_login_time)
59
+ const data = Object.assign(session, {
60
+ user_status: '1',
61
+ last_login_time,
62
+ user_date_of_birth: session.cid_type === '111' ? utils.getBirthByIDCard(session.cid) : ''
63
+ })
64
+ await utils.awaitTo(jingtongVerifyRequest.userEntityReport(data))
65
+
66
+ // 返回主包
67
+ setTimeout(() => {
68
+ flow.resolve({
69
+ token
70
+ })
71
+ }, 1200)
72
+ } else {
73
+ wx.showToast({
74
+ title: '您的微信版本太低,无法授权',
75
+ icon: 'none'
76
+ })
77
+ }
78
+ },
79
+
80
+ onLoad(options) {
81
+ console.log('参数', options)
82
+ this.setData({
83
+ source: options && options.source || ''
84
+ })
85
+ wx.hideShareMenu()
86
+ }
87
87
  })
@@ -1,7 +1,7 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "g-button-group": "../../components/gsd-ui/g-button-group"
5
- },
6
- "navigationBarTitleText": "手机绑定"
1
+ {
2
+ "component": true,
3
+ "usingComponents": {
4
+ "g-button-group": "../../components/gsd-ui/g-button-group"
5
+ },
6
+ "navigationBarTitleText": "手机绑定"
7
7
  }