CINXE.COM
docin.com豆丁网-分享文档 发现价值
<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="referrer" content="no-referrer-when-downgrade" /> <meta http-equiv='content-language' content='zh-cn'> <script> var picture_image_path_v1 = "https://hs.douding.cn"; var canvas_version = "jgcw2024-08-2916053503"; var js_common = "20250327"; //var stat_collect_path = "img.docin.com"; var stat_collect_path = "img.douding.cn"; var hkUrl ="https://page.douding.cn/huangke/docxinshi"; var urlPrefix=new function(){this.www='https://www.docin.com';this.cdn='https://hs.douding.cn';this.manhua='https://manhua.docin.com';this.jianzhu='https://jz.docin.com'};</script> <link title="豆丁网" type="application/opensearchdescription+xml" rel="search" href="/open_search.xml" /> <script type="text/javascript" src="https://hs.douding.cn/js/libs/polyfill.min.js?rand=20250327"></script> <title>docin.com豆丁网-分享文档 发现价值</title> <meta name="description" content="豆丁网是面向全球的中文社会化阅读分享平台,拥有商业,教育,研究报告,行业资料,学术论文,认证考试,星座,心理学等数亿实用文档和书刊杂志。" /> <meta name="keywords" content="豆丁,文档分享,论文,研究报告,企业工具,认证考试" /> <meta name="Author" content="豆丁网" /> <meta name="Copyright" content="豆丁网 docin.com 版权所有" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <link rel="icon" href="https://hs.douding.cn/images_cn/topic/favicon.ico?rand=20250327" type="image/x-icon" /> <link rel="shortcut icon" href="https://hs.douding.cn/images_cn/topic/favicon.ico?rand=20250327" type="image/x-icon" /> <!--[if lt IE 9]> <script type="text/javascript" src="https://hs.douding.cn/js/html5.js?rand=20250327"></script> <![endif]--> <link href="https://hs.douding.cn/css/common_flat.css?rand=20250327" rel="stylesheet" type="text/css" media="screen, projection"/> <link href="https://hs.douding.cn/css/login/docinregist.css?rand=20250327" rel="stylesheet" type="text/css" media="screen, projection"/> <style> .wrapper{width:100%;padding-top:10px;margin:0 auto;min-height:80vh;} .login_code_reload a{color:#fff;} .docinLoginDialogBox{z-index:10;} .docinLoginDialogBox .changeLoginMode{right:-1px;} .login_banner{width:1130px;margin:0 auto;} .page_content{position:relative;margin-top:0;height:480px;} .login_wrap{width:1130px;position:relative;height:530px;margin:0 auto;} .range_active_new{position:absolute;top:0;bottom:0;left:0;right:0;} .docinLoginDialogBox{top:29px;right:0;left:auto;box-shadow:0 0 20px rgba(0,0,0,0.16);display:block!important;} .docinLoginDialogBox .closeBtn{display:none!important;} .lastLoginTips{position:absolute!important;} .backToTop{z-index:1000;} </style> </head> <body style="background-color:#fff;"> <!-- <div id="jRealNameTips" class="myInfo-tips clear" style="display:block;"> <div style="width:1130px;margin:0 auto;"> <a href="javascript:void(0);" title="关闭" class="welcome_closed"></a> <span class="fco">应《<a style="text-decoration:underline;" class="fco" href="https://www.miit.gov.cn/ztzl/rdzt/tdzzyyhlwsdrhfzjkjstggyhlwpt/zcfb/art/2020/art_41be9e94ecc5433899ca88a0339a38b6.html" target="_blank" title="中华人民共和国网络安全法">中华人民共和国网络安全法</a>》要求,自2017年6月1日起,使用互联网服务需要进行账号实名认证。请尽快对账号进行<a style="text-decoration:underline;" class="fco" href="https://www.docin.com/helpcenter/getProblem.do?pid=172" target="_blank" title="手机号验证">手机号验证</a>,感谢您的理解与支持!</span> </div> </div> --> <div class="wrapper"> <div class="login_banner"> <div class="item-logo"> <h1> <a href="https://www.docin.com/">豆丁</a> </h1> </div> <p class="pass_reglink">第一次来豆丁?<a href="https://www.docin.com/app/forward?forward=register&send=oneok&end_registstat=109_1852215934" target="_blank" title="免费注册">免费注册</a></p> </div> <div class="page_content clear"> <div class="range_active_new"> <iframe width="100%" height="100%" scrolling="no" frameborder="0" style="display:block;margin:0 auto;" src="/rem1/index.do?pos=232"></iframe> </div> <div class="login_wrap"> <div class="docinLoginDialogBox" id="newlogin"> <iframe scrolling="no" frameborder="0" style="height:100%;_height:330px;width:100%;position:absolute;top:0;left:0;z-index:-1;"></iframe> <div class="dialogBoxInner"> <div class="changeLoginMode toSwipe"></div> <!-- toPhone--> <div class="hd"> <div class="loginTabWrap"> <span class="tabBtn cur">账号登录</span><span class="tabBtn quick-phone-link">手机快捷登录</span> </div> <div class="swipeLogin" style="display:none;"> 扫码登录 </div> </div> <div class="bd"> <div id="loginCont0" style="display:block;"> <form id="loginnew" name="loginnew" method="post" action="/app/login"> <input type="hidden" name="forward" value="/lovemo1987"/> <div class="loginContWrap"> <div class="input_wrap"> <input type="text" id="username_new" name="username" gtbfieldid="7" placeholder="手机/邮箱/用户名" class="input_txt" onblur="showLoginCodeTitle();" /> </div> <div class="input_wrap"> <input type="password" name="password" maxlength="16" id="password_new" placeholder="登录密码" class="input_txt" onkeypress="if (event.keyCode==32) {event.returnvalue=false;return false;}" onkeyup="if(event.keyCode==13){this.blur();check_login_title();this.focus();}" onkeydown="if(event.keyCode==32) return false;" /> </div> <input type="hidden" name="showcode4login" id="showcode4logintitle" value="0"/> <div id="titleloginfailshowid" class="yzm" style="display:none;"> <input type="text" value="" id="loginfalsecodetitle" autocomplete="off" name="loginfalsecode" maxlength="5" onfocus="javascript:titleNoticeYzmTitleD();" onkeydown="if(event.keyCode==13){check_login_title();}" class="txt"> <img width="95" onclick="javascript:refCodeLogin();" id="titleloginimg" name="titleloginimg" src="" alt="" title="请输入图片中的字符"> <a style="font-weight:normal;" title="换张图片" href="javascript:refCodeLogin();">换张图</a> <span id="titleNoticeYzmTitleDiv" class="checkCode" style="display:none;">请输入图片中的字符</span> </div> </div> <div class="regAndForget"> <a class="f_r" href="/app/forward?forward=findPsw1" title="忘记密码?" target="_blank">忘记密码?</a> <a href="https://www.docin.com/app/forward?forward=register&end_registstat=" target="_blank">注册账号</a> </div> <div class="loginSubmitBtn"> <a title="登录" class="btn loginBtn" onclick="check_login_title();">登录</a><a title="微信登录" class="btn wxBtn" onclick="openwx();"><span class="ico_wx"></span>微信登录</a> </div> </form> </div> <div id="loginCont1" style="display:none;"> <form action="/userLoginQuick/quickTelephone.do" method="POST" class='loginByPhone' name="login"> <input type="hidden" name="forward" value="/lovemo1987"/> <input type="hidden" value="pc" name="from"/> <div class="loginContWrap"> <div class="input_wrap"> <span class="input_before before_phone"></span> <input type="text" placeholder="请输入手机号码" name="login_tel_q" class="input_txt login-phoneNum" autocomplete="off" maxlength="11"> </div> <div class="input_wrap"> <span class="input_before before_message"></span> <input type="text" placeholder="请输入短信验证码" name="validateCodeTxt_q" class="input_txt login-testcode quickPhoneInput" autocomplete="off" maxlength="6"> <span class="getMessageBtn">获取短信验证码</span> </div> </div> <p class="loginFailTips" style="display: none;"></p> <div class="loginSubmitBtn"> <a title="登录" class="btn phoneloginBtn login-submitBtn">手机快捷登录</a> </div> </form> </div> <div id="loginCont2" style="display:none;"> <div class="login_code_con clear"> <div class="login_code_wrap"> <div class="login_code_loading"></div> <div class="login_code_show"> </div> <div class="login_code_reload" style="display:none;"> <p>二维码已失效</p> <p><a class="login_code_reload_btn" href="javascript:;" title="点击刷新">点击刷新</a></p> </div> <div class="login_code_succ" style="display:none;"> <span class="ico_swipe_phone"></span> </div> </div> <div class="login_code_tips"> <p>使用 <a href="/mobile_web/index.jsp" target="_blank" title="豆丁书房APP">豆丁书房APP</a></p> <p><span class="swipe_login_bs"></span>扫一扫登录</p> </div> <div class="swipe_success_tips" style="display:none;"> <p style="font-size:13px;color:#666;">扫描成功!<a id="backSwipe" href="javascript:void(0);">重扫</a></p> <p style="font-size:14px;color:#333;">请在手机上确认登录</p> </div> </div> </div> <div class="connectLogin"> <a href="javascript:void(0);" onclick="openqq()"><span class="ico_connect connect_qq"></span>QQ</a> <a href="javascript:void(0);" onclick="openss()"><span class="ico_connect connect_weibo"></span>微博</a> <a href="javascript:void(0);" onclick="openalipay()"><span class="ico_connect connect_zfb"></span>支付宝</a> <a href="javascript:void(0);" onclick="openmsn()"><span class="ico_connect connect_micro"></span>Microsoft</a> </div> </div> </div> <div class="ft"> 登录代表您已阅读并接受 <a href="/about/doc_fwtk.jsp" target="_blank">豆丁服务条款</a> 和 <a href="/about/doc_ysbg.jsp" target="_blank">隐私政策</a> </div> </div> <div id="open"></div> <div id="after_login"></div> <div id="setwb"></div> </div> </div> </div> <!--页尾--> <div class="foot_k" id="foot"> <ul> <li class="first"> <dl> <dt>关于我们</dt> <dd><a href="https://www.docin.com/about/aboutus.jsp" target="_blank">关于豆丁</a></dd> <!-- <dd><a href="http://blog.docin.com" target="_blank">豆丁博客</a></dd> --> <dd>豆丁API</dd> <dd><a href="https://www.docin.com/about/products.jsp" target="_blank">产品优势</a></dd> <dd><a href="https://www.docin.com/company/index.do" target="_blank">合作机构</a></dd> <dd><a href="https://www.docin.com/app/about/mediareport" target="_blank">媒体关注</a></dd> </dl> </li> <li> <dl> <dt>使用须知</dt> <dd><a href="https://www.docin.com/helpcenter/doc_help_xssl.do" target="_blank">帮助中心</a></dd> <dd><a href="https://www.docin.com/helpcenter/toHelpCenter.do" target="_blank">常见问题</a> <img src="https://hs.douding.cn/images_cn/newDocin/icon-newfoot.gif" alt="new"></dd> <dd><a href="https://www.docin.com/helpcenter/self_help_down.do" target="_blank">自助服务</a></dd> <dd><a href="https://www.docin.com/about/doc_qqcl.jsp" target="_blank">侵权处理</a></dd> <dd><a href="https://www.docin.com/about/doc_mzsm.jsp" target="_blank">免责声明</a></dd> <dd><a href="https://www.docin.com/about/doc_ysbg.jsp" target="_blank">隐私政策</a></dd> <dd><a href="https://www.docin.com/about/doc_bqsy.jsp" target="_blank">权利声明</a></dd> </dl> </li> <li><dl> <dt>玩转豆丁</dt> <dd><a href="https://weibo.com/docin" target="_blank">豆丁官方微博</a></dd> <dd><a href="http://user.qzone.qq.com/1391051285" target="_blank">豆丁网QQ空间</a></dd> <dd><a href="https://www.douyin.com/user/MS4wLjABAAAA7tjKgFKdjl2Pu39ARhESo0BALTYTixUC0PxepJW14CBjSb5TjZ0JflzM5bIexka3" target="_blank">豆丁官方抖音号</a></dd> <dd><a onmousedown="return inpmv(7690);" href="https://www.docin.com/mobile_web/index.jsp" target="_blank">移动APP:豆丁书房</a> <img src="https://hs.douding.cn/images_cn/newDocin/icon-newfoot.gif" alt="new"></dd> <dd><a href="https://www.docin.com/mobile_web/index.jsp#bookReader" target="_blank">移动APP:豆丁阅读</a></dd> </dl></li> <li class="publicAcc"> <dl> <dt><img src="https://hs.douding.cn/images_cn/docin_dimcode@2x.png" alt="关注微信公众号" /></dt> <dd>关注微信公众号</dd> </dl> </li> <li class="contactUs"> <dl> <dt>联系我们</dt> <dd><a href="https://www.docin.com/about/doc_lxwm.jsp#adService" target="_blank">广告服务</a></dd> <dd><a href="https://www.docin.com/about/guanggao.jsp" target="_blank">广告刊例</a></dd> <dd><a href="https://www.docin.com/about/doc_jrwm.jsp" target="_blank">加入我们</a></dd> <dd><a href="https://www.docin.com/about/doc_yqlj.jsp" target="_blank">友情链接</a></dd> <dd><a href="https://www.docin.com/about/doc_lxwm.jsp" target="_blank">联系我们</a></dd> </dl></li> <li class="last"><dl> <dt>网站备案</dt> <dd><a href="https://beian.miit.gov.cn" target="_blank">京ICP备 08006815号-2</a></dd> <dd><!-- <a href="https://tsm.miit.gov.cn/dxxzsp/xkz/xkzgl/resource/qiyesearch.jsp?num=%E8%B1%86%E4%B8%81%E4%B8%96%E7%BA%AA(%E5%8C%97%E4%BA%AC)%E7%BD%91%E7%BB%9C%E6%8A%80%E6%9C%AF%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8&type=xuke" target="_blank">京ICP证 080280号</a> -->京ICP证 080280号</dd> <dd>(署)网出证(京)字第178号</dd> <dd>京公海网安备:11010802021341</dd> <dd>北京市出版工作者协会理事单位</dd> <dd class="cop"><span><img src="https://hs.douding.cn/images_cn/about/icon-foot.png" alt="经营性网站备案中心"></span><a target="_blank" href="http://www.bj.cyberpolice.cn/index.htm" class="cop1"><img src="https://hs.douding.cn/images_cn/about/icon-foot.png" alt="北京市公安局信息网络安全报警服务"></a><a target="_blank" href="https://www.12377.cn/" class="cop2"><img src="https://hs.douding.cn/images_cn/about/icon-foot.png" alt="违法和不良信息举报中心"></a><img style="width: 40px; height: 48px;" title="海淀警方提醒您谨防网络购物、中奖诈骗" alt="海淀警方提醒您谨防网络购物、中奖诈骗" src="https://hs.douding.cn/images_cn/newDocin/remind.gif" /></dd> </dl></li> </ul> <p class="copy"> ©2008-2025 DocIn.com Inc. All Rights Reserved<a class="docin_yyzz" href="https://www.docin.com/jsp_cn/docin/yyzz.jsp" target="_blank">豆丁世纪(北京)网络技术有限公司</a> <span class="qq_contact"> <span class="qq_contact_kefu"></span> </span> </br> 违法和不良信息举报:18001356970 涉未成年人举报专线:18001356970<img style="vertical-align:middle;margin:0 5px 0 10px;" src="https://hs.douding.cn/images_cn/error/wrong.png"/><a href="http://www.12377.cn" target="_blank">网上有害信息举报专区 </a> </p> </div> <script type="text/javascript" src="https://hs.douding.cn/js/jquery-merge.min.js?rand=20250327"></script> <script type="text/javascript" src="https://hs.douding.cn/js/libs/lodash.min.js?rand=20250327"></script> <script type="text/javascript" src="https://hs.douding.cn/js/common_v1.js?rand=20250327"></script> <script type="text/javascript" src="https://hs.douding.cn/js/newDocin/index_zhuce_new.js?rand=20250327"></script> <div id="loginwindow"></div> <div id="wxwindow"></div> <style type="text/css"> .voteList { padding: 5px 0; } .voteList li { float: left; width: 32px; font-size: 22px; text-align: center; } .voteSkills-cont { padding: 5px 0 0; } .voteSkills-cont li { float: left; display: inline; width: 9%; height: 22px; overflow: hidden; font-size: 12px; font-weight: 700; } .voteSkills-tips li { width: 33%; font-size: 12px; font-weight: 400; } .voteSkills-tips .l2 { text-align: center; } .voteSkills-tips .l3 { text-align: right; } </style> <div style="left: 431.5px; top: 0px; position: absolute; z-index: 100000; display: none;" class="docinPop" id="voteSkills"> <div> <table class="docinPopTable"> <tbody> <tr> <td class="pop_topleft"></td> <td class="pop_border"></td> <td class="pop_topright"></td> </tr> <tr> <td class="pop_border"></td> <td class="pop_content"> <iframe frameborder="0" scrolling="no" style="height: 100%; _height: 145px; width: 100%; position: absolute; top: 0; left: 0; z-index: -1; filter: ( opacity = 0 ); background: none;"></iframe> <div id="alertBody" class="dialog_content"> <h3 class="dialog_title"> 豆丁1秒调查: <a href="javascript:closediv();void(0);" title="关闭" class="dialog_closed"><img src="https://hs.douding.cn/images_cn/news/buy_image/layout_close.svg" style="width:13px;margin-bottom:3px;opacity:0.7;" alt="关闭"> </a> </h3> <div style="font-size: 14px; padding: 5px 0;" class="dialog_body"> <div class="voteSkills-contSub"> <p> 你想把豆丁推荐给你的朋友或者同事吗? </p> <ul class="clear voteList"> <li> <label for="v0"> <input type="radio" name="score" id="v0" value="0" /> <br /> 0 </label> </li> <li> <label for="v1"> <input type="radio" name="score" id="v1" value="1" /> <br /> 1 </label> </li> <li> <label for="v2"> <input type="radio" name="score" id="v2" value="2" /> <br /> 2 </label> </li> <li> <label for="v3"> <input type="radio" name="score" id="v3" value="3" /> <br /> 3 </label> </li> <li> <label for="v4"> <input type="radio" name="score" id="v4" value="4" /> <br /> 4 </label> </li> <li> <label for="v5"> <input type="radio" name="score" id="v5" value="5" /> <br /> 5 </label> </li> <li> <label for="v6"> <input type="radio" name="score" id="v6" value="6" /> <br /> 6 </label> </li> <li> <label for="v7"> <input type="radio" name="score" id="v7" value="7" /> <br /> 7 </label> </li> <li> <label for="v8"> <input type="radio" name="score" id="v8" value="8" /> <br /> 8 </label> </li> <li> <label for="v9"> <input type="radio" name="score" id="v9" value="9" /> <br /> 9 </label> </li> <li> <label for="v10"> <input type="radio" name="score" id="v10" value="10" /> <br /> 10 </label> </li> </ul> <ul class="voteSkills-tips voteSkills-cont clear"> <li class="l1"> 不想 </li> <li class="l2"> 无所谓 </li> <li class="l3"> 非常想 </li> </ul> </div> </div> <div class="dialog_buttons"> <input type="button" value="确定" class="docinCubeBt" onclick="commitScorce();"> <input onclick="closediv();" type="button" class="docinCubeBt docinCubebtGray" style="margin-left: 40px;" value="取消" /> </div> </div> </td> <td class="pop_border"></td> </tr> <tr> <td class="pop_bottomleft"></td> <td class="pop_border"></td> <td class="pop_bottomright"></td> </tr> </tbody> </table> </div> </div> <div id="results"></div> <script type="text/javascript"> var autohidden; function moveElement(elementID,final_y,interval) { if (!document.getElementById) return false; if (!document.getElementById(elementID)) return false; var elem = document.getElementById(elementID); if (elem.movement) { clearTimeout(elem.movement); } if (!elem.style.top) { elem.style.top = "0px"; } var ypos = parseInt(elem.style.top); if (ypos == final_y) { clearTimeout(autohidden); return true; } if (ypos < final_y) { var dist = Math.ceil((final_y - ypos)/10); ypos = ypos + dist; } if (ypos > final_y) { var dist = Math.ceil((ypos - final_y)/10); ypos = ypos - dist; } elem.style.top = ypos + "px"; var repeat = "moveElement('"+elementID+"',"+final_y+","+interval+")"; elem.movement = setTimeout(repeat,interval); } function show(){ document.getElementById("voteSkills").style.display="block"; setObjCenter("voteSkills"); document.getElementById("voteSkills").style.display="none"; document.getElementById("voteSkills").style.display="block"; moveElement("voteSkills",180,3) } function commitScorce(){ var nums=document.getElementsByName("score"); var selnum; var f=false; var userid=0; var useraction=0; var pageid=0; for(var i=0;i<nums.length;i++){ if(nums[i].checked){ selnum=nums[i].value; f=true; } } if(f){ jQuery.post("/jsp_cn/fkhd/insertData.jsp?userid="+userid+"&score="+selnum+"&pageid="+pageid+"&actiontype="+useraction,function (data){ closedivsub(); }); }else{ alert("未评分"); } } function closedivsub(){ document.getElementById("voteSkills").style.display="none"; voteSetCookie("vote_action_displose",1); } function closediv(){ document.getElementById("voteSkills").style.display="none"; document.cookie = "vote_action_displose=1" + ";path=/"; } function voteSetCookie(cookiename,cookievalue) { var expire = "; expires=" + new Date((new Date()).getTime() + 24*60*3600000).toGMTString(); document.cookie = cookiename + "=" + cookievalue + ";path=/;domain=docin.com"+expire; } function voteGetCookie(cookiename){ var allcookies = document.cookie; var cookie_pos = allcookies.indexOf(cookiename); if(cookie_pos!=-1){ return false; }else{ return true; } } //alert(0); </script> <script type="text/javascript" src="https://hs.douding.cn/js/pagemodulestat.js?rand=20250327"></script> <script> // 建筑会员到期优化 var isShowBuildTicketModal = false; var isShowBuildVipModal = false; //console.log("vip:" + isShowBuildVipModal + ", ticket:" + isShowBuildTicketModal); var userNameFooter = ''; buildVipDeadline(userNameFooter,isShowBuildTicketModal,isShowBuildVipModal,'https://www.docin.com',1130); //企业工具会员下载券用完弹窗 var isToolVipTicketModal = false; buildVipDeadline(userNameFooter,isToolVipTicketModal,null,'https://www.docin.com',1130,2); </script> <!-- 去除 密码安全贴士 提示 --> <script> jQuery(function(){ if(jQuery(".login_wrap").length>0){ var iMarginRight = (jQuery(window).width()-1130)/2; jQuery(".login_wrap").css({"width":"440px","marginRight":iMarginRight+"px"}); } jQuery(window).on("resize",function(){if(jQuery(".login_wrap").length>0){ var iMarginRight = (jQuery(window).width()-1130)/2; jQuery(".login_wrap").css({"width":"440px","marginRight":iMarginRight+"px"}); }}); lastLoginTips(2);//上次登录提示 }); function closeWeixin(){ dialogBoxHidden(); jQuery("#microsoft_xin").hide(); clearInterval(interval); } jQuery(function(){ if(jQuery("#newlogin").length == 0){return;} jQuery(".loginTabWrap .tabBtn").on("click",function(){ jQuery(".loginTabWrap .tabBtn.cur").removeClass("cur"); jQuery(this).addClass("cur"); var iIndex = jQuery(this).index(); jQuery("div[id^='loginCont']").hide(); jQuery("#loginCont"+iIndex).show(); if(iIndex == 1){ if(waitTimer){ clearTimeout(waitTimer); wait=0; time("getMessageBtn"); } jQuery('.login-phoneNum').focus(); } }); jQuery(".changeLoginMode").on("click",function(){ jQuery("div[id^='loginCont']").hide(); if(jQuery(this).hasClass("toSwipe")){ jQuery(this).removeClass("toSwipe").addClass("toPhone"); jQuery("#loginCont2").show(); jQuery(".loginTabWrap").hide(); jQuery(".swipeLogin").show(); loginByCode(); } else if(jQuery(this).hasClass("toPhone")){ jQuery(this).removeClass("toPhone").addClass("toSwipe"); jQuery("#loginCont2").hide(); jQuery(".loginTabWrap .tabBtn.cur").trigger("click"); jQuery(".loginTabWrap").show(); jQuery(".swipeLogin").hide(); } }); jQuery(".docinLoginDialogBox .input_txt").on("focus",function(){ jQuery(this).parent().addClass("input_focus"); }); jQuery(".docinLoginDialogBox .input_txt").on("blur",function(){ jQuery(this).parent().removeClass("input_focus"); }); loginByCode(); }); </script> <script> //手机号注册验证 var timeGoing = false, oTel_q = jQuery(".login-phoneNum"), oCheckCode_q = jQuery(".login-testcode"), oGetCode_q = jQuery(".getMessageBtn"), oErrorTips =jQuery(".loginFailTips"), oRegister_q = jQuery(".login-submitBtn"), loginTelPass = false; var waitTimer = null,wait = 60; jQuery(".login-phoneNum,.login-testcode").on("focus",function(){ oErrorTips.html("").hide(); }); oRegister_q.on("click",function(event){ if(loginTelPass){ //用户名可用,继续检测密码 checkVcode(); // return false; }else{ checkRegisterTel(false); // return false; } return false; }); oGetCode_q.on("click",function(event){ event.preventDefault(); jQuery('.loginFailTips').hide(); jQuery('.quickPhonePar').removeClass('quickPhoneError'); checkRegisterTel(true); }); jQuery(".login-phoneNum,.login-testcode").on("keydown",function(event){ if (event.keyCode == 13) { oRegister_q.click(); jQuery('.quickPhoneInput').blur(); return false; } }); function checkRegisterTel(isGetCode){ if (typeof(navigator.cookieEnabled) !== 'undefined' && !navigator.cookieEnabled) { oErrorTips.html("开启cookie之后才能登录").show(); return; } var telResult = checkLoginTel(isGetCode); switch (telResult){ case 1: oErrorTips.html("请输入手机号").show(); jQuery(".login-phoneNum").parent().addClass("quickPhoneError"); break; case 2: oErrorTips.html("手机号格式不正确").show(); jQuery(".login-phoneNum").parent().addClass("quickPhoneError"); break; case 3: oErrorTips.html("手机号格式不正确").show(); jQuery(".login-phoneNum").parent().addClass("quickPhoneError"); break; } } function checkVcode(){ var codeResult = checkCodeServer(); switch (codeResult){ case 1: oErrorTips.html("请输入短信验证码").show(); jQuery(".login-testcode").parent().addClass("quickPhoneError"); break; case 2: oErrorTips.html("验证码格式不正确").show(); jQuery(".login-testcode").parent().addClass("quickPhoneError"); break; } } //验证手机号 function checkLoginTel(isGetCode){ var loginTel = jQuery.trim(oTel_q.val()).replace(/\s*/g,""); var typeA = /^((13[0-9])|(14[0-9])|(15[^4,\D])|(16[2567])|(17[0-9])|(18[0-9])|19[0-9])\d{8}$/.test(loginTel); var typeB = /^(134[0-8])[0-9]{7}$/.test(loginTel); var telNumPass = typeA || typeB; if(loginTel == ""){ return 1; } else if(loginTel.length != 11){ return 2; } else if(!telNumPass){ return 3; } if (timeGoing) { return false; } jQuery.post('/jsp_cn/jquery/login/reg_check.jsp?flag=phone&login_tel='+loginTel+ "&rank=" + new Date().getTime(), function(data){ console.log('reg_check') var flag = jQuery.trim(data.replace(/\r\n/gim,"")); if(flag == 0 || flag == 1){//手机号验证通过 if(isGetCode){//获取验证码 //var tempCoverFloor=jQuery('<div class="tempCoverFloor"></div>'); // jQuery('#newlogin').prepend(tempCoverFloor); // jQuery('.tempCoverFloor').height(jQuery('#newlogin').outerHeight()); docinVerifyCheckBefore({ successCallback: function(res){ if (res == 1) { showWebLoginSign({ fromType: 2, title: '请验证后完成登录', successCallback: function(res){ // console.log(res) loginTelPass = true; timeGoing = true; var url = "/dwrutil/createPhoneCode.do?phone="+ loginTel+"&validate_code_tel=" + res.validate + "&rank=" + new Date().getTime(); jQuery.get(url,null,function(data){ // timeGoing = false; // timeGoing 测试用 要删掉 var flag = jQuery.trim(data.replace(/\r\n/gim,"")); if(flag == -1){ showToast('短信发送过于频繁,请明天再试!', 3000, '#newlogin'); }else if(flag == -12){ showToast('验证码错误,请重新输入', 3000, '#newlogin'); }else if(flag == -11){ showToast('短信发送过于频繁,请稍后再试!', 3000, '#newlogin'); }else{ //生成验证码 getvalidacode(); // showToast('短信验证码已发送!', 3000, '#newlogin'); jQuery('.login-testcode').focus(); } }); } }); } else if (res == 2) { dialogBoxShadow(); var getImgCode = new CreateDocinDialog({ id:"getImgCode", title:'请输入验证码', content:'<div class="getImgCodeWrap clear"><div class="codeWrap"><input type="text" class="picCode" onkeydown="if(event.keyCode==13){jQuery(\'#j_confirm\').click();}" name=""/></div><div class="picWrap"><img style="width:68px;height:28px;cursor:pointer;" class="codePic" src="/servlet/getctime?from=addusercode&t='+ new Date().getTime() +'" name=validate_code_tel /></div></div><div class="getImgCodeTips fcr"></div>', cancel:{ txt:'', value:false }, confirm:{ txt:'确定', value:true }, shadow:2, init: function () { jQuery('.picCode').focus(); }, callBack:{ okBack:function(){ var codeVal = jQuery('.picCode').val(); if (codeVal == '') { jQuery('.getImgCodeTips').html('请输入短信验证码'); jQuery('.picCode').focus(); jQuery('.codePic').attr('src', '/servlet/getctime?from=addusercode&t='+ new Date().getTime()); return; } else if (codeVal.length != 5){ jQuery('.getImgCodeTips').html('验证码格式不正确'); jQuery('.picCode').focus(); jQuery('.codePic').attr('src', '/servlet/getctime?from=addusercode&t='+ new Date().getTime()); return; } else { jQuery('.getImgCodeTips').html(''); loginTelPass = true; timeGoing = true; var url = "/dwrutil/createPhoneCode.do?phone="+ loginTel+"&validate_code_tel=" + codeVal + "&rank=" + new Date().getTime(); jQuery.get(url,null,function(data){ var flag = jQuery.trim(data.replace(/\r\n/gim,"")); if(flag == -1){ jQuery('.getImgCodeTips').html('短信发送过于频繁,请明天再试!'); //getPicCode.close(); }else if(flag == -12){ jQuery('.getImgCodeTips').html('验证码错误,请重新输入'); jQuery('.picCode').focus(); jQuery('.codePic').attr('src', '/servlet/getctime?from=addusercode&t='+ new Date().getTime()); }else if(flag == -11){ jQuery('.getImgCodeTips').html('短信发送过于频繁,请稍后再试!'); //getPicCode.close(); }else{ //生成验证码 getvalidacode(); getImgCode.closeDialog(); dialogBoxHidden(); jQuery('.login-testcode').focus(); } }); } } }, closeCallBack:function(){ dialogBoxHidden(); } }) jQuery('#getImgCode .codePic').on('click', function(){ jQuery(this).attr('src', '/servlet/getctime?from=addusercode&t='+ new Date().getTime()); }); } } }) }else{//点击注册//用户名可用,继续检测邮箱 checkVcode(); } }else if(flag == 2){//用户输入的手机号码与旧用户的用户名相同时 oErrorTips.html("此手机号码注册异常,请您与客服联系。(企业QQ:800004241)").show(); } } ); } //验证验证码 function checkCodeServer(){ var code = jQuery(".login-testcode").val(); var loginTel = oTel_q.val().replace(/\s*/g,""); if(code==''){ return 1; }else if(code.length != 4){ return 2; } var url = "/dwrutil/checkPhoneCode.do?code=" + code+"&phone="+ loginTel + "&from=quick&rank=" + new Date().getTime(); jQuery(".login-submitBtn").addClass("login_button_loading").val("正在登录"); jQuery.get(url,null,function(data){ var flag = jQuery.trim(data.replace(/\r\n/gim,"")); if(flag == 1){ jQuery(".loginByPhone").submit(); oErrorTips.html("").hide(); return false; } else if(flag == 3){ oErrorTips.html("验证码已过期").show(); jQuery(".login-submitBtn").removeClass("login_button_loading").val("登录"); }else if(flag == 2){ oErrorTips.html("验证码错误").show(); jQuery(".login-submitBtn").removeClass("login_button_loading").val("登录"); }else if(flag == -1){ oErrorTips.html("验证码次数超限,明天再试或换其他登录方式").show(); jQuery(".login-submitBtn").removeClass("login_button_loading").val("登录"); } jQuery(".login-testcode").parent().addClass("quickPhoneError"); }); } /* 点击发送手机验证码 */ //验证码发送提示 function msgSendTips(loginTel){ var oTips = jQuery('<div id="msgSendTips">验证码已发送,请查看手机</div>'); jQuery('body').append(oTips); setTimeout(function(){ jQuery('#msgSendTips').remove(); }, 3000); } //验证码倒计时 function time(id) { var o = jQuery("."+id); o.css({'color': '#ccc'}); if (wait == 0) { timeGoing = false; o.css({'color': ''}); o.html('获取验证码'); wait = 60; waitTimer = null; } else { o.html('重新发送('+wait+')'); waitTimer = setTimeout(function() { time(id); wait--; }, 1000); } } function getvalidacode(loginTel){ if(waitTimer){return false;} // msgSendTips(loginTel); showToast('短信验证码已发送!', 3000, '#newlogin'); time("getMessageBtn"); } </script> </body> </html> <!-- login_beidong -->