main_v1.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>统计</title>
  7. <link rel="shortcut icon" href="favicon.ico">
  8. <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
  9. <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
  10. <link href="../static/css/animate.min.css" th:href="@{/css/animate.min.css}" rel="stylesheet"/>
  11. <link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>
  12. </head>
  13. <body class="gray-bg">
  14. <div class="wrapper wrapper-content">
  15. <div class="row">
  16. <div class="col-sm-3">
  17. <div class="ibox float-e-margins">
  18. <div class="ibox-title">
  19. <span class="label label-success pull-right">月</span>
  20. <h5>收入</h5>
  21. </div>
  22. <div class="ibox-content">
  23. <h1 class="no-margins">40 886,200</h1>
  24. <div class="stat-percent font-bold text-success">98% <i class="fa fa-bolt"></i>
  25. </div>
  26. <small>总收入</small>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="col-sm-3">
  31. <div class="ibox float-e-margins">
  32. <div class="ibox-title">
  33. <span class="label label-info pull-right">全年</span>
  34. <h5>订单</h5>
  35. </div>
  36. <div class="ibox-content">
  37. <h1 class="no-margins">275,800</h1>
  38. <div class="stat-percent font-bold text-info">20% <i class="fa fa-level-up"></i>
  39. </div>
  40. <small>新订单</small>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="col-sm-3">
  45. <div class="ibox float-e-margins">
  46. <div class="ibox-title">
  47. <span class="label label-primary pull-right">今天</span>
  48. <h5>访客</h5>
  49. </div>
  50. <div class="ibox-content">
  51. <h1 class="no-margins">106,120</h1>
  52. <div class="stat-percent font-bold text-navy">44% <i class="fa fa-level-up"></i>
  53. </div>
  54. <small>新访客</small>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="col-sm-3">
  59. <div class="ibox float-e-margins">
  60. <div class="ibox-title">
  61. <span class="label label-danger pull-right">最近一个月</span>
  62. <h5>活跃用户</h5>
  63. </div>
  64. <div class="ibox-content">
  65. <h1 class="no-margins">80,600</h1>
  66. <div class="stat-percent font-bold text-danger">38% <i class="fa fa-level-down"></i>
  67. </div>
  68. <small>12月</small>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="row">
  74. <div class="col-sm-12">
  75. <div class="ibox float-e-margins">
  76. <div class="ibox-title">
  77. <h5>订单</h5>
  78. <div class="pull-right">
  79. <div class="btn-group">
  80. <button type="button" class="btn btn-xs btn-white active">天</button>
  81. <button type="button" class="btn btn-xs btn-white">月</button>
  82. <button type="button" class="btn btn-xs btn-white">年</button>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="ibox-content">
  87. <div class="row">
  88. <div class="col-sm-9">
  89. <div class="flot-chart">
  90. <div class="flot-chart-content" id="flot-dashboard-chart"></div>
  91. </div>
  92. </div>
  93. <div class="col-sm-3">
  94. <ul class="stat-list">
  95. <li>
  96. <h2 class="no-margins">2,346</h2>
  97. <small>订单总数</small>
  98. <div class="stat-percent">48% <i class="fa fa-level-up text-navy"></i>
  99. </div>
  100. <div class="progress progress-mini">
  101. <div style="width: 48%;" class="progress-bar"></div>
  102. </div>
  103. </li>
  104. <li>
  105. <h2 class="no-margins ">4,422</h2>
  106. <small>最近一个月订单</small>
  107. <div class="stat-percent">60% <i class="fa fa-level-down text-navy"></i>
  108. </div>
  109. <div class="progress progress-mini">
  110. <div style="width: 60%;" class="progress-bar"></div>
  111. </div>
  112. </li>
  113. <li>
  114. <h2 class="no-margins ">9,180</h2>
  115. <small>最近一个月销售额</small>
  116. <div class="stat-percent">22% <i class="fa fa-bolt text-navy"></i>
  117. </div>
  118. <div class="progress progress-mini">
  119. <div style="width: 22%;" class="progress-bar"></div>
  120. </div>
  121. </li>
  122. </ul>
  123. </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="row">
  130. <div class="col-sm-12">
  131. <div class="ibox float-e-margins">
  132. <div class="ibox-title">
  133. <h5>用户项目列表</h5>
  134. <div class="ibox-tools">
  135. <a class="collapse-link">
  136. <i class="fa fa-chevron-up"></i>
  137. </a>
  138. <a class="close-link">
  139. <i class="fa fa-times"></i>
  140. </a>
  141. </div>
  142. </div>
  143. <div class="ibox-content">
  144. <table class="table table-hover no-margins">
  145. <thead>
  146. <tr>
  147. <th>状态</th>
  148. <th>日期</th>
  149. <th>用户</th>
  150. <th>值</th>
  151. </tr>
  152. </thead>
  153. <tbody>
  154. <tr>
  155. <td><small>进行中...</small>
  156. </td>
  157. <td><i class="fa fa-clock-o"></i> 11:20</td>
  158. <td>青衣5858</td>
  159. <td class="text-navy"> <i class="fa fa-level-up"></i> 24%</td>
  160. </tr>
  161. <tr>
  162. <td><span class="label label-warning">已取消</span>
  163. </td>
  164. <td><i class="fa fa-clock-o"></i> 10:40</td>
  165. <td>徐子崴</td>
  166. <td class="text-navy"> <i class="fa fa-level-up"></i> 66%</td>
  167. </tr>
  168. <tr>
  169. <td><small>进行中...</small>
  170. </td>
  171. <td><i class="fa fa-clock-o"></i> 01:30</td>
  172. <td>姜岚昕</td>
  173. <td class="text-navy"> <i class="fa fa-level-up"></i> 54%</td>
  174. </tr>
  175. <tr>
  176. <td><small>进行中...</small>
  177. </td>
  178. <td><i class="fa fa-clock-o"></i> 02:20</td>
  179. <td>武汉大兵哥</td>
  180. <td class="text-navy"> <i class="fa fa-level-up"></i> 12%</td>
  181. </tr>
  182. <tr>
  183. <td><small>进行中...</small>
  184. </td>
  185. <td><i class="fa fa-clock-o"></i> 09:40</td>
  186. <td>荆莹儿</td>
  187. <td class="text-navy"> <i class="fa fa-level-up"></i> 22%</td>
  188. </tr>
  189. <tr>
  190. <td><span class="label label-primary">已完成</span>
  191. </td>
  192. <td><i class="fa fa-clock-o"></i> 04:10</td>
  193. <td>栾某某</td>
  194. <td class="text-navy"> <i class="fa fa-level-up"></i> 66%</td>
  195. </tr>
  196. <tr>
  197. <td><small>进行中...</small>
  198. </td>
  199. <td><i class="fa fa-clock-o"></i> 12:08</td>
  200. <td>范范范二妮</td>
  201. <td class="text-navy"> <i class="fa fa-level-up"></i> 23%</td>
  202. </tr>
  203. </tbody>
  204. </table>
  205. </div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. <script th:src="@{/js/jquery.min.js}"></script>
  212. <script th:src="@{/js/bootstrap.min.js}"></script>
  213. <script th:src="@{/ajax/libs/flot/jquery.flot.js}"></script>
  214. <th:block th:include="include :: sparkline-js" />
  215. <script type="text/javascript">
  216. $(document).ready(function () {
  217. var data2 = [
  218. [gd(2012, 1, 1), 7], [gd(2012, 1, 2), 6], [gd(2012, 1, 3), 4], [gd(2012, 1, 4), 8],
  219. [gd(2012, 1, 5), 9], [gd(2012, 1, 6), 7], [gd(2012, 1, 7), 5], [gd(2012, 1, 8), 4],
  220. [gd(2012, 1, 9), 7], [gd(2012, 1, 10), 8], [gd(2012, 1, 11), 9], [gd(2012, 1, 12), 6],
  221. [gd(2012, 1, 13), 4], [gd(2012, 1, 14), 5], [gd(2012, 1, 15), 11], [gd(2012, 1, 16), 8],
  222. [gd(2012, 1, 17), 8], [gd(2012, 1, 18), 11], [gd(2012, 1, 19), 11], [gd(2012, 1, 20), 6],
  223. [gd(2012, 1, 21), 6], [gd(2012, 1, 22), 8], [gd(2012, 1, 23), 11], [gd(2012, 1, 24), 13],
  224. [gd(2012, 1, 25), 7], [gd(2012, 1, 26), 9], [gd(2012, 1, 27), 9], [gd(2012, 1, 28), 8],
  225. [gd(2012, 1, 29), 5], [gd(2012, 1, 30), 8], [gd(2012, 1, 31), 25]
  226. ];
  227. var data3 = [
  228. [gd(2012, 1, 1), 800], [gd(2012, 1, 2), 500], [gd(2012, 1, 3), 600], [gd(2012, 1, 4), 700],
  229. [gd(2012, 1, 5), 500], [gd(2012, 1, 6), 456], [gd(2012, 1, 7), 800], [gd(2012, 1, 8), 589],
  230. [gd(2012, 1, 9), 467], [gd(2012, 1, 10), 876], [gd(2012, 1, 11), 689], [gd(2012, 1, 12), 700],
  231. [gd(2012, 1, 13), 500], [gd(2012, 1, 14), 600], [gd(2012, 1, 15), 700], [gd(2012, 1, 16), 786],
  232. [gd(2012, 1, 17), 345], [gd(2012, 1, 18), 888], [gd(2012, 1, 19), 888], [gd(2012, 1, 20), 888],
  233. [gd(2012, 1, 21), 987], [gd(2012, 1, 22), 444], [gd(2012, 1, 23), 999], [gd(2012, 1, 24), 567],
  234. [gd(2012, 1, 25), 786], [gd(2012, 1, 26), 666], [gd(2012, 1, 27), 888], [gd(2012, 1, 28), 900],
  235. [gd(2012, 1, 29), 178], [gd(2012, 1, 30), 555], [gd(2012, 1, 31), 993]
  236. ];
  237. var dataset = [
  238. {
  239. label: "订单数",
  240. data: data3,
  241. color: "#1ab394",
  242. bars: {
  243. show: true,
  244. align: "center",
  245. barWidth: 24 * 60 * 60 * 600,
  246. lineWidth: 0
  247. }
  248. }, {
  249. label: "付款数",
  250. data: data2,
  251. yaxis: 2,
  252. color: "#464f88",
  253. lines: {
  254. lineWidth: 1,
  255. show: true,
  256. fill: true,
  257. fillColor: {
  258. colors: [{
  259. opacity: 0.2
  260. }, {
  261. opacity: 0.2
  262. }]
  263. }
  264. },
  265. splines: {
  266. show: false,
  267. tension: 0.6,
  268. lineWidth: 1,
  269. fill: 0.1
  270. },
  271. }
  272. ];
  273. var options = {
  274. xaxis: {
  275. mode: "time",
  276. tickSize: [3, "day"],
  277. tickLength: 0,
  278. axisLabel: "Date",
  279. axisLabelUseCanvas: true,
  280. axisLabelFontSizePixels: 12,
  281. axisLabelFontFamily: 'Arial',
  282. axisLabelPadding: 10,
  283. color: "#838383"
  284. },
  285. yaxes: [{
  286. position: "left",
  287. max: 1070,
  288. color: "#838383",
  289. axisLabelUseCanvas: true,
  290. axisLabelFontSizePixels: 12,
  291. axisLabelFontFamily: 'Arial',
  292. axisLabelPadding: 3
  293. }, {
  294. position: "right",
  295. clolor: "#838383",
  296. axisLabelUseCanvas: true,
  297. axisLabelFontSizePixels: 12,
  298. axisLabelFontFamily: ' Arial',
  299. axisLabelPadding: 67
  300. }
  301. ],
  302. legend: {
  303. noColumns: 1,
  304. labelBoxBorderColor: "#000000",
  305. position: "nw"
  306. },
  307. grid: {
  308. hoverable: false,
  309. borderWidth: 0,
  310. color: '#838383'
  311. }
  312. };
  313. function gd(year, month, day) {
  314. return new Date(year, month - 1, day).getTime();
  315. }
  316. var previousPoint = null,
  317. previousLabel = null;
  318. $.plot($("#flot-dashboard-chart"), dataset, options);
  319. });
  320. </script>
  321. </body>
  322. </html>