launch-index.blade.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('首播审核'))
  4. @include('layouts.tabs')
  5. <style>
  6. select{width: 25%; height: 34px;}
  7. #saleravatar img{width: 200px; height: 200px;}
  8. </style>
  9. <div class='panel panel-default'>
  10. <form action="" method="post" class="form-horizontal" id="form1">
  11. <div class="panel panel-info">
  12. <div class="panel-body">
  13. <div class="form-group col-xs-12 col-sm-2">
  14. <input class="form-control" name="search[keyword]" id="" type="text"
  15. value="{{$search['keyword']}}" placeholder="会员ID/昵称/姓名/手机">
  16. </div>
  17. <div class="form-group col-xs-12 col-sm-2">
  18. <select name='search[is_adopt]' class='form-control'>
  19. <option value=''>状态</option>
  20. <option value='3' @if($search['is_adopt'] == 3) selected @endif>审核中</option>
  21. <option value='1' @if($search['is_adopt'] == 1) selected @endif>已通过</option>
  22. <option value='2' @if($search['is_adopt'] == 2) selected @endif>已驳回</option>
  23. </select>
  24. </div>
  25. <div class="form-group col-xs-12 col-sm-8">
  26. <div class="col-sm-3">
  27. <label class='radio-inline'>
  28. <input type='checkbox' value='1' name='search[is_time]'
  29. @if($search['is_time'] == '1') checked @endif>时间
  30. </label>
  31. </div>
  32. {!! app\common\helpers\DateRange::tplFormFieldDateRange(
  33. 'search[time]',
  34. [
  35. 'starttime'=>$search['time']['start'],
  36. 'endtime'=>$search['time']['end'],
  37. 'start'=>$search['time']['start'],
  38. 'end'=>$search['time']['end']
  39. ],
  40. true
  41. ) !!}
  42. </div>
  43. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  44. <div class="">
  45. <button class="btn btn-success "><i class="fa fa-search"></i> 搜索</button>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </form>
  51. </div>
  52. <div class='panel panel-default'>
  53. <div class='panel-heading'>
  54. <div>
  55. 累计申请数量:{{$count}}个 通过数量:{{$adopt}}个 待审核数量:{{$wait}}个 已驳回数量:{{$refuse}}个
  56. </div>
  57. </div>
  58. <div class='panel-body'>
  59. <table class="table table-hover" style="overflow:visible;">
  60. <thead>
  61. <tr>
  62. <th style='width:6%;'>ID</th>
  63. <th style='width:15%;'>申请时间</th>
  64. <th style='width:8%;'>会员</th>
  65. <th style='width:10%;'>真实姓名</th>
  66. <th style='width:10%;'>手机号</th>
  67. <th style='width:10%;'>详情</th>
  68. <th style='width:10%;'>状态</th>
  69. <th style='width:10%;'>操作</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. @foreach($list['data'] as $row)
  74. <tr>
  75. <td>{{$row['id']}}</td>
  76. <td>{{$row['created_at']}}</td>
  77. <td>
  78. <a target="_blank"
  79. href="{{yzWebUrl('member.member.detail',['id'=>$row['member_id']])}}">
  80. <img src="{{tomedia($row['avatar'])}}"
  81. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  82. </br>
  83. {{$row['nickname']}}
  84. </a>
  85. </td>
  86. <td>{{$row['realName']}}</td>
  87. <td>{{$row['mobile']}}</td>
  88. <td><a href="{{yzWebUrl('plugin.room.admin.anchor-manage.launch-detail', ['id' => $row['id']])}}" title="查看详情"> 查看详情</a></td>
  89. <td>{{$row['adopt_name']}}</td>
  90. <td>
  91. <div class="btn-group btn-group-sm" @if($row['is_adopt'] == 0)>
  92. <a onclick="examine({{$row['id']}},1)" title="通过"> 通过</a>
  93. <a onclick="examine({{$row['id']}},2)" title="驳回"> 驳回</a>
  94. </div @endif>
  95. </td>
  96. </tr>
  97. @endforeach
  98. </tbody>
  99. </table>
  100. {!! $pager !!}
  101. </div>
  102. </div>
  103. <div style="width:100%;height:150px;"></div>
  104. <script language='javascript'>
  105. function examine(id, value) {
  106. $.ajax({
  107. url: "{!! yzWebUrl('plugin.room.admin.anchor-manage.examine-launch') !!}",
  108. type: "post",
  109. data: {id: id, value: value},
  110. cache: false,
  111. success: function (data) {
  112. console.log(data);
  113. location.reload();
  114. },
  115. error: function (data) {
  116. alert(data.msg);
  117. }
  118. })
  119. }
  120. </script>
  121. @endsection