change.blade.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. </ul>
  10. </div>
  11. <form action="" method="post" class="form-horizontal" id="form1">
  12. <div class="right-addbox">
  13. <div class="panel panel-info">
  14. <div class="panel-body">
  15. <div class="form-group col-xs-12 col-sm-2">
  16. <input class="form-control" name="search[member_id]" id="" type="text"
  17. value="{{$search['member_id']}}" placeholder="请输入会员ID">
  18. </div>
  19. <div class="form-group col-xs-12 col-sm-2">
  20. <input class="form-control" name="search[keyword]" id="" type="text"
  21. value="{{$search['keyword']}}" placeholder="会员昵称/姓名/手机">
  22. </div>
  23. <div class="form-group col-xs-12 col-sm-2">
  24. <select name='search[type]' class='form-control'>
  25. <option value='0'>变动类型</option>
  26. @foreach($type as $name => $row)
  27. <option value={{$name}} @if($search['type'] == $name) selected @endif>{{$row}}</option>
  28. @endforeach
  29. </select>
  30. </div>
  31. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  32. <div class="">
  33. <select name='search[level_id]' class='form-control'>
  34. <option value=''>等级不限</option>
  35. <option value='-1'>{{$default}}</option>
  36. @foreach($levels as $level)
  37. <option value='{{$level->id}}'
  38. @if($search['level_id'] == $level->id)
  39. selected
  40. @endif
  41. >{{$level->level_name}}</option>
  42. @endforeach
  43. </select>
  44. </div>
  45. </div>
  46. <div class="form-group col-xs-12 col-sm-8">
  47. <div class="col-sm-2">
  48. <label class='radio-inline'>
  49. <input type='checkbox' value='1' name='search[is_time]'
  50. @if($search['is_time'] == '1') checked @endif>是否搜索时间
  51. </label>
  52. </div>
  53. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  54. 'starttime'=>$search['time']['start'],
  55. 'endtime'=>$search['time']['end'],
  56. 'start'=>$search['time']['start'],
  57. 'end'=>$search['time']['end']
  58. ], true) !!}
  59. </div>
  60. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  61. <div class="">
  62. <button type="button" id="search" class="btn btn-success "><i class="fa fa-search"></i>搜索</button>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </form>
  69. <div class="clearfix">
  70. <div class='panel panel-default'>
  71. <div class='panel-body table-responsive'>
  72. <table class="table table-hover" style="overflow:visible;">
  73. <thead>
  74. <tr>
  75. <th style='width:8%;text-align: center;'>创建时间</th>
  76. <th style='width:6%;text-align: center;'>会员ID</th>
  77. <th style='width:8%;text-align: center;'>会员信息</th>
  78. <th style='width:8%;text-align: center;'>会员等级</th>
  79. <th style='width:6%;text-align: center;'>变动类型</th>
  80. <th style='width:8%;text-align: center;'>变动份数</th>
  81. <th style='width:8%;text-align: center;'>变动后份数</th>
  82. <th style='width:8%;text-align: center;'>备注</th>
  83. </tr>
  84. </thead>
  85. <tbody>
  86. @if (!empty($list['data']))
  87. @foreach($list['data'] as $row)
  88. <tr>
  89. <td style='text-align: center;'>{{$row['created_at']}}</td>
  90. <td style='text-align: center;'>{{$row['member_id']}}</td>
  91. <td style='text-align: center;'>
  92. <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>
  93. </td>
  94. <td style='text-align: center;'>
  95. {{$row['level_name']?:$default}}
  96. </td>
  97. <td style='text-align: center;'>
  98. {{$row['type_name']}}
  99. </td>
  100. <td style='text-align: center;'>
  101. @if($row['nums'] > 0)+@endif{{$row['nums']}}
  102. </td>
  103. <td style='text-align: center;'>
  104. {{$row['current_nums']}}
  105. </td>
  106. <td style='text-align: center;'>
  107. {{$row['remark']}}
  108. </td>
  109. </tr>
  110. @endforeach
  111. @else
  112. <td colspan="8" style="color: red">没有更多数据了!</td>
  113. @endif
  114. </tbody>
  115. </table>
  116. {!! $pager !!}
  117. </div>
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. <script language="javascript">
  123. $(function () {
  124. $('#search').click(function () {
  125. $('#form1').attr('action', '{!! yzWebUrl('plugin.share-partner.admin.change.index') !!}');
  126. $('#form1').submit();
  127. });
  128. });
  129. </script>
  130. @endsection