home.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html style="height: 100%;">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>首页</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport"
  9. content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  10. <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
  11. <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
  12. <style>
  13. .topPart {
  14. display: flex;
  15. justify-content: space-between;
  16. flex-direction: row;
  17. flex-wrap: wrap;
  18. padding: 0 20px;
  19. background: #ffffff;
  20. }
  21. .dayAmount {
  22. width: 31%;
  23. margin: 10px 0;
  24. padding: 20px 0 20px 10px;
  25. background: #ff6600;
  26. }
  27. .monthAmount {
  28. width: 31%;
  29. margin: 10px 0;
  30. padding: 20px 0 20px 10px;
  31. background: #1abc9b;
  32. }
  33. .yearAmount {
  34. width: 31%;
  35. padding: 20px 0 20px 10px;
  36. margin: 10px 0;
  37. background: #1e9eb3;
  38. }
  39. .dayCount {
  40. width: 31%;
  41. padding: 20px 0 20px 10px;
  42. margin: 10px 0;
  43. background: #ee7c5c;
  44. }
  45. .monthCount {
  46. width: 31%;
  47. padding: 20px 0 20px 10px;
  48. margin: 10px 0;
  49. background: #ff9900;
  50. }
  51. .yearCount {
  52. width: 31%;
  53. padding: 20px 0 20px 10px;
  54. margin: 10px 0;
  55. background: #2ec7c9;
  56. }
  57. h4 {
  58. margin-top: 5px;
  59. color: #ffffff;
  60. }
  61. cite {
  62. color: #ffffff;
  63. font-size: 30px;
  64. }
  65. .layui-card-header {
  66. padding-left: 20px;
  67. color: #000;
  68. font-size: 18px;
  69. }
  70. </style>
  71. </head>
  72. <body>
  73. <div class="layui-fluid">
  74. <div class="layui-row layui-col-space15">
  75. <div class="layui-col-md12">
  76. <div class="layui-row layui-col-space15">
  77. <!-- 统计数据 -->
  78. <!-- <div class="layui-col-md12">
  79. <div class="layui-card">
  80. <div class="layui-card-header">数据概览</div>
  81. <ul class="layui-col-md12 topPart">
  82. <li class="monthAmount">
  83. <p><cite id="dispatch">0</cite></p>
  84. <h4>已发货订单</h4>
  85. </li>
  86. <li class="dayAmount">
  87. <p><cite id="wait_dispatch">0</cite></p>
  88. <h4>未发货订单</h4>
  89. </li>
  90. <li class="yearAmount">
  91. <p><cite id="total_order">0</cite></p>
  92. <h4>总订单</h4>
  93. </li>
  94. </ul>
  95. </div>
  96. </div>-->
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <script src="../../layuiadmin/layui/layui.js?t=1"></script>
  102. <script>
  103. layui.config({
  104. base: '../../layuiadmin/' //静态资源所在路径
  105. }).extend({
  106. index: 'lib/index', //主入口模块
  107. }).use(['index', 'home'], function () {
  108. var $ = layui.$
  109. , admin = layui.admin;
  110. /* admin.req({
  111. url: '/order/get_home_data/'
  112. , type: 'get'
  113. , done: function (res) {
  114. $('#dispatch').html(res.data.dispatch)
  115. $('#wait_dispatch').html(res.data.wait_dispatch)
  116. $('#total_order').html(res.data.total_order)
  117. }
  118. });*/
  119. })
  120. </script>
  121. </body>
  122. </html>