CINXE.COM
编辑/编委/主编登录
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> <title> 编辑/编委/主编登录 </title> <link rel="icon" href="data:image/ico;base64,aWNv"> <link href="https://zjulxbeditor.manuscriptcloud.com:443/css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="https://zjulxbeditor.manuscriptcloud.com:443/css/login.css"/> <link rel="stylesheet" type="text/css" href="https://zjulxbeditor.manuscriptcloud.com:443/css/wap/login/login_wap.css"/> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/jquery.min.js"></script> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/bootstrap.min.js"></script> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/encdec/encdec.js"></script> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/layer/layer.js"></script> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/PagePrompt/pagePeompt.js"></script> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/newToken/newToken.js"></script> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/bootstrap.min.js"></script> <link rel="stylesheet" href="https://zjulxbeditor.manuscriptcloud.com:443/css/PagePrompt/PagePrompt.css" > <link rel="stylesheet" href="https://zjulxbeditor.manuscriptcloud.com:443/css/user_mp/user_mp.css"> <link rel="stylesheet" href="https://zjulxbeditor.manuscriptcloud.com:443/js/font-awesome-4.7.0/css/font-awesome.min.css"> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/utils/hex.js"></script> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/utils/byteUtil.js"></script> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/crypto/sm4-1.0.js"></script> <script src="https://zjulxbeditor.manuscriptcloud.com:443/js/crypto/crypto.js"></script> <script type="text/javascript"> var GlobalVar = new Object(); GlobalVar.contextPath = 'https://zjulxbeditor.manuscriptcloud.com:443'; </script> <style type="text/css"> .shoujidonghuoqdjfhj{ height: 33px; float: right; background: #efefef; color: #cc6512; border: 1px solid #dddee3; padding: 0px 9px; } .huoqudongtaima{ float: right; height: 48px; padding: 0px 14px; background: #efefef; border: 1px solid #e2e3e7; color: #cc6512; } .denglutab{ width: 100%; height: 45px; line-height: 45px; font-size: 16px; color: #666; overflow: hidden; border-bottom: 1px solid #eee; } .denglutab div{ float: left; width: 49%; height: 44px; text-align: center; cursor: pointer; } .dialog-warning-top{ z-index: 11111; } .user_gonggao{ width:100%; height:auto; background: #e5f4f5; line-height: 40px; color:#6b798e; font-size: 14px; border:1px solid #93b3be; margin: 0 auto; margin-top: 20px; margin-bottom: 20px; } .djdufnffuyu{ width: 25px; height: 25px; background:#6da3a6; color: #fff; border-radius:2px; text-align: center; line-height: 25px; } #showOrHide{ float: right; line-height: 45px; margin-right: 5px; } @charset "utf8"; *{ margin: 0; padding: 0; box-sizing: border-box; } a{ text-decoration: none; } li{ list-style: none; } img{ border: none; } html,body{ background-color: #F4F4F4; font-family: "微软雅黑"; font-size: 14px; color: #69696d; } .clearfix { *zoom: 1; } .clearfix:before, .clearfix:after { display: table; line-height: 0; content: ""; } .clearfix:after { clear: both; } /*======= 表单 =======*/ .login-box{ position: absolute; z-index: 9; width: 435px; top: 50%; left: 50%; margin-top: -200px; margin-left: -205px; padding-top: 45px; border: 1px solid #666; background: #373737; border-radius: 2px; box-shadow: 10px 10px 5px #000; color: #fff; } .login-box form{ position: relative; } .form-inline{ position: relative; display: block; } .form-inline + .form-inline{ margin-top: 10px; } .form-inline > div{ height: 40px; line-height: 40px; } .form-inline-font{ position: absolute; left: 0; width: 110px; padding-right: 10px; font-family: "Arial"; font-size: 15px; text-align: right; } .form-inline-input input, .code-box{ padding: 0 10px; height: 40px; color: #7c7c7c; background: rgba(0, 0, 0, 0.16); border: 0; border-radius: 5px; outline: none; } .code-box{ position: relative; } .code-box p, .code-box span{ display:block; position: absolute; left: 0; height: 40px; text-align: center; line-height: 40px; border-radius: 5px; } .code-box span{ width: 40px; background-color:#fff; font-family: "宋体"; font-size: 16px; cursor: pointer; } .code-box p{ width: 100%; overflow: hidden; text-indent: -20px; transition: background 1s ease-in; } .code-box .code-input{ display: none; } .login-btn{ padding-right: 25px; padding-top: 15px; padding-bottom: 10px; text-align: right; font-size: 0; } .user-btn-link{ display: inline-block; vertical-align: sub; padding-right: 10px; } .user-btn-link a{ color: #fff; font-size: 13px; } .user-btn-link a + a{ margin-left: 5px; } .user-btn-link a:hover{ text-decoration: underline; } .login-btn button{ border: none; padding: 8px 12px; background-color:#00a1d2; border-radius: 3px; font-size: 14px; color:#fff; cursor: pointer; } .login-btn button:hover{ box-shadow: 0 0 3px #00a1d2; text-shadow: 0 0 1px #b3d6dc,0 0 2px #e6e9de; } .journalweb{ color: #fff; float: right; margin-top: 20px } .journalweb a{ color: #fff; } </style> </head> <body> <div class="main"> <div class="banner" style="height: auto;padding-bottom: 35px;"> <div class="logo" style="background: rgba(0,0,0,0.5);position: relative;z-index: 2; background: rgba(5,47,126,0.8)"> <div class="logo-div"> <img src="https://zjulxbeditor.manuscriptcloud.com:443/journalbannerImager?journalId=962225572c1443fc9327a713b6d04d8c" class="title-head_img" style="margin-top: 12px;vertical-align: top;width: 145px;"> <span class="journalweb"> <a href="https://www.zjujournals.com/sci" target="_blank"><i class="fa fa-book"></i> 返回期刊主页</a> </span> </div> </div> <div class="alert alert-warning alert-dismissible" id="jianrong" role="alert" style="z-index: 1000;position: relative;width: 950px;margin: 0 auto;display: none;margin-top: 10px;"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <p> <strong> <i aria-hidden="true" class="glyphicon glyphicon-alert"></i> 请使用推荐的浏览器!</strong> </p> <p> 系统检测到您正在使用的浏览器未经过我们严格测试,在使用过程中的个别页面有可能出现不兼容的情况。 建议您使用:Google Chrome 80.0.0.0 以上版本浏览器。 </p> <p> 该浏览器可在 <a href="https://www.google.cn/chrome/" target="_blank" class="alert-link" style="color: #0083bf;">https://www.google.cn/chrome/</a>下载。 </p> </div> <div class="banner-conte" style="padding-top: 0px;height: auto;"> <div class="denglu-left" style="margin-top: 35px; background: rgba(19,76,148,1)"> <div class="denglu-top"> <div class="bao"> <img src="journalCover?journalId=962225572c1443fc9327a713b6d04d8c&type=0" class="frengmig" alt="" /> </div> <div class="bao1"> <p class="kanming" style="margin-top: 0px;">浙江大学学报(理学版)</p> <p class="kanming en">Journal of ZheJiang University(Science Edition)</p> <p class="zhengc">ISSN: 1008-9497</p> </div> </div> <div> <p class="lianxixinxi" style="height: auto;"> </p> </div> <div class="denglu-xia" style="margin-top: 20px;"> <p class="xianmia"> <span class="buyiya" style="background-position: -199px -25px;"></span> <span>电话: 0571-88272803</span> </p> <p class="xianmia"> <span class="buyiya" style="background-position: -177px -25px;"></span> <span>邮箱: zdxb_l@zju.edu.cn</span> </p> </div> </div> <form class="bs-example bs-example-form" role="form" id="form" action="https://zjulxbeditor.manuscriptcloud.com:443/sso" method="post" > <div style="width:0px;height:0px;overflow:hidden;float:left;"> <input type="text" id="1" style="width:0px;height:0px;overflow:hidden;float:left;" /> <input type="password" name="quede" style="width:0px;height:0px;overflow:hidden;float:left;" id="2" /> </div> <div class="denglu-right logindiv" style="margin-top: 35px;"> <p class="denglu-lo" style="text-align: left;margin-top: 0px;">编辑/编委/主编登录</p> <div class="denglutab"> <div style="border-bottom: 1px solid #0564b4;color: #0564b4;" onclick="denglutab(this,'.zhanghaomima','.shoujiduanxin',0)"> 邮箱/账号登录 </div> <p style="float: left;color: #eee;">|</p> </div> <div class="zhanghaomima"> <div class="" style="font-size: 16px;margin-top: 10px;margin-left: 40px;background-color: #e441415c;margin-right: 40px;"> </div> <div class="biaoti_liginsjsdj" style="margin-top: 20px;">邮箱/账号</div> <div class="inpu" style="margin-top: 0px;"> <input type="text" id="displayusername" name="username" autocomplete="off" class="login logInput" value=""/> </div> <div class="biaoti_liginsjsdj" style="margin-top: 20px;">密码</div> <div class="inpu" style="margin-top: 0px;"> <input name="" type="text" value="" class="login" id="tx" /> <input type="password" id="displaypassword" name="password" autocomplete="off" style="display:none" class="login logInput" value=""/> <input type="hidden" id="sysWorkingInCn" name="sysWorkingInCn" class="logInput" value="editloginpage"> <input type="hidden" id="loginType" class="logInput" name="loginType" value="editloginpage"/> <input type="hidden" class="logInput" id="loginMethod" name="loginMethod" value="0"/> <i id="showOrHide" class="glyphicon glyphicon-eye-open"></i> </div> <div class="biaoti_liginsjsdj" style="margin-top: 20px;">验证码 <span style="color: red;font-size: 12px;padding-left: 10px;">请输入右侧算式计算结果</span></div> <div style="overflow:hidden;"> <div class="inpu" style="margin-top: 0px;width: 70%;float: left;"> <input type="text"id="captcha" name="captcha" autocomplete="off" class="login logInput" style="width:100%;height: 100%; border: none; text-indent: 1em; outline: none;"/> </div> <img src="" id="captchaPic" title="验证码" style="cursor: pointer;height: 45px; float: right;" class="yanzhengdjsdjhjsdhuyuhj" onclick="kanbuqing()"> </div> <button type="button" id="loginButton" class="denglusanniu" onclick="login()" onkeydown="login()">登录</button> </div> <p class="wangji"> <a href="javascript:;" onclick="resetPassword()" style="float: right;">重置密码</a> </p> </div> <div class="denglu-right resetdiv" style="display: none;margin-top: 35px;"> <p class="denglu-lo">重置密码</p> <div class="inpu"> <div class="ren"> <span class="renttt" style="background-position: -146px -15px;"></span> </div> <input type="text" id="email" name="email" placeholder="请输入需要重置密码的E-mail" class="reset login" /> </div> <div class="inpu"> <div class="ren" style="text-align: center;line-height: 46px;"> <i class="fa fa-key" aria-hidden="true" style="font-size: 16px;font-weight: bold;color: #97a2b7;"></i> </div> <input type="text" id="captcha_chong" placeholder="验证码" style="width: 50%;" class="user_login_deglu_div_input"> <img src="" id="yanzhengdjsdjhjsdhuyuhj_pc" class="yanzhengdjsdjhjsdhuyuhj" style="margin-top: 8px;margin-right: 10px;" onclick="kanbuqing()" alt=""> </div> <div class="inpu" style="border:none;"> <button type="button" class="sendretpasswordemailsanniu" style="width: 40%;height: 35px;border-radius: 5px;border: none;background: #4886ff;color: #fff;text-align: center;line-height: 35px;margin: 0 auto;" onclick="sendEmailToResetPassword('editloginpage')">发送重置密码E-mail</button> <button type="button" class="sendretpasswordemailsanniu" style="width: 20%;height: 35px;border-radius: 5px;border: none;background: #4886ff;color: #fff;text-align: center;line-height: 35px;margin: 0 auto;" onclick="cancelRetPassword()">取消</button> </div> </div> </form> </div> <div class="denglu_tongyi_conteng"> <div class="zidongyui"> <p>1. 编辑账号是有期刊管理员(JCP)设置。</p><p>2. 用户名和密码大小写敏感。</p> </div> </div> <div class="user_banner_frengjsdujsj" style="background: url('journalBackgroundImage?journalId=962225572c1443fc9327a713b6d04d8c&type=0');background-repeat: no-repeat;filter: blur(0px);padding-bottom: 20px;filter: blur(41.5px);background-size: 100% 100%;filter: blur(0px)"></div> </div> <div class="dobu" style="height: auto;line-height:35px;padding-top: 0px;padding: 10px 0px;color: #ffffff;background: rgba(5,47,126,0.8)"> <p style="margin-bottom: 0px;"> ©版权所有 2021-2031 北京玛格泰克科技发展有限公司 (著作权号: 2021SR0781267) </p> </div> </div> <div class="user_mp_mian" id="box" style="overflow: inherit;display: none;"> <div class="user_login"> <div class="user_login_qikanfeng"> <img src="journalBackgroundImage?journalId=962225572c1443fc9327a713b6d04d8c&type=0" style="width: 100%;" class="user_mp_top_main_top_img"> <a href="https://zjulxbeditor.manuscriptcloud.com/jcp" style="position: relative;z-index: 111;display: block;"> <img src="journalCover?journalId=962225572c1443fc9327a713b6d04d8c&type=0" alt="" style="position: relative;z-index: 111;"> </a> <div class="user_login_qikanfeng_div"> <p class="user_login_qikanfeng_div_title" style="margin-top: 10px;margin-bottom: 0px;">浙江大学学报(理学版)</p> <p class="user_login_qikanfeng_div_title" style="margin-bottom: 0px;">Journal of ZheJiang University(Science Edition)</p> <p class="user_login_qikanfeng_p" style="margin-top: 10px;margin-bottom: 0px;">ISSN: 1008-9497</p> </div> </div> <div class="user_login_deglu dengluzhengchangmp"> <p class="denglu-lo" style="margin-top: 0px;font-weight: normal;">编辑/编委/主编登录</p> <div class="denglutab"> <div style="border-bottom: 1px solid #0564b4;color: #0564b4;" onclick="denglutab1(this,'.zhanghaomimashouji','.shoujidenglushouji',0)"> 邮箱/账号登录 </div> </div> <div class="zhanghaomimashouji"> <div class="user_login_deglu_div"> <i class="fa fa-user-o user_login_deglu_div_i" aria-hidden="true"></i> <input type="text" id="username_mp" style="text-indent: 0px;" placeholder="邮箱/账号" class="user_login_deglu_div_input"> </div> <div class="user_login_deglu_div" style="margin-top: 15px;"> <i class="fa fa-lock user_login_deglu_div_i" aria-hidden="true"></i> <input type="password" id="password_mp" style="text-indent: 5px;" placeholder="密码" class="user_login_deglu_div_input"> </div> <div class="user_login_deglu_div" style="margin-top: 15px;"> <i class="fa fa-key user_login_deglu_div_i" aria-hidden="true"></i> <input type="text" id="captcha_mp" style="text-indent: 0px;width: 50%;" placeholder="验证码" style="width: 50%;" class="user_login_deglu_div_input"> <img src="" id="dengluyanzhengma" class="yanzhengdjsdjhjsdhuyuhj" onclick="kanbuqing()" alt=""> </div> <input type="button" class="user_login_mp_denglu" value="登录" onclick="login_mp();"> </div> <div class="shoujidenglushouji" style="display: none;" id="smsMobilBox"> <div class="user_login_deglu_div"> <i class="fa fa-mobile user_login_deglu_div_i" aria-hidden="true"></i> <input type="text" name="phone" id="mobilphone" autocomplete="off" value="" style="text-indent: 0px;" placeholder="手机号码" class="user_login_deglu_div_input"> </div> <div class="user_login_deglu_div" style="margin-top: 15px;"> <i class="fa fa-key user_login_deglu_div_i" aria-hidden="true"></i> <input type="text" id="mobilphonecaptcha" name="captcha" autocomplete="off" style="text-indent: 0px;width: 50%;" placeholder="验证码" style="width: 50%;" class="user_login_deglu_div_input"> <img src="" id="dengluyanzhengma1" class="yanzhengdjsdjhjsdhuyuhj" onclick="kanbuqing()" alt=""> </div> <div class="user_login_deglu_div" style="margin-top: 15px;"> <i class="fa fa-lock user_login_deglu_div_i" aria-hidden="true"></i> <input type="text" id="mobilphoneCode" style="text-indent: 0px;width: 50%;" placeholder="手机验证码" style="width: 50%;" class="user_login_deglu_div_input"> <button class="shoujidonghuoqdjfhj" id="mobilsmsSendBtn">获取手机验证码 </button> </div> <input type="button" class="user_login_mp_denglu" value="登录" onclick="login_mp();"> </div> <p style="margin-bottom: 0px;line-height: 30px;text-align: center;color: red;display: none;" id="cuowu_mp"> </p> <div class="user_login_deglu_div" style="margin-top: 15px;text-align: center;border-bottom: none;"> <input type="button" class="user_login_mp_denglu_bai" style="margin-left: 20px;" value="重置密码" onclick="zjdjuefbj();"> </div> <p class="user_mp_shuoming"> </p> <p class="user_mp_shuoming"> <span>电话: 0571-88272803</span> </p> <p class="user_mp_shuoming"> <span>邮箱: zdxb_l@zju.edu.cn</span> </p> </div> <div class="user_login_deglu yanzhedngdongtaima" style="display: none;"> <p class="user_login_deglu_p">账号安全验证</p> <p> 邮件将发送到您的 <span style="color: #438ae2;" id="youjianhaoma"></span> </p> <div class="user_login_deglu_div" style="margin-top: 15px;border-bottom: none;"> <input type="text" class="user_login_deglu_div_input" id="DynamicCode1" style="margin-left: 0px;height: 30px;border-radius: 3px;width: 50%;margin-right: 10px;border: 1px solid #b4b1b1;"> <button type="button" class="btn user_login_mp_denglu_bai" id="dongtaimad" onclick="senddynamicCode1(this)" style="margin-top: -6px;">发送动态码</button> </div> <input type="button" class="btn btn-primary user_login_mp_denglu" id="user_logindogntaima" value="验证动态码" onclick="verifyDynamicCode1()" disabled="disabled"> </div> <div class="user_login_deglu chonghzimima" style="display: none;"> <p class="user_login_deglu_p">重置密码</p> <div class="user_login_deglu_div"> <i class="fa fa-envelope-o user_login_deglu_div_i" aria-hidden="true"></i> <input type="text" id="email_mp" placeholder="请输入需要重置密码的E-mail" class="user_login_deglu_div_input"> </div> <div class="user_login_deglu_div" style="margin-top: 15px;"> <i class="fa fa-key user_login_deglu_div_i" aria-hidden="true"></i> <input type="text" id="captcha_mpchong" placeholder="验证码" style="width: 50%;" class="user_login_deglu_div_input"> <img src="" id="yanzhengdjsdjhjsdhuyuhj" class="yanzhengdjsdjhjsdhuyuhj" onclick="kanbuqing()" alt=""> </div> <div class="user_login_deglu_div" style="margin-top: 15px;text-align: center;border-bottom: none;"> <input type="button" class="user_login_mp_denglu_bai" style="margin-left: 20px;" value="发送重置密码E-mail" onclick="sendEmailToResetPassword1()"> <input type="button" class="user_login_mp_denglu_bai" style="margin-left: 20px;" value="取消" onclick="cancelRetPassword1();"> </div> <p style="margin-bottom: 0px;line-height: 30px;text-align: center;color: red;display: none;" id="cuowu_mp_chognzhimima"> </p> </div> <div class="user_mp_dibu" id="dibu" style="line-height: 35px;"> <p style="margin-bottom: 0px;"> ©版权所有 2021-2031 北京玛格泰克科技发展有限公司 (著作权号: 2021SR0781267) </p> </div> </div> </div> <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" id="dynamicCodeModel" data-keyboard="false" data-backdrop="static"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close" onclick="closedynamicCodeModel()"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="gridSystemModalLabel">账号安全验证</h4> </div> <div class="modal-body"> <div class="row"> <div class="form-group col-md-12"> <p style="color: #666;font-size: 14px;">邮件将发送到您的<span id="encryptedEmail" style="color: #146ef7;"></span></p> </div> </div><div class="row"> <div class="form-group col-md-12"> <input type="text" id="DynamicCode" class="form-control" placeholder="请输入动态码" style="float: left;width: 35%;" > <button type="button" class="btn btn-primary" id="sendDynamicCode" onclick="senddynamicCode(this)" style="margin-left: 10px;background: #fff;border: 1px solid #146ef7;color: #146ef7;" >发送动态码</button> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-primary" id="djfhji3jk" disabled="disabled" onclick="verifyDynamicCode()" >验证动态码</button> </div> </div> </div> </div> </div> <input type="hidden" id="skk" value="必填项目没有填写!"> <input type="hidden" id="skk1" value="请填写正确的邮箱!"> <input type="hidden" id="WEBPleasefillverificationcode" value="请输入验证码!"> <input type="hidden" id="useryzmcw" value="验证码错误"> <input type="hidden" id="entryType" value=""> </body> <script> function huoqu() { var yanzhengmasrc = GlobalVar.contextPath+'/common/unauth/captcha'; $('#dengluyanzhengma').attr('src',yanzhengmasrc); $('#dengluyanzhengma1').attr('src',yanzhengmasrc); $('#yanzhengdjsdjhjsdhuyuhj').attr('src',yanzhengmasrc); $('#yanzhengdjsdjhjsdhuyuhj_pc').attr('src',yanzhengmasrc) $('#captchaPic').attr('src',yanzhengmasrc) $('#captchaPic1').attr('src',yanzhengmasrc) } huoqu(); function zjdjuefbj() { kanbuqing(); $('.dengluzhengchangmp').hide(); $('.chonghzimima').show(); $('.captcha_mpchong').val(""); $('#cuowu_mp_chognzhimima').html(""); $('#cuowu_mp_chognzhimima').hide(); } function kanbuqing() { var date=new Date().getTime(); var yanzhengmasrc = GlobalVar.contextPath+'/common/unauth/captcha?'+date $('#dengluyanzhengma').attr('src',yanzhengmasrc); $('#dengluyanzhengma1').attr('src',yanzhengmasrc); $('#yanzhengdjsdjhjsdhuyuhj').attr('src',yanzhengmasrc); $('#yanzhengdjsdjhjsdhuyuhj_pc').attr('src',yanzhengmasrc) $('#captchaPic').attr('src',yanzhengmasrc) $('#captchaPic1').attr('src',yanzhengmasrc) } var isweixin =false; function isWeiXin() { var ua = window.navigator.userAgent.toLowerCase(); console.log(ua);//mozilla/5.0 (iphone; cpu iphone os 9_1 like mac os x) applewebkit/601.1.46 (khtml, like gecko)version/9.0 mobile/13b143 safari/601.1 if (ua.match(/MicroMessenger/i) == 'micromessenger') { return true; } else { return false; } } if(isWeiXin()){ isweixin = true; }else{ isweixin =false; } let entryType = $("#entryType").val(); if(entryType=='regist'){ resetPassword(); } function getExplorer() { console.log(navigator) const explorer = navigator.userAgent; var Browser; // IE 判断浏览器是否支持ActiveX控件,如果浏览器支持ActiveX控件可以利用, if (!!window.ActiveXObject || "ActiveXObject" in window) { Browser = 'ie'; $('#jianrong').show(); } //IE documentMode是一个IE的私有属性,在IE8+中被支持。 if (window.document.documentMode) { Browser = 'ie'; $('#jianrong').show(); } //firefox else if (explorer.indexOf("Firefox") >= 0) { Browser = 'Firefox'; console.log("当前浏览器为:Firefox"); } //Chrome else if (explorer.indexOf("Chrome") >= 0) { Browser = 'Chrome'; console.log("当前浏览器为:Chrome"); } //Opera else if (explorer.indexOf("Opera") >= 0) { Browser = 'Opera'; console.log("当前浏览器为:Opera"); } //Safari else if (explorer.indexOf("Safari") >= 0) { Browser = 'Safari'; console.log("当前浏览器为:Safari"); } //Netscape else if (explorer.indexOf("Netscape") >= 0) { Browser = 'Netscape'; console.log('当前浏览器为:Netscape'); } } getExplorer(); $("#DynamicCode").bind("input propertychange", function() { $('#djfhji3jk').removeAttr("disabled"); }); $("#DynamicCode1").bind("input propertychange", function() { $('#user_logindogntaima').removeAttr("disabled"); }); var countdown = 0; function SendVerificationCode(t) { if (CheckInput() == false) { return; } if (countdown != 0) { return; } senddynamicCode(t); }; function senddynamicCode(t){ var ajaxLoadin; $.ajax({ beforeSend: function(jqXHR, settings) { try{ var offset = self.top.pageYOffset+100; ajaxLoadin = layer.msg('loading....', { icon: 16 ,shade: 0.3 ,time: false ,offset: [offset] }); }catch (e) { } }, complete:function(XHR, TS){ try{ layer.close(ajaxLoadin); }catch (e) { } }, url:GlobalVar.contextPath+"/common/auth/sendDynamicCode?version="+(new Date()).valueOf(), type:"post", success:function (resp){ if(resp.status == 1){ sendSuccessToTop("发送成功"); }else{ sendWarningTOP(resp.data.message); } countdown = 60; settime(t); } }) } function senddynamicCode1(t){ var ajaxLoadin; $.ajax({ beforeSend: function(jqXHR, settings) { try{ var offset = self.top.pageYOffset+100; ajaxLoadin = layer.msg('loading....', { icon: 16 ,shade: 0.3 ,time: false ,offset: [offset] }); }catch (e) { } }, complete:function(XHR, TS){ try{ layer.close(ajaxLoadin); }catch (e) { } }, url:GlobalVar.contextPath+"/common/auth/sendDynamicCode?version="+(new Date()).valueOf(), type:"post", success:function (resp){ if(resp.status == 1){ sendSuccessToTop("发送成功"); }else{ sendWarningTOP(resp.data.message); } countdown = 60; settime(t); } }) } function CheckInput(){ return $("#sendDynamicCode","#sendDynamicCode1").prop("disabled"); } function settime(obj) { if (countdown == 0) { obj.removeAttribute("disabled"); obj.innerText = "获取动态码"; return; } else { obj.setAttribute("disabled", true); obj.innerText = "重新发送(" + countdown + ")"; countdown--; } setTimeout(function () { settime(obj); }, 1000); } function verifyDynamicCode(){ var ajaxLoadin; $.ajax({ url:GlobalVar.contextPath+"/common/auth/verificationDynamicCode", type:"post", data:{"DynamicCode": $("#DynamicCode").val()}, beforeSend: function(jqXHR, settings) { try{ var offset = self.top.pageYOffset+100; ajaxLoadin = layer.msg('loading....', { icon: 16 ,shade: 0.3 ,time: false ,offset: [offset] }); }catch (e) { } }, complete:function(XHR, TS){ try{ layer.close(ajaxLoadin); }catch (e) { } }, success:function (resp){ if(resp.status == 1){ sendSuccessToTop("验证通过"); location.href= GlobalVar.contextPath +"/main"; }else{ sendWarningTOP(resp.data.message); } } }) } function verifyDynamicCode1(){ var ajaxLoadin; $.ajax({ url:GlobalVar.contextPath+"/common/auth/verificationDynamicCode", type:"post", data:{"DynamicCode": $("#DynamicCode1").val()}, beforeSend: function(jqXHR, settings) { try{ var offset = self.top.pageYOffset+100; ajaxLoadin = layer.msg('loading....', { icon: 16 ,shade: 0.3 ,time: false ,offset: [offset] }); }catch (e) { } }, complete:function(XHR, TS){ try{ layer.close(ajaxLoadin); }catch (e) { } }, success:function (resp){ if(resp.status == 1){ sendSuccessToTop("验证通过"); location.href= GlobalVar.contextPath +"/userInfo/mp/user/user_main_mp.html"; }else{ sendWarningTOP(resp.data.message); } } }) } var num111= 0; var input = document.getElementById("captcha"); input.addEventListener("keyup", function(event) { event.preventDefault(); if (event.keyCode === 13) { login(); } }); function login(){ var captcha = ""; var loginMethod = $("#loginMethod").val(); if(loginMethod ==0){ var usn = $('#displayusername').val(); var paw = $('#displaypassword').val(); if(usn == ''){ sendWarningTOP('请输入用户名'); return false; } if(paw == ''){ sendWarningTOP('请输入密码'); return false; } captcha = document.getElementById("captcha").value; if (captcha=="" || captcha==null){ var message=document.getElementById("WEBPleasefillverificationcode").value; sendWarningTOP(message); if(num111 == 0 ){ var dengluL = $('.denglu-left').outerHeight(); $('.logindiv').innerHeight(dengluL); $('.denglu-left').innerHeight(dengluL); num111 = 1; } return false; } }else{ } var logData = {}; $("#form .logInput").each(function(){ var n, v; n = $(this).attr("name"); v = $(this).val(); if("password"== n || "username" == n){ v =SM4Encryption(v) } if( v !=""){ logData[n]=v ; } }); if(loginMethod ==0) { logData["captcha"] = captcha; } var londVar; try{ var offset = self.top.pageYOffset+100; londVar = layer.msg('loading....', { icon: 16 ,shade: 0.3 ,time: false ,offset: [offset] }); }catch (e) { } console.log(logData); $.ajax({ url:GlobalVar.contextPath+"/sso", type:"post", data:logData, success:function(resp){ if(resp.status == 2 ){ $("#encryptedEmail").html(resp.data.email); $("#dynamicCodeModel").modal("show"); }else if(resp.status ==1){ location.href = GlobalVar.contextPath+"/main"; }else{ $("#displaypassword").val(""); document.getElementById("captcha").value = ""; refreshCaptchaPic(); sendWarningTOP(resp.data.message); } try{ layer.close(londVar); }catch (e) { } }, error:function(){ try{ layer.close(londVar); }catch (e) { } } }) } function kkd(){ $('.model_beijign').show(); $('.model_tankuang').show(); } function djdjk(){ if(window.top != window.self){ if(isweixin == false){ window.top.location.reload(); } } } $(function(){ { if(isweixin == false){ var t3 = window.setTimeout("djdjk()",400); } } //var t3 = window.setTimeout("kkd()",500); calculateLoginHeight(); browserType(); }) $(window).resize(function () { var bannner_height = $('.banner').height(); var dengluL=$('.denglu-left').outerHeight(); var dengluR= $('.denglu-right').outerHeight(); if(dengluL>dengluR){ $('.denglu-right').outerHeight(dengluL); $('.resetdiv').outerHeight(dengluL); }else{ $('.denglu-left').outerHeight(dengluR); } var height = document.documentElement.clientHeight; var body_height = $('body').height(); var dibu_height = $('.dobu').height(); if(height>body_height){ $('.dobu').css({'position':'fixed','bottom':'0px'}); } if(height>bannner_height+dibu_height){ $('.banner').height(height-90); } }) function encdec(){ var offset = self.top.pageYOffset+100; var ss = layer.msg('loading....', { icon: 16 ,shade: 0.3 ,time: false ,offset: [offset] }); $('#username').val(SM4Encryption($('#displayusername').val())); $('#password').val(SM4Encryption($('#displaypassword').val())); return false; } function encdec1(){ var offset = self.top.pageYOffset+100; var ss = layer.msg('loading....', { icon: 16 ,shade: 0.3 ,time: false ,offset: [offset] }); $('#username1').val(SM4Encryption($('#displayusername1').val())); $('#password1').val(SM4Encryption($('#displaypassword1').val())); return false; } //注册 function registEdit(){ window.location.href=GlobalVar.contextPath+"/userinfo/unauth/regist/editemail"; } //忘记密码?点击之后当前页面登录框下方出现填写Email的输入框及发送按钮。 function resetPassword() { var dengluL=$('.denglu-left').innerHeight(); var dengluR= $('.resetdiv').innerHeight(); if(dengluL>dengluR){ $('.resetdiv').innerHeight(dengluL); }else{ $('.denglu-left').innerHeight(dengluR); } $(".logindiv").hide(); $(".resetdiv").show(); $("#captcha_chong").val(""); } //发送重置密码 function sendEmailToResetPassword(activePageType){ var email = document.getElementById("email").value; var captcha_chong = $('#captcha_chong').val(); var tongguo = true; if (email == null || email == ""){ tongguo = false; sendWarningTOP(document.getElementById("skk").value) document.getElementById("email").focus(); return false; } if (captcha_chong == null || captcha_chong == ""){ tongguo = false; sendWarningTOP("请填写验证码"); document.getElementById("captcha_chong").focus(); return false; } if (tongguo){ var re2=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if(!re2.test(document.getElementById("email").value)){ tongguo = false; var a =document.getElementById("skk1").value; sendWarningTOP(a); document.getElementById("email").focus(); return false; } } if (tongguo){ $.ajax({ url: "https://zjulxbeditor.manuscriptcloud.com:443/sendEmailToResetPassword", data: {"email": SM4Encryption(email),'captchaValue':captcha_chong,"activePageType":activePageType}, success: function (result){ if(result.status == 1){ sendSuccessToTop(result.data.message); }else{ sendWarningTOP(result.data.message); $('#captcha_chong').val(""); kanbuqing(); } } }); } } //发送重置密码 function sendEmailToResetPassword1(){ $("#cuowu_mp_chognzhimima").html(""); $("#cuowu_mp_chognzhimima").attr("style", "color:red;"); $("#cuowu_mp_chognzhimima").hide(); var email = document.getElementById("email_mp").value; var captcha_mpchong = $('#captcha_mpchong').val(); var tongguo = true; if (email == null || email == ""){ tongguo = false; $("#cuowu_mp_chognzhimima").html(document.getElementById("skk").value); $("#cuowu_mp_chognzhimima").show(); document.getElementById("email_mp").focus(); return false; } if (captcha_mpchong == null || captcha_mpchong == ""){ tongguo = false; $("#cuowu_mp_chognzhimima").html("请填写验证码"); $("#cuowu_mp_chognzhimima").show(); document.getElementById("captcha_mpchong").focus(); return false; } if (tongguo){ var re2=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if(!re2.test(document.getElementById("email_mp").value)){ tongguo = false; var a =document.getElementById("skk1").value; $('#cuowu_mp_chognzhimima').html(a); document.getElementById("email_mp").focus(); $("#cuowu_mp_chognzhimima").show(); return false; } } if (tongguo){ var captcha_mpchong = $('#captcha_mpchong').val(); $.ajax({ url: "https://zjulxbeditor.manuscriptcloud.com:443/sendEmailToResetPassword", data: {"email": SM4Encryption(email),"captchaValue":captcha_mpchong}, success: function (result){ if(result.status == 1){ $("#cuowu_mp_chognzhimima").attr("style", "color:green;"); $("#cuowu_mp_chognzhimima").html(result.data.message); $("#cuowu_mp_chognzhimima").show(); }else{ $("#cuowu_mp_chognzhimima").attr("style", "color:red;"); $("#cuowu_mp_chognzhimima").html(result.data.message); $("#cuowu_mp_chognzhimima").show(); $('#captcha_mpchong').val(""); kanbuqing(); } } }); } } //取消 function cancelRetPassword(){ let entryType = $("#entryType").val(); if(entryType=='regist'){ registEdit(); } else { document.getElementById("email").value = ""; $(".resetdiv").hide(); $(".logindiv").show(); } } function cancelRetPassword1(){ kanbuqing(); let entryType = $("#entryType").val(); if(entryType=='regist'){ registEdit(); } else { document.getElementById("email_mp").value = ""; $(".chonghzimima").hide(); $(".dengluzhengchangmp").show(); } } //关闭平台通知 function cancelNotice(){ $("#noticediv").hide(); } var tx = document.getElementById("tx"),pwd = document.getElementById("displaypassword"); tx.onfocus = function () { if (this.value != "") return; this.style.display = "none"; pwd.style.display = ""; pwd.value = ""; pwd.focus(); } function guanbi(){ $('#noticediv').hide(); } function calculateLoginHeight() { var dengluL = $('.denglu-left').outerHeight(); var dengluR = $('.logindiv').outerHeight(); if (dengluL >= dengluR) { $('.logindiv').innerHeight(dengluL); $('.resetdiv').innerHeight(dengluL); $('.denglu-left').innerHeight(dengluL); } else if (dengluL <= dengluR) { $('.denglu-left').innerHeight(dengluR); $('.logindiv').innerHeight(dengluR); $('.resetdiv').innerHeight(dengluR); } var height = document.documentElement.clientHeight; var body_height = document.body.scrollHeight; var bannner_height = $('.banner').height(); var dibu_height = $('.dobu').height(); if(height>body_height){ $('.dobu').css({'position':'fixed','bottom':'0px'}); } if(height>bannner_height+dibu_height){ $('.banner').height(height-90); } } function closedynamicCodeModel(){ location.reload(); } function refreshCaptchaPic(){ $('#captchaPic').attr('src','https://zjulxbeditor.manuscriptcloud.com:443/common/unauth/captcha?d='+new Date().getTime()); $('#captchaPic1').attr('src','https://zjulxbeditor.manuscriptcloud.com:443/common/unauth/captcha?d='+new Date().getTime()); } function browserType() { var userAgent = navigator.userAgent.toLowerCase(); var isEdge = userAgent.indexOf("edg") > -1; var isIE = (!!window.ActiveXObject || "ActiveXObject" in window); if(isEdge||isIE){ document.getElementById("showOrHide").style.display="none"; }else { $("#showOrHide").on("click", function () { var passwordeye = $('#showOrHide'); if(passwordeye.hasClass("glyphicon glyphicon-eye-open")){ $(this).removeClass("glyphicon glyphicon-eye-open").addClass("glyphicon glyphicon-eye-close"); $("#displaypassword").attr("type", "text"); }else { $(this).removeClass("glyphicon glyphicon-eye-close").addClass("glyphicon glyphicon-eye-open"); $("#displaypassword").attr("type", "password"); } }); } } function login_mp() { $('#cuowu_mp').hide(); $('#cuowu_mp').html(""); var username = SM4Encryption($('#username_mp').val()); var password= SM4Encryption($('#password_mp').val()); var login_mpdata = { loginType:$('#loginType').val(), sysWorkingInCn:$('#sysWorkingInCn').val(), username:username, password:password, captcha:$('#captcha_mp').val(), systemType:"mp", phoneCode: $("#mobilphoneCode").val(), phone: $("#mobilphone").val(), loginMethod: $("#loginMethod").val(), }; var loginMethod = $("#loginMethod").val(); var tongguo = true; if(loginMethod ==0){ if(tongguo){ if(login_mpdata.username == ''){ $('#cuowu_mp').show(); $('#cuowu_mp').html('请输入用户名或E-mail'); tongguo = false; return false; }else if(login_mpdata.password == ''){ $('#cuowu_mp').show(); $('#cuowu_mp').html('请输入密码'); tongguo = false; return false; }else if(login_mpdata.captcha == ''){ $('#cuowu_mp').show(); $('#cuowu_mp').html('请输入验证码!'); tongguo = false; return false; } } }else{ if(login_mpdata.phone== '') { sendWarningTOP("请输入手机号!"); tongguo = false; return false } if(login_mpdata.phoneCode== '') { sendWarningTOP("请输入手机验证码!"); tongguo = false; return false } login_mpdata["captcha"]=$('#mobilphonecaptcha').val() } if(tongguo){ $.ajax({ url:GlobalVar.contextPath+"/sso", type:"post", data:login_mpdata, success:function(resp){ if(resp.status ==1){ if(login_mpdata.loginType=='userloginpage'){ location.href = GlobalVar.contextPath+"/userInfo/mp/user/user_main_mp.html"; }else if(login_mpdata.loginType=='editloginpage'){ location.href = GlobalVar.contextPath+"/mainMp"; } }else if (resp.status ==2){ $('.dengluzhengchangmp').hide(); $('.yanzhedngdongtaima').show(); $("#youjianhaoma").html(resp.data.email); }else{ $("#username_mp").val(""); $("#password_mp").val(""); document.getElementById("captcha_mp").value = ""; kanbuqing(); $('#cuowu_mp').show(); $('#cuowu_mp').html(resp.data.message); } }, error:function(){ try{ layer.close(londVar); }catch (e) { } } }) } } function denglutab(a,b,c,loginmethod) { $(a).attr('style','border-bottom: 1px solid #0564b4;color: #0564b4;').siblings('div').attr('style',''); $(b).show(); $(c).hide(); $("#loginMethod").val(loginmethod); } function denglutab1(a,b,c,loginmethod) { $(a).attr('style','border-bottom: 1px solid #0564b4;color: #0564b4;').siblings('div').attr('style',''); $(b).show(); $(c).hide(); $("#loginMethod").val(loginmethod); } var smsSend = { timing:60,//默认等待60秒 button:'', smsApi:'/api/sms/', //改成自己的发送短信的地址 /** * 发送短信倒计时 * @ param obj object 对象容器 * @ param timing int 需要等待的时间 * @ param func function 执行后需要执行的函数 * 调用方式 smsSend($('#smsBox'<span style="font-family: Arial, Helvetica, sans-serif;">)</span><span style="font-family: Arial, Helvetica, sans-serif;">,60);</span> */ init : function(obj,timing,func){ if(typeof(obj)!=='object'){ console.log('缺少对象!'); return false; } this.button = obj.find("#smsSendBtn"); if(!this.button){ console.log('缺少按钮对象!'); return false; } if(timing){ this.timing = timing; } var $this = this; this.button.on('click',function(e){ e.preventDefault(); //判断手机号 var mobile = obj.find('#phone').val(); if(!mobile){ alert('请输入手机号!'); return false; } if (!mobile.match(/^((1[3,5,8][0-9])|(14[5,7])|(17[0,6,7,8]))\d{8}$/)) { alert('请填写正确的手机号!'); return false; } //判断验证码 var vcode = obj.find('#phonecaptcha').val(); if(!vcode){ alert('请填写图形验证码!'); return false; } //点击是判断是否已处于计时状态 if($(this).hasClass('disabled')){ return false; }else{ //执行发送短信函数! $this.sendSms(mobile,vcode,func); } }); }, countdown : function(){ var $this = this; var a = this.timing + 1; //检查是否有cookie 数据 var i = this.getCookie('countdown'); if(i>0){ a = i; } //alert(i); // 虚拟全局变量 return function(){ if( a > 0 ){ a --; } //把值写cookie 避免刷新后数据丢失 保存60秒 $this.setCookie('countdown',a,$this.timing*1000); return a; } ///解除引用来避免内存泄漏 a = null; }, setBtnTime : function(){ //执行倒计时函数 var $this = this; var $time = this.countdown(); var i = window.setInterval(function(){ var t = $time(); $this.button.addClass('disabled').attr('disabled',"true").html('重新获取验证码('+t+')');//添加disabled属性 if( t == 0 ){ $this.button.removeClass('disabled').removeAttr("disabled").html('重新获取验证码'); //移除disabled属性 //当计时为0 时 删除计时函数; window.clearInterval(i); } },1000); }, /** * 写 cookies * @ param name str cookie名称 * @ param value cookie 值 * @ param time int 保存时间(毫秒单位) */ setCookie : function(name,value,time){ var exp = new Date(); exp.setTime(exp.getTime() + time); document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString(); }, /** * 读取 cookies * param name cookie名称 */ getCookie : function(name){ var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)){ return unescape(arr[2]); }else{ return null; } }, /** * 发送短信 * @ param mobile int 手机号 * @ param func function 执行后需要执行的函数 */ sendSms : function($mobile,$vcode,func){ //测试+++++++++++++++++++++++ //开始执行计算器函数 /*this.setBtnTime(); //执行 func if(typeof(func)=='function'){ func(); }*/ //end 测试 //+++++++++++++++++++++++++++++ var $this = this; $.ajax({ url:GlobalVar.contextPath+"/sendVerifyCode", type:"post", data:{"phone":$mobile,"code":$vcode,"loginType":$("#loginType").val()}, success:function(resp){ if(resp.status ==1 || resp.code ==200 ){ var info = resp.info; //短信发送成功后开始倒计时! $this.setBtnTime(); //执行 func if(typeof(func)=='function'){ func(); } }else{ sendWarningTOP(resp.message); } } }) } } var smsSendMobil = { timing:60,//默认等待60秒 button:'', smsApi:'/api/sms/', //改成自己的发送短信的地址 /** * 发送短信倒计时 * @ param obj object 对象容器 * @ param timing int 需要等待的时间 * @ param func function 执行后需要执行的函数 * 调用方式 smsSend($('#smsBox'<span style="font-family: Arial, Helvetica, sans-serif;">)</span><span style="font-family: Arial, Helvetica, sans-serif;">,60);</span> */ init : function(obj,timing,func){ if(typeof(obj)!=='object'){ console.log('缺少对象!'); return false; } this.button = obj.find("#mobilsmsSendBtn"); if(!this.button){ console.log('缺少按钮对象!'); return false; } if(timing){ this.timing = timing; } var $this = this; this.button.on('click',function(e){ e.preventDefault(); //判断手机号 var mobile = obj.find('#mobilphone').val(); if(!mobile){ alert('请输入手机号!'); return false; } if (!mobile.match(/^((1[3,5,8][0-9])|(14[5,7])|(17[0,6,7,8]))\d{8}$/)) { alert('请填写正确的手机号!'); return false; } //判断验证码 var vcode = obj.find('#mobilphonecaptcha').val(); if(!vcode){ alert('请填写图形验证码!'); return false; } //点击是判断是否已处于计时状态 if($(this).hasClass('disabled')){ return false; }else{ //执行发送短信函数! $this.sendSms(mobile,vcode,func); } }); }, countdown : function(){ var $this = this; var a = this.timing + 1; //检查是否有cookie 数据 var i = this.getCookie('countdown'); if(i>0){ a = i; } //alert(i); // 虚拟全局变量 return function(){ if( a > 0 ){ a --; } //把值写cookie 避免刷新后数据丢失 保存60秒 $this.setCookie('countdown',a,$this.timing*1000); return a; } ///解除引用来避免内存泄漏 a = null; }, setBtnTime : function(){ //执行倒计时函数 var $this = this; var $time = this.countdown(); var i = window.setInterval(function(){ var t = $time(); $this.button.addClass('disabled').attr('disabled',"true").html('重新获取验证码('+t+')');//添加disabled属性 if( t == 0 ){ $this.button.removeClass('disabled').removeAttr("disabled").html('重新获取验证码'); //移除disabled属性 //当计时为0 时 删除计时函数; window.clearInterval(i); } },1000); }, /** * 写 cookies * @ param name str cookie名称 * @ param value cookie 值 * @ param time int 保存时间(毫秒单位) */ setCookie : function(name,value,time){ var exp = new Date(); exp.setTime(exp.getTime() + time); document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString(); }, /** * 读取 cookies * param name cookie名称 */ getCookie : function(name){ var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)){ return unescape(arr[2]); }else{ return null; } }, /** * 发送短信 * @ param mobile int 手机号 * @ param func function 执行后需要执行的函数 */ sendSms : function($mobile,$vcode,func){ //测试+++++++++++++++++++++++ //开始执行计算器函数 /*this.setBtnTime(); //执行 func if(typeof(func)=='function'){ func(); }*/ //end 测试 //+++++++++++++++++++++++++++++ var $this = this; $.ajax({ url:GlobalVar.contextPath+"/sendVerifyCode", type:"post", data:{"phone":$mobile,"code":$vcode,"loginType":$("#loginType").val()}, success:function(resp){ if(resp.status ==1 || resp.code ==200 ){ var info = resp.info; //短信发送成功后开始倒计时! $this.setBtnTime(); //执行 func if(typeof(func)=='function'){ func(); } }else{ sendWarningTOP(resp.message); } } }) } } $(function(){ smsSend.init($('#smsBox'),60,function(){/*alert('我是传过去的函数');*/}); smsSendMobil.init($('#smsMobilBox'),60,function(){/*alert('我是传过去的函数');*/}); }); </script> </html>