Browse Source

【修改】登录页:首次登录;

西昌分支
dyy 4 months ago
parent
commit
0891dd4082
1 changed files with 18 additions and 13 deletions
  1. +18
    -13
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js

+ 18
- 13
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/Login/Default/Index.js View File

@@ -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()


Loading…
Cancel
Save