FiimeROM2.0
欢迎来到登陆中心
请登录或注册您的账户吧.
邮箱地址
密码
两步验证代码
return unescape(arr[2]); }else{ return null; } } $(function(){ //页面执行时处理 var name = getCookie('jizhi_username'); var jizhi_login_token = getCookie('jizhi_login_token'); if(name!=null && jizhi_login_token!=null){ $("#tel").val(name); $("#password").val(jizhi_login_token); } $('#tel, #password').blur(function() { var inputValue = $('#tel').val(); // 获取输入框的值 if (inputValue !== '') { $.ajax({ url: "https://mi.fiime.cn/Google/check_id.html", // 替换为你的实际API地址 method: 'POST', // 请求方法,可以根据需要修改为GET或其他方法 data: {tel: inputValue}, // 发送的数据,根据需要修改为你想要发送的数据 success: function(response) { // 请求成功的回调函数 console.log('请求成功: ' + response); // 在控制台输出响应结果 if(response == 1){ $('#two-factor-auth').show(); }else{ $('#two-factor-auth').hide(); } }, error: function(xhr, status, error) { // 请求失败的回调函数 console.log('请求失败: ' + error); } }); } }); }) function checklogin(){ // 判断账号密码不为空 if($.trim($("#tel").val())=='' || $.trim($("#password").val())==''){ alert('账号密码不能为空~'); return false; } // 判断两步验证不能为空值 var divElement = document.getElementById("two-factor-auth"); var styleValue = divElement.style.display; if (styleValue !== "none") { if ($.trim($("#two-factor-code").val()) == '') { alert('两步验证码不能为空~'); return false; } } if($("#jz_login").is(":checked")){ $("#isremember").val(1); setCookie('jizhi_username',$("#tel").val(),7);//设置用户名 setCookie('jizhi_login_token',$("#token").val(),7);//设置7天有效期 }else{ $("#isremember").val(0); } return true; } function wechat_login(){ window.location.href="https://mi.fiime.cn/Wechat/login.html" } function qq_login(){ window.location.href="https://mi.fiime.cn/qq/index.html" }