d47c0ce2cb7" alt=""/>  jack b099014045 企业工作台 7 years ago ekexiu.app - Gogs: Go Git Service

暫無描述

changepass.js 1.9KB

    //注册信息 mui.ready(function() { /*定义全局变量*/ var restPassword = document.getElementById("restPassword"); var oldPassword = document.getElementById("oldPassword"); var newPassword = document.getElementById("newPassword"); var newPassword2 = document.getElementById("newPassword2"); /*校验修改密码按钮显示状态*/ mui('.maincon').on('keyup', "#oldPassword,#newPassword,#newPassword2", function() { hideButtn2(oldPassword,newPassword,restPassword,"frmactiveok",newPassword2); }); /*修改密码按钮*/ restPassword.addEventListener('tap', function() { valOld(); }) function valOld(){ if(oldPassword.value.length < 6 || newPassword.value.length < 6 || newPassword2.value.length < 6){ plus.nativeUI.toast("密码不少于6位,请输入正确的密码", toastStyle); return; }else if(oldPassword.value == newPassword.value){ plus.nativeUI.toast("新旧密码不能一致", toastStyle); return; }else if(newPassword2.value != newPassword.value){ plus.nativeUI.toast("两次输入密码不一致", toastStyle); return; }else{ modifySuccess(); } } /*修改密码*/ function modifySuccess() { var userId = plus.storage.getItem('userid'); console.log(userId) mui.ajax(baseUrl + '/ajax/cp', { data:{ "id":userId, "npw":newPassword2.value, "onw":oldPassword.value }, dataType: 'json', //数据格式类型 type: 'post', //http请求类型 timeout: 10000, //超时设置 success: function(data) { console.log(data.success) if(data.data){ plus.nativeUI.toast("密码修改成功",toastStyle); mui.currentWebview.close(); goLoginFun(); return; }else{ plus.nativeUI.toast("原密码填写错误",toastStyle); return; } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); return; } }); } })
console-front - Gogs: Go Git Service

Nenhuma Descrição

XMTT ba43c6a729 文章编辑 7 anos atrás
..
webapp.html ba43c6a729 文章编辑 7 anos atrás
portal-front - Gogs: Go Git Service

portal html css js resource

bind-mail.html 3.1KB

    <!DOCTYPE html> <html> <head> <!--<meta name="viewport" content="width=device-width, initial-scale=1.0"> --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>邮箱验证-科袖网</title> <link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" /> <link href="css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="css/reset.css" /> <link type="text/css" href="css/login.css" rel="stylesheet"> <link type="text/css" href="css/common.css" rel="stylesheet"> <script type="text/javascript" src="js/jquery-1.11.1.js"></script> <style type="text/css"> #header.Nosear { position: static; } #header { width: 100%; min-width: 1100px; height: 60px; background: #FFFFFF; position: fixed; top: 0; z-index: 999; } </style> </head> <body> <div class="completedcover" id="completedcover"> <!--/*是否完善信息提示*/--> <div class="vercompleted"> <h3>已经完成注册,是否现在去完善个人信息?</h3> <div class="verbtnbox"> <a href="javascript:void(0)" class="verbtn" onClick="goPersonal()" >现在完善</a> </div> </div> </div> <header id="header" class="Nosear"> <div class="containerCon"> <div class="headlogo"> <a href="index.html"><h1></h1></a> </div> </div> </header> <div class="containerFrm" id="container"> <div class="contentmid"> <!--/*邮箱验证提示*/--> <dl class="mailsection"> <dt class="statelable"> <h2>注册邮箱验证</h2> </dt> <dd class="msgnotice"> <h4 class="noticecon">验证邮箱,完成注册</h4> <div class="emailus"> 我们已将验证邮件发送至邮箱:<a id='receiveMail'></a> <br> 点击邮件内的链接即可完成注册,完善信息即可使用科袖网所有功能。 </div> <a href="https://mail.qq.com/" class="maillink" target="_blank">登录邮箱验证</a> </dd> <dd class="msgnotice"> <h5>没有收到验证邮件,怎么办?</h5> <div class="contacttip"> 邮箱填写错误? <a href="register.html">换个邮箱</a> <br> 看看是否在邮箱的垃圾邮件、广告邮件目录里 <!--<br> 稍等几分钟,若还未收到验证邮件, <a href="javascript:void(0)" id="resend_main">重新发送验证邮件</a>--> </div> </dd> </dl> </div> </div> <footer> <script type="text/javascript" src="js/footer.js"></script> </footer> <script type="text/javascript" src="js/jquery.similar.msgbox.js"></script> <script type="text/javascript" src="/js/jquery.cookie.js"></script> <script type="text/javascript" src="js/common.js"></script> <script type="text/javascript" src="js/bind-mail.js"></script> </body> </html>