weapps-plugin-jingtong-verify 1.6.0 → 1.6.2-beta

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 (224) hide show
  1. package/README.md +1 -1
  2. package/app.json +33 -41
  3. package/package.json +21 -21
  4. package/sdk.js +309 -320
  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 -182
  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 -241
  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 -214
  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 -47
  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 -11
  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 +262 -403
  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 +1558 -1812
  144. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.json +17 -17
  145. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxml +504 -522
  146. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxss +133 -185
  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 +120 -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 +864 -854
  164. package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.json +11 -11
  165. package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.wxml +162 -162
  166. package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.wxss +64 -64
  167. package/weapps-plugin-jingtong-verify/pages/setting/setting.js +328 -331
  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/request.js +1 -670
  182. package/weapps-plugin-jingtong-verify/utils/rules.js +301 -405
  183. package/weapps-plugin-jingtong-verify/utils/tifadmin_config.js +61 -61
  184. package/weapps-plugin-jingtong-verify/utils/validate.js +772 -910
  185. package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.js +0 -41
  186. package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.json +0 -4
  187. package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.wxml +0 -20
  188. package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.wxss +0 -112
  189. package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.js +0 -73
  190. package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.json +0 -4
  191. package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.wxml +0 -19
  192. package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.wxss +0 -72
  193. package/weapps-plugin-jingtong-verify/images/bank-card-verify.png +0 -0
  194. package/weapps-plugin-jingtong-verify/images/chek_right.png +0 -0
  195. package/weapps-plugin-jingtong-verify/images/chevron-down.png +0 -0
  196. package/weapps-plugin-jingtong-verify/images/chevron-up.png +0 -0
  197. package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.js +0 -506
  198. package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.json +0 -8
  199. package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.wxml +0 -79
  200. package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.wxss +0 -212
  201. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.js +0 -1392
  202. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.json +0 -10
  203. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxml +0 -247
  204. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxss +0 -397
  205. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-sms-setting/bank-card-login-forgot-sms-setting.js +0 -66
  206. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-sms-setting/bank-card-login-forgot-sms-setting.wxml +0 -2
  207. package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.js +0 -463
  208. package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.json +0 -8
  209. package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.wxml +0 -69
  210. package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.wxss +0 -232
  211. package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.js +0 -984
  212. package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.json +0 -12
  213. package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.wxml +0 -157
  214. package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.wxss +0 -258
  215. package/weapps-plugin-jingtong-verify/pages/login-help/login-help.js +0 -147
  216. package/weapps-plugin-jingtong-verify/pages/login-help/login-help.json +0 -4
  217. package/weapps-plugin-jingtong-verify/pages/login-help/login-help.wxml +0 -48
  218. package/weapps-plugin-jingtong-verify/pages/login-help/login-help.wxss +0 -166
  219. package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.js +0 -189
  220. package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.json +0 -4
  221. package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.wxml +0 -19
  222. package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.wxss +0 -69
  223. package/weapps-plugin-jingtong-verify/utils/constantVal.js +0 -75
  224. package/weapps-plugin-jingtong-verify/utils/md5.js +0 -184
@@ -1,117 +1,117 @@
1
- const pattern = {
2
- email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
3
- url: new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$', 'i'),
4
- cn: /^[\u2E80-\uFE4F]+$/,
5
- enName: /^[\da-zA-Z\s]{2,}$/,
6
- cnName: /^[\u2E80-\uFE4F]{2,6}(?:·[\u2E80-\uFE4F]{2,6})*$/,
7
- userName: /^[\da-zA-Z\u2E80-\uFE4F \s]{2,}$/,
8
- carId: /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/,
9
- mobile: /^1[3456789]\d{9}$/,
10
- address: /^[\da-zA-Z\u2E80-\uFE4F \s-]{4,400}$/,
11
- date: /((^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(10|12|0?[13578])([-\/\._])(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(11|0?[469])([-\/\._])(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(0?2)([-\/\._])(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([3579][26]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][13579][26])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][13579][26])([-\/\._])(0?2)([-\/\._])(29)$))/,
12
- numVcode: /^[0-9]{4,8}$/,
13
- vcode: /^[a-zA-Z0-9]{4,8}$/,
14
- code: /^[a-zA-Z0-9]{4,}$/,
15
- hkMc: /^[WC][0-9]{8}$/,
16
- taiWan: /^T[0-9]{8}$/,
17
- passport: /^1[45][0-9]{7}|([E|e]\d{8})|([P|p|S|s]\d{7})|([S|s|G|g]\d{8})|([Gg|Tt|Ss|Ll|Qq|Dd|Aa|Ff]\d{8})|([H|h|M|m]\d{8,10})$/,
18
- num: /^[1-9][0-9]*$/,
19
- money: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
20
- id: /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/
21
- }
22
- // 定义字符串的trim方法
23
- if (String.prototype.trim === void 0) {
24
- String.prototype.trim = function () {
25
- return this.replace(/(^\s*)|(\s*$)/g, '')
26
- }
27
- }
28
-
29
-
30
- module.exports = {
31
- // required 校验方法
32
- required(value) {
33
- // 如果是数组,则判断数组长度
34
- if (Array.isArray(value)) {
35
- return value.length > 0
36
- } else if (typeof value === 'object') {
37
- return Object.keys(value).length > 0
38
- }
39
- return !!(value || value === 0)
40
-
41
- },
42
- // 身份证规则检测
43
- id(value) {
44
- return typeof (value) === 'string' && pattern.id.test(value.trim())
45
- },
46
- // 中文检测
47
- cn(value) {
48
- return typeof (value) === 'string' && pattern.cn.test(value.trim())
49
- },
50
- // 手机号码检测
51
- mobile(value) {
52
- return typeof (value) === 'string' && pattern.mobile.test(value.trim())
53
- },
54
- // 邮箱检测
55
- email(value) {
56
- return typeof (value) === 'string' && pattern.email.test(value.trim())
57
- },
58
- // URL检测
59
- url(value) {
60
- return typeof (value) === 'string' && pattern.url.test(value.trim())
61
- },
62
- // 车牌检测
63
- carId(value) {
64
- return typeof (value) === 'string' && pattern.carId.test(value.trim())
65
- },
66
- // 中文名检测
67
- cnName(value) {
68
- return typeof (value) === 'string' && pattern.cnName.test(value.trim())
69
- },
70
- // 英文名检测
71
- enName(value) {
72
- return typeof (value) === 'string' && pattern.enName.test(value.trim())
73
- },
74
- // 用户名检测
75
- userName(value) {
76
- return typeof (value) === 'string' && pattern.userName.test(value.trim())
77
- },
78
- // 地址检测
79
- address(value) {
80
- return typeof (value) === 'string' && pattern.address.test(value.trim())
81
- },
82
- // 日期检测
83
- date(value) {
84
- return typeof (value) === 'string' && pattern.date.test(value.trim())
85
- },
86
- // 数字验证码检测
87
- numVcode(value) {
88
- return typeof (value) === 'string' && pattern.numVcode.test(value.trim())
89
- },
90
- // 其它验证码检测
91
- vcode(value) {
92
- return typeof (value) === 'string' && pattern.vcode.test(value.trim())
93
- },
94
- // 编码检测
95
- code(value) {
96
- return typeof (value) === 'string' && pattern.code.test(value.trim())
97
- },
98
- // 港澳通行证检测
99
- hkMc(value) {
100
- return typeof (value) === 'string' && pattern.hkMc.test(value.trim())
101
- },
102
- // 台湾通行证检测
103
- taiWan(value) {
104
- return typeof (value) === 'string' && pattern.taiWan.test(value.trim())
105
- },
106
- // 护照检测
107
- passport(value) {
108
- return typeof (value) === 'string' && pattern.passport.test(value.trim())
109
- },
110
- num(value) {
111
- return typeof (value) === 'string' && pattern.num.test(value.trim())
112
- },
113
- // 金额检测
114
- money(value) {
115
- return typeof (value) === 'string' && pattern.money.test(value.trim())
116
- }
117
- }
1
+ const pattern = {
2
+ email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
3
+ url: new RegExp('^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$', 'i'),
4
+ cn: /^[\u2E80-\uFE4F]+$/,
5
+ enName: /^[\da-zA-Z\s]{2,}$/,
6
+ cnName: /^[\u2E80-\uFE4F]{2,6}(?:·[\u2E80-\uFE4F]{2,6})*$/,
7
+ userName: /^[\da-zA-Z\u2E80-\uFE4F \s]{2,}$/,
8
+ carId: /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/,
9
+ mobile: /^1[3456789]\d{9}$/,
10
+ address: /^[\da-zA-Z\u2E80-\uFE4F \s-]{4,400}$/,
11
+ date: /((^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(10|12|0?[13578])([-\/\._])(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(11|0?[469])([-\/\._])(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(0?2)([-\/\._])(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([3579][26]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][13579][26])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][13579][26])([-\/\._])(0?2)([-\/\._])(29)$))/,
12
+ numVcode: /^[0-9]{4,8}$/,
13
+ vcode: /^[a-zA-Z0-9]{4,8}$/,
14
+ code: /^[a-zA-Z0-9]{4,}$/,
15
+ hkMc: /^[WC][0-9]{8}$/,
16
+ taiWan: /^T[0-9]{8}$/,
17
+ passport: /^1[45][0-9]{7}|([E|e]\d{8})|([P|p|S|s]\d{7})|([S|s|G|g]\d{8})|([Gg|Tt|Ss|Ll|Qq|Dd|Aa|Ff]\d{8})|([H|h|M|m]\d{8,10})$/,
18
+ num: /^[1-9][0-9]*$/,
19
+ money: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
20
+ id: /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/
21
+ }
22
+ // 定义字符串的trim方法
23
+ if (String.prototype.trim === void 0) {
24
+ String.prototype.trim = function () {
25
+ return this.replace(/(^\s*)|(\s*$)/g, '')
26
+ }
27
+ }
28
+
29
+
30
+ module.exports = {
31
+ // required 校验方法
32
+ required(value) {
33
+ // 如果是数组,则判断数组长度
34
+ if (Array.isArray(value)) {
35
+ return value.length > 0
36
+ } else if (typeof value === 'object') {
37
+ return Object.keys(value).length > 0
38
+ }
39
+ return !!(value || value === 0)
40
+
41
+ },
42
+ // 身份证规则检测
43
+ id(value) {
44
+ return typeof (value) === 'string' && pattern.id.test(value.trim())
45
+ },
46
+ // 中文检测
47
+ cn(value) {
48
+ return typeof (value) === 'string' && pattern.cn.test(value.trim())
49
+ },
50
+ // 手机号码检测
51
+ mobile(value) {
52
+ return typeof (value) === 'string' && pattern.mobile.test(value.trim())
53
+ },
54
+ // 邮箱检测
55
+ email(value) {
56
+ return typeof (value) === 'string' && pattern.email.test(value.trim())
57
+ },
58
+ // URL检测
59
+ url(value) {
60
+ return typeof (value) === 'string' && pattern.url.test(value.trim())
61
+ },
62
+ // 车牌检测
63
+ carId(value) {
64
+ return typeof (value) === 'string' && pattern.carId.test(value.trim())
65
+ },
66
+ // 中文名检测
67
+ cnName(value) {
68
+ return typeof (value) === 'string' && pattern.cnName.test(value.trim())
69
+ },
70
+ // 英文名检测
71
+ enName(value) {
72
+ return typeof (value) === 'string' && pattern.enName.test(value.trim())
73
+ },
74
+ // 用户名检测
75
+ userName(value) {
76
+ return typeof (value) === 'string' && pattern.userName.test(value.trim())
77
+ },
78
+ // 地址检测
79
+ address(value) {
80
+ return typeof (value) === 'string' && pattern.address.test(value.trim())
81
+ },
82
+ // 日期检测
83
+ date(value) {
84
+ return typeof (value) === 'string' && pattern.date.test(value.trim())
85
+ },
86
+ // 数字验证码检测
87
+ numVcode(value) {
88
+ return typeof (value) === 'string' && pattern.numVcode.test(value.trim())
89
+ },
90
+ // 其它验证码检测
91
+ vcode(value) {
92
+ return typeof (value) === 'string' && pattern.vcode.test(value.trim())
93
+ },
94
+ // 编码检测
95
+ code(value) {
96
+ return typeof (value) === 'string' && pattern.code.test(value.trim())
97
+ },
98
+ // 港澳通行证检测
99
+ hkMc(value) {
100
+ return typeof (value) === 'string' && pattern.hkMc.test(value.trim())
101
+ },
102
+ // 台湾通行证检测
103
+ taiWan(value) {
104
+ return typeof (value) === 'string' && pattern.taiWan.test(value.trim())
105
+ },
106
+ // 护照检测
107
+ passport(value) {
108
+ return typeof (value) === 'string' && pattern.passport.test(value.trim())
109
+ },
110
+ num(value) {
111
+ return typeof (value) === 'string' && pattern.num.test(value.trim())
112
+ },
113
+ // 金额检测
114
+ money(value) {
115
+ return typeof (value) === 'string' && pattern.money.test(value.trim())
116
+ }
117
+ }
@@ -1,106 +1,106 @@
1
- let validType = require('./validType')
2
- const _ = require('./helper')
3
-
4
- module.exports = function (formData, validConfig, customValidateType = {}) {
5
- // 合并自定义验证请求
6
- validType = Object.assign({}, validType, customValidateType)
7
-
8
- if (!formData || typeof formData !== 'object') {
9
- throw new Error('model 属性必须是一个 Object')
10
- }
11
-
12
- if (!validConfig || typeof validConfig !== 'object') {
13
- throw new Error('rules 属性必须是一个 Object')
14
- }
15
-
16
- const validPromise = _.paths(formData)
17
- .reduce((arr, key) => {
18
- let value = _.get(formData, `${key}`)
19
- if (value && typeof value === 'string') {
20
- if (value.trim) {
21
- value = value.trim()
22
- } else {
23
- value = value.replace(/(^\s*)|(\s*$)/g, '')
24
- }
25
- }
26
-
27
- // rules 配置项转化为标准的 . 访问,所有 [] 访问对象都转化一下
28
- validConfig = Object.keys(validConfig)
29
- .reduce((newObj, key) => {
30
- const standardPath = _.standardPath(key)
31
- if (!newObj[standardPath]) {
32
- const currentObj = {
33
- [standardPath]: validConfig[key]
34
- }
35
- return Object.assign(newObj, currentObj)
36
- }
37
- }, {})
38
-
39
- const configArr = validConfig[key]
40
-
41
- // 没有相关验证配置,则验证通过
42
- if (!configArr || !configArr.length) {
43
- return arr
44
- }
45
-
46
- // 是否有 required 配置
47
- const isRequired = configArr.filter(c => c.type === 'required').length > 0
48
-
49
- // * 使用 some 函数来提前终结函数执行,只需检测到一个错误即可退出
50
- configArr.some(config => {
51
- if (!config.type) {
52
- console.log(config)
53
- throw new Error('验证规则必须配置 type')
54
- }
55
-
56
- config.name = key
57
- // 如果没有值但是也没有 required 配置,则默认通过
58
- if (isRequired) {
59
- if (!validType.required(value)) {
60
- arr.push(Promise.resolve(config))
61
- return false
62
- }
63
- }
64
-
65
- if (value) {
66
- // 可代入函数进行校验,支持异步校验函数
67
- if (typeof validType[config.type] === 'function') {
68
- const validFn = validType[config.type]
69
- if (config.isAsync) {
70
- // 异步校验
71
- const asyncFn = validFn(value, formData)
72
- .then(flag => {
73
- if (!flag) {
74
- return config
75
- }
76
- })
77
- arr.push(asyncFn)
78
- return false
79
- }
80
- if (!validFn(value, formData, config)) {
81
- arr.push(Promise.resolve(config))
82
- return false
83
- }
84
-
85
- } else if (config.type === 'regexp') {
86
- if (!config.pattern.test(value)) {
87
- arr.push(Promise.resolve(config))
88
- return false
89
- }
90
- } else {
91
- const typeFunc = validType[config.type]
92
- if (typeFunc && !typeFunc(value, formData)) {
93
- arr.push(Promise.resolve(config))
94
- return false
95
- }
96
- }
97
- }
98
- })
99
-
100
- return arr
101
- }, [])
102
-
103
- return Promise.all(validPromise).then((arr) => {
104
- return arr.filter(item => item !== void 0)
105
- })
106
- }
1
+ let validType = require('./validType')
2
+ const _ = require('./helper')
3
+
4
+ module.exports = function (formData, validConfig, customValidateType = {}) {
5
+ // 合并自定义验证请求
6
+ validType = Object.assign({}, validType, customValidateType)
7
+
8
+ if (!formData || typeof formData !== 'object') {
9
+ throw new Error('model 属性必须是一个 Object')
10
+ }
11
+
12
+ if (!validConfig || typeof validConfig !== 'object') {
13
+ throw new Error('rules 属性必须是一个 Object')
14
+ }
15
+
16
+ const validPromise = _.paths(formData)
17
+ .reduce((arr, key) => {
18
+ let value = _.get(formData, `${key}`)
19
+ if (value && typeof value === 'string') {
20
+ if (value.trim) {
21
+ value = value.trim()
22
+ } else {
23
+ value = value.replace(/(^\s*)|(\s*$)/g, '')
24
+ }
25
+ }
26
+
27
+ // rules 配置项转化为标准的 . 访问,所有 [] 访问对象都转化一下
28
+ validConfig = Object.keys(validConfig)
29
+ .reduce((newObj, key) => {
30
+ const standardPath = _.standardPath(key)
31
+ if (!newObj[standardPath]) {
32
+ const currentObj = {
33
+ [standardPath]: validConfig[key]
34
+ }
35
+ return Object.assign(newObj, currentObj)
36
+ }
37
+ }, {})
38
+
39
+ const configArr = validConfig[key]
40
+
41
+ // 没有相关验证配置,则验证通过
42
+ if (!configArr || !configArr.length) {
43
+ return arr
44
+ }
45
+
46
+ // 是否有 required 配置
47
+ const isRequired = configArr.filter(c => c.type === 'required').length > 0
48
+
49
+ // * 使用 some 函数来提前终结函数执行,只需检测到一个错误即可退出
50
+ configArr.some(config => {
51
+ if (!config.type) {
52
+ console.log(config)
53
+ throw new Error('验证规则必须配置 type')
54
+ }
55
+
56
+ config.name = key
57
+ // 如果没有值但是也没有 required 配置,则默认通过
58
+ if (isRequired) {
59
+ if (!validType.required(value)) {
60
+ arr.push(Promise.resolve(config))
61
+ return false
62
+ }
63
+ }
64
+
65
+ if (value) {
66
+ // 可代入函数进行校验,支持异步校验函数
67
+ if (typeof validType[config.type] === 'function') {
68
+ const validFn = validType[config.type]
69
+ if (config.isAsync) {
70
+ // 异步校验
71
+ const asyncFn = validFn(value, formData)
72
+ .then(flag => {
73
+ if (!flag) {
74
+ return config
75
+ }
76
+ })
77
+ arr.push(asyncFn)
78
+ return false
79
+ }
80
+ if (!validFn(value, formData, config)) {
81
+ arr.push(Promise.resolve(config))
82
+ return false
83
+ }
84
+
85
+ } else if (config.type === 'regexp') {
86
+ if (!config.pattern.test(value)) {
87
+ arr.push(Promise.resolve(config))
88
+ return false
89
+ }
90
+ } else {
91
+ const typeFunc = validType[config.type]
92
+ if (typeFunc && !typeFunc(value, formData)) {
93
+ arr.push(Promise.resolve(config))
94
+ return false
95
+ }
96
+ }
97
+ }
98
+ })
99
+
100
+ return arr
101
+ }, [])
102
+
103
+ return Promise.all(validPromise).then((arr) => {
104
+ return arr.filter(item => item !== void 0)
105
+ })
106
+ }
@@ -1,32 +1,32 @@
1
-
2
- Component({
3
- /**
4
- * 组件的属性列表
5
- */
6
- properties: {
7
- visible: {
8
- type: Boolean,
9
- value: false
10
- },
11
- isKidsOrOld: {
12
- type: Boolean,
13
- value: false
14
- }
15
- },
16
-
17
- /**
18
- * 组件的初始数据
19
- */
20
- data: {
21
- content: ''
22
- },
23
-
24
- /**
25
- * 组件的方法列表
26
- */
27
- methods: {
28
- handleOk() {
29
- this.triggerEvent('ok')
30
- }
31
- }
32
- })
1
+
2
+ Component({
3
+ /**
4
+ * 组件的属性列表
5
+ */
6
+ properties: {
7
+ visible: {
8
+ type: Boolean,
9
+ value: false
10
+ },
11
+ isKidsOrOld: {
12
+ type: Boolean,
13
+ value: false
14
+ }
15
+ },
16
+
17
+ /**
18
+ * 组件的初始数据
19
+ */
20
+ data: {
21
+ content: ''
22
+ },
23
+
24
+ /**
25
+ * 组件的方法列表
26
+ */
27
+ methods: {
28
+ handleOk() {
29
+ this.triggerEvent('ok')
30
+ }
31
+ }
32
+ })
@@ -1,4 +1,4 @@
1
- {
2
- "component": true,
3
- "usingComponents": {}
1
+ {
2
+ "component": true,
3
+ "usingComponents": {}
4
4
  }
@@ -1,9 +1,9 @@
1
- <view wx:if="{{ visible }}" class="modal-view">
2
- <view class="modal-box">
3
- <view class="content">
4
- <view class="title">温馨提示</view>
5
- <view><text class="desc-red">您已连续认证失败{{ isKidsOrOld ? '18' : '6' }}次</text>,将临时锁定您的权限,您可以切换至京通小程序支付宝或百度端进行尝试,或您可以明天再进行尝试。</view>
6
- </view>
7
- <view class="btn-view" catch:tap="handleOk">我知道了</view>
8
- </view>
1
+ <view wx:if="{{ visible }}" class="modal-view">
2
+ <view class="modal-box">
3
+ <view class="content">
4
+ <view class="title">温馨提示</view>
5
+ <view><text class="desc-red">您已连续认证失败{{ isKidsOrOld ? '18' : '6' }}次</text>,将临时锁定您的权限,您可以切换至京通小程序支付宝或百度端进行尝试,或您可以明天再进行尝试。</view>
6
+ </view>
7
+ <view class="btn-view" catch:tap="handleOk">我知道了</view>
8
+ </view>
9
9
  </view>
@@ -1,58 +1,58 @@
1
- /* weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxss */
2
- .modal-view {
3
- position: fixed;
4
- top: 0;
5
- bottom: 0;
6
- left: 0;
7
- right: 0;
8
- background: rgba(39, 40, 46, 0.6);
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- z-index: 9999;
13
- }
14
-
15
- .modal-box {
16
- box-sizing: border-box;
17
- width: 560rpx;
18
- /* height: 796rpx; */
19
- border-radius: 4rpx;
20
- background: #FFF;
21
- }
22
-
23
- .content {
24
- padding: 40rpx 50rpx 48rpx 50rpx;
25
- font-size: 28rpx;
26
- color: #27282E;
27
- font-weight: 500;
28
- line-height: 48rpx;
29
- }
30
-
31
- .title {
32
- color: #000;
33
- font-size: 32rpx;
34
- font-weight: 700;
35
- text-align: center;
36
- margin-bottom: 32rpx;
37
- }
38
-
39
- .desc-red {
40
- color: #CE0022;
41
- }
42
-
43
- .mb50 {
44
- margin-bottom: 50rpx;
45
- }
46
-
47
- .btn-view {
48
- width: 100%;
49
- display: flex;
50
- flex-direction: row;
51
- align-items: center;
52
- justify-content: center;
53
- border-top: 1px solid #EDEDED;
54
- padding: 24rpx 0;
55
- font-size: 32rpx;
56
- font-weight: 500;
57
- color: #ce0022;
1
+ /* weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxss */
2
+ .modal-view {
3
+ position: fixed;
4
+ top: 0;
5
+ bottom: 0;
6
+ left: 0;
7
+ right: 0;
8
+ background: rgba(39, 40, 46, 0.6);
9
+ display: flex;
10
+ justify-content: center;
11
+ align-items: center;
12
+ z-index: 9999;
13
+ }
14
+
15
+ .modal-box {
16
+ box-sizing: border-box;
17
+ width: 560rpx;
18
+ /* height: 796rpx; */
19
+ border-radius: 4rpx;
20
+ background: #FFF;
21
+ }
22
+
23
+ .content {
24
+ padding: 40rpx 50rpx 48rpx 50rpx;
25
+ font-size: 28rpx;
26
+ color: #27282E;
27
+ font-weight: 500;
28
+ line-height: 48rpx;
29
+ }
30
+
31
+ .title {
32
+ color: #000;
33
+ font-size: 32rpx;
34
+ font-weight: 700;
35
+ text-align: center;
36
+ margin-bottom: 32rpx;
37
+ }
38
+
39
+ .desc-red {
40
+ color: #CE0022;
41
+ }
42
+
43
+ .mb50 {
44
+ margin-bottom: 50rpx;
45
+ }
46
+
47
+ .btn-view {
48
+ width: 100%;
49
+ display: flex;
50
+ flex-direction: row;
51
+ align-items: center;
52
+ justify-content: center;
53
+ border-top: 1px solid #EDEDED;
54
+ padding: 24rpx 0;
55
+ font-size: 32rpx;
56
+ font-weight: 500;
57
+ color: #ce0022;
58
58
  }