protect_config_info.blade.php 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <div class="main-panel">
  5. <div class="content-wrapper">
  6. <div class="page-header">
  7. <h3 class="page-title">
  8. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  9. <i class="mdi mdi-shield-check"></i>
  10. </span>
  11. 触底保护机制
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">系统管理</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">触底保护机制配置管理</li>
  17. </ol>
  18. </nav>
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-12 grid-margin stretch-card">
  22. <div class="card">
  23. <div class="card-body">
  24. <h4 class="card-title">触底保护配置列表</h4>
  25. <table class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th>ID</th>
  29. <th>提充比小于(%)</th>
  30. <th>流水/充值比例上限值</th>
  31. <th>单笔充值金额/持有下限参数</th>
  32. <th>大奖上限百分比</th>
  33. <th>大奖下限百分比</th>
  34. <th>最小充值</th>
  35. <th>最大充值</th>
  36. <th>充值金额计算方式</th>
  37. <th>状态</th>
  38. <th>操作</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. @foreach($list as $k=>$v)
  43. <tr>
  44. <td>{{ $v->ID }}</td>
  45. <td>{{ $v->TradeRateMax }}</td>
  46. <td>{{ $v->TurnoverRechargeRatio }}</td>
  47. <td>{{ $v->RechargeGoldRatio }}</td>
  48. <td>{{ $v->RewardMaxPercent }}</td>
  49. <td>{{ $v->RewardMinPercent }}</td>
  50. <td>{{ $v->RechargeMin }}</td>
  51. <td>{{ $v->RechargeMax }}</td>
  52. <td>{{ $v->RechargeCalModel == 0 ? '单笔' : '平均值' }}</td>
  53. <td>
  54. @if ($v->Status == 1)
  55. 生效
  56. @else
  57. 无效
  58. @endif
  59. </td>
  60. <td>
  61. <button class="btn btn-sm btn-gradient-dark" onclick="update({{$v->ID}})">修改</button>
  62. </td>
  63. </tr>
  64. @endforeach
  65. </tbody>
  66. </table>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. <script>
  74. function update(ID) {
  75. var page = layer.open({
  76. type: 2,
  77. title: '修改保护配置',
  78. shadeClose: true,
  79. offset: 't',
  80. shade: 0.8,
  81. area: ['80%', '90%'],
  82. content: '/admin/Protect/protect_config_info_update/'+ ID
  83. });
  84. }
  85. </script>
  86. @endsection