respwd.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  7. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.0/dist/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
  8. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
  9. <link rel="stylesheet" type="text/css" href="/Public/Static/css/base.css" />
  10. <link rel="stylesheet" type="text/css" href="/Public/Static/css/nologed.css" />
  11. <title>{$webname}</title>
  12. <style>
  13. ::-webkit-input-placeholder { /* WebKit browsers */
  14. color: #b5b5b5;
  15. font-size: 18px;
  16. }
  17. ::-moz-placeholder { /* Mozilla Firefox 19+ */
  18. color: #b5b5b5;
  19. font-size: 18px;
  20. }
  21. input:focus{background:#F5F5F5;outline: 1px solid #F5F5F5;}
  22. a:hover,a:link,a:visited,a:active{color:#FCD535;text-decoration:none;}
  23. .bmbtn{width:100%;position:fixed;bottom:0px;padding:10px;}
  24. .bmbtn_l{width:45%;height:40px;float:left;background:#ebecf0;border-radius:5px;line-height:40px;text-align:center;}
  25. .bmbtn_r{width:45%;height:40px;float:right;background: linear-gradient(to left,#eeb80d,#ffe35b);border-radius:5px;line-height:40px;text-align:center;}
  26. .badge-light {
  27. background-color: #FCD535;
  28. position: relative;
  29. left: 15px;
  30. top: -35px;
  31. }
  32. .badge{
  33. line-height: 0.4;
  34. border-radius: .5rem;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <div class="container-fluid" style="padding:0px;width:100vw;">
  40. <div class="no_header" style="position: fixed;z-index: 9999;background: #fff;padding:0px 10px;top:0px;">
  41. <div class="fl allhg txtl" style="line-height:50px;width:10%;">
  42. <i class="bi bi-arrow-left fcc fw" onclick="goback()" style="font-size: 24px;"></i>
  43. </div>
  44. <div class="fl allhg" id="centerbox" style="width:80%;text-align:center;line-height:50px;">
  45. <span class="fcc fzmmm">{:L('密码')}</span>
  46. </div>
  47. <div class="fr allhg txtr" style="line-height:50px;width:10%;">
  48. </div>
  49. </div>
  50. <div class="no_content" style="width:90%;margin:60px auto;">
  51. <div class="no_title" id="h1title" style="line-height: 24px;margin-bottom:20px;">
  52. <span style="color:red;">*{:L('为了您的资金安全,登陆密码修改后24小时以内不允许提现')}。</span>
  53. </div>
  54. <div class="no_inbox">
  55. <div class="inputbox boxh">
  56. <div class="input_title txtl">
  57. <span class="fzmm fcc">{:L('旧密码')}</span>
  58. </div>
  59. <div class="input_div">
  60. <input type="password" class="cinput" name="oldpwd" id="oldpwd" placeholder="{:L('请输入旧密码')}" />
  61. </div>
  62. </div>
  63. <div class="inputbox boxh">
  64. <div class="input_title txtl">
  65. <span class="fzmm fcc">{:L('新密码')}</span>
  66. </div>
  67. <div class="input_div">
  68. <input type="password" class="cinput" name="newpwd" id="newpwd" placeholder="{:L('请输入新密码')}" />
  69. </div>
  70. </div>
  71. <div class="inputbox boxh">
  72. <div class="input_title txtl">
  73. <span class="fzmm fcc">{:L('确认密码')}</span>
  74. </div>
  75. <div class="input_div">
  76. <input type="password" class="cinput" name="renewpwd" id="renewpwd" placeholder="{:L('请输入确认密码')}" />
  77. </div>
  78. </div>
  79. <div class="inputbox boxh">
  80. <div class="allbtn" id="mo_submit">
  81. <span class="fzmm fch">{:L('提交')}</span>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </body>
  88. <body>
  89. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  90. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  91. <script type="text/javascript">
  92. $("#mo_submit").click(function(){
  93. var oldpwd = $("#oldpwd").val();
  94. var newpwd = $("#newpwd").val();
  95. var renewpwd = $("#renewpwd").val();
  96. if(oldpwd == ''){
  97. layer.msg("{:L('请输入旧密码')}");return false;
  98. }
  99. if(newpwd == ''){
  100. layer.msg("{:L('请输入新密码')}");return false;
  101. }
  102. if(renewpwd == ''){
  103. layer.msg("{:L('请输入确认密码')}");return false;
  104. }
  105. if(newpwd != renewpwd){
  106. layer.msg("{:L('两次输入的密码不一致')}");return false;
  107. }
  108. $.post("{:U('Index/sub_respwd')}",
  109. {'oldpwd' : oldpwd, 'newpwd' : newpwd},
  110. function(data){
  111. if(data.code == 1){
  112. layer.msg(data.info);
  113. setTimeout(function(){
  114. window.location.href = "{:U('Index/uoption')}";
  115. },2000);
  116. }else{
  117. layer.msg(data.info); return false;
  118. }
  119. });
  120. });
  121. </script>
  122. <script type="text/javascript">
  123. $("#showid").click(function(){
  124. $("#centerbox").show();
  125. $("#h1title").hide();
  126. $("#bmbtn").show();
  127. $("#hideid").show();
  128. $("#showid").hide();
  129. });
  130. $("#hideid").click(function(){
  131. $("#centerbox").hide();
  132. $("#h1title").show();
  133. $("#bmbtn").hide();
  134. $("#hideid").hide();
  135. $("#showid").show();
  136. });
  137. </script>
  138. <script type="text/javascript">
  139. function goback(){
  140. window.history.go(-1);
  141. }
  142. </script>
  143. </html>