| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <html>
- <head>
- <skin.ss file='/ss/main'/>
- <js.ss file="/ss/jquery/jquery.js"/>
- <js.ss file="/ss/base.js"/>
- <js.ss file="/ss/masklayer.js"/>
- <js.ss file="/ss/wdDialogInit.js"/>
- <js.ss file="/ss/common.js"/>
- <js.ss file="/ss/display.js"/>
- <style>
- #checkMsg{text-align: center;}
- </style>
- <script type="text/javascript">
- onload = function(){
- var f = document.getElementById('myForm');
- f.onsubmit=function(){
- var p1 = document.getElementById('newPassword').value;
- var p2 = document.getElementById('againNewPassword').value;
- var yhm = '${yhm}';
- try{
- if(p1!=p2){
- $("#checkMsg").html('新密码与密码确认不一致!');
- return false;
- }else if(false&&p1.length<6){
- //alert('密码长度必需大于等于6位!');
- $("#checkMsg").html('密码长度必需大于等于6位!');
- return false;
- }else if(false&&!(p1.match(/[a-zA-Z]+/)&&p1.match(/\d+/))){
- //alert('密码必需包含数字和字母!');
- $("#checkMsg").html('密码必需包含数字和字母!');
- return false;
- }else if(false&&p1.match('${yhm}')){
- //alert('密码不能包含账号!');
- $("#checkMsg").html('密码不能包含账号!');
- return false;
- }
- var res;
- $.ajax({
- url:"/service?ssServ=chkPwd", // =checkPasswordStrengthAjax。Lin
- data:{"mm":p1,'yhid':'${yhid}'},
- async:false,
- type:"POST",
- dataType:"json",
- success:function(result){
- res=result
- }
- })
- if("1"!=res.result){
- $("#checkMsg").html(res.msg);
- return false;
- }
- }catch(e){
- //alert(e.message);
- $("#checkMsg").html(e.message);
- return false;
- }
- }
- }
- </script>
- </head>
- <body class="dialogBody" style="width:100%;height:100%;">
- <div class='mobileContent-div' ssFith="true">
- <%-- 改,.do 改为服务。Lin
- <form action="/updatePwd.do" method="post" id="myForm"> --%>
- <form action="<serv.ss name='updPwd' dest='info'/>" method="post" id="myForm">
- <input type="hidden" name="yhid" value="${yhid}">
- <div style="width:100%;display: flex;justify-content: center;margin: 4.45rem 0 1.45rem 0;">
- <%-- 去掉 /$@{sessionScope['XMMC']},不支持多个应用了。Lin
- <img src="/$@{sessionScope['XMMC']}/image/logo/largeLogo.png" style="width: 7.325rem;height:7.325rem;"> --%>
- <img src="/image/logo/largeLogo.png" style="width: 7.325rem;height:7.325rem;">
- </div>
- <div class="div" id="mmeditpanel" style="width:23rem;position: relative;margin:0rem auto;height:6rem;">
- <div style="display: flex;justify-content: center;position: relative">
- <p style="color:#ff0000; font-size:16px; text-align:center;padding:0px;">请修改密码</p>
- </div>
- <div style="display: flex;justify-content: center;position: relative;margin-top: 1rem">
- <p style="color:#6d7a87; font-size:14px; text-align:center;padding:0px;margin:5px;width:74%;">${pwdStrengthMsg}</p>
- </div>
- </div>
- <div class="div" id="mmeditpanel" style="width:23rem;position: relative;margin:0rem auto;height: 15.5rem;">
- <div style="display: flex;justify-content: center;position: relative">
- <input placeholder="新密码" type="password" name="newPassword" id="newPassword" class="mobileBox-dim" style="padding-left:0px;width: 16.65rem;height:2.9rem;text-indent:2.3rem;font-size: 0.85rem;">
- </div>
- <div style="display: flex;justify-content: center;position: relative;margin-top: 1rem">
- <input placeholder="新密码确认" type="password" name="againNewPassword" id="againNewPassword" class="mobileBox-dim" style="padding-left:0px;width: 16.65rem;height:2.9rem;text-indent:2.3rem;font-size: 0.85rem;"/>
- </div>
- <div style="display: flex;justify-content: center;position: relative;margin-top: 1rem">
- <p class="content-warning" id="checkMsg" style="text-align: center;"></p>
- </div>
- <div style="width: 100%;margin-top: 1rem;display: flex;justify-content:center;">
- <button class="mobileLogin-button" style="width:8rem;height:3rem;" id="button" type="submit">保存</button>
- <button class="mobileLogin-button" style="width:8rem;height:3rem;" type="button" onClick="fh()" >返回</button>
- </div>
- </div> <%-- 增加,少了。Lin --%>
- </form>
- </div>
- </body>
- <script type="text/javascript">
- window.onload = function () {
- var htmlFontSize = (parseInt(window.screen.width) / 375) * 20;
- document.getElementById('html').style.fontSize = htmlFontSize + "px";
- }
- function updateAppInfo(value) {
- document.getElementById('AppInfo').innerHTML = value;
- }
- function updateAppVersion(value) {
- document.getElementById('AppVersion').innerHTML = value;
- }
- function fh(){
- window.history.back(-1);
- }
- </script>
- </html>
|