weapps-plugin-jingtong-verify 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +2 -1
  2. package/app.json +3 -11
  3. package/package.json +2 -2
  4. package/sdk.js +1 -32
  5. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.js +0 -3
  6. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.js +0 -5
  7. package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.wxml +1 -1
  8. package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-input.wxss +1 -9
  9. package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.js +0 -8
  10. package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.wxml +0 -2
  11. package/weapps-plugin-jingtong-verify/i18n/rules.js +5 -146
  12. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.js +12 -276
  13. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxml +1 -19
  14. package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxss +1 -53
  15. package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.js +12 -2
  16. package/weapps-plugin-jingtong-verify/pages/setting/setting.js +7 -10
  17. package/weapps-plugin-jingtong-verify/utils/request.js +1 -670
  18. package/weapps-plugin-jingtong-verify/utils/rules.js +1 -105
  19. package/weapps-plugin-jingtong-verify/utils/validate.js +1 -139
  20. package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.js +0 -41
  21. package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.json +0 -4
  22. package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.wxml +0 -20
  23. package/weapps-plugin-jingtong-verify/components/custom-steps/custom-steps.wxss +0 -112
  24. package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.js +0 -73
  25. package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.json +0 -4
  26. package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.wxml +0 -19
  27. package/weapps-plugin-jingtong-verify/components/to-other-modal/to-other-modal.wxss +0 -72
  28. package/weapps-plugin-jingtong-verify/images/bank-card-verify.png +0 -0
  29. package/weapps-plugin-jingtong-verify/images/chek_right.png +0 -0
  30. package/weapps-plugin-jingtong-verify/images/chevron-down.png +0 -0
  31. package/weapps-plugin-jingtong-verify/images/chevron-up.png +0 -0
  32. package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.js +0 -506
  33. package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.json +0 -8
  34. package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.wxml +0 -79
  35. package/weapps-plugin-jingtong-verify/pages/bank-card-login/bank-card-login.wxss +0 -212
  36. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.js +0 -1392
  37. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.json +0 -10
  38. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxml +0 -247
  39. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-face-setting/bank-card-login-forgot-face-setting.wxss +0 -397
  40. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-sms-setting/bank-card-login-forgot-sms-setting.js +0 -66
  41. package/weapps-plugin-jingtong-verify/pages/bank-card-login-forgot-sms-setting/bank-card-login-forgot-sms-setting.wxml +0 -2
  42. package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.js +0 -463
  43. package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.json +0 -8
  44. package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.wxml +0 -69
  45. package/weapps-plugin-jingtong-verify/pages/bank-card-login-pwd-setting/bank-card-login-pwd-setting.wxss +0 -232
  46. package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.js +0 -984
  47. package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.json +0 -12
  48. package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.wxml +0 -157
  49. package/weapps-plugin-jingtong-verify/pages/bank-card-verify/bank-card-verify.wxss +0 -258
  50. package/weapps-plugin-jingtong-verify/pages/login-help/login-help.js +0 -147
  51. package/weapps-plugin-jingtong-verify/pages/login-help/login-help.json +0 -4
  52. package/weapps-plugin-jingtong-verify/pages/login-help/login-help.wxml +0 -48
  53. package/weapps-plugin-jingtong-verify/pages/login-help/login-help.wxss +0 -166
  54. package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.js +0 -189
  55. package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.json +0 -4
  56. package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.wxml +0 -19
  57. package/weapps-plugin-jingtong-verify/pages/login-manage-setting/login-manage-setting.wxss +0 -69
  58. package/weapps-plugin-jingtong-verify/utils/constantVal.js +0 -75
  59. package/weapps-plugin-jingtong-verify/utils/md5.js +0 -184
@@ -1,12 +0,0 @@
1
- {
2
- "usingComponents": {
3
- "g-tips": "../../components/gsd-ui/g-tips/index",
4
- "g-form": "../../components/gsd-ui/g-form/index",
5
- "g-input": "../../components/gsd-ui/g-input/index",
6
- "g-picker": "../../components/gsd-ui/g-picker/index",
7
- "to-other-modal": "../../components/to-other-modal/to-other-modal",
8
- "tip-modal": "../../components/tip-modal/tip-modal"
9
- },
10
- "navigationBarTitleText": "银行卡验证",
11
- "styleIsolation": "shared"
12
- }
@@ -1,157 +0,0 @@
1
- <view wx:if="showCustomTips" class="custom-tips">
2
- <g-tips position="fixed" is-show="{{showCustomTips}}" status="warn" closeable catch:close="handleTipsClose">
3
- {{customTipsMsg}}
4
- </g-tips>
5
- </view>
6
- <view class="{{ language == 'en' ? 'en-page' : ''}}">
7
- <view class="top-box">
8
- <view class="img-box">
9
- <image src="../../images/bank-card-verify.png" mode="aspectFit" class="img"></image>
10
- </view>
11
- <view class="title">{{ language == 'zh_CN' ? '请使用银联卡实人核验能力' : 'Please use UnionPay cards real-person verification capability' }}</view>
12
- </view>
13
-
14
- <!-- 中文版:银联卡实人核验能力 -->
15
- <view class="content-box" wx:if="{{ language === 'zh_CN' }}">
16
- <g-form
17
- id="form"
18
- model="{{ formData }}"
19
- rules="{{ rules }}"
20
- validateType="{{ validateType }}"
21
- primary-text="确定"
22
- bind:submit="handleFormSubmit"
23
- >
24
- <!-- 姓名 -->
25
- <view class="form-item-wrap">
26
- <g-input
27
- id="cardholder_name"
28
- label="持卡人姓名"
29
- placeholder="请输入持卡人姓名"
30
- value="{{ formData.cardholder_name }}"
31
- class="readonly-input"
32
- />
33
- </view>
34
- <view class="form-item-wrap">
35
- <g-picker
36
- id="cid_type"
37
- value="{{ formData.cid_type }}"
38
- label="证件类型"
39
- required
40
- actionText=""
41
- class="readonly-picker"
42
- range="{{ cidTypeRange }}"
43
- ></g-picker>
44
- </view>
45
- <!-- 证件号码 -->
46
- <view class="form-item-wrap">
47
- <g-input
48
- id="id_card_number"
49
- data-star="strCid"
50
- label="证件号码"
51
- placeholder="请输入本人证件号码"
52
- value="{{ formData.strCid || formData.id_card_number }}"
53
- showEye="{{ formData.id_card_number }}"
54
- isOpen="{{ !formData.strCid }}"
55
- bind:change="handleChange"
56
- class="readonly-input"
57
- bind:openEye="openEye"
58
- />
59
- </view>
60
- <view class="form-item-wrap">
61
- <g-input
62
- id="bank_card_account"
63
- label="该证件的银行卡卡号"
64
- placeholder="请输入支持银联的银行卡卡号(带有银联标识)"
65
- placeholder-class="bank-card-verify-placeholder"
66
- value="{{ formData.bank_card_account }}"
67
- clearable="true"
68
- bind:change="handleChange"
69
- bind:blur="bankCardToCheckBankInfo"
70
- />
71
- </view>
72
- <view class="form-item-wrap">
73
- <g-input
74
- id="bank_phone"
75
- label="绑定手机号"
76
- placeholder="请输入银行卡绑定的手机号码"
77
- placeholder-class="bank-card-verify-placeholder"
78
- value="{{ formData.bank_phone }}"
79
- clearable="true"
80
- bind:change="handleChange"
81
- bind:blur="phoneToCheckBankInfo"
82
- />
83
- </view>
84
- <!-- 验证码 -->
85
- <view class="form-item-wrap">
86
- <g-input
87
- id="verification_code"
88
- label="验证码"
89
- placeholder="请填写短信验证码"
90
- value="{{ formData.verification_code }}"
91
- clearable="true"
92
- bind:change="handleChange"
93
- append="true"
94
- >
95
- <view
96
- slot="append"
97
- class="verification-btn {{ isCountingDown ? 'disabled' : '' }}"
98
- bind:tap="sendVerificationCodeVerify"
99
- >
100
- {{ verificationText }}
101
- </view>
102
- </g-input>
103
- </view>
104
- <!-- 收不到验证码 -->
105
- <view class="form-item-wrap" wx:if="{{source_type != 2}}">
106
- <view class="not_get_verification_code" bind:tap="handleNotVerificationTipModal">
107
- 收不到验证码?
108
- </view>
109
- </view>
110
- <view class="describe-box" style="margin-top: 10rpx">
111
- <view class="special-describe-box" >
112
- <view>特别说明:</view>
113
- <view>您提供的银行卡号及其绑定手机号仅用于您的身份认证,北京市大数据中心不会留存你的银行卡信息</view>
114
- </view>
115
- </view>
116
- </g-form>
117
- <view class="login-help">
118
- <view class="login-help-btn" bind:tap="handletoLoginHelp">
119
- 登录帮助
120
- </view>
121
- </view>
122
- </view>
123
- </view>
124
- <!-- 银行卡认证弹窗 -->
125
- <to-other-modal
126
- title="提示"
127
- Confirm="true"
128
- Cancel="true"
129
- ConfirmText="人脸识别"
130
- CancelText="取消"
131
- confirmColor="#ce0022"
132
- cancelColor="#999"
133
- visible="{{ showToOtherModal }}"
134
- bindConfirmBtn="handleToFace"
135
- bindCancelBtn="handleToCancel">
136
- <view class="leave-modal">
137
- <view style="color: #666666;">因您多次银行卡验证未能通过,为保障账户安全,银行卡的验证方式已暂时锁定,锁定期间您可使用人脸识别进行验证或待锁定时效(30分钟)结束后,重新尝试银行卡验证。</view>
138
- </view>
139
- </to-other-modal>
140
- <!-- 姓名、证件号码提示弹窗 -->
141
- <tip-modal
142
- visible="{{ showTipModal }}"
143
- bind:cancel="handleModalOk"
144
- desc1="1、如果您在公安局变更了您的姓名或证件号码等信息,请您填写变更后的身份信息进行登录。"
145
- desc2="2、如果当前显示为他人信息(亲属/朋友等),请您删除后使用本人身份信息进行登录。"
146
- ></tip-modal>
147
-
148
- <!-- 收不到验证码弹窗 -->
149
- <tip-modal
150
- visible="{{ showNotGetVerificationCodeTipModal }}"
151
- bind:cancel="handleNotGetVerificationCodeTipModalCancel"
152
- xAlign="left"
153
- desc1="1、短信验证码会发送至您银行卡绑定的手机号。"
154
- desc2="2、请确认当前手机信号良好并已关闭飞行模式。"
155
- desc3="3、请检查短信是否被手机安全软件拦截。"
156
- desc4="4、如仍收不到短信验证码,请尝试使用人脸识别方式验证。"
157
- ></tip-modal>
@@ -1,258 +0,0 @@
1
- @import '../../components/gsd-ui/static/style/main';
2
-
3
- .top-box {
4
- display: flex;
5
- justify-content: center;
6
- align-items: center;
7
- flex-direction: column;
8
- }
9
-
10
- .title {
11
- font-size: 44rpx;
12
- margin-bottom: 44rpx;
13
- text-align: center;
14
- }
15
-
16
- .en-page .title {
17
- font-size: 36rpx;
18
- }
19
-
20
- .info {
21
- margin-top: 28rpx;
22
- color: #999999;
23
- }
24
-
25
- .agree-box {
26
- font-size: 28rpx;
27
- color: #979797;
28
- padding: 0 40rpx 0;
29
- }
30
-
31
- .agree-box text {
32
- line-height: 40rpx;
33
- }
34
- .describe-box {
35
- display: flex;
36
- align-items: center;
37
- justify-content: center;
38
- padding-left: 20px;
39
- padding-right: 20px;
40
- }
41
-
42
- .special-describe-box {
43
- display: flex;
44
- background: #9096a41a;
45
- flex-direction: column;
46
- border-radius: 8px;
47
- padding: 12px;
48
- flex: 1 0 0;
49
- color: #ce0022;
50
- font-family: "PingFang SC";
51
- font-size: 14px;
52
- font-style: normal;
53
- font-weight: 500;
54
- line-height: 24px;
55
- }
56
-
57
- .img-box {
58
- width: 160rpx;
59
- height: 160rpx;
60
- margin: 56rpx 0 52rpx;
61
- }
62
-
63
- .img {
64
- width: 160rpx;
65
- height: 160rpx;
66
- }
67
-
68
- .link {
69
- color: #ce0022;
70
- }
71
-
72
- .content-box {
73
- padding-bottom: 60rpx;
74
- }
75
-
76
- .form-tip {
77
- /* border: 1px solid red; */
78
- border-radius: 24rpx;
79
- background: linear-gradient(180deg, #f1f4f9ff 0%, #faf8f700 100%);
80
- padding: 32rpx 36rpx 0;
81
- display: flex;
82
- flex-direction: row;
83
- justify-content: flex-start;
84
- align-items: flex-start;
85
- margin-top: -2rpx;
86
- }
87
- .space-block {
88
- width: 6rpx;
89
- height: 20rpx;
90
- background: #ce0022;
91
- margin-right: 8rpx;
92
- flex-shrink: 0;
93
- margin-top: 10rpx;
94
- }
95
- .tip-desc {
96
- color: #27282eff;
97
- font-size: 14px;
98
- }
99
- .form-options {
100
- width: 750rpx;
101
- background: linear-gradient( #F5FAFF 0%, #F1F7FF 100%);
102
- padding: 0 20rpx 20rpx;
103
- box-sizing: border-box;
104
- }
105
-
106
- .foreign-tip {
107
- display: flex;
108
- flex-direction: row;
109
- justify-content: space-between;
110
- align-items: center;
111
- margin: -12rpx 32rpx 0;
112
- background: #EEF2F6;
113
- border-radius: 8rpx;
114
- padding: 24rpx 16rpx 24rpx 24rpx;
115
- position: relative;
116
- }
117
- .foreign-tip::before {
118
- content: '';
119
- position: absolute;
120
- border-left: 17rpx solid transparent;
121
- border-top: 17rpx solid transparent;
122
- border-bottom: 17rpx solid #EEF2F6;
123
- border-right: 17rpx solid transparent;
124
- top: -30rpx;
125
- right: 18rpx;
126
-
127
- }
128
- .foreign-tip text {
129
- font-weight: 500;
130
- font-size: 26rpx;
131
- color: #62667A;
132
- line-height: 30rpx;
133
- }
134
- .foreign-tip image {
135
- width: 40rpx;
136
- height: 40rpx;
137
- flex-shrink: 0;
138
- }
139
-
140
- .form-item__status-message--warn {
141
- color: #f13939;
142
- font-size: 30rpx;
143
- line-height: 40rpx;
144
- margin-top: 10rpx;
145
- padding-left: 40rpx;
146
- padding-right: 40rpx;
147
- }
148
-
149
- .custom-tips {
150
- position: fixed;
151
- z-index: 905;
152
- box-sizing: border-box;
153
- top: 0rpx;
154
- width: 100%;
155
- }
156
-
157
- .other-way{
158
- display: flex;
159
- align-items: center;
160
- justify-content: center;
161
- padding-left:40rpx;
162
- padding-right: 40rpx;
163
- padding-top: 30rpx;
164
- }
165
-
166
- .other-way-btn{
167
- width: 100%;
168
- height: 76rpx;
169
- border: 1px solid;
170
- display: flex;
171
- align-items: center;
172
- justify-content: center;
173
- border-radius: 10rpx;
174
- }
175
-
176
- .login-help{
177
- display: flex;
178
- align-items: center;
179
- justify-content: center;
180
- padding-left:40rpx;
181
- padding-right: 40rpx;
182
- padding-top: 30rpx;
183
- }
184
-
185
- .login-help-btn{
186
- width: 100%;
187
- height: 76rpx;
188
- display: flex;
189
- align-items: center;
190
- justify-content: center;
191
- border-radius: 10rpx;
192
- color: #62667a;
193
- text-align: center;
194
- font-family: "PingFang SC";
195
- font-size: 17px;
196
- font-style: normal;
197
- font-weight: 500;
198
- line-height: normal;
199
- }
200
-
201
- .readonly-input input {
202
- pointer-events: none !important;
203
- color: #333 !important;
204
- }
205
- /* 保持图标可点击 */
206
- .readonly-input .input__icon__container {
207
- pointer-events: auto !important;
208
- }
209
-
210
- .readonly-picker {
211
- pointer-events: none !important;
212
- }
213
-
214
- /* 在现有样式中添加隐藏选择文字 */
215
- .readonly-picker .picker__action {
216
- display: none !important;
217
- }/* 短信验证码 */
218
-
219
- /* 收不到验证码 */
220
- .not_get_verification_code{
221
- padding:40rpx; color: #ce0022;
222
- font-family: "PingFang SC";
223
- font-size: 28rpx;
224
- font-style: normal;
225
- font-weight: 500;
226
- line-height: normal;
227
- letter-spacing: -0.3px;
228
- padding: 40rpx;
229
- }
230
- /* 验证码按钮样式 */
231
- .verification-btn {
232
- display: inline-flex;
233
- align-items: center;
234
- justify-content: center;
235
- height: 64rpx; /* 胶囊高度 */
236
- padding: 0 28rpx; /* 左右内边距 */
237
- background: #ce0022; /* 红底 */
238
- color: #ffffff; /* 白字 */
239
- font-size: 28rpx;
240
- white-space: nowrap;
241
- border-radius: 40rpx; /* 圆角形成胶囊 */
242
- transition: opacity 0.2s ease;
243
- cursor: pointer;
244
- box-shadow: 0 4rpx 12rpx rgba(206, 0, 34, 0.18);
245
- }
246
-
247
- /* 倒计时状态样式 */
248
- .verification-btn.disabled {
249
- background: #E6E6E6; /* 灰底 */
250
- color: #999999; /* 灰字 */
251
- box-shadow: none;
252
- cursor: not-allowed;
253
- }
254
-
255
- /* 点击效果 */
256
- .verification-btn:active:not(.disabled) {
257
- opacity: 0.85;
258
- }
@@ -1,147 +0,0 @@
1
- // weapps-plugin-jingtong-verify/pages/login-help/login-help.js
2
- const jingtongVerifyRequest = require('../../utils/request')
3
- Page({
4
-
5
- /**
6
- * 页面的初始数据
7
- */
8
- data: {
9
- faqList: [
10
- {
11
- question: "未办理身份证导致无法通过人脸识别",
12
- answer: ["若您还未办理身份证,请您先前往当地派出所办理身份证,办理完成后可以登录京通小程序办理业务;或您可以联系需要办理业务的单位,进行线下业务办理"],
13
- expanded: true // 默认展开第一个
14
- },
15
- {
16
- question: "人脸识别提示光线、镜头模糊等",
17
- answer: ["1、请正面对准摄像头", "2、请确保周围光线充足", "3、请保持面部清晰可见", "4、避免逆光或过暗环境"]
18
- },
19
- {
20
- question: "因人脸信息长时间未更新导致无法通过人脸识别",
21
- answer: ["人脸信息需要定期更新,建议您重新进行人脸识别验证", "如问题持续存在,请联系客服处理"]
22
- },
23
- {
24
- question: "什么情况下可以设置登录密码",
25
- answer: ["当您完成身份认证后,可以设置登录密码", "设置密码后可以使用密码登录,无需每次进行人脸识别"]
26
- },
27
- {
28
- question: "忘记登录密码后如何进行登录",
29
- answer: ["可以通过人脸识别重新登录", "或通过银行卡验证重新设置密码", "如无法解决,请联系客服协助处理"]
30
- },
31
- {
32
- question: "银行卡验证时绑定的手机号是什么",
33
- answer: ["银行卡验证时使用的手机号是您办理银行卡时预留的手机号", "如手机号已变更,请先到银行更新预留手机号"]
34
- },
35
- {
36
- question: "重置密码时收不到验证码",
37
- answer: ["请检查手机号是否正确", "确认手机信号良好", "检查短信是否被拦截", "如仍无法收到,请稍后重试或联系客服"]
38
- }
39
- ]
40
- },
41
-
42
- /**
43
- * 切换手风琴展开/收起状态
44
- */
45
- toggleAccordion: function(e) {
46
- const index = e.currentTarget.dataset.index;
47
- const faqList = this.data.faqList;
48
-
49
- // 切换当前项的展开状态
50
- faqList[index].expanded = !faqList[index].expanded;
51
-
52
- this.setData({
53
- faqList: faqList
54
- });
55
- },
56
-
57
- /**
58
- * 生命周期函数--监听页面加载
59
- */
60
- onLoad(options) {
61
- console.log('login-help页面加载');
62
- this.getQuestionList()
63
- },
64
- getQuestionList() {
65
- jingtongVerifyRequest.getQuestionList().then(res => {
66
- if(res.errcode === 0){
67
- if(res.data.questionList && res.data.questionList.length > 0){
68
- // 确保第一个问题默认展开
69
- let questionList = res.data.questionList.map((item, index) => {
70
- return {
71
- ...item,
72
- expanded: index === 0 // 第一个问题默认展开
73
- }
74
- })
75
- questionList = questionList.sort((a, b) => a.sort - b.sort)
76
- this.setData({
77
- faqList: questionList
78
- })
79
- } else {
80
- // 当没有数据时,设置为空数组
81
- this.setData({
82
- faqList: []
83
- })
84
- }
85
- } else {
86
- // API请求失败时,设置为空数组
87
- this.setData({
88
- faqList: []
89
- })
90
- }
91
- }).catch(err => {
92
- console.error('获取问题列表失败:', err);
93
- // 请求异常时,设置为空数组
94
- this.setData({
95
- faqList: []
96
- })
97
- })
98
- },
99
- /**
100
- * 生命周期函数--监听页面初次渲染完成
101
- */
102
- onReady() {
103
- console.log('login-help页面渲染完成');
104
- },
105
-
106
- /**
107
- * 生命周期函数--监听页面显示
108
- */
109
- onShow() {
110
- console.log('login-help页面显示');
111
- },
112
-
113
- /**
114
- * 生命周期函数--监听页面隐藏
115
- */
116
- onHide() {
117
-
118
- },
119
-
120
- /**
121
- * 生命周期函数--监听页面卸载
122
- */
123
- onUnload() {
124
-
125
- },
126
-
127
- /**
128
- * 页面相关事件处理函数--监听用户下拉动作
129
- */
130
- onPullDownRefresh() {
131
-
132
- },
133
-
134
- /**
135
- * 页面上拉触底事件的处理函数
136
- */
137
- onReachBottom() {
138
-
139
- },
140
-
141
- /**
142
- * 用户点击右上角分享
143
- */
144
- onShareAppMessage() {
145
-
146
- }
147
- })
@@ -1,4 +0,0 @@
1
- {
2
- "usingComponents": {},
3
- "navigationBarTitleText": "登录帮助"
4
- }
@@ -1,48 +0,0 @@
1
- <!--weapps-plugin-jingtong-verify/pages/login-help/login-help.wxml-->
2
- <view class="login-help-container">
3
- <view class="login-help-content">
4
- <view class="page-title">
5
- <view class="title-bar"></view>
6
- <text class="title-text">登录常见问题</text>
7
- </view>
8
-
9
- <view class="accordion-list">
10
- <block wx:if="{{faqList != null && faqList != undefined && faqList.length > 0}}">
11
- <view
12
- class="accordion-item {{item.expanded ? 'expanded' : ''}}"
13
- wx:for="{{faqList}}"
14
- wx:key="index"
15
- data-index="{{index}}"
16
- bindtap="toggleAccordion"
17
- >
18
- <view class="accordion-header">
19
- <text class="question-text">{{item.question}}</text>
20
- <image
21
- class="chevron-icon"
22
- src="{{item.expanded ? '/weapps-plugin-jingtong-verify/images/chevron-up.png' : '/weapps-plugin-jingtong-verify/images/chevron-down.png'}}"
23
- mode="aspectFit"
24
- />
25
- </view>
26
- <view wx:if="{{item.expanded}}" class="accordion-header-separate"></view>
27
- <view class="accordion-content {{item.expanded ? 'show' : ''}}">
28
- <view class="answer-list">
29
- <text
30
- class="answer-item"
31
- wx:for="{{item.answer}}"
32
- wx:for-item="answerText"
33
- wx:key="answerIndex"
34
- >
35
- {{answerText}}
36
- </text>
37
- </view>
38
- </view>
39
- </view>
40
- </block>
41
- <block wx:else>
42
- <view class="no-data">
43
- <text class="no-data-text">暂无数据</text>
44
- </view>
45
- </block>
46
- </view>
47
- </view>
48
- </view>