weapps-plugin-jingtong-verify 1.5.5 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# SDK #
|
|
2
|
-
1.5.
|
|
2
|
+
1.5.7
|
package/package.json
CHANGED
|
@@ -772,13 +772,13 @@ Page({
|
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
// 检查重试次数
|
|
775
|
-
if (this.data.retryCount >= this.data.maxRetryCount) {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
}
|
|
775
|
+
// if (this.data.retryCount >= this.data.maxRetryCount) {
|
|
776
|
+
// wx.showToast({
|
|
777
|
+
// title: '今日发送次数已达上限',
|
|
778
|
+
// icon: 'none'
|
|
779
|
+
// });
|
|
780
|
+
// return;
|
|
781
|
+
// }
|
|
782
782
|
console.log(this.data.formSafeData)
|
|
783
783
|
console.log(this.data.formSafeData.phone_number)
|
|
784
784
|
const { phone_number } = this.data.formSafeData
|
|
@@ -837,14 +837,15 @@ Page({
|
|
|
837
837
|
this.startCountdown();
|
|
838
838
|
this.setData({
|
|
839
839
|
isSendSms: true,
|
|
840
|
-
retryCount: this.data.retryCount + 1,
|
|
840
|
+
// retryCount: this.data.retryCount + 1,
|
|
841
841
|
formSafeDataCode: data.code,
|
|
842
842
|
getFormSafeDataCodeTime: Date.now()
|
|
843
843
|
});
|
|
844
844
|
} else {
|
|
845
845
|
wx.showToast({
|
|
846
846
|
title: errmsg || '发送失败,稍后请重试',
|
|
847
|
-
icon: 'none'
|
|
847
|
+
icon: 'none',
|
|
848
|
+
duration: 2500
|
|
848
849
|
});
|
|
849
850
|
}
|
|
850
851
|
})
|
|
@@ -217,18 +217,17 @@ Page({
|
|
|
217
217
|
} else {
|
|
218
218
|
lastMsg = customValid.msg
|
|
219
219
|
}
|
|
220
|
-
this.showCuntomErrTip(lastMsg)
|
|
221
|
-
this.data.submitMode = ''
|
|
222
|
-
this.data.isSubmitting = false
|
|
223
|
-
wx.hideLoading()
|
|
224
220
|
this.setData({
|
|
221
|
+
submitMode: '',
|
|
225
222
|
isSubmitting: false
|
|
226
223
|
})
|
|
224
|
+
this.showCuntomErrTip(lastMsg)
|
|
225
|
+
wx.hideLoading()
|
|
227
226
|
return
|
|
228
227
|
}
|
|
229
228
|
this.setData({
|
|
230
|
-
|
|
231
|
-
|
|
229
|
+
submitMode: '',
|
|
230
|
+
isSubmitting: false
|
|
232
231
|
})
|
|
233
232
|
this.sendVerificationCode()
|
|
234
233
|
return
|
|
@@ -657,13 +656,13 @@ Page({
|
|
|
657
656
|
}
|
|
658
657
|
|
|
659
658
|
// 检查重试次数
|
|
660
|
-
if (this.data.retryCount >= this.data.maxRetryCount) {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}
|
|
659
|
+
// if (this.data.retryCount >= this.data.maxRetryCount) {
|
|
660
|
+
// wx.showToast({
|
|
661
|
+
// title: '今日发送次数已达上限',
|
|
662
|
+
// icon: 'none'
|
|
663
|
+
// });
|
|
664
|
+
// return;
|
|
665
|
+
// }
|
|
667
666
|
const { formData } = this.data
|
|
668
667
|
if(formData.bank_phone === ''){
|
|
669
668
|
wx.showToast({
|
|
@@ -703,13 +702,13 @@ Page({
|
|
|
703
702
|
this.startCountdown();
|
|
704
703
|
this.setData({
|
|
705
704
|
isSendSms: true,
|
|
706
|
-
retryCount: this.data.retryCount + 1,
|
|
707
705
|
formDataVerificationCode: data.code
|
|
708
706
|
});
|
|
709
707
|
} else {
|
|
710
708
|
wx.showToast({
|
|
711
709
|
title: errmsg || '发送失败,稍后请重试',
|
|
712
|
-
icon: 'none'
|
|
710
|
+
icon: 'none',
|
|
711
|
+
duration: 2500
|
|
713
712
|
});
|
|
714
713
|
}
|
|
715
714
|
})
|