调整验证码有效期提示和重发状态

This commit is contained in:
2026-09-16 10:47:01 +08:00
parent e8e8e5a404
commit 5288dbf9b0
4 changed files with 6 additions and 3 deletions
+2
View File
@@ -89,6 +89,7 @@ Page({
loading: false,
codeLoading: false,
countdown: 0,
codeSent: false,
countdownTimer: null,
agreementAccepted: false,
agreementLoading: false,
@@ -153,6 +154,7 @@ Page({
try {
await authApi.sendLoginCode(phone)
wx.showToast({ title: '验证码已发送' })
this.setData({ codeSent: true })
this.startCountdown()
} catch (error) {
wx.showToast({ title: error.message || '验证码发送失败', icon: 'none' })