修改完成

This commit is contained in:
2026-08-21 17:19:00 +08:00
parent 76af4cc492
commit 797a2153aa
3 changed files with 15 additions and 4 deletions
+5 -2
View File
@@ -37,7 +37,7 @@
<div class="error-message" id="phoneError"></div>
</div>
<div class="form-group" id="captchaGroup" style="visibility: hidden">
<div class="form-group" id="captchaGroup" style="display: none">
<label for="captchaInput">滑动验证</label>
<div class="captcha-row">
<input
@@ -158,7 +158,6 @@
}
function refreshCaptcha() {
$("#captchaGroup").css("visibility", "visible");
currentCaptchaId = "";
currentSlideUuid = "";
currentSlideX = 0;
@@ -168,8 +167,10 @@
$("#sendSmsBtn").prop("disabled", false);
if (currentVerifyType === "slide") {
renderSlideCaptchaEntry();
$("#captchaGroup").hide();
return;
}
$("#captchaGroup").show();
$("#captchaInput").show();
$("#captchaRefreshLink").show().text("看不清?换一张");
$("#captchaContainer")
@@ -304,6 +305,7 @@
if (smsCodeIssuedPhone && smsCodeIssuedPhone !== phone) {
smsCodeIssuedPhone = "";
$("#smsCode").val("");
refreshCaptcha();
}
}
@@ -482,6 +484,7 @@
.then(function (res) {
if (ApiClient.isSuccess(res)) {
smsCodeIssuedPhone = $("#phone").val().trim();
$("#captchaGroup").hide();
layerInstance.msg("短信验证码已发送", { icon: 1 });
AuthPageUtil.startSmsCountdown("#sendSmsBtn");
return;