home.jsp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <link href="/assets/css/bootstrap.min.css" rel="stylesheet" />
  7. <link rel="stylesheet" href="/css/style.css"/>
  8. <link rel="stylesheet" href="/assets/css/font-awesome.min.css" />
  9. <link href="/assets/css/codemirror.css" rel="stylesheet">
  10. <script src="/assets/js/ace-extra.min.js"></script>
  11. <script src="/assets/js/jquery.min.js"></script>
  12. <script src="/assets/dist/echarts.js"></script>
  13. <script src="/assets/js/bootstrap.min.js"></script>
  14. <title></title>
  15. </head>
  16. <body>
  17. <div class="page-content clearfix">
  18. <div class="alert alert-block alert-success">
  19. <button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
  20. <i class="icon-ok green"></i>欢迎使用<strong class="green">淘淘商城后台管理系统<small>(v2.0)</small></strong>,你本次登陆时间为2017年3月12日13时34分,登陆IP:192.168.1.118.
  21. </div>
  22. <div class="state-overview clearfix">
  23. <div class="col-lg-3 col-sm-6">
  24. <section class="panel">
  25. <a href="#" title="商城会员">
  26. <div class="symbol terques">
  27. <i class="icon-user"></i>
  28. </div>
  29. <div class="value">
  30. <h1>34522</h1>
  31. <p>商城用户</p>
  32. </div>
  33. </a>
  34. </section>
  35. </div>
  36. <div class="col-lg-3 col-sm-6">
  37. <section class="panel">
  38. <div class="symbol red">
  39. <i class="icon-tags"></i>
  40. </div>
  41. <div class="value">
  42. <h1>140</h1>
  43. <p>分销记录</p>
  44. </div>
  45. </section>
  46. </div>
  47. <div class="col-lg-3 col-sm-6">
  48. <section class="panel">
  49. <div class="symbol yellow">
  50. <i class="icon-shopping-cart"></i>
  51. </div>
  52. <div class="value">
  53. <h1>345</h1>
  54. <p>商城订单</p>
  55. </div>
  56. </section>
  57. </div>
  58. <div class="col-lg-3 col-sm-6">
  59. <section class="panel">
  60. <div class="symbol blue">
  61. <i class="icon-bar-chart"></i>
  62. </div>
  63. <div class="value">
  64. <h1>¥34,500</h1>
  65. <p>交易记录</p>
  66. </div>
  67. </section>
  68. </div>
  69. </div>
  70. <!--实时交易记录-->
  71. <div class="clearfix">
  72. <div class="t_Record">
  73. <div id="main" style="height:300px; overflow:hidden; width:100%; overflow:auto" ></div>
  74. </div>
  75. <div class="news_style">
  76. <div class="title_name">最新消息</div>
  77. <ul class="list">
  78. <li><i class="icon-bell red"></i><a href="#">6月共处理订单3451比,作废为...</a></li>
  79. <li><i class="icon-bell red"></i><a href="#">7月商城活动更新。</a></li>
  80. <li><i class="icon-bell red"></i><a href="#">XXX商品审核通过!</a></li>
  81. <li><i class="icon-bell red"></i><a href="#">XXX商品审核通过!</a></li>
  82. <li><i class="icon-bell red"></i><a href="#">XXX商品审核通过!</a></li>
  83. </ul>
  84. </div>
  85. </div>
  86. <script type="text/javascript">
  87. $(document).ready(function(){
  88. $(".t_Record").width($(window).width()-320);
  89. //当文档窗口发生改变时 触发
  90. $(window).resize(function(){
  91. $(".t_Record").width($(window).width()-320);
  92. });
  93. });
  94. require.config({
  95. paths: {
  96. echarts: '/assets/dist'
  97. }
  98. });
  99. require(
  100. [
  101. 'echarts',
  102. 'echarts/theme/macarons',
  103. 'echarts/chart/line', // 按需加载所需图表,如需动态类型切换功能,别忘了同时加载相应图表
  104. 'echarts/chart/bar'
  105. ],
  106. function (ec,theme) {
  107. var myChart = ec.init(document.getElementById('main'),theme);
  108. option = {
  109. title : {
  110. text: '月购买订单交易记录',
  111. subtext: '实时获取用户订单购买记录'
  112. },
  113. tooltip : {
  114. trigger: 'axis'
  115. },
  116. legend: {
  117. data:['所有订单','待付款','已付款','代发货']
  118. },
  119. toolbox: {
  120. show : true,
  121. feature : {
  122. mark : {show: true},
  123. dataView : {show: true, readOnly: false},
  124. magicType : {show: true, type: ['line', 'bar']},
  125. restore : {show: true},
  126. saveAsImage : {show: true}
  127. }
  128. },
  129. calculable : true,
  130. xAxis : [
  131. {
  132. type : 'category',
  133. data : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月']
  134. }
  135. ],
  136. yAxis : [
  137. {
  138. type : 'value'
  139. }
  140. ],
  141. series : [
  142. {
  143. name:'所有订单',
  144. type:'bar',
  145. data:[120, 49, 70, 232, 256, 767, 1356, 1622, 326, 200,164, 133],
  146. markPoint : {
  147. data : [
  148. {type : 'max', name: '最大值'},
  149. {type : 'min', name: '最小值'}
  150. ]
  151. }
  152. },
  153. {
  154. name:'待付款',
  155. type:'bar',
  156. data:[26, 59, 30, 84, 27, 77, 176, 1182, 487, 188, 60, 23],
  157. markPoint : {
  158. data : [
  159. {name : '年最高', value : 1182, xAxis: 7, yAxis: 1182, symbolSize:18},
  160. {name : '年最低', value : 23, xAxis: 11, yAxis: 3}
  161. ]
  162. },
  163. }
  164. , {
  165. name:'已付款',
  166. type:'bar',
  167. data:[26, 59, 60, 264, 287, 77, 176, 122, 247, 148, 60, 23],
  168. markPoint : {
  169. data : [
  170. {name : '年最高', value : 172, xAxis: 7, yAxis: 172, symbolSize:18},
  171. {name : '年最低', value : 23, xAxis: 11, yAxis: 3}
  172. ]
  173. },
  174. }
  175. , {
  176. name:'代发货',
  177. type:'bar',
  178. data:[26, 59, 80, 24, 87, 70, 175, 1072, 48, 18, 69, 63],
  179. markPoint : {
  180. data : [
  181. {name : '年最高', value : 1072, xAxis: 7, yAxis: 1072, symbolSize:18},
  182. {name : '年最低', value : 22, xAxis: 11, yAxis: 3}
  183. ]
  184. },
  185. }
  186. ]
  187. };
  188. myChart.setOption(option);
  189. }
  190. );
  191. </script>
  192. </div>
  193. </body>
  194. </html>