index.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!DOCTYPE html>
  2. <html lang="en" style="background-color: #f5f5f5;">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>商品分析</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <script src="../../admin/index.js" door type="text/javascript" charset="utf-8"></script>
  8. <script>
  9. require('js/echarts.min.js');
  10. </script>
  11. <script type="text/html" id="totalTpl">
  12. <div class="layui-col-md3">
  13. <span>{{d.productTotalNumber}}</span>
  14. <p>商品数量</p>
  15. </div>
  16. <div class="layui-col-md3">
  17. <span>{{d.productTradedPercent}}</span>
  18. <p>商品动销率</p>
  19. </div>
  20. <div class="layui-col-md3">
  21. <span>{{d.tradedNumber}}</span>
  22. <p>动销商品件数</p>
  23. </div>
  24. <div class="layui-col-md3">
  25. <span>{{d.tradedAmount}}</span>
  26. <p>动销商品金额</p>
  27. </div>
  28. </script>
  29. </head>
  30. <body>
  31. <div class="layui-fluid">
  32. <div class="layui-card">
  33. <div class="layui-tab-content">
  34. <div class="layui-row layui-col-space15 goodsTotal">
  35. </div>
  36. <div class="layui-card-body layout-body" style="margin-top: 35px">
  37. <div id="goodsChart" style="width: 100%; height: 400px;"></div>
  38. <table id="singleGoodsTableData" lay-filter="singleGoodsTableData" class="layui-table" style="margin-top: 30px"></table>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <script src="index.js" type="text/javascript" charset="utf-8"></script>
  44. </body>
  45. </html>