grxgmm.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>${siteTitle!}</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
  7. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc-mobile/css/ly_html.css">
  8. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc-mobile/css/bcrc-phone-body.css">
  9. <link rel="stylesheet" type="text/css" href="${resPath}/bcrc-mobile/css/bcrc-phone-page.css">
  10. <script type="text/javascript" language="javascript" src="${resPath}/bcrc-mobile/js/jquery-1.7.2.min.js"></script>
  11. <script type="text/javascript" language="javascript" src="${resPath}/bcrc-mobile/js/TL_PC_Slider.js"></script>
  12. <script type="text/javascript" language="javascript" src="${resPath}/bcrc-mobile/js/TL_Tab.js"></script>
  13. </head>
  14. <body >
  15. @includeFileTemplate("/www/syrc-mobile/include/qyzx-header.html",{"current":"index"}){}
  16. <!--内容开始-->
  17. <div class="wz_cont grzx_in">
  18. <div class="wz_cont_in">
  19. <div class="touxiangbox">
  20. <div class="touxiang ckjj">
  21. <a class="fl">
  22. @if(jlinfo.jianliXb==0){
  23. @if(isEmpty(jlinfo.jianliTx) || jlinfo.jianliTx=="null"){
  24. <img src="${resPath}/bcrc/images/man.png" width="68" height="83" alt="头像">
  25. @}else{
  26. <img src="${jlinfo.jianliTx!}" width="68" height="83" alt="头像">
  27. @ }
  28. @}else if(jlinfo.jianliXb==1){
  29. @if(isEmpty(jlinfo.jianliTx) || jlinfo.jianliTx=="null"){
  30. <img src="${resPath}/bcrc/images/woman.png" width="68" height="83" alt="头像">
  31. @}else{
  32. <img src="${jlinfo.jianliTx!}" width="68" height="83" alt="头像">
  33. @ }
  34. @}else{
  35. @if(isEmpty(jlinfo.jianliTx) || jlinfo.jianliTx=="null"){
  36. <img src="${resPath}/bcrc/images/woman.png" width="68" height="83" alt="头像">
  37. @}else{
  38. <img src="${jlinfo.jianliTx!}" width="68" height="83" alt="头像">
  39. @ }
  40. @}
  41. <div class="fl">
  42. <span>${jlinfo.jianliXm}</span>
  43. <p><span>${jlinfo.jianliJzd}</span>&nbsp;|&nbsp;<span>${jlinfo.jianliCsrq}</span>&nbsp;|&nbsp;<span>${jlinfo.jianliKsgz}</span></p>
  44. </div>
  45. </div>
  46. <div class="clear"></div>
  47. <div class="con_left">
  48. <!--简历中心 开始-->
  49. <div class="all_title"><a><span>修改密码</span></a></div>
  50. <table class="jbxx_table">
  51. <tr>
  52. <td class="td_tit">
  53. <i class="red">*</i>当前密码:
  54. </td>
  55. <td>
  56. <input type="password" id="jmm" name="jmm" onchange="dqmm()" maxlength="20" value="" placeholder="请输入当前密码,6-16位字母/数字/符号组合" />
  57. <p class="error" style="display:none;" id="err_jmm"><span></span></p>
  58. </td>
  59. </tr>
  60. <tr>
  61. <td class="td_tit">
  62. <i class="red">*</i>新密码:
  63. </td>
  64. <td>
  65. <input type="password" class="txt inputblur"id="zh_pwd" name="zh_pwd" maxlength="20" value="" placeholder="请输入密码,6-16位字母/数字/符号组合" />
  66. <p class="error" style="display:none;" id="err_zh_pwd"><span></span></p>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td class="td_tit">
  71. <i class="red">*</i>重复新密码:
  72. </td>
  73. <td>
  74. <input type="password" class="txt inputblur" id="zh_pwds" name="zh_pwds" maxlength="20" value="" placeholder="请输入和上面相同的密码" />
  75. <p class="error" style="display:none;" id="err_zh_pwds"><span></span></p>
  76. </td>
  77. </tr>
  78. </table>
  79. <a class="qr_btn" onclick="save()">保存修改</a>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <!--内容结束-->
  85. @includeFileTemplate("/www/syrc-mobile/include/footer.html",{"current":"index"}){}
  86. </body>
  87. <script>
  88. function save(){
  89. var jmm = $('#jmm').val();
  90. var zh_pwd=$('#zh_pwd').val();
  91. var zh_pwds=$('#zh_pwds').val();
  92. var num= /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
  93. if (jmm == "") {
  94. alert('还没有填写当前密码');
  95. return;
  96. } else if (!num.test(jmm)) {
  97. alert("密码格式不正确 请填写正确的密码格式 :数字+字母 (不小于六位)");
  98. return;
  99. }
  100. if(zh_pwd==""){
  101. alert('还没有填写密码');
  102. $('#zh_pwd').val("");
  103. return;
  104. } else if(!num.test(zh_pwd)){
  105. alert("密码格式不正确 请填写正确的密码格式 :数字+字母 (不小于六位)");
  106. $('#zh_pwd').val("");
  107. return;
  108. }
  109. if (zh_pwds == "") {
  110. alert('还没有填写确认密码');
  111. $('#zh_pwds').val("");
  112. return;
  113. }else if (zh_pwd != zh_pwds) {
  114. alert('请保持两次填写的密码一致');
  115. $('#zh_pwds').val("");
  116. return;
  117. }
  118. var formData = new FormData();
  119. formData.append('jmm',jmm);
  120. formData.append('zh_pwd',zh_pwd);
  121. $.ajax({
  122. url:"${ctxPath}/system/reception/selectPassword", //请求的url地址
  123. dataType:"json", //返回格式为json
  124. data:formData, //参数值
  125. type:"post", //请求方式
  126. crossDomain: true,
  127. cache: false,
  128. processData: false,
  129. contentType: false,
  130. success : function(data) {
  131. if(data.msg=='error'){
  132. alert("当前密码错误,请重新输入");
  133. $('#jmm').val("");
  134. }else{
  135. $.ajax({
  136. url:"${ctxPath}/system/reception/updatePassword", //请求的url地址
  137. dataType:"json", //返回格式为json
  138. data:formData, //参数值
  139. type:"post", //请求方式
  140. crossDomain: true,
  141. cache: false,
  142. processData: false,
  143. contentType: false,
  144. success : function(responseStr) {
  145. alert("修改成功,请重新登录");
  146. window.location.href="${ctxPath}/system/reception/logOut";
  147. },
  148. });
  149. }
  150. },
  151. });
  152. }
  153. </script>
  154. </html>