point_member.blade.php 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. @extends('layouts.base')
  2. @section('content')
  3. <link href="{{static_url('yunshop/balance/balance.css')}}" media="all" rel="stylesheet" type="text/css"/>
  4. <div id="member-blade" class="rightlist">
  5. <!-- 新增加右侧顶部三级菜单 -->
  6. <div class="right-titpos">
  7. @include('layouts.tabs')
  8. </div>
  9. <!-- 新增加右侧顶部三级菜单结束 -->
  10. <div class="panel panel-info">
  11. <div class="panel-heading">筛选</div>
  12. <div class="panel-body">
  13. <form action="" method="get" class="form-horizontal" role="form" id="form1">
  14. <input type="hidden" name="c" value="site" />
  15. <input type="hidden" name="a" value="entry" />
  16. <input type="hidden" name="m" value="yun_shop" />
  17. <input type="hidden" name="do" value="5201" />
  18. <input type="hidden" name="route" value="finance.point-member.index" id="route" />
  19. <div class="form-group col-sm-11 col-lg-11 col-xs-12">
  20. <div class="">
  21. <div class='input-group'>
  22. <!--<div class='input-group-addon'>会员信息</div>-->
  23. <input class="form-control" name="search[realname]" type="text"
  24. value="{{ $search['realname'] ?? ''}}" placeholder="会员ID/会员姓名/昵称/手机号">
  25. <div class='form-input'>
  26. <p class="input-group-addon">会员等级</p>
  27. <select name="search[level]" class="form-control">
  28. <option value="" selected>不限</option>
  29. @foreach($memberLevel as $level)
  30. <option value="{{ $level['id'] }}"
  31. @if($search['level'] == $level['id']) selected @endif>{{ $level['level_name'] }}</option>
  32. @endforeach
  33. </select>
  34. </div>
  35. <div class='form-input'>
  36. <p class="input-group-addon">会员分组</p>
  37. <select name="search[groupid]" class="form-control">
  38. <option value="" selected>不限</option>
  39. @foreach($memberGroup as $group)
  40. <option value="{{ $group['id'] }}"
  41. @if($search['groupid'] == $group['id']) selected @endif>{{ $group['group_name'] }}</option>
  42. @endforeach
  43. </select>
  44. </div>
  45. <div class='form-input'>
  46. <p class="input-group-addon price">积分区间</p>
  47. <input class="form-control price" name="search[min_credit2]" type="text"
  48. value="{{ $search['min_credit2'] ?? ''}}" placeholder="最小">
  49. <p class="line">—</p>
  50. <input class="form-control price" name="search[max_credit2]" type="text"
  51. value="{{ $search['max_credit2'] ?? ''}}" placeholder="最大">
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  57. <div class="">
  58. <input type="hidden" name="token" value="{{$var['token']}}" />
  59. <button class="btn btn-success ">
  60. <i class="fa fa-search"></i>
  61. 搜索
  62. </button>
  63. <button type="button" name="export" value="1" id="export" class="btn btn-primary excel back ">
  64. 导出 EXCEL
  65. </button>
  66. </div>
  67. </div>
  68. </form>
  69. </div>
  70. </div>
  71. <div class="clearfix">
  72. <div class="panel panel-default">
  73. <div class="panel-heading">
  74. <span>总数:{{ $memberList->total() }}</span>
  75. &nbsp&nbsp&nbsp&nbsp
  76. <span>积分总合计:{{ $amount }}</span>
  77. </div>
  78. <div class="panel-body">
  79. <table class="table table-hover" style="overflow:visible">
  80. <thead class="navbar-inner">
  81. <tr>
  82. <th style='width:6%; text-align: center;'>会员ID</th>
  83. <th style='width:8%; text-align: center;'>粉丝</th>
  84. <th style='width:10%'>姓名<br/>手机号码</th>
  85. <th style='width:8%'>等级</th>
  86. <th style='width:8%'>分组</th>
  87. <th style='width:10%'>积分</th>
  88. <th style='width:15%'>操作</th>
  89. </tr>
  90. </thead>
  91. <tbody>
  92. @foreach($memberList as $list)
  93. <tr>
  94. <td style="text-align: center;">{{ $list->uid }}</td>
  95. <td style="text-align: center;">
  96. @if($list->avatar)
  97. <img src='{{ $list->avatar }}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc'/><br/>
  98. @endif
  99. {{ $list->nickname ?? ''}}
  100. </td>
  101. <td>{{ $list->realname }}<br/>{{ $list->mobile }}</td>
  102. <td>
  103. {{ $list->yzMember->level->level_name ?? '默认会员等级' }}
  104. </td>
  105. <td>
  106. {{ $list->yzMember->group->group_name ?? '默认会员分组' }}
  107. </td>
  108. <td>
  109. <label class="label label-danger">积分:{{ $list->credit1 }}</label>
  110. </td>
  111. <td>
  112. <a class='btn btn-default'
  113. style="margin-bottom: 2px"
  114. href="{{ yzWebUrl('point.recharge.index', array('id' => $list->uid)) }}">充值积分</a>
  115. @if($transfer_love)
  116. <a class='btn btn-default'
  117. href="{{ yzWebUrl('finance.point-love.index', array('member_id' => $list->uid)) }}"
  118. style="margin-bottom: 2px">转出设置</a>
  119. @endif
  120. <a class='btn btn-default'
  121. href="{{ yzWebUrl('point.records.index', array('search' => ['member_id' => $list->uid])) }}"
  122. style="margin-bottom: 2px">积分明细</a>
  123. </td>
  124. </tr>
  125. @endforeach
  126. </tbody>
  127. </table>
  128. {!! $page !!}
  129. </div>
  130. </div>
  131. </div>
  132. </div>
  133. <script>
  134. $(function () {
  135. $('#export').click(function(){
  136. $('#route').val("point.member-export.index");
  137. $('#form1').submit();
  138. $('#route').val("finance.point-member.index");
  139. });
  140. });
  141. </script>
  142. @endsection