index.blade.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. @extends('base.base')
  2. @section('base')
  3. <div class="main-panel">
  4. <div class="content-wrapper">
  5. <div class="page-header">
  6. <h3 class="page-title">{{ __('VIP 等级配置') }}</h3>
  7. </div>
  8. <div class="card">
  9. <div class="card-body">
  10. <button class="btn btn-sm btn-success mb-2" onclick="add()">新增等级</button>
  11. <table class="table table-bordered">
  12. <thead>
  13. <tr>
  14. <th>ID</th>
  15. <th>充值金额</th>
  16. <th>救济金金额</th>
  17. <th>VIP等级</th>
  18. <th>最小充值</th>
  19. <th>提现限额</th>
  20. <th>茶叶次数</th>
  21. <th>提现费率百分比</th>
  22. <th>签到系数</th>
  23. <th>客服类型 1 普通 2 一对一</th>
  24. <th>商城充值额外赠送百分比</th>
  25. <th>Superball每日赠送球数</th>
  26. <th>生日礼价值</th>
  27. <th>操作</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. @foreach($list as $row)
  32. <tr>
  33. <td>{{ $row->ID }}</td>
  34. <td>{{ $row->Recharge }}</td>
  35. <td>{{ round($row->GrantNum/\App\Http\helper\NumConfig::NUM_VALUE, 2) }}</td>
  36. <td>{{ $row->VIP }}</td>
  37. <td>{{ $row->MinRecharge }}</td>
  38. <td>{{ $row->WithdrawLimit }}</td>
  39. <td>{{ $row->DailyWithdraws }}</td>
  40. <td>{{ $row->WithdrawFeeRate }} %</td>
  41. <td>{{ $row->SignAlpha }}</td>
  42. <td>{{ $row->CustomServiceType }}</td>
  43. <td>{{ $row->RechargeExtraSendRate }} %</td>
  44. <td>{{ $row->SuperballNum }}</td>
  45. <td>{{ $row->BirthdayValue }}</td>
  46. <td>
  47. <button class="btn btn-sm btn-primary" onclick="edit({{ $row->ID }})">{{ __('修改') }}</button>
  48. <button class="btn btn-sm btn-danger" onclick="del({{ $row->ID }})">{{ __('删除') }}</button>
  49. </td>
  50. </tr>
  51. @endforeach
  52. </tbody>
  53. </table>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <script>
  59. function add(){
  60. layer.open({
  61. type:2,shade:0.8,area:['50%','70%'],
  62. content:'/admin/protect-level/add'
  63. });
  64. }
  65. function edit(id){
  66. layer.open({
  67. type:2,shade:0.8,area:['50%','70%'],
  68. content:'/admin/protect-level/edit/'+id
  69. });
  70. }
  71. function del(id){
  72. myConfirm('确认删除?', function(){
  73. myRequest('/admin/protect-level/delete/'+id,'post',{},function(){
  74. layer.msg('已删除'); location.reload();
  75. });
  76. });
  77. }
  78. </script>
  79. @endsection