var id = userId.user_id
var json = JSON.stringify({ "USER_ID": id,"CHECKING_ID":checkId });
$.ajax({
type: "post",
dataType: "json",
contentType: "application/json",
url: api.findUser,
data: json,
async: false,
error: function error(request) {
alert("Connection errorccc");
},
success: function success(res) {
console.log(JSON.stringify(res)+"/"+userId)
if (res.stateCode == '200' && res.data !== null) {
window.sessionStorage.setItem('user', JSON.stringify(res.data))
closeCarema(function () {
window.location.href = "cur_reg.html" + window.location.search + '&user=' + res.data.USER_ID
})
} else {
band.style.display = 'none';
none.style.display = 'block'
closeCarema(function(){
close.innerText= totalTime+'秒后关闭';
var tid = setInterval(() => {
if(totalTime>=1){
totalTime--;
}
close.innerText= totalTime+'秒后关闭';
if(totalTime<=0){
clearInterval(tid)
window.location.href = 'registe.html' + window.location.search
}
}, 1000)
})
}
}
})
倒计时与页面数据保存
最新推荐文章于 2022-11-22 14:22:57 发布