option_grant.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE html>
  2. <html>
  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" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10. <meta name="apple-mobile-web-app-capable" content="yes">
  11. <meta name="format-detection" content="telephone=no">
  12. <link rel="stylesheet" type="text/css" href="../script/lib/layui/css/layui.css" />
  13. <script src="../script/lib/jquery/jquery.min.js"></script>
  14. <script src="../script/lib/layui/layui.js"></script>
  15. <script src="../script/lib/echarts/echarts.common.min.js"></script>
  16. <script><{Dever::script()}></script>
  17. <script src="../script/dever/core.js"></script>
  18. <style>
  19. .dever-upload-pic
  20. {
  21. width:100px;
  22. }
  23. h5 {
  24. margin-bottom: 10px;
  25. }
  26. td {
  27. color: black;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <div class="layui-container">
  33. <div class="layui-card">
  34. <blockquote class="layui-elem-quote"><input type="text" value="<{$start}> ~ <{$end}>" autocomplete="off" id="date" class="layui-input" style="width: auto;display: inline;" placeholder="选择日期"><a href="javascript:;" class="layui-btn" id="search">搜索</a><a href="javascript:;" class="layui-btn" id="excel">数据导出</a></blockquote>
  35. <!-- <div class="layui-card-header" style="font-size: 20px"><{$day['time']}></div> -->
  36. <div class="layui-card-body">
  37. <table class="table layui-table layui-table-body" id="table">
  38. <thead id="list-thead">
  39. <tr>
  40. <th data-priority="1">用户姓名</th>
  41. <th data-priority="1">手机号</th>
  42. <th data-priority="1">身份证号</th>
  43. <th data-priority="1">角色</th>
  44. <th data-priority="1">完成团队业绩</th>
  45. <th data-priority="1">完成直推创V</th>
  46. <th data-priority="1">完成直推创客</th>
  47. <th data-priority="1">总收入</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <{if(isset($data)):}>
  52. <{foreach($data as $k => $v):}>
  53. <tr>
  54. <td><{$v['name']}></td>
  55. <td><{$v['mobile']}></td>
  56. <td><{$v['idcard']}></td>
  57. <td><{$v['role_name']}></td>
  58. <td><{$v['group_sell']}></td>
  59. <td><{$v['cv_num']}></td>
  60. <td><{$v['ck_num']}></td>
  61. <td><{$v['cash']['total']}></td>
  62. </tr>
  63. <{endforeach}>
  64. <{endif}>
  65. </tbody>
  66. </table>
  67. <div><{$page}></div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <script>
  74. layui.use(['form','element', 'layer', 'jquery', 'laydate'], function(){
  75. var form = layui.form;
  76. var laydate = layui.laydate;
  77. laydate.render({
  78. elem: '#date',
  79. range: '~'
  80. });
  81. });
  82. function search()
  83. {
  84. var date = $('#date').val();
  85. if (date) {
  86. var s = date.split(' ~ ');
  87. } else {
  88. var s = [];
  89. s[0] = '';
  90. s[1] = '';
  91. }
  92. location.href = config.host + 'lib/manage.option_grant&start=' + s[0] + '&end=' + s[1];
  93. }
  94. $('#search').click(function() {
  95. search();
  96. })
  97. function excel()
  98. {
  99. var date = $('#date').val();
  100. if (date) {
  101. var s = date.split(' ~ ');
  102. } else {
  103. var s = [];
  104. s[0] = '';
  105. s[1] = '';
  106. }
  107. location.href = config.host + 'lib/manage.out_option_grant&start=' + s[0] + '&end=' + s[1];
  108. }
  109. $('#excel').click(function() {
  110. excel();
  111. })
  112. </script>
  113. </body>
  114. </html>