571e3ab45b17124b7ae2d70ba0ae4470.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?php if (!defined('THINK_PATH')) exit();?><!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><?php echo ($webname); ?></title>
  12. <style>
  13. ::-webkit-input-placeholder { /* WebKit browsers */
  14. color: #b5b5b5;
  15. font-size: 14px;
  16. }
  17. ::-moz-placeholder { /* Mozilla Firefox 19+ */
  18. color: #b5b5b5;
  19. font-size: 14px;
  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. </style>
  24. </head>
  25. <body>
  26. <div class="container-fluid ctbox">
  27. <div class="no_header">
  28. <div class="fl bhalf allhg txtl" style="line-height:50px;">
  29. <i class="bi bi-x fcc fw" onclick="goindex()" style="font-size:36px;"></i>
  30. </div>
  31. <div class="fr bhalf allhg txtr" style="line-height:50px;">
  32. <a href="<?php echo U('Login/register');?>" class="fzmmm fcy"><?php echo L('注册');?></a>
  33. </div>
  34. </div>
  35. <div class="no_content">
  36. <div class="no_title">
  37. <span class="title_txt fch"><?php echo L('登录');?></span>
  38. </div>
  39. <div class="no_inbox">
  40. <div class="inputbox">
  41. <div class="input_title txtl">
  42. <span class="fzmm fcc"><?php echo L('邮箱');?></span>
  43. </div>
  44. <div class="input_div">
  45. <input type="text" style="height:45px;" class="cinput" name="email" autocomplete="on" id="email" placeholder="<?php echo L('请输入邮箱');?>" />
  46. </div>
  47. </div>
  48. <div class="inputbox">
  49. <div class="input_title txtl">
  50. <span class="fzmm fcc"><?php echo L('密码');?></span>
  51. </div>
  52. <div class="input_div">
  53. <input type="password" style="height:45px;" class="cinput" name="lpwd" autocomplete="on" id="lpwd" placeholder="<?php echo L('请输入密码');?>" />
  54. </div>
  55. </div>
  56. <div class="inputbox">
  57. <div class="input_title txtl">
  58. <span class="fzmm fcc"><?php echo L('验证码');?></span>
  59. </div>
  60. <div class="input_div" style="width:60%;float:left;" >
  61. <input type="text" style="height:45px;" class="cinput" name="vcode" id="vcode" placeholder="<?php echo L('请输入验证码');?>" />
  62. </div>
  63. <div style="width:35%;float:right;padding:0px;" >
  64. <img style="width:100%;height:50px;border-radius:5px;" src="<?php echo U('Verify/code');?>" onclick="this.src=this.src+'?t='+Math.random()" title="<?php echo L('换一张');?>" id="verifycode">
  65. </div>
  66. </div>
  67. <div class="input_title txtl">
  68. <a href="<?php echo U('Login/findpwd');?>" class="fzmm fcy"><?php echo L('忘记密码');?>?</a>
  69. <div class="small_hs_btn" style="width:30%;margin-right:33#aadbaa%;margin-top:20px;" onclick="uplogin();">
  70. 登录
  71. <!--<i class="bi bi-arrow-right bi_right"></i>-->
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </body>
  78. <body>
  79. <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
  80. <script type="text/javascript" src="/Public/Static/js/layer/layer.js" ></script>
  81. <script type="text/javascript">
  82. function uplogin(){
  83. var email = $("#email").val();
  84. //var reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
  85. if(email == null){
  86. layer.msg("<?php echo L('请输入邮箱');?>");return false;
  87. }
  88. /*if(!reg.test(email)){
  89. layer.msg("<?php echo L('邮箱格式不正确');?>");return false;
  90. }*/
  91. var vcode = $("#vcode").val();
  92. if(vcode == ''){
  93. layer.msg("<?php echo L('请输入图形验证码');?>");return false;
  94. }
  95. var lpwd = $("#lpwd").val();
  96. if(lpwd == ''){
  97. layer.msg("<?php echo L('请输入密码');?>");return false;
  98. }
  99. $.post("<?php echo U('Login/loginsubmit');?>",
  100. {'email' : email, 'vcode' : vcode, 'lpwd' : lpwd},
  101. function(data){
  102. if(data.code){
  103. layer.msg(data.info);
  104. setTimeout(function(){
  105. window.location.href="<?php echo U('Index/index');?>";
  106. },2000);
  107. }else{
  108. layer.msg(data.info);return false;
  109. }
  110. });
  111. }
  112. </script>
  113. <script type="text/javascript">
  114. function goindex(){
  115. window.location.href="<?php echo U('Index/index');?>";
  116. }
  117. </script>
  118. </html>