用户登录

记住密码 找回密码
还没有账号?立即注册

微信扫码安全登录

二维码已过期

点击刷新

扫码即表示同意 《用户协议》《隐私协议》

客服热线:18068200699 江苏振声教育 :18068200699

网校地址:江苏省宿迁市宿城区君玺国际广场

公安备案号:苏公网安备 32131102000394号  苏ICP备17048191号-2

版权所有: 宿培网校 © 2024

扫一扫微信关注

全国统一服务热线

18068200699

关闭
ind('.infoBox') if(userName_ipt.val()==''){ userName_ipt.parent().addClass('errorBox') userName_ipt.parent().find('.errorTip').text('用户名或手机号不能为空!') return false; }else if(password_ipt.val()==''){ password_ipt.parent().addClass('errorBox') infoBox.addClass('errTop') password_ipt.parent().find('.errorTip').text('密码不能为空!') return false; } //登录请求 var data = { username: $('.userName_ipt').val(), password: $('.password_ipt').val(), verify: $('#verify_code').val() }; $(that).val("玩命登录中......"); $.ajax({ url: "/login.html", type: "post", dataType: "json", data: data, success: function (data) { if (data.code == 500) { layer.msg(data.info); var wrong_times = getCookie("wrong_times") if (wrong_times > 0) { $('#verify_code_area').removeClass('Hidebox') } $('#the_code').click(); $('.BtnLogin').val("登 录"); return false; } else { if (data.data.url) { location.href = data.data.url } else { location.href = 'http://wx.sqpxw.cc/v2/centre';; } } } }) } //换一张图形验证码 function next() { var imgSrc = $('#the_code').attr('src')+'?time='+Math.random() $('#the_code').attr('src',imgSrc); } function wxLogin(){ $(".wxLoginBox").show(); } //刷新微信登录二维码 function refreshWxCode(that){ that.parent().hide(); } //返回密码登录 function backLogin(that){ that.parents('.wxLoginBox').hide(); } //显示密码 function showPassword(that){ if(that.hasClass('on')){ that.removeClass('on') that.parents(".iptBox").find('.ipt').attr('type','password') }else{ that.addClass('on') that.parents(".iptBox").find('.ipt').attr('type','text') } } //记住密码 function rememberPassword(that){ if(that.find('.checkBox').hasClass('on')){ that.find('.checkBox').removeClass('on') }else{ that.find('.checkBox').addClass('on') } } //输入框输入移除错误样式 $('.loginMod .ipt').on('blur',function(){ if($(this).val()!=''){ if($(this).parent().hasClass('errorBox')){ $(this).parent().removeClass('errorBox'); $(this).next().text(''); if($(this).hasClass('password_ipt')){ $(this).parents('.loginMod').find('.infoBox').removeClass('errTop') } } }else{ $(this).parent().addClass('errorBox'); if($(this).hasClass('password_ipt')){ $(this).next().text('密码不能为空!'); $(this).parents('.loginMod').find('.infoBox').addClass('errTop') }else{ $(this).next().text('用户名或手机号不能为空!'); } } }) $(document).keydown(function (event) { if (event.keyCode == 13) { $(".BtnLogin").click(); } })