weapps-plugin-jingtong-verify 1.5.5 → 1.5.6

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.5
2
+ 1.5.6
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "weapps-plugin-jingtong-verify",
3
3
  "pluginName": "weapps-plugin-jingtong-verify",
4
4
  "pluginType": "mp",
5
- "version": "1.5.5",
5
+ "version": "1.5.6",
6
6
  "description": "",
7
7
  "main": "sdk.js",
8
8
  "author": "tongyirenzheng",
@@ -772,13 +772,13 @@ Page({
772
772
  }
773
773
 
774
774
  // 检查重试次数
775
- if (this.data.retryCount >= this.data.maxRetryCount) {
776
- wx.showToast({
777
- title: '今日发送次数已达上限',
778
- icon: 'none'
779
- });
780
- return;
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,18 @@ 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
229
  formData: { ...this.data.formData, verification_code: tempCode },
231
- submitMode: ''
230
+ submitMode: '',
231
+ isSubmitting: false
232
232
  })
233
233
  this.sendVerificationCode()
234
234
  return
@@ -657,13 +657,13 @@ Page({
657
657
  }
658
658
 
659
659
  // 检查重试次数
660
- if (this.data.retryCount >= this.data.maxRetryCount) {
661
- wx.showToast({
662
- title: '今日发送次数已达上限',
663
- icon: 'none'
664
- });
665
- return;
666
- }
660
+ // if (this.data.retryCount >= this.data.maxRetryCount) {
661
+ // wx.showToast({
662
+ // title: '今日发送次数已达上限',
663
+ // icon: 'none'
664
+ // });
665
+ // return;
666
+ // }
667
667
  const { formData } = this.data
668
668
  if(formData.bank_phone === ''){
669
669
  wx.showToast({
@@ -703,13 +703,13 @@ Page({
703
703
  this.startCountdown();
704
704
  this.setData({
705
705
  isSendSms: true,
706
- retryCount: this.data.retryCount + 1,
707
706
  formDataVerificationCode: data.code
708
707
  });
709
708
  } else {
710
709
  wx.showToast({
711
710
  title: errmsg || '发送失败,稍后请重试',
712
- icon: 'none'
711
+ icon: 'none',
712
+ duration: 2500
713
713
  });
714
714
  }
715
715
  })