调整验证码有效期提示和重发状态
This commit is contained in:
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user