mpbile .gitigore app chat login register theme

This commit is contained in:
2026-02-27 20:15:07 +08:00
parent 7976f11cf4
commit 17a4415cd2
5 changed files with 10 additions and 6 deletions

View File

@@ -102,8 +102,7 @@ async function handleSendSms() {
if (data.success) {
countdown = 60;
countdownTimer = setInterval(() => { countdown--; btn.textContent = countdown > 0 ? countdown+'s后重发' : '获取验证码'; if(countdown<=0){clearInterval(countdownTimer);btn.disabled=false;} }, 1000);
if (data.mockCode) alert('验证码已发送: ' + data.mockCode);
else alert('验证码已发送');
alert('验证码已发送');
} else { alert(data.message); btn.disabled = false; if(data.refreshCaptcha) fetchCaptcha('phone'); }
} catch(e) { alert('发送失败,请确保后端已启动'); btn.disabled = false; }
fetchCaptcha('phone');