bonus.blade.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', '会员分红份数')
  4. <div class="w1200 ">
  5. <div class=" rightlist ">
  6. <div class="right-titpos">
  7. <ul class="add-snav">
  8. <li class="active"><a href="#">会员分红份数</a></li>
  9. <a class="btn btn-primary" href="{!! yzWebUrl('plugin.share-partner.admin.bonus.add') !!}"><i class="fa fa-plus"></i> 添加会员</a>
  10. </ul>
  11. </div>
  12. <form action="" method="post" class="form-horizontal" id="form1">
  13. <div class="right-addbox">
  14. <div class="panel panel-info">
  15. <div class="panel-body">
  16. <div class="form-group col-xs-12 col-sm-2">
  17. <input class="form-control" name="search[member_id]" id="" type="text"
  18. value="{{$search['member_id']}}" placeholder="请输入会员ID">
  19. </div>
  20. <div class="form-group col-xs-12 col-sm-2">
  21. <input class="form-control" name="search[keyword]" id="" type="text"
  22. value="{{$search['keyword']}}" placeholder="会员昵称/姓名/手机">
  23. </div>
  24. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  25. <div class="">
  26. <button type="button" id="search" class="btn btn-success "><i class="fa fa-search"></i>搜索</button>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </form>
  33. <div class="clearfix">
  34. <div class='panel panel-default'>
  35. <div class='panel-body table-responsive'>
  36. <table class="table table-hover" style="overflow:visible;">
  37. <thead>
  38. <tr>
  39. <th style='width:10%;text-align: center;'>会员ID</th>
  40. <th style='width:8%;text-align: center;'>会员信息</th>
  41. <th style='width:8%;text-align: center;'>会员等级</th>
  42. <th style='width:8%;text-align: center;'>分红份数</th>
  43. <th style='width:8%;text-align: center;'>操作</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @if (!empty($list))
  48. @foreach($list as $row)
  49. <tr>
  50. <td style='text-align: center;'>{{$row['member_id']}}</td>
  51. <td style='text-align: center;'>
  52. <a href="{!! yzWebUrl('member.member.detail', ['id'=>$row['member_id']]) !!}"><img src="{{tomedia($row['avatar'])}}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc"><BR>{{$row['nickname']}}</a>
  53. </td>
  54. <td style='text-align: center;'>
  55. {{$row['level_name']?:$default}}
  56. </td>
  57. <td style='text-align: center;'>
  58. {{$row['bonus_nums']}}
  59. </td>
  60. <td style='text-align: center;'>
  61. <a class='btn btn-default' href="{{yzWebUrl("plugin.share-partner.admin.bonus.recharge", ['id'=>$row['id']])}}"
  62. >充值</a>
  63. </td>
  64. </tr>
  65. @endforeach
  66. @else
  67. <td colspan="5" style="color: red">没有更多数据了!</td>
  68. @endif
  69. </tbody>
  70. </table>
  71. {!! $pager !!}
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <script language="javascript">
  78. $(function () {
  79. $('#search').click(function () {
  80. $('#form1').attr('action', '{!! yzWebUrl('plugin.share-partner.admin.bonus.index') !!}');
  81. $('#form1').submit();
  82. });
  83. });
  84. </script>
  85. @endsection