mepeo_info2.jsp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  4. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
  5. <%
  6. String path = request.getContextPath();
  7. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort() + path+"/";
  8. request.setAttribute("contextPath", basePath);
  9. String redirectUrl= request.getParameter("redirectUrl");
  10. request.setAttribute("redirectUrl", redirectUrl);
  11. %>
  12. <!DOCTYPE html>
  13. <html lang="en">
  14. <head>
  15. <meta charset="UTF-8">
  16. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  17. <meta name="apple-mobile-web-app-capable" content="yes">
  18. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  19. <meta name="format-detection" content="telephone=no">
  20. <title>认证信息</title>
  21. <script src="${contextPath }res/js/jquery.min.js" type="text/javascript"></script>
  22. <script type="text/javascript" src="${contextPath }res/js/layer/layer.min.js"></script>
  23. <script src="${contextPath }app/lib/flexible.js"></script>
  24. <link rel="stylesheet" href="${contextPath }app/lib/flexible.css">
  25. <link rel="stylesheet" href="${contextPath }app/css/basem.css">
  26. <link rel="stylesheet" href="${contextPath }app/css/logome.css">
  27. <script type="text/javascript">
  28. $(function(){
  29. var idnumber="${USER.idnumber}";
  30. if(idnumber==null || idnumber==""){
  31. $("input[name='name']").removeAttr("disabled");
  32. $("input[name='idnumber']").removeAttr("disabled");
  33. $("#button").css("background", "#ed453c");
  34. $('#button').click(function(){
  35. var userId="${USER.id}";
  36. var name=$("input[name='name']").val();
  37. var idnumber=$("input[name='idnumber']").val();
  38. if(name== '' || idnumber==''){
  39. layer.alert("请输入姓名身份证!");
  40. return false;
  41. }
  42. $.post('${contextPath}web/mgmUserCtl/idnumberAuthentication.cs', {
  43. "userId" : userId,
  44. "name" : name,
  45. "idnumber":idnumber
  46. }, function(data) {
  47. var datas=eval(data.data);
  48. if (data.ret == 1) {
  49. layer.msg('认证成功!', {
  50. time: 1000
  51. }, function(){
  52. window.location.href = '${contextPath }web/meWebCtl/me.cs';
  53. });
  54. }else{
  55. layer.msg(data.msg);
  56. }
  57. }, "json");
  58. });
  59. }else{
  60. $("input[name='name']").attr("disabled","true");
  61. $("input[name='idnumber']").attr("disabled","true");
  62. }
  63. });
  64. </script>
  65. </head>
  66. <body>
  67. <div class="titbox">
  68. <a class="titreturn left" href="${contextPath }web/meWebCtl/me.cs"><img src="${contextPath }app/img/return1@2x.png" alt=""></a>
  69. <ul class="logtitul">
  70. <li><a class="left" href="${contextPath }web/meWebCtl/mepeo_info.cs?userId=${USER.id}">
  71. <h1>个人信息</h1>
  72. <div></div>
  73. </a></li>
  74. <li><a class="left" href="${contextPath }web/meWebCtl/mepeo_info2.cs?userId=${USER.id}">
  75. <h1>认证信息</h1>
  76. <div class="logtitsel"></div>
  77. </a></li>
  78. </ul>
  79. </div>
  80. <div class="forgetbox top50">
  81. <div class="safe">
  82. <ul class="logul">
  83. <li>
  84. <div><img class="logicon" src="${contextPath }app/img/iphone@2x.png" alt=""><span>手机</span></div>
  85. <input type="text" disabled="ture" name="phone" placeholder="请输入您的手机号" value="${USER.phone}">
  86. </li>
  87. <li>
  88. <div><img class="logicon" src="${contextPath }app/img/my@2x.png" alt=""><span>姓名</span></div>
  89. <input type="text" name="name" placeholder="请输入您的姓名" value="${USER.name}">
  90. </li>
  91. <li>
  92. <div><img class="logicon" src="${contextPath }app/img/id@2x.png" alt=""><span>身份证</span></div>
  93. <input type="text" name="idnumber" placeholder="请输入您的身份证号码" value="${USER.idnumber}">
  94. </li>
  95. </ul>
  96. <a class="graybtn" href="javascript:void(0);" id="button">完成</a>
  97. <div class="lonoticebox">
  98. <div class="lonotice">
  99. <img class="logicon" src="${contextPath }app/img/notice@2x.png" alt="">
  100. <span>温馨提示</span>
  101. <div class="lonoline"></div>
  102. </div>
  103. <ol class="lonoticeul">
  104. <li>1.身份证绑仅限填写一次</li>
  105. <li>2.请保证以上信息均为本人,而且正确。如果因为
  106. 个人信息问题造成的佣金发放不到位,概不负责。</li>
  107. </ol>
  108. </div>
  109. </div>
  110. </div>
  111. </body>
  112. </html>