miaoguo_user_agency.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>秒过学习</title>
  6. <link rel="stylesheet" href="../mg/common.css">
  7. <style type="text/css">
  8. .container {
  9. width:98%;
  10. margin: 0 20px 0 20px;
  11. }
  12. #app {
  13. margin: 0 auto;
  14. font-size: 18px;
  15. }
  16. .panelHead{
  17. font-size: 20px;
  18. font-weight: 500;
  19. }
  20. .panelTop{
  21. width:100%;
  22. height:50px;
  23. justify-content: flex-start;
  24. }
  25. .btn1{
  26. width:80px;
  27. height: 25px;
  28. border-radius: 2px;
  29. margin: 0px 10px 0px 10px;
  30. border: 1px solid #aaaaaa;
  31. text-align: center;
  32. background-color: #fff;
  33. color:#000;
  34. cursor:pointer;
  35. }
  36. .btn2{
  37. background-color: #19C575;
  38. color:#fff;
  39. }
  40. table {
  41. border-collapse: collapse;
  42. margin: 0 0 50px 0;
  43. width:100%;
  44. }
  45. .tdClass {
  46. background-color: #ddd;
  47. text-align: center;
  48. }
  49. .tdA{
  50. color:blue;
  51. text-decoration: underline;
  52. cursor:pointer;
  53. }
  54. td {
  55. border: 1px solid #aaaaaa;
  56. min-height: 30px;
  57. padding: 5px 10px 5px 10px;
  58. flex: 1;
  59. }
  60. .td1{
  61. text-align: center;
  62. }
  63. .td2{
  64. width: 250px;
  65. }
  66. .td3{
  67. justify-content: space-between;
  68. }
  69. .td2_1{
  70. background-color: #90CAF9;
  71. }
  72. .td2__1{
  73. border:4px groove #EF9A9A;
  74. }
  75. .td3__1{
  76. background-color: #C5E1A5;
  77. }
  78. .main {
  79. width: 100%;
  80. }
  81. .avatar {
  82. width: 60px;
  83. height: 60px;
  84. border-radius: 10px;
  85. }
  86. button {
  87. margin: 0 3px;
  88. }
  89. select{
  90. font-size:18px;
  91. }
  92. .top{
  93. position: fixed;
  94. width: 50px;
  95. height:26px;
  96. bottom:10px;
  97. left:10px;
  98. z-index: 100;
  99. background-color: #19C575;
  100. color:#fff;
  101. border-radius: 5px;
  102. text-align: center;
  103. }
  104. .DateStart{
  105. margin: 0 0 10px 0;
  106. }
  107. .timg{
  108. margin-top: 50px;
  109. width:220px;
  110. height:145px;
  111. }
  112. .img{
  113. width:40px;
  114. height:40px;
  115. border-radius: 5px;
  116. margin-right: 10px;
  117. }
  118. .pDetail{
  119. justify-content: flex-start;
  120. padding-left: 20px;
  121. }
  122. .trDelete{
  123. text-decoration: line-through;
  124. background-color: #eee;
  125. }
  126. .hasRefund-1{
  127. background-color: #FFB8B3;
  128. }
  129. .spanWidth{
  130. margin-left: 20px;
  131. }
  132. .spanWidth2{
  133. height:20rpx;
  134. }
  135. </style>
  136. <script src="js/jquery-1.6.4.min.js"></script>
  137. <script src="js/vue.js"></script>
  138. <script>
  139. var vm;
  140. const Colors=["#EF9A9A","#90CAF9","#C5E1A5","#CE93D8","#80DEEA","#FFF59D","#BCAAA4","#9FA8DA","#FFCC80","#B0BEC5"]
  141. $(document).ready(function () {
  142. vm = new Vue({
  143. el: '#app',
  144. data: {
  145. ListMain: [],
  146. DateStart:"",
  147. PayFinished:"0",
  148. },
  149. methods: {
  150. getList: function (event,callback) {
  151. $("#imgMain").css("display","block");
  152. $.get("/api/GetStatisticsShareUserPay", function (data) {
  153. var arr = [];
  154. arr = data.result;
  155. vm.ListMain = arr;
  156. $("#imgMain").css("display","none");
  157. if (callback)
  158. callback();
  159. });
  160. },
  161. build:function () {
  162. $("#imgMain").css("display","block");
  163. $.get("/api/BuildStatisticsShareUserPay", function (data) {
  164. $("#imgMain").css("display","none");
  165. alert("生成成功");
  166. vm.getList();
  167. });
  168. },
  169. }
  170. });
  171. vm.getList();
  172. });
  173. </script>
  174. </head>
  175. <body class="container">
  176. <div id="app">
  177. <div class="panelHead">推广用户树状图</div>
  178. <div class="panelTop FlexRow">
  179. <button class="" v-on:click="build">生成树</button>
  180. <div class="FlexRow" style="margin-left: 100px;">说明:
  181. <div class="spanWidth">大使:★★</div>
  182. <div class="spanWidth">直属:★</div>
  183. <div class="spanWidth FlexRow"><span>支付直属(30元):</span><div class="spanWidth2 td2_1">&nbsp;&nbsp;&nbsp;&nbsp;</div></div>
  184. <div class="spanWidth FlexRow"><span>支付大使(15元):</span><div class="spanWidth2 td2__1">&nbsp;&nbsp;&nbsp;&nbsp;</div></div>
  185. <div class="spanWidth FlexRow"><span>要115天不要30元:</span><div class="spanWidth2 td3__1">&nbsp;&nbsp;&nbsp;&nbsp;</div></div>
  186. </div>
  187. </div>
  188. <div class="main FlexColumn">
  189. <table>
  190. <thead>
  191. <tr>
  192. <td class="tdClass">编号</td>
  193. <td class="tdClass">用户ID</td>
  194. <td class="td2 tdClass">大使</td>
  195. <td class="td2 tdClass">直属</td>
  196. <td class="td2 tdClass">第二度</td>
  197. <td class="td2 tdClass">第三度</td>
  198. <td class="td2 tdClass">第四度</td>
  199. <td class="td2 tdClass">第五度</td>
  200. </tr>
  201. </thead>
  202. <tbody>
  203. <tr :id=" 'Tr_'+item.UserID " v-for="(item, index) in ListMain">
  204. <td class="td1">{{index+1}}</td>
  205. <td class="td1"><a :href="'webuserinfo?UserID=' + item.UserID " target="_blank">{{item.UserID}}</a></td>
  206. <td class="td2" v-for="(item2, index2) in item.Tree">
  207. <template v-if="item2">
  208. <div :class=" 'td2 '+'td2_'+item.IsRebate + ' td2__'+item.IsRebateAgent + ' td3__'+item2.IsNeedTime ">
  209. <img class="img" :src="item2.AvatarUrl" />{{item2.NickName}}
  210. </div>
  211. </template>
  212. </td>
  213. </tr>
  214. </tbody>
  215. </table>
  216. <img src="https://kylx365-1253256735.file.myqcloud.com/web/timg.gif" class="timg" id="imgMain"/>
  217. </div>
  218. </div>
  219. </body>
  220. </html>