index.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <div id="actionbar">
  2. <a href="{:url('vip.index/edit')}" class="button button-blue"> <i class="iconfont icon-add_icon"></i>增加会员组</a>
  3. </div>
  4. <table class="table table-border">
  5. <thead>
  6. <tr>
  7. <th class="w80 fn-tac">排序</th>
  8. <th>会员名称</th>
  9. <th class="w80 fn-tar">开通金额</th>
  10. <th class="w100 fn-tar">直推奖(¥)</th>
  11. <th class="w100 fn-tar">间推奖(¥)</th>
  12. <th class="w100 fn-tar">采购基金(¥)</th>
  13. <th class="w100 fn-tar">买单消费(%)</th>
  14. <th class="w100 fn-tar">门店会员(%)</th>
  15. <th class="w80 fn-tac">升级</th>
  16. <th class="w80 fn-tar">会员数</th>
  17. <th class="w80 fn-tar">商家数</th>
  18. <th class="w140 fn-tac">更新时间</th>
  19. <th class="w60 fn-tac">状态</th>
  20. <th class="w240 fn-tac">删除</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. {foreach $lists as $vo}
  25. <tr>
  26. <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini sort" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
  27. <td><a href="{:url('vip.user/index',['vip_id'=>$vo.id])}" title="会员列表">{$vo.name}</a></td>
  28. <td class="fn-tar">{$vo.price}</td>
  29. <td class="fn-tar">¥{$vo.open_share_reward}</td>
  30. <td class="fn-tar">¥{$vo.open_queue_reward}</td>
  31. <td class="fn-tar">¥{$vo.fund}</td>
  32. <td class="fn-tar">{$vo.pay_share_reward}%</td>
  33. <td class="fn-tar">{$vo.pay_queue_reward}%</td>
  34. <td class="fn-tac">
  35. <a class="istop" url="{:url('vip.index/isAutoUp',['id'=>$vo.id])}" href="javascript:;" title="允许/禁止">
  36. {if $vo.is_auto_up}<span class="badge bg-green">允许</span>{else}<span class="badge">禁止</span>{/if}
  37. </a>
  38. </td>
  39. <td class="fn-tar">{$vo.open_vip_num}</td>
  40. <td class="fn-tar">{$vo.open_store_num}</td>
  41. <td class="fn-tac">{$vo.update_time|date='Y-m-d H:i'}</td>
  42. <td class="fn-tac">
  43. <span url="{:url('vip.index/isLock',['id'=>$vo.id])}" class="fn-cp act badge {$vo.is_lock?'':'bg-green'}">{$vo.is_lock?'锁定':'正常'}</span>
  44. </td>
  45. <td class="button-group">
  46. <a class="button win" href="javascript:;" url="{:url('vip.coupon/index',['id'=>$vo.id])}" title="优惠券"><i class="iconfont icon-discount"></i>优惠券</a>
  47. <a class="button" href="{:url('vip.index/edit',['id'=>$vo.id])}" title="编辑"><i class="iconfont icon-edit"></i>编辑</a>
  48. <a class="button isDel" url="{:url('vip.index/delete',['id'=>$vo.id])}" href="javascript:;" title="删除"><i class="iconfont icon-lajixiang"></i>删除</a>
  49. </td>
  50. </tr>
  51. {/foreach}
  52. </tbody>
  53. </table>
  54. {$lists|raw}
  55. <script type="text/javascript">
  56. Do('base', 'layer', function () {
  57. $('.isDel').isDel();
  58. $(".win").win();
  59. $(".act").actUrl();
  60. $(".sort").changeUrl({
  61. url:"{:url('vip.index/sort')}"
  62. });
  63. $('.istop').click(function () {
  64. var url = $(this).attr("url");
  65. parent.layer.confirm('确认要设置升级状态?',{ icon: 3,title: '友情提示' }, function (index) {
  66. $.getJSON(url, function (data) {window.location.reload();});
  67. parent.layer.close(index);
  68. });
  69. })
  70. })
  71. </script>