截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

center.html 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {layout name="layout1" /}
  2. <style>
  3. .title {
  4. font-size: 16px;
  5. text-align: center;
  6. }
  7. .data {
  8. margin-top: 10px;
  9. font-size: 20px;
  10. text-align: center;
  11. }
  12. .layui-table {
  13. width: 500px;
  14. margin-left: 10px;
  15. }
  16. html,
  17. body {
  18. height: 100%;
  19. }
  20. #content {
  21. height: 100%;
  22. background: #FFFFFF;
  23. }
  24. </style>
  25. <div class="wrapper">
  26. <div class="layui-card">
  27. <div class="layui-card-body">
  28. <div id="content">
  29. <fieldset class="layui-elem-field layui-field-title">
  30. <legend>佣金概览</legend>
  31. <div class="layui-field-box">
  32. <div class="layui-row">
  33. <div class="layui-col-md2 title">
  34. 累计已入账佣金/元
  35. </div>
  36. <div class="layui-col-md2 title">
  37. 今日入账佣金/元
  38. </div>
  39. <div class="layui-col-md2 title">
  40. 待结算佣金/元
  41. </div>
  42. <div class="layui-col-md2 title">
  43. 今日新增待结算佣金/元
  44. </div>
  45. </div>
  46. <div class="layui-row">
  47. <div class="layui-col-md2 data">
  48. {$data.earnings.total_success}
  49. </div>
  50. <div class="layui-col-md2 data">
  51. {$data.earnings.total_today_success}
  52. </div>
  53. <div class="layui-col-md2 data">
  54. {$data.earnings.total_wait}
  55. </div>
  56. <div class="layui-col-md2 data">
  57. {$data.earnings.total_today_wait}
  58. </div>
  59. </div>
  60. </div>
  61. </fieldset>
  62. <fieldset class="layui-elem-field layui-field-title">
  63. <legend>分销商品排行榜</legend>
  64. <div class="layui-field-box">
  65. <table class="layui-table">
  66. <colgroup>
  67. <col width="150">
  68. <col width="200">
  69. <col>
  70. </colgroup>
  71. <thead>
  72. <tr>
  73. <th>排名</th>
  74. <th>商品名称</th>
  75. <th>已入账佣金</th>
  76. </tr>
  77. </thead>
  78. <tbody>
  79. {foreach $data.top as $key=>$item }
  80. <tr>
  81. <td>{$key+1}</td>
  82. <td> <img src="{$item.goods_image}" style="height:60px;width: 60px;margin-right:5px;" class="image-show">{$item.goods_name}</td>
  83. <td>{$item.total_money}</td>
  84. </tr>
  85. {/foreach}
  86. </tbody>
  87. </table>
  88. </div>
  89. </fieldset>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <script>
  95. layui.config({
  96. version:"{$front_version}",
  97. base: '/static/lib/' //静态资源所在路径
  98. }).use(['table'], function(){
  99. let table = layui.table;
  100. });
  101. </script>