index.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Layui</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <link rel="stylesheet" href="layui/css/layui.css" media="all">
  10. <link rel="stylesheet" href="css/index.css" media="all">
  11. </head>
  12. <body>
  13. <div class="layui-fluid container">
  14. <div class="layui-row top">
  15. <div class="layui-col-lg12">
  16. </div>
  17. </div>
  18. <div class="layui-row layui-col-space10 content">
  19. <div class="layui-col-lg3 item">
  20. <div class="task">
  21. <h2 class="name">测试测试测试测试测试测试</h2>
  22. <p class="school">中和中学</p>
  23. <p class="grade">
  24. <span>高一</span>
  25. <span>19班</span>
  26. <span>2021-09-05 15:14:34</span>
  27. </p>
  28. <p class="subject">
  29. <a href="scan.html" class="layui-btn layui-btn-normal layui-btn-sm">数学</a>
  30. </p>
  31. </div>
  32. </div>
  33. <div class="layui-col-lg3 item">
  34. <div class="task">
  35. </div>
  36. </div>
  37. <div class="layui-col-lg3 item">
  38. <div class="task">
  39. </div>
  40. </div>
  41. <div class="layui-col-lg3 item">
  42. <div class="task">
  43. </div>
  44. </div>
  45. <div class="layui-col-lg3 item">
  46. <div class="task">
  47. </div>
  48. </div>
  49. <div class="layui-col-lg3 item">
  50. <div class="task">
  51. </div>
  52. </div>
  53. <div class="layui-col-lg3 item">
  54. <div class="task">
  55. </div>
  56. </div>
  57. <div class="layui-col-lg3 item">
  58. <div class="task">
  59. </div>
  60. </div>
  61. <div class="layui-col-lg3 item">
  62. <div class="task">
  63. </div>
  64. </div>
  65. <div class="layui-col-lg3 item">
  66. <div class="task">
  67. </div>
  68. </div>
  69. <div class="layui-col-lg3 item">
  70. <div class="task">
  71. </div>
  72. </div>
  73. <div class="layui-col-lg3 item">
  74. <div class="task">
  75. </div>
  76. </div>
  77. </div>
  78. <div class="layui-row">
  79. <div class="layui-col-lg12 bottom"></div>
  80. </div>
  81. </div>
  82. <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
  83. <script src="layui/layui.js" charset="utf-8"></script>
  84. <script src="js/api.js" charset="utf-8"></script>
  85. <!-- 注意:如果你直接复制所有代码到本地,上述 JS 路径需要改成你本地的 -->
  86. <script>
  87. var token = localStorage.getItem("token")
  88. // 获取管理员信息
  89. LayuiGetJson({
  90. url: ACCOUNTINFOAPI,
  91. data: {},
  92. token:token
  93. }).then(res => {
  94. console.log(res)
  95. }).catch(err => {
  96. window.location.href = "login.html"
  97. })
  98. </script>
  99. </body>
  100. </html>