|
|
@@ -268,21 +268,22 @@ |
|
|
|
type: "post", |
|
|
|
success: (res) => { |
|
|
|
isSending = false; |
|
|
|
hasSendCode = true |
|
|
|
time = 60 |
|
|
|
$('#sendCode').text(`重新发送(${time}s)`) |
|
|
|
timeT = setInterval(() => { |
|
|
|
time-- |
|
|
|
if (time == 0) { |
|
|
|
hasSendCode = false |
|
|
|
clearInterval(timeT) |
|
|
|
timeT = '' |
|
|
|
} |
|
|
|
$('#sendCode').text(`重新发送${time ?'('+time+'s'+')':''}`) |
|
|
|
}, 1000); |
|
|
|
if (res.code == 200) { |
|
|
|
$('#firstLoginBox .error_info span').text('短信已发送') |
|
|
|
$('#firstLoginBox .error_info').show() |
|
|
|
|
|
|
|
hasSendCode = true |
|
|
|
time = 60 |
|
|
|
$('#sendCode').text(`重新发送(${time}s)`) |
|
|
|
timeT = setInterval(() => { |
|
|
|
time-- |
|
|
|
if (time == 0) { |
|
|
|
hasSendCode = false |
|
|
|
clearInterval(timeT) |
|
|
|
timeT = '' |
|
|
|
} |
|
|
|
$('#sendCode').text(`重新发送${time ? '(' + time + 's' + ')' : ''}`) |
|
|
|
}, 1000); |
|
|
|
}else { |
|
|
|
$('#firstLoginBox .error_info span').text(res.info) |
|
|
|
$('#firstLoginBox .error_info').show() |
|
|
@@ -317,7 +318,11 @@ |
|
|
|
success: (res) => { |
|
|
|
lrPage.firstLogining(false); |
|
|
|
if (res.code == 200) { |
|
|
|
|
|
|
|
if (res.data.pwd == true) { |
|
|
|
//存储seesion |
|
|
|
sessionStorage.setItem("pase_29d", "hm"); |
|
|
|
window.location.href = "/Home/Index"; |
|
|
|
} |
|
|
|
} else { |
|
|
|
$('#firstLoginBox .error_info span').text(res.info) |
|
|
|
$('#firstLoginBox .error_info').show() |
|
|
|