records.blade.php 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. @extends('layouts.base')
  2. @section('title', '积分明细')
  3. @section('content')
  4. <link href="{{static_url('yunshop/balance/balance.css')}}" media="all" rel="stylesheet" type="text/css"/>
  5. <style>
  6. .toggle{
  7. white-space:initial;
  8. overflow:visible;
  9. }
  10. #text{
  11. width:100%;
  12. }
  13. </style>
  14. <div id="recharge-blade" class="rightlist">
  15. <div class="panel panel-info">
  16. <div class="right-titpos">
  17. @include('layouts.tabs')
  18. </div>
  19. <div class="panel-heading">筛选</div>
  20. <div class="panel-body">
  21. <form action="" method="get" class="form-horizontal" role="form" id="form1">
  22. <input type="hidden" name="c" value="site" />
  23. <input type="hidden" name="a" value="entry" />
  24. <input type="hidden" name="m" value="yun_shop" />
  25. <input type="hidden" name="do" value="5201" />
  26. <input type="hidden" name="route" value="point.records.index" id="route" />
  27. <div style="display: flex;flex-direction: row;flex-wrap: wrap">
  28. <div style="width: 15%;margin-left: 2%">
  29. <input class="form-control" name="search[member]" type="text" value="{{ $search['member'] ?? ''}}" placeholder="会员ID/会员姓名/昵称/手机号">
  30. </div>
  31. <div style="width: 15%;margin-left: 2%">
  32. <select name="search[level_id]" class="form-control">
  33. <option value="" selected>会员等级</option>
  34. @foreach($memberLevel as $level)
  35. <option value="{{ $level['id'] }}" @if($search['level_id'] == $level['id']) selected @endif>{{ $level['level_name'] }}</option>
  36. @endforeach
  37. </select>
  38. </div>
  39. <div style="width: 15%;margin-left: 2%">
  40. <select name="search[group_id]" class="form-control">
  41. <option value="" selected >会员分组</option>
  42. @foreach($memberGroup as $group)
  43. <option value="{{ $group['id'] }}" @if($search['group_id'] == $group['id']) selected @endif>{{ $group['group_name'] }}</option>
  44. @endforeach
  45. </select>
  46. </div>
  47. <div style="width: 15%;margin-left: 2%">
  48. <select name="search[source]" class="form-control">
  49. <option value="" selected >业务类型</option>
  50. @foreach($sourceComment as $key => $value)
  51. <option value="{{ $key }}" @if($search['source'] == $key) selected @endif>{{ $value}}</option>
  52. @endforeach
  53. </select>
  54. </div>
  55. <div style="width: 15%;margin-left: 2%">
  56. <select name="search[income_type]" class="form-control">
  57. <option value="" selected >收入/支出</option>
  58. <option value="1" @if($search['income_type'] == 1) selected @endif>收入</option>
  59. <option value="-1" @if($search['income_type'] == -1) selected @endif>支出</option>
  60. </select>
  61. </div>
  62. <div style="width: 50%;margin-left: 2%;display: flex;flex-direction: row;margin-top: 1%">
  63. <div style="width: 20%;">
  64. <select name='search[search_time]' class='form-control'>
  65. <option value='' @if(empty($search['search_time'])) selected @endif>不搜索</option>
  66. <option value='1' @if($search['search_time']==1) selected @endif >搜索</option>
  67. </select>
  68. </div>
  69. <div style="margin-left: 2%">
  70. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  71. 'starttime'=>date('Y-m-d H:i', strtotime($search['time']['start']) ?: strtotime('-1 month')),
  72. 'endtime'=>date('Y-m-d H:i',strtotime($search['time']['end']) ?: time()),
  73. 'start'=>0,
  74. 'end'=>0
  75. ], true) !!}
  76. </div>
  77. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  78. <div style="width: 200px">
  79. <input type="hidden" name="token" value="{{$var['token']}}" />
  80. <button class="btn btn-success ">
  81. <i class="fa fa-search"></i>
  82. 搜索
  83. </button>
  84. <button type="button" name="export" value="1" id="export" class="btn btn-primary excel back ">
  85. 导出 EXCEL
  86. </button>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </form>
  92. </div>
  93. </div>
  94. <div class="panel panel-default">
  95. <div class="panel-heading">总数:{{ $pageList->total() }}</div>
  96. <div class="panel-body ">
  97. <table class="table table-hover">
  98. <thead class="navbar-inner">
  99. <tr>
  100. <th style='width:5%; text-align: center;'>ID</th>
  101. <th style='width:5%; text-align: center;'>会员ID</th>
  102. <th style='width:8%; text-align: center;'>粉丝</th>
  103. <th style='width:8%; text-align: center;'>会员信息<br/>手机号</th>
  104. <th style='width:10%; text-align: center;'>时间</th>
  105. <th style='width:12%; text-align: center;'>业务类型</th>
  106. <th style='width:10%; text-align: center;'>积分</th>
  107. <th style='width:10%; text-align: center;'>收入/支出</th>
  108. <th style='width:12%; text-align: center;'>备注</th>
  109. </tr>
  110. </thead>
  111. @foreach($pageList as $log)
  112. <tr style="text-align: center;">
  113. <td>{{ $log->id }}</td>
  114. <td>{{ $log->member->uid }}</td>
  115. <td>
  116. <a href="{{ yzWebUrl('member.member.detail', array('id' => $log->member->uid)) }}">
  117. <img src='{{ $log->member->avatar}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc'/>
  118. <br/>
  119. {{ $log->member->nickname}}
  120. </a>
  121. </td>
  122. <td>
  123. {{ $log->member->realname }}
  124. <br/>
  125. {{ $log->member->mobile }}
  126. </td>
  127. <td>{{ $log->created_at }}</td>
  128. <td>
  129. <span class='label label-info'>{{$log->source_name}}</span>
  130. </td>
  131. <td>
  132. <span class='label label-danger'>积分:{{ $log->after_point }}</span><br />
  133. </td>
  134. <td><span class='label label-success'>{{ $log->point }}</span></td>
  135. <td class="remark"><span class="span" style="display:inline-block;width:80%;overflow: hidden;text-overflow: ellipsis;" >{{ $log->remark }}</span><a class="a" style="color:#333;"><i class="iconfont icon-down i" style="font-size:16px;" ></i></a></td>
  136. </tr>
  137. @endforeach
  138. </table>
  139. {!! $page !!}
  140. </div>
  141. </div>
  142. </div>
  143. <script>
  144. $('.remark').each(function(i){
  145. $(this).click(function(){
  146. $(this).children('.span').toggleClass('toggle')
  147. let a=$(this).children('.a').children('.i').attr('class').split(' ')
  148. if(a.includes('icon-down')){
  149. $(this).children('.a').children('.i').removeClass('icon-down').addClass('icon-up')
  150. }else if(a.includes('icon-up')){
  151. $(this).children('.a').children('.i').removeClass('icon-up').addClass('icon-down')
  152. }
  153. })
  154. })
  155. $(function () {
  156. $('#export').click(function(){
  157. $('#route').val("point.export.index");
  158. $('#form1').submit();
  159. $('#route').val("point.records.index");
  160. });
  161. });
  162. </script>
  163. @endsection