$(".nav li").hover(function() { $(this).children("div").show(); },function() { $(this).children("div").hide(); }); try{ $("img").lazyload({ threshold : 150, effect : "fadeIn", skip_invisible:false }); }catch (e){} $(".user_login").click(function() { $(".editpass").hide(); $(".loginbox").show(); $(".regbox").hide(); $(".layout_black").width($(document).width()).height($(document).height()).show(); return false; }); $(".user_reg").click(function() { $(".editpass").hide(); $(".loginbox").hide(); $(".regbox").show(); $(".layout_black").width($(document).width()).height($(document).height()).show(); return false; }); $(".box_close").click(function() { $(".editpass").hide(); $(".loginbox").hide(); $(".regbox").hide(); $(".layout_black").hide(); }); $(".to_find").click(function() { $(".editpass").show(); $(".loginbox").hide(); $(".alertuserbox").hide(); $(".layout_black").width($(document).width()).height($(document).height()).show(); return false; }); //找回密码 function getcode() { var phone=$("#pass-phone").val(); var tips=$("#passtips"); if(!phone.match(/^[1-9]{1}[3456789]{1}[0-9]{9}$/)){ tips.text('手机号不正确').css('color','red'); return false; }else{ tips.text(''); } var sign=$.md5(phone+"456hghb89dj48fjh4389weh38jj9j48874hj5r8"); $.get("/member/sign/backcode?type=back&phone="+phone+'&sign='+sign,function(data){ data=JSON.parse(data); if(data.errro==0){ alert(data.code); var obj=$("#getphonecode"); obj.css('background','#8f9294'); obj.removeAttr('onclick'); editTime(60); }else{ alert(data.code); } }); } function editTime(time){ var obj=$("#pass_get_code"); if(time==0){ obj.text('获取验证码'); obj.css('background','#31a4ff'); obj.attr('onclick','getcode()'); }else { var dsq = setTimeout(function () { obj.text(time+'s后重新获取'); editTime(time - 1); }, 1000) } } $("#passeditbtn").click(function () { form=$("#alert_ajax_password"); var tips=$("#passtips"); $.post(form.attr('action'),form.serialize(),function (e) { if(e.state=='success'){ tips.text(e.msg).css('color','green'); setTimeout(function () { $(".user_login").click(); },1500); }else{ tips.text(e.msg).css('color','red'); } },'json'); }); var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?d9b746e2af9aa933bc9b15e11f0968b7"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); (function () { var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); (function(){ var src = "https://jspassport.ssl.qhimg.com/11.0.1.js?d182b3f28525f2db83acfaaf6e696dba"; document.write('