weapps-plugin-jingtong-verify 1.6.1 → 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 (183) hide show
  1. package/README.md +1 -2
  2. package/app.json +33 -33
  3. package/package.json +20 -20
  4. package/sdk.js +309 -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 -236
  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 +262 -262
  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 +1557 -1547
  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 -504
  146. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxss +133 -133
  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 -120
  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 -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 +301 -301
  182. package/weapps-plugin-jingtong-verify/utils/tifadmin_config.js +61 -61
  183. package/weapps-plugin-jingtong-verify/utils/validate.js +772 -772
@@ -1,61 +1,61 @@
1
- /* weapps-plugin-jingtong-verify/pages/log-off/log-off.wxss */
2
- page {
3
- background: #F7F8FA;
4
- }
5
- .top-box {
6
- margin-left: 32rpx;
7
- margin-top: 32rpx;
8
- margin-bottom: 32rpx;
9
- }
10
- .title {
11
- font-size: 32rpx;
12
- font-weight: 700;
13
- }
14
- .title::before {
15
- content: '';
16
- display: inline-block;
17
- width: 8rpx;
18
- height: 28rpx;
19
- border-radius: 2rpx;
20
- background: #ce0022;
21
- margin-right: 12rpx;
22
- }
23
- .text-content {
24
- margin: 0 32rpx;
25
- font-size: 28rpx;
26
- line-height: 48rpx;
27
- color: #27282E;
28
- font-weight: 500;
29
- }
30
- .content {
31
- margin-bottom: 20rpx;
32
- }
33
- .bottom-box {
34
- position: absolute;
35
- bottom: 0;
36
- width: 100%;
37
- height: 20%;
38
- background: rgba(255,255,255,1);
39
- box-shadow: 0 8rpx 32rpx 0 rgba(46,48,51,0.25);
40
- display: flex;
41
- flex-direction: column;
42
- align-items: center;
43
- }
44
- .confirm {
45
- width: 686rpx !important;
46
- height: 88rpx;
47
- display: flex;
48
- justify-content: center;
49
- align-items: center;
50
- background: rgba(206,0,34,1);
51
- box-shadow: 0 24rpx 48rpx 0 rgba(206,0,34,0.1);
52
- color: #ffffff;
53
- font-size: 34rpx;
54
- margin-top: 40rpx;
55
- }
56
- .cancel {
57
- margin-top: 32rpx;
58
- font-size: 30rpx;
59
- font-weight: 500;
60
- color: #62667A;
1
+ /* weapps-plugin-jingtong-verify/pages/log-off/log-off.wxss */
2
+ page {
3
+ background: #F7F8FA;
4
+ }
5
+ .top-box {
6
+ margin-left: 32rpx;
7
+ margin-top: 32rpx;
8
+ margin-bottom: 32rpx;
9
+ }
10
+ .title {
11
+ font-size: 32rpx;
12
+ font-weight: 700;
13
+ }
14
+ .title::before {
15
+ content: '';
16
+ display: inline-block;
17
+ width: 8rpx;
18
+ height: 28rpx;
19
+ border-radius: 2rpx;
20
+ background: #ce0022;
21
+ margin-right: 12rpx;
22
+ }
23
+ .text-content {
24
+ margin: 0 32rpx;
25
+ font-size: 28rpx;
26
+ line-height: 48rpx;
27
+ color: #27282E;
28
+ font-weight: 500;
29
+ }
30
+ .content {
31
+ margin-bottom: 20rpx;
32
+ }
33
+ .bottom-box {
34
+ position: absolute;
35
+ bottom: 0;
36
+ width: 100%;
37
+ height: 20%;
38
+ background: rgba(255,255,255,1);
39
+ box-shadow: 0 8rpx 32rpx 0 rgba(46,48,51,0.25);
40
+ display: flex;
41
+ flex-direction: column;
42
+ align-items: center;
43
+ }
44
+ .confirm {
45
+ width: 686rpx !important;
46
+ height: 88rpx;
47
+ display: flex;
48
+ justify-content: center;
49
+ align-items: center;
50
+ background: rgba(206,0,34,1);
51
+ box-shadow: 0 24rpx 48rpx 0 rgba(206,0,34,0.1);
52
+ color: #ffffff;
53
+ font-size: 34rpx;
54
+ margin-top: 40rpx;
55
+ }
56
+ .cancel {
57
+ margin-top: 32rpx;
58
+ font-size: 30rpx;
59
+ font-weight: 500;
60
+ color: #62667A;
61
61
  }
@@ -1,107 +1,107 @@
1
- // weapps-plugin-jingtong-verify/pages/login-manage/login-manage.js
2
- const jingtongVerifyRequest = require('../../utils/request')
3
-
4
- Page({
5
-
6
- /**
7
- * 页面的初始数据
8
- */
9
- data: {
10
- color: '#ce0022',
11
- loginDayArr: [
12
- { value: 24, name: '1天免登录' },
13
- { value: 168, name: '7天免登录' },
14
- { value: 720, name: '30天免登录'}
15
- ],
16
- loginTypeInfo: {
17
- verify_type: 1,
18
- verify_expire_time: ''
19
- }
20
- },
21
-
22
- /**
23
- * 生命周期函数--监听页面显示
24
- */
25
- onShow() {
26
- wx.hideShareMenu()
27
-
28
- this.getLoginConfig()
29
- },
30
-
31
- // 获取登录默认设置
32
- getLoginConfig() {
33
- wx.showLoading({
34
- title: '加载中',
35
- })
36
- jingtongVerifyRequest.getLoginConfig({
37
- success: res => {
38
- console.log('获取登录默认设置:', res)
39
- let loginDayArr = this.data.loginDayArr
40
- let time = res.verify_expire_time
41
-
42
- loginDayArr.forEach(item => {
43
- if (item.value === Number(time)) {
44
- item.checked = true
45
- }
46
- })
47
- this.setData({
48
- loginDayArr,
49
- 'loginTypeInfo.verify_expire_time': time
50
- }, () => {
51
- wx.hideLoading()
52
- })
53
- },
54
- fail: fail => {
55
- wx.hideLoading()
56
- console.log(fail)
57
- }
58
- })
59
- },
60
-
61
- // 按钮选中
62
- radioChange(e) {
63
- let loginDayArr = this.data.loginDayArr
64
- let time = Number(e.detail.value)
65
-
66
- loginDayArr.forEach(item => {
67
- item.checked = item.value === time
68
- })
69
- this.setData({
70
- loginDayArr,
71
- 'loginTypeInfo.verify_expire_time': time
72
- })
73
- },
74
-
75
- // 确认登录方式
76
- confirm() {
77
- let info = this.data.loginTypeInfo
78
- if (Number(info.verify_expire_time)) {
79
- jingtongVerifyRequest.setLoginConfig({
80
- data: info,
81
- success: () => {
82
- wx.showToast({
83
- title: '设置成功',
84
- mask: true
85
- })
86
- setTimeout(() => {
87
- wx.navigateBack()
88
- }, 1000)
89
- },
90
- fail: (err) => {
91
- console.log(err, '登录方式确认失败')
92
- wx.showToast({
93
- title: err.errmsg || '登录方式设置失败',
94
- icon: 'none',
95
- duration: 2000
96
- })
97
- }
98
- })
99
- } else {
100
- wx.showToast({
101
- title: '请选择默认登录方式',
102
- icon: 'none',
103
- duration: 2000
104
- })
105
- }
106
- }
1
+ // weapps-plugin-jingtong-verify/pages/login-manage/login-manage.js
2
+ const jingtongVerifyRequest = require('../../utils/request')
3
+
4
+ Page({
5
+
6
+ /**
7
+ * 页面的初始数据
8
+ */
9
+ data: {
10
+ color: '#ce0022',
11
+ loginDayArr: [
12
+ { value: 24, name: '1天免登录' },
13
+ { value: 168, name: '7天免登录' },
14
+ { value: 720, name: '30天免登录'}
15
+ ],
16
+ loginTypeInfo: {
17
+ verify_type: 1,
18
+ verify_expire_time: ''
19
+ }
20
+ },
21
+
22
+ /**
23
+ * 生命周期函数--监听页面显示
24
+ */
25
+ onShow() {
26
+ wx.hideShareMenu()
27
+
28
+ this.getLoginConfig()
29
+ },
30
+
31
+ // 获取登录默认设置
32
+ getLoginConfig() {
33
+ wx.showLoading({
34
+ title: '加载中',
35
+ })
36
+ jingtongVerifyRequest.getLoginConfig({
37
+ success: res => {
38
+ console.log('获取登录默认设置:', res)
39
+ let loginDayArr = this.data.loginDayArr
40
+ let time = res.verify_expire_time
41
+
42
+ loginDayArr.forEach(item => {
43
+ if (item.value === Number(time)) {
44
+ item.checked = true
45
+ }
46
+ })
47
+ this.setData({
48
+ loginDayArr,
49
+ 'loginTypeInfo.verify_expire_time': time
50
+ }, () => {
51
+ wx.hideLoading()
52
+ })
53
+ },
54
+ fail: fail => {
55
+ wx.hideLoading()
56
+ console.log(fail)
57
+ }
58
+ })
59
+ },
60
+
61
+ // 按钮选中
62
+ radioChange(e) {
63
+ let loginDayArr = this.data.loginDayArr
64
+ let time = Number(e.detail.value)
65
+
66
+ loginDayArr.forEach(item => {
67
+ item.checked = item.value === time
68
+ })
69
+ this.setData({
70
+ loginDayArr,
71
+ 'loginTypeInfo.verify_expire_time': time
72
+ })
73
+ },
74
+
75
+ // 确认登录方式
76
+ confirm() {
77
+ let info = this.data.loginTypeInfo
78
+ if (Number(info.verify_expire_time)) {
79
+ jingtongVerifyRequest.setLoginConfig({
80
+ data: info,
81
+ success: () => {
82
+ wx.showToast({
83
+ title: '设置成功',
84
+ mask: true
85
+ })
86
+ setTimeout(() => {
87
+ wx.navigateBack()
88
+ }, 1000)
89
+ },
90
+ fail: (err) => {
91
+ console.log(err, '登录方式确认失败')
92
+ wx.showToast({
93
+ title: err.errmsg || '登录方式设置失败',
94
+ icon: 'none',
95
+ duration: 2000
96
+ })
97
+ }
98
+ })
99
+ } else {
100
+ wx.showToast({
101
+ title: '请选择默认登录方式',
102
+ icon: 'none',
103
+ duration: 2000
104
+ })
105
+ }
106
+ }
107
107
  })
@@ -1,4 +1,4 @@
1
- {
2
- "usingComponents": {},
3
- "navigationBarTitleText": "选择登录方式"
1
+ {
2
+ "usingComponents": {},
3
+ "navigationBarTitleText": "选择登录方式"
4
4
  }
@@ -1,29 +1,29 @@
1
- <!--weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxml-->
2
- <view>
3
- <view class="top-box">
4
- <text class="title">请选择默认登录方式</text>
5
- </view>
6
- <view class="content-box">
7
- <radio-group bindchange="radioChange">
8
- <label wx:for="{{ loginDayArr }}" wx:key="index">
9
- <view class="cell">
10
- <radio value="{{ item.value }}" color="{{ color }}" checked="{{ item.checked }}"/>
11
- <text class="name">{{ item.name }}</text>
12
- <view class="tips-style inTips">{{ item.tips }}</view>
13
- </view>
14
- </label>
15
- </radio-group>
16
- <!-- <view class="outTips">
17
- <view>
18
- <image src="../../images/tips.png" mode="" class="img"/>
19
- <text class="tipsTitle">温馨提示:</text>
20
- </view>
21
- <view class="tipsInfo tips-style">
22
- 若退出登录,则需重新进行人脸识别验证
23
- </view>
24
- </view> -->
25
- </view>
26
- <view class="bottom-box">
27
- <button class="btn" bindtap="confirm">确认</button>
28
- </view>
29
- </view>
1
+ <!--weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxml-->
2
+ <view>
3
+ <view class="top-box">
4
+ <text class="title">请选择默认登录方式</text>
5
+ </view>
6
+ <view class="content-box">
7
+ <radio-group bindchange="radioChange">
8
+ <label wx:for="{{ loginDayArr }}" wx:key="index">
9
+ <view class="cell">
10
+ <radio value="{{ item.value }}" color="{{ color }}" checked="{{ item.checked }}"/>
11
+ <text class="name">{{ item.name }}</text>
12
+ <view class="tips-style inTips">{{ item.tips }}</view>
13
+ </view>
14
+ </label>
15
+ </radio-group>
16
+ <!-- <view class="outTips">
17
+ <view>
18
+ <image src="../../images/tips.png" mode="" class="img"/>
19
+ <text class="tipsTitle">温馨提示:</text>
20
+ </view>
21
+ <view class="tipsInfo tips-style">
22
+ 若退出登录,则需重新进行人脸识别验证
23
+ </view>
24
+ </view> -->
25
+ </view>
26
+ <view class="bottom-box">
27
+ <button class="btn" bindtap="confirm">确认</button>
28
+ </view>
29
+ </view>
@@ -1,69 +1,69 @@
1
- /* weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxss */
2
- .top-box {
3
- margin-left: 32rpx;
4
- margin-top: 32rpx;
5
- margin-bottom: 80rpx;
6
- }
7
- .title {
8
- font-size: 32rpx;
9
- font-weight: 700;
10
- }
11
- .title::before {
12
- content: '';
13
- display: inline-block;
14
- width: 8rpx;
15
- height: 28rpx;
16
- border-radius: 2rpx;
17
- background: #ce0022;
18
- margin-right: 12rpx;
19
- }
20
- .cell {
21
- border-bottom: 1px solid #EDEDED;
22
- margin: 0 32rpx 40rpx;
23
- }
24
- .name {
25
- margin-left: 32rpx;
26
- vertical-align: middle;
27
- }
28
- .bottom-box {
29
- margin: 40rpx auto 0;
30
- width: 686rpx;
31
- height: 96rpx;
32
- }
33
- .btn {
34
- width: 100% !important;
35
- height: 100% !important;
36
- display: flex;
37
- justify-content: center;
38
- align-items: center;
39
- background: #ce0022;
40
- color: #ffffff;
41
- font-size: 34rpx;
42
- box-shadow: 0 24rpx 48rpx 0 rgba(206,0,34,0.15);
43
- }
44
- .tips-style {
45
- color: #62667A;
46
- font-size: 28rpx;
47
- }
48
- .inTips {
49
- margin-left: 88rpx;
50
- margin-bottom: 40rpx;
51
- margin-top: 16rpx;
52
- }
53
- .img {
54
- width: 32rpx;
55
- height: 32rpx;
56
- margin-left: 32rpx;
57
- margin-right: 16rpx;
58
- vertical-align: middle;
59
- }
60
- .tipsTitle {
61
- color: #ce0022;
62
- font-size: 28rpx;
63
- line-height: 32rpx;
64
- }
65
- .tipsInfo {
66
- margin-left: 32rpx;
67
- margin-top: 12rpx;
68
- margin-bottom: 80rpx;
1
+ /* weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxss */
2
+ .top-box {
3
+ margin-left: 32rpx;
4
+ margin-top: 32rpx;
5
+ margin-bottom: 80rpx;
6
+ }
7
+ .title {
8
+ font-size: 32rpx;
9
+ font-weight: 700;
10
+ }
11
+ .title::before {
12
+ content: '';
13
+ display: inline-block;
14
+ width: 8rpx;
15
+ height: 28rpx;
16
+ border-radius: 2rpx;
17
+ background: #ce0022;
18
+ margin-right: 12rpx;
19
+ }
20
+ .cell {
21
+ border-bottom: 1px solid #EDEDED;
22
+ margin: 0 32rpx 40rpx;
23
+ }
24
+ .name {
25
+ margin-left: 32rpx;
26
+ vertical-align: middle;
27
+ }
28
+ .bottom-box {
29
+ margin: 40rpx auto 0;
30
+ width: 686rpx;
31
+ height: 96rpx;
32
+ }
33
+ .btn {
34
+ width: 100% !important;
35
+ height: 100% !important;
36
+ display: flex;
37
+ justify-content: center;
38
+ align-items: center;
39
+ background: #ce0022;
40
+ color: #ffffff;
41
+ font-size: 34rpx;
42
+ box-shadow: 0 24rpx 48rpx 0 rgba(206,0,34,0.15);
43
+ }
44
+ .tips-style {
45
+ color: #62667A;
46
+ font-size: 28rpx;
47
+ }
48
+ .inTips {
49
+ margin-left: 88rpx;
50
+ margin-bottom: 40rpx;
51
+ margin-top: 16rpx;
52
+ }
53
+ .img {
54
+ width: 32rpx;
55
+ height: 32rpx;
56
+ margin-left: 32rpx;
57
+ margin-right: 16rpx;
58
+ vertical-align: middle;
59
+ }
60
+ .tipsTitle {
61
+ color: #ce0022;
62
+ font-size: 28rpx;
63
+ line-height: 32rpx;
64
+ }
65
+ .tipsInfo {
66
+ margin-left: 32rpx;
67
+ margin-top: 12rpx;
68
+ margin-bottom: 80rpx;
69
69
  }
@@ -1,25 +1,25 @@
1
- // weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.js
2
- const { flow } = require("@wecity/weda-plugin-utils");
3
-
4
- Page({
5
-
6
- /**
7
- * 页面的初始数据
8
- */
9
- data: {
10
-
11
- },
12
-
13
- toBack() {
14
- flow.resolve({
15
- hasLogOff: true
16
- })
17
- },
18
-
19
- /**
20
- * 生命周期函数--监听页面显示
21
- */
22
- onShow() {
23
- wx.hideShareMenu()
24
- },
1
+ // weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.js
2
+ const { flow } = require("@wecity/weda-plugin-utils");
3
+
4
+ Page({
5
+
6
+ /**
7
+ * 页面的初始数据
8
+ */
9
+ data: {
10
+
11
+ },
12
+
13
+ toBack() {
14
+ flow.resolve({
15
+ hasLogOff: true
16
+ })
17
+ },
18
+
19
+ /**
20
+ * 生命周期函数--监听页面显示
21
+ */
22
+ onShow() {
23
+ wx.hideShareMenu()
24
+ },
25
25
  })
@@ -1,4 +1,4 @@
1
- {
2
- "usingComponents": {},
3
- "navigationBarTitleText": "账号注销"
1
+ {
2
+ "usingComponents": {},
3
+ "navigationBarTitleText": "账号注销"
4
4
  }
@@ -1,12 +1,12 @@
1
- <!--weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.wxml-->
2
- <view class="main">
3
- <view class="center-box">
4
- <image src="../../images/success.png" mode="" class="img"/>
5
- <view class="title">您的账号已注销!</view>
6
- <view class="tips">
7
- <text>感谢使用,我们一直在努力做到更好,</text>
8
- <text> 有空常回来看看呦!</text>
9
- </view>
10
- <button class="bottom-btn" catchtap="toBack">关闭</button>
11
- </view>
12
- </view>
1
+ <!--weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.wxml-->
2
+ <view class="main">
3
+ <view class="center-box">
4
+ <image src="../../images/success.png" mode="" class="img"/>
5
+ <view class="title">您的账号已注销!</view>
6
+ <view class="tips">
7
+ <text>感谢使用,我们一直在努力做到更好,</text>
8
+ <text> 有空常回来看看呦!</text>
9
+ </view>
10
+ <button class="bottom-btn" catchtap="toBack">关闭</button>
11
+ </view>
12
+ </view>