修改完成
This commit is contained in:
+5
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user