point_log.blade.php 9.0 KB

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