see.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. {extend name="public/container"}
  2. {block name="content"}
  3. <style>
  4. .backlog-body {
  5. padding: 10px 15px;
  6. background-color: #f8f8f8;
  7. color: #999;
  8. border-radius: 2px;
  9. transition: all .3s;
  10. -webkit-transition: all .3s;
  11. overflow: hidden;
  12. max-height: 84px;
  13. }
  14. .backlog-body h3 {
  15. margin-bottom: 10px;
  16. }
  17. .right-icon {
  18. position: absolute;
  19. right: 10px;
  20. }
  21. .backlog-body p cite {
  22. font-style: normal;
  23. font-size: 17px;
  24. font-weight: 300;
  25. color: #009688;
  26. }
  27. .layuiadmin-badge, .layuiadmin-btn-group, .layuiadmin-span-color {
  28. position: absolute;
  29. right: 15px;
  30. }
  31. .layuiadmin-badge {
  32. top: 50%;
  33. margin-top: -9px;
  34. color: #01AAED;
  35. }
  36. </style>
  37. <div class="layui-fluid">
  38. <div class="layui-row layui-col-space15">
  39. <div class="layui-col-md12 layui-col-sm12 layui-col-lg12">
  40. <div class="layui-card">
  41. <div class="layui-card-header">计划详情</div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="row">
  47. <div class="col-sm-12">
  48. <div class="ibox">
  49. <div class="ibox-content">
  50. <div class="table-responsive">
  51. <div class="layui-btn-container">
  52. <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="" lay-filter="search">
  53. <i class="layui-icon layui-icon-refresh layuiadmin-button-btn"></i>刷新
  54. </button>
  55. </div>
  56. <table class="layui-hide" id="List" lay-filter="List"></table>
  57. <script type="text/html" id="user">
  58. {{d.user.nickname}}({{d.uid}})
  59. </script>
  60. <script type="text/html" id="layer_award">
  61. <p>层数:{{d.layer_award_layer}}</p>
  62. <p>比例:{{d.layer_award_ratio}}</p>
  63. </script>
  64. <script type="text/html" id="release_time">
  65. {{d.release_time_now}}/{{d.release_time_all}}
  66. </script>
  67. <script type="text/html" id="time">
  68. <p>认购时间:{{d._add_time}}</p>
  69. <p>通过时间:{{d._pass_time}}</p>
  70. <p>审核时限:{{d._check_end_time}}</p>
  71. </script>
  72. <!-- <script type="text/html" id="barDemo">-->
  73. <!-- <button type="button" class="layui-btn layui-btn-xs" lay-event="edit"><i-->
  74. <!-- class="layui-icon layui-icon-edit"></i>编辑-->
  75. <!-- </button>-->
  76. <!-- <button type="button" class="layui-btn layui-btn-xs" onclick="dropdown(this)">操作 <span-->
  77. <!-- class="caret"></span></button>-->
  78. <!-- <ul class="layui-nav-child layui-anim layui-anim-upbit">-->
  79. <!-- <li>-->
  80. <!-- <a href="javascript:void(0);" lay-event="see">-->
  81. <!-- <i class="layui-icon layui-icon-edit"></i> 投票人详情</a>-->
  82. <!-- </li>-->
  83. <!-- </ul>-->
  84. <!-- </script>-->
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <script src="{__ADMIN_PATH}js/layuiList.js"></script>
  91. {/block}
  92. {block name="script"}
  93. <script>
  94. layList.form.render();
  95. layList.tableList('List', "{:Url('get_sub_list',array('id'=>$id))}", function () {
  96. return [
  97. {field: 'id', title: '编号', event: 'id', width: '4%', align: 'center'},
  98. {field: 'user', title: '认购用户', align: 'center', templet: '#user', width: '10%'},
  99. {field: 'buy_num', title: '认购额度', align: 'center', width: '5%'},
  100. {field: 'buy_all_price', title: '认购总价', width: '8%', align: 'center'},
  101. {field: 'buy_money_type', title: '认购币种', width: '12%', align: 'center'},
  102. {field: 'release_ratio', title: '收益倍数', width: '5%', align: 'center'},
  103. {field: 'release_money_type', title: '释放币种', align: 'center', width: '12%'},
  104. {field: 'release_time', title: '释放天数', templet: '#release_time', width: '10%', align: 'center'},
  105. {field: 'layer_award', title: '团队奖', templet: '#layer_award', width: '8%'},
  106. {field: 'time', title: '时间', templet: '#time'},
  107. {field: '_status', title: '状态', width: '6%', align: 'center'},
  108. // {field: 'operate', title: '操作', width: '10%', align: 'center', toolbar: '#barDemo'}
  109. ];
  110. });
  111. //监听并执行 uid 的排序
  112. layList.tool(function (event, data, obj) {
  113. var layEvent = event;
  114. switch (layEvent) {
  115. case 'edit':
  116. $eb.createModalFrame('编辑', layList.Url({a: 'create_sub', p: {id: data.id}}));
  117. break;
  118. case 'see':
  119. $eb.createModalFrame(data.vote_sub_name + '-投票人详情', layList.Url({a: 'see_people', p: {id: data.id}}));
  120. break;
  121. }
  122. });
  123. $('.conrelTable').find('button').each(function () {
  124. var type = $(this).data('type');
  125. $(this).on('click', function () {
  126. action[type] && action[type]();
  127. })
  128. })
  129. //下拉框
  130. $(document).click(function (e) {
  131. $('.layui-nav-child').hide();
  132. })
  133. layList.search('search', function (where) {
  134. layList.reload(where, true);
  135. });
  136. function dropdown(that) {
  137. var oEvent = arguments.callee.caller.arguments[0] || event;
  138. oEvent.stopPropagation();
  139. var offset = $(that).offset();
  140. var top = offset.top - $(window).scrollTop();
  141. var index = $(that).parents('tr').data('index');
  142. $('.layui-nav-child').each(function (key) {
  143. if (key != index) {
  144. $(this).hide();
  145. }
  146. })
  147. if ($(document).height() < top + $(that).next('ul').height()) {
  148. $(that).next('ul').css({
  149. 'padding': 10,
  150. 'top': -($(that).parent('td').height() / 2 + $(that).height() + $(that).next('ul').height() / 2),
  151. 'left': offset.left - $(that).parents('td').offset().left - 20,
  152. 'min-width': 'inherit',
  153. 'position': 'absolute'
  154. }).toggle();
  155. } else {
  156. $(that).next('ul').css({
  157. 'padding': 10,
  158. 'top': $(that).parent('td').height() / 2 + $(that).height(),
  159. 'left': offset.left - $(that).parents('td').offset().left - 20,
  160. 'min-width': 'inherit',
  161. 'position': 'absolute'
  162. }).toggle();
  163. }
  164. }
  165. </script>
  166. {/block}