index.blade.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. @extends('vip.layouts')
  2. @section('seo_title')
  3. 足球赛事
  4. @endsection
  5. @section('content')
  6. <style>
  7. .layui-laydate-range {
  8. width: auto;
  9. }
  10. .layui-form-switch em {
  11. width: auto;
  12. }
  13. .layui-form-switch {
  14. width: 44px;
  15. line-height: 23px;
  16. }
  17. .layui-form-item .checkbox {
  18. width: auto;
  19. }
  20. </style>
  21. <script type="text/html" id="status">
  22. @if(checkRriv('/admin/matchcode/index'))<input type="checkbox" name="status" value="@{{d.id}}" lay-skin="switch" lay-text="进行中|已结束" lay-filter="openStatus" @{{ d.status == '1' ? 'checked' : '' }}>@endif
  23. </script>
  24. <div class="layui-row">
  25. <div class="layui-col-xs12">
  26. <form class="layui-form rewrite" eventType="eventForm" action="">
  27. <div class="layui-form-item">
  28. <div class="layui-inline">
  29. <label class="layui-form-label">{{ trans('matchcode.sousuo') }}</label>
  30. <div class="layui-input-inline">
  31. <input type="text" name="game_type" id="game_type" eventType="event-query" value="{{ $game_type }}" lay-verify="required" autocomplete="off" class="layui-input">
  32. </div>
  33. <div class="layui-input-inline checkbox">
  34. <input type="checkbox" name="sureblur" id="form_sureblur" lay-skin="switch" lay-text="精确|模糊" @if(!isset($sureblurs) || $sureblurs=='on') checked @endif class="layui-input" eventType=event-query>
  35. <input type="hidden" name="sureblurs" id="form_sureblurs" lay-verify="required" autocomplete="off" class="layui-input" eventType=event-query value="{{ $sureblurs }}">
  36. </div>
  37. </div>
  38. <div class="layui-inline">
  39. <a class="layui-btn layui-btn-sm lay-btn-diy" data-type="reload" eventType="event-query-submit" style="opacity: 1; pointer-events: auto;">提交</a>
  40. <a class="layui-btn layui-btn-sm layui-btn-normal reset" data-type="reload" style="opacity: 1; pointer-events: auto;">重置</a>
  41. <a class="layui-btn layui-btn-sm layui-btn-green set" data-type="reload" style="opacity: 1; pointer-events: auto;"><i class="layui-icon">ဂ</i></a>
  42. @if(checkRriv('/admin/matchcode/addmatchcode'))<a href="/admin/matchcode/addmatchcode" class="layui-btn layui-btn-sm ">添加</a>@endif
  43. @if(checkRriv('/admin/matchcode/delete'))<a href="javascript:delWin('/admin/matchcode/delete?id=');" class="layui-btn layui-btn-sm layui-btn-danger">删除</a>@endif
  44. </div>
  45. </div>
  46. </form>
  47. </div>
  48. </div>
  49. <script>
  50. $(function () {
  51. $('body').on('click', 'a[eventtype="event-delete"]', function () {
  52. var span = $(this).prev();
  53. var id = span.attr('data-id');
  54. // openWin('/admin/system/AddMenu','{{ trans("menu.menu_edit")}}','600px','500px',id);
  55. })
  56. $('body').on('click','#form_sureblur~.layui-form-switch',function(){
  57. var sus = $('#form_sureblur').next().text();
  58. if(sus=='精确'){
  59. $('#form_sureblurs').val('on');
  60. }else{
  61. $('#form_sureblurs').val('off');
  62. }
  63. })
  64. })
  65. </script>
  66. @push('dataTableJS')
  67. /*var active = {
  68. reload: function(){
  69. //执行重载
  70. table.reload('{{ $dataId }}', {
  71. page: {
  72. curr: 1 //重新从第 1 页开始
  73. }
  74. ,where: {
  75. account:$("#form_account").val(),
  76. register_ip:$('#form_register_ip').val(),
  77. last_ip:$('#form_last_ip').val(),
  78. register_url:$('#form_register_url').val(),
  79. last_url:$('#form_last_url').val(),
  80. regist_startime:$('#form_regist_startime').val(),
  81. regist_endtime:$('#form_regist_endtime').val(),
  82. statuss:$('#form_statuss').val(),
  83. cash_small:$('#form_cash_small').val(),
  84. cash_big:$('#form_cash_big').val(),
  85. sureblur:$('.layui-form-switch').text(),
  86. }
  87. });
  88. }
  89. };
  90. $('.lay-btn-diy').on('click', function(){
  91. var type = $(this).data('type');
  92. active[type] ? active[type].call(this) : '';
  93. });*/
  94. //重置表单
  95. $('.reset').on('click',function(){
  96. $('input').val('');
  97. $('#form_statuss').val('');
  98. //var type = $(this).data('type');
  99. //active[type] ? active[type].call(this) : '';
  100. });
  101. //刷新表单
  102. $('.set').on('click',function(){
  103. //var type = $(this).data('type');
  104. //active[type] ? active[type].call(this) : '';
  105. });
  106. @endpush
  107. @include('vip.datatable')
  108. @endsection