scan.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 scan_content">
  19. <div class="layui-col-lg3 left">
  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="" class="layui-btn layui-btn-normal layui-btn-sm">数学</a>
  30. </p>
  31. </div>
  32. </div>
  33. <div class="layui-col-lg7 middle">
  34. <div class="task">
  35. <h2 class="name">测试测试测试测试测试测试</h2>
  36. <p class="school">中和中学</p>
  37. <p class="grade">
  38. <span>高一</span>
  39. <span>19班</span>
  40. <span>2021-09-05 15:14:34</span>
  41. </p>
  42. <p class="subject">
  43. <a href="" class="layui-btn layui-btn-normal layui-btn-sm">数学</a>
  44. </p>
  45. </div>
  46. </div>
  47. <div class="layui-col-lg2 right">
  48. <div class="task">
  49. <h2 class="name">测试测试测试测试测试测试</h2>
  50. <p class="school">中和中学</p>
  51. <p class="grade">
  52. <span>高一</span>
  53. <span>19班</span>
  54. <span>2021-09-05 15:14:34</span>
  55. </p>
  56. <p class="subject">
  57. <a href="" class="layui-btn layui-btn-normal layui-btn-sm">开始</a>
  58. </p>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="layui-row">
  63. <div class="layui-col-lg12 bottom"></div>
  64. </div>
  65. </div>
  66. <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
  67. <script src="layui/layui.js" charset="utf-8"></script>
  68. <script src="js/api.js" charset="utf-8"></script>
  69. <!-- 注意:如果你直接复制所有代码到本地,上述 JS 路径需要改成你本地的 -->
  70. <script>
  71. var token = localStorage.getItem("token")
  72. // 获取管理员信息
  73. LayuiGetJson({
  74. url: ACCOUNTINFOAPI,
  75. data: {},
  76. token:token
  77. }).then(res => {
  78. console.log(res)
  79. }).catch(err => {
  80. window.location.href = "login.html"
  81. })
  82. </script>
  83. </body>
  84. </html>