choose_enterprise.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  6. <title>登录页面 - IMCS管控系统</title>
  7. <link rel="icon" href="favicon.ico" type="image/ico">
  8. <meta name="keywords" content="IMCS管控系统">
  9. <meta name="description" content="IMCS管控系统。">
  10. <meta name="author" content="yinqi">
  11. <link href="css/bootstrap.min.css" rel="stylesheet">
  12. <link href="css/materialdesignicons.min.css" rel="stylesheet">
  13. <link href="css/style.min.css" rel="stylesheet">
  14. <style>
  15. .lyear-wrapper {
  16. position: relative;
  17. }
  18. .lyear-login {
  19. display: flex !important;
  20. min-height: 100vh;
  21. align-items: center !important;
  22. justify-content: center !important;
  23. }
  24. .lyear-login:after{
  25. content: '';
  26. min-height: inherit;
  27. font-size: 0;
  28. }
  29. .login-center {
  30. background: #fff;
  31. min-width: 29.25rem;
  32. padding: 2.14286em 3.57143em;
  33. border-radius: 3px;
  34. margin: 2.85714em;
  35. }
  36. .login-header {
  37. margin-bottom: 1.5rem !important;
  38. }
  39. .login-center .has-feedback.feedback-left .form-control {
  40. padding-left: 38px;
  41. padding-right: 12px;
  42. }
  43. .login-center .has-feedback.feedback-left .form-control-feedback {
  44. left: 0;
  45. right: auto;
  46. width: 38px;
  47. height: 38px;
  48. line-height: 38px;
  49. z-index: 4;
  50. color: #dcdcdc;
  51. }
  52. .login-center .has-feedback.feedback-left.row .form-control-feedback {
  53. left: 15px;
  54. }
  55. .choose-enterprise{
  56. border:1px solid #ddd;
  57. text-align: center;
  58. font-size:20px;
  59. padding:20px;
  60. margin-bottom:10px;
  61. }
  62. .choose-enterprise:hover{
  63. border:1px solid #abcdef;
  64. cursor:pointer;
  65. }
  66. </style>
  67. </head>
  68. <body>
  69. <div class="row lyear-wrapper" style="background-image: url(images/login-bg-2.jpg); background-size: cover;">
  70. <div class="lyear-login">
  71. <div class="login-center" style="padding:15px;">
  72. <div class="login-header text-center">
  73. <img src="" style="height:40px;line-height:40px;" /><span style="font-size:1.2em;line-height:40px;">WMS智能仓储系统</span>
  74. </div>
  75. <form action="#!" method="post" id="form">
  76. <div class="choose-enterprise">选择企业</div>
  77. <div class="choose-enterprise">选择企业</div>
  78. </form>
  79. <hr>
  80. <footer class="col-sm-12 text-center">
  81. <div style="text-align:center;background:white;">
  82. <div style="width:100%;margin:0 auto; padding:20px 0;">
  83. </div>
  84. </div>
  85. </footer>
  86. </div>
  87. </div>
  88. </div>
  89. <script type="text/javascript" src="js/jquery.min.js"></script>
  90. <script type="text/javascript" src="js/bootstrap.min.js"></script>
  91. <script type="text/javascript">
  92. function init(){
  93. $.ajax({
  94. url:"/admin/user/login/getUserChooseEnterprise",
  95. dataType:"JSON",
  96. success:function(resp){
  97. if(resp.status != 0){
  98. window.location.href="/";
  99. return;
  100. }
  101. $("#form").empty();
  102. for(let i=0;i<resp.data.length;i++){
  103. let item = resp.data[i];
  104. let div = $("<div class='choose-enterprise'>"+item.name+"</div>");
  105. bindClick(div,item);
  106. $("#form").append(div);
  107. }
  108. }
  109. });
  110. }
  111. function bindClick(div,enterprise){
  112. div.click(function(){
  113. $.ajax({
  114. url:"/admin/user/login/userChooseEnterprise",
  115. dataType:"JSON",
  116. data:{
  117. enterpriseId:enterprise.id
  118. },
  119. success:function(resp){
  120. window.location.href="/";
  121. }
  122. });
  123. });
  124. }
  125. init();
  126. </script>
  127. </body>
  128. </html>