records.blade.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. @extends('layouts.base')
  2. @section('title', INTEGRAL_NAME . '记录')
  3. @section('content')
  4. <link href="{{config('app.webPath')."/static/yunshop/balance/balance.css"}}" media="all" rel="stylesheet" type="text/css">
  5. <div id="member-blade" class="rightlist">
  6. <div class="panel panel-info">
  7. <div class="panel-heading">筛选</div>
  8. <div class="panel-body">
  9. <form action="" method="get" class="form-horizontal" role="form" id="form1">
  10. <input type="hidden" name="c" value="site" />
  11. <input type="hidden" name="a" value="entry" />
  12. <input type="hidden" name="m" value="yun_shop" />
  13. <input type="hidden" name="do" value="5201" />
  14. <input type="hidden" name="route" value="plugin.integral.Backend.Modules.Integral.Controllers.records" id="route" />
  15. <div style="display: flex;flex-direction: row;flex-wrap: wrap">
  16. <div style="width: 15%;margin-left: 2%">
  17. <input class="form-control" name="search[member]" type="text" value="{{ $search['member'] ?? ''}}" placeholder="会员ID/会员姓名/昵称/手机号">
  18. </div>
  19. <div style="width: 15%;margin-left: 2%">
  20. <select name="search[level_id]" class="form-control">
  21. <option value="" selected>会员等级</option>
  22. @foreach($memberLevel as $level)
  23. <option value="{{ $level['id'] }}" @if($search['level_id'] == $level['id']) selected @endif>{{ $level['level_name'] }}</option>
  24. @endforeach
  25. </select>
  26. </div>
  27. <div style="width: 15%;margin-left: 2%">
  28. <select name="search[group_id]" class="form-control">
  29. <option value="" selected >会员分组</option>
  30. @foreach($memberGroup as $group)
  31. <option value="{{ $group['id'] }}" @if($search['group_id'] == $group['id']) selected @endif>{{ $group['group_name'] }}</option>
  32. @endforeach
  33. </select>
  34. </div>
  35. <div style="width: 15%;margin-left: 2%">
  36. <select name="search[source]" class="form-control">
  37. <option value="" selected >业务类型</option>
  38. @foreach($source as $key => $value)
  39. <option value="{{ $key }}" @if($search['source'] == $key) selected @endif>{{ $value}}</option>
  40. @endforeach
  41. </select>
  42. </div>
  43. <div style="width: 15%;margin-left: 2%">
  44. <select name="search[income_type]" class="form-control">
  45. <option value="" selected >收入/支出</option>
  46. <option value="1" @if($search['income_type'] == 1) selected @endif>收入</option>
  47. <option value="-1" @if($search['income_type'] == -1) selected @endif>支出</option>
  48. </select>
  49. </div>
  50. <div style="width: 50%;margin-left: 2%;display: flex;flex-direction: row;margin-top: 1%">
  51. <div style="width: 20%;">
  52. <select name='search[search_time]' class='form-control'>
  53. <option value='' @if(empty($search['search_time'])) selected @endif>不搜索</option>
  54. <option value='1' @if($search['search_time']==1) selected @endif >搜索</option>
  55. </select>
  56. </div>
  57. <div style="margin-left: 2%">
  58. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  59. 'starttime'=>date('Y-m-d H:i', strtotime($search['time']['start']) ?: strtotime('-1 month')),
  60. 'endtime'=>date('Y-m-d H:i',strtotime($search['time']['end']) ?: time()),
  61. 'start'=>0,
  62. 'end'=>0
  63. ], true) !!}
  64. </div>
  65. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  66. <div class="">
  67. <input type="hidden" name="token" value="{{$var['token']}}" />
  68. <button class="btn btn-success ">
  69. <i class="fa fa-search"></i>
  70. 搜索
  71. </button>
  72. <button type="button" name="export" value="1" id="export" class="btn btn-default">导出
  73. Excel
  74. </button>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </form>
  80. </div>
  81. </div>
  82. <div class="clearfix">
  83. <div class="panel panel-default">
  84. <div class="panel-body">
  85. <table class="table table-hover" style="overflow:visible;">
  86. <thead class="navbar-inner">
  87. <tr>
  88. <th style="width:8%;text-align: center;">时间</th>
  89. <th style="width:10%;text-align: center;">粉丝</th>
  90. <th style="width:10%;text-align: center;">会员</th>
  91. <th style="width:12%;text-align: center;">单号</th>
  92. <th style="width:10%;text-align: center;">业务类型</th>
  93. <th style="width:15%;text-align: center;">收入/支出</th>
  94. <th style="width:15%;text-align: center;">{{ INTEGRAL_NAME }}</th>
  95. </tr>
  96. </thead>
  97. <tbody>
  98. @foreach ($pageList as $item)
  99. <tr style="text-align: center;">
  100. <td>{{ $item['created_at'] }}</td>
  101. <td>
  102. <a href="{{ yzWebUrl('member.member.detail',['id' => $item->uid]) }}">
  103. <img src="{{ yz_tomedia($item->member->avatar) }}" style="width:30px;height:30px;padding:1px;border:1px solid #ccc">
  104. <br>
  105. {{ $item->member->nickname }}
  106. </a>
  107. </td>
  108. <td>
  109. {{ $item->member->realname }}
  110. <br />
  111. {{ $item->member->mobile }}
  112. </td>
  113. <td>{{ $item->order_sn }}</td>
  114. <td>{{ $item->source_name }}</td>
  115. <td>{{ $item->change }}</td>
  116. <td>
  117. <label class="label label-danger">
  118. 可用:{{ $item->present ?? '0.00' }}
  119. </label>
  120. </td>
  121. </tr>
  122. @endforeach
  123. </tbody>
  124. </table>
  125. {!! $page !!}
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <script>
  131. $(function (){
  132. $('#export').click(function () {
  133. $('#route').val("plugin.integral.Backend.Modules.Integral.Controllers.records.export");
  134. $('#form1').submit();
  135. $('#route').val("plugin.integral.Backend.Modules.Integral.Controllers.records.index");
  136. });
  137. });
  138. </script>
  139. @endsection