@extends('vip.layouts')
@section('seo_title')
    网球赛事
@endsection
@section('content')
   
    <script type="text/html" id="newtime">
      @{{#if(d.match_id!=null){ }}
        <span>@{{ d.match_id}}</span>
      @{{#} }}<br>
      @{{#if(d.saisname!=null){ }}
        <span>@{{ d.saisname}}</span>
      @{{#} }}
    </script>

    <script type="text/html" id="matchscore"> 
            <input type="text" style="width:30px;heigth:20px" id="home_player_score@{{d.match_id}}" name="home_player_score" value="@{{d.manual_result.all.home}}" readonly="readonly">
            <input type="text" style="width:30px;heigth:20px" id="guest_player_score@{{d.match_id}}" name="guest_player_score" value="@{{d.manual_result.all.guest}}" readonly="readonly">
            <input type="hidden" style="width:30px;heigth:20px" id="match_status@{{d.match_id}}" name="guest_score" value="@{{d.status}}">
            <!--
            <button class="layui-icon" onclick="inputscore(@{{d.match_id}})"><h6>提交</h6></button>-->
    </script>

    <script type="text/html" id="dsnum">
        <span><a href="/admin/SoccerNoteList/notelist?type=wq&match_id=@{{d.match_id}}&game_code=wq">@{{ d.numsim}}</a></span>
    </script>

    <script type="text/html" id="csnum">
        <span><a href="/admin/SoccerStringNoteList/notelist?match_id=@{{d.match_id}}&game_code=wq">@{{ d.numstr}}</a></span>
    </script>

    <script type="text/html" id="statusmatch">
    @{{#if(d.status==0){ }}
        <span>未开始</span>
      @{{#} }}
      @{{#if(d.status==1){ }}
        <span>进行中</span>
      @{{#} }}
      @{{#if(d.status==2){ }}
        <span>已结束</span>
      @{{#} }}
      @{{#if(d.status==3){ }}
        <span>已结算</span>
      @{{#} }}
      @{{#if(d.status==4){ }}
        <span>已作废</span>
      @{{#} }}
      @{{#if(d.status==5){ }}
        <span>待结算</span>
      @{{#} }}
      @{{#if(d.status==6){ }}
        <span>已取消</span>
      @{{#} }}
    </script>

    <script type="text/html" id="operation">
        <a href="javascript:;" onclick="addResult(@{{d.match_id}})" class="layui-btn layui-btn-sm">赛事结果</a>
        @{{#if(d.status==0 || d.status==1 || d.status==2 || d.status==3){ }}
            @{{#if(d.status==0 || d.status==1 || d.status==2){ }}
                {{--<a href="javascript:;" onclick="settlement(@{{d.match_id}},'wq')" class="layui-btn layui-btn-sm">结算</a>--}}
        <a href="javascript:;" onclick="settleopen(@{{d.match_id}},'wq')" class="layui-btn layui-btn-sm">结算</a>
            @{{#} }}
            @{{#if(d.status==3){ }}
                {{--<a href="javascript:;" onclick="settlement(@{{d.match_id}},'wq')" class="layui-btn layui-btn-sm">再结算</a>--}}
        <a href="javascript:;" onclick="settleopen(@{{d.match_id}},'wq')" class="layui-btn layui-btn-sm">再结算</a>
            @{{#} }}
        @{{#} }}
        <!--
        @{{#if(d.status!=4 && d.status!=3){ }}
        <a href="javascript:;" onclick="revoke(@{{d.match_id}})" class="layui-btn layui-btn-sm layui-btn-danger">作废</a>
        @{{#} }}
        @{{#if(d.status==4){ }}
        <a href="javascript:;" onclick="revoke(@{{d.match_id}})" class="layui-btn layui-btn-sm layui-btn-danger">已作废</a>
        @{{#} }}
        -->
		<a href="javascript:;" onclick="resultLog(@{{d.match_id}})" class="layui-btn layui-btn-sm">比分记录</a>
    </script>

    <script type="text/html" id="status">
        @if(checkRriv('/admin/sportsbk/index'))<input type="checkbox" name="status" value="@{{d.id}}" lay-skin="switch" lay-text="进行中|已结束" lay-filter="openStatus" @{{ d.status == '1' ? 'checked' : '' }}>@endif
    </script>

    <div class="layui-row">
        <div class="layui-col-xs12">
            <form class="layui-form rewrite" eventType="eventForm"  action="">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">{{ trans('sportsbk.sousuo') }}</label>
                        <div class="layui-input-inline">
                            <input type="text" name="home_team" id="home_team" eventType="event-query"  value="{{ $home_team }}" lay-verify="required" autocomplete="off" class="layui-input" placeholder="赛事id/主队员">
                        </div>
                        <div class="layui-input-inline checkbox">
                            <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>
                            <input type="hidden" name="sureblurs" id="form_sureblurs" lay-verify="required" autocomplete="off" class="layui-input" eventType=event-query  value="{{ $sureblurs }}">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">{{ trans('sportsbk.status') }}</label>
                        <div class="layui-input-inline" style="width: 200px">
                            <select name="status"  id="form_status"  lay-verify="" autocomplete="off" class="layui-input"  eventType=event-query>
                                <option value="-1">{{ trans('sportsbk.select_status') }}</option>
                                @foreach(trans('status.match_operation.status') as $k=>$v):
                                    @if($status==$k))
                                        <option value="{{$k}}" selected="selected">{{$v}}</option>
                                    @else
                                        <option value="{{$k}}">{{$v}}</option>
                                    @endif
                                @endforeach
                            </select>
                        </div>
                   </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">{{ trans('sportswq.if_order') }}</label>
                        <div class="layui-input-inline" style="width: 200px">
                            <select name="if_order"  id="if_order"  lay-verify="" autocomplete="off" class="layui-input"  eventType=event-query>
                                @foreach(trans('status.if_order.status') as $k=>$v):
                                @if($if_order==$k))
                                <option value="{{$k}}" selected="selected">{{$v}}</option>
                                @else
                                    <option value="{{$k}}">{{$v}}</option>
                                @endif
                                @endforeach
                            </select>
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">{{ trans('sportsfoot.star_time') }}</label>
                        <div class="layui-input-inline">
                            <input type="text" name="star_time" value="{{ $star_time }}" id="star_time" placeholder=" - "  lay-verify="" autocomplete="off" class="layui-input test-item" eventType=event-query>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">{{ trans('sportsfoot.end_time') }}</label>
                        <div class="layui-input-inline">
                            <input type="text" name="end_time"  value="{{$end_time}}" id="end_time" placeholder=" - " word-break: break-all; lay-verify="" autocomplete="off" class="layui-input test-item" eventType=event-query>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-sm lay-btn-diy"   data-type="reload" eventType="event-query-submit" style="opacity: 1; pointer-events: auto;">提交</a>
                        <a  class="layui-btn   layui-btn-sm layui-btn-normal reset" data-type="reload" style="opacity: 1; pointer-events: auto;">重置</a>
                        <a class="layui-btn layui-btn-sm layui-btn-green" data-type="reload" onclick="refreshall('wq')" style="opacity: 1; pointer-events: auto;">刷新赛事</a>
                        <!--@if(checkRriv('/admin/sportsbk/addoutcome'))<a href="/admin/sportsbk/addoutcome" class="layui-btn layui-btn-sm ">添加</a>@endif  -->
                        @if(checkRriv('/admin/sportsbk/deleteoutcome'))<a href="javascript:delWin('/admin/sportsbk/deleteoutcome?id=');" class="layui-btn layui-btn-sm  layui-btn-danger">删除</a>@endif
                        {{--@if(checkRriv('/admin/sportsbk/Settlement'))<a href="javascript:allbalance('/admin/sportswq/Settlement?allhalf=1&id=');" class="layui-btn layui-btn-sm set">结算全场</a>@endif--}}
                        {{--@if(checkRriv('/admin/sportsbk/Settlement'))<a href="javascript:allbalance('/admin/sportswq/Settlement?allhalf=2&id=');" class="layui-btn layui-btn-sm">结算上半场</a>@endif--}}
                        {{--@if(checkRriv('/admin/sportsbk/Settlement'))<a href="javascript:allbalance('/admin/sportswq/Settlement?allhalf=2&id=');" class="layui-btn layui-btn-sm set">重新结算上半场</a>@endif--}}
                    </div>
                </div>
            </form>
        </div>
    </div>

    <style>
        .layui-btn{
            margin: 3px 10px 3px 0px;
        }

        .layui-btn+.layui-btn {
            margin-left: 0px;
        }

        .log_title{

        }

        .log_head_div{
            font-size: 17px;
            margin-bottom: 5px;
        }
        .log_content_div td{
            padding: 5px;
            border: 1px solid #888888;
        }

        hr{
            margin: 14px 0;
        }
    </style>
	<script>
        $(function () {
            $('body').on('click', 'a[eventtype="event-delete"]', function () {
                var span = $(this).prev();
                var id = span.attr('data-id');
                // openWin('/admin/system/AddMenu','{{ trans("menu.menu_edit")}}','600px','500px',id);
            })
            $('body').on('click','#form_sureblur~.layui-form-switch',function(){
            	var sus = $('#form_sureblur').next().text();
            	if(sus=='精确'){
            		$('#form_sureblurs').val('on');
            	}else{
            		$('#form_sureblurs').val('off');
            	}
            })
        })
        
        //layer弹窗开始
        let conttxt = '';
        let layerOpen = '';
        function addResult(match_id){
            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '/admin/Sportswq/Matchresult',
                data: {match_id:match_id},
                success: function(data) {
                    conttxt ='<div id="scores" style="margin-left:80px;margin-top:20px;font-size:18px;line-height:150%;"><input type="hidden" id="matchid" name="matchid" value="'+match_id+'" /><div style="display: flex;"><li>第一盘比分(主/客)：</li><input style="width:50px;" type="text" id="homeo" name="homeo" value="'+data.wqresult[1]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guesto" name="guesto" value="'+data.wqresult[1]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第二盘比分(主/客)：</li><input style="width:50px;" type="text" id="homet" name="homet" value="'+data.wqresult[2]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestt" name="guestt" value="'+data.wqresult[2]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第三盘比分(主/客)：</li><input style="width:50px;" type="text" id="homes" name="homes" value="'+data.wqresult[3]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guests" name="guests" value="'+data.wqresult[3]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第四盘比分(主/客)：</li><input style="width:50px;" type="text" id="homef" name="homef" value="'+data.wqresult[4]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestf" name="guestf" value="'+data.wqresult[4]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第五盘比分(主/客)：</li><input style="width:50px;" type="text" id="homee" name="homee" value="'+data.wqresult[5]['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="gueste" name="gueste" value="'+data.wqresult[5]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li style="margin-left:1.1rem;">全场比分(主/客)：</li><input style="width:50px;" type="text" id="homen" name="homen" value="'+data.wqresult['all']['home']+'" autocomplete="off">&nbsp;/&nbsp;<input style="width:50px;" type="text" id="guestn" name="guestn" value="'+data.wqresult['all']['guest']+'" autocomplete="off"></div>';
                    
                    conttxt += '<br><div style="margin-left:230px;"><button class="layui-btn layui-btn-sm set" id="buttonClick" onclick="buttonClick()"><h3>确定</h3></button>&nbsp;<button onclick="czClick()" class="layui-btn layui-btn-sm layui-btn-danger" id="reset"><h3>取消</h3></button></div></div>';
                
                    layerOpen = layer.open({
                      type: 1 //Page层类型
                      ,area: ['500px', '300px']
                      ,title: '<h2>赛事结果修改<h2>'
                      ,shade: 0.6 //遮罩透明度
                      ,maxmin: true //允许全屏最小化
                      ,anim: 1 //0-6的动画形式，-1不开启
                      ,content:conttxt
                    });
//                    if(data.newapp.status == 0 || data.newapp.status == 1 || data.newapp.status == 6){
//                        $('#scores input').val('');
//                    }
                }
            }) 
        }
        function czClick() {
            layer.close(layerOpen)
        }
        //layer弹窗结束

        function buttonClick(){
//            $("#buttonClick").attr('disabled', true);
            var matchid = $("#matchid").val();
            var homeo = $("#homeo").val();
            var guesto = $("#guesto").val();
            var homet = $("#homet").val();
            var guestt = $("#guestt").val();
            var homes = $("#homes").val();
            var guests = $("#guests").val();
            var homef = $("#homef").val();
            var guestf = $("#guestf").val();
            var homee = $("#homee").val();
            var gueste = $("#gueste").val();
            var homen = $("#homen").val();
            var guestn = $("#guestn").val();

            if(homeo == -1 && guesto != -1 || homeo != -1 && guesto == -1 || homeo<-1 || guesto<-1){
                layer.alert('请输入正确的第一盘比分');
                return false;
            }
            if(homet == -1 && guestt != -1 || homet != -1 && guestt == -1 || homet<-1 || guestt<-1){
                layer.alert('请输入正确的第二盘比分');
                return false;
            }
            if(homes == -1 && guests != -1 || homes != -1 && guests == -1 || homes<-1 || guests<-1){
                layer.alert('请输入正确的第三盘比分');
                return false;
            }
            if(homef == -1 && guestf != -1 || homef != -1 && guestf == -1 || homef<-1 || guestf<-1){
                layer.alert('请输入正确的第四盘比分');
                return false;
            }
            if(homee == -1 && gueste != -1 || homee != -1 && gueste == -1 || homee<-1 || gueste<-1){
                layer.alert('请输入正确的第五盘比分');
                return false;
            }
            if(homen == -1 && guestn != -1 || homen != -1 && guestn == -1 || homen<-1 || guestn<-1){
                layer.alert('请输入正确的全场比分');
                return false;
            }

            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '/admin/Sportswq/addend',
                data: {matchid:matchid,homeo:homeo,guesto:guesto,homet:homet,guestt:guestt,homes:homes,guests:guests,homef:homef,guestf:guestf,homee:homee,gueste:gueste,homen:homen,guestn:guestn},
                success: function(data) {
                    layer.msg(data.msg);
                    location. reload()//刷新当前页面
                }
            })
        }

        //刷新赛事数据
        function refreshall(game_code){ 
            var game_code = game_code;
            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '/setSports',
                data: {game_code:game_code},
                success: function(data) {
                    var data = JSON.stringify(data);
                    if(data){
                        if(data.msg){
                            layer.msg(data.msg);
                        }
                        location. reload()//刷新当前页面
                    }
                }
            })
        }

        //撤销
        function revoke(match_id){
            var match_id = match_id;
            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '/admin/Sportswq/revoke',
                data: {match_id:match_id},
                success: function(data) {
                    if(data.status==1){
                        layer.msg(data.msg);
                        location. reload()//刷新当前页面
                    }
                }
            })
        }

        //结算 
        function settlement(match_id,type){
            var match_id = match_id;
            var type = type;
            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '/admin/Sportswq/Settlement',
                data: {match_id:match_id,type:type},
                success: function(data) {
                    if(data.status==1){
                        layer.msg(data.msg);
                        location. reload()//刷新当前页面
                    }else if(data.status==2){
                        layer.msg(data.msg);
                        reloadDataTable();return;
                    }else if(data.status==4){
                        layer.msg(data.msg);
                        reloadDataTable();return;
                    }else{
                        layer.msg(data.msg);
                        reloadDataTable();return;
                    }
                }
            })
        }

        //修改赛事比分
        function inputscore(match_id){
            var match_id = match_id;
            // var reg = /^[0-99]\d*$/;
            var guest_player_score = $("#guest_player_score"+match_id).val();
            var home_player_score = $("#home_player_score"+match_id).val();
            var match_status = document.getElementById("match_status"+match_id).value;


            // if(reg.test(num)==false){ 
            //     layer.msg('不能为空值');
            //     reloadDataTable();return;
            // }

            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '/admin/Sportswq/updatascore',
                data: {match_id:match_id,guest_player_score:guest_player_score,home_player_score:home_player_score,match_status:match_status},
                success: function(data) {
                    /*
                    if(data.status==1){
                        layer.msg(data.msg);
                        location. reload()//刷新当前页面
                    }
                    */
                    layer.msg(data.msg);
                    location. reload()//刷新当前页面
                }
            })
        }

        //layer弹窗开始
        let resultLogOpen = '';
        function resultLog(match_id){
            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '/admin/Sportswq/resultLog',
                data: {match_id:match_id},
                success: function(data) {
                    let length = data.list.length;
                    if(length <= 0){
                        layer.alert('该赛事还没有比分记录');
                        return false;
                    }

                    let html = '';
                    let info = '';
                    for(let i=0; i<length; i++){
                        info = data['list'][i];
                        if(info.type == 1){ //结果

                            html +='<div style="margin-left: 20px;margin-right: 20px;"><div class="log_head_div"><span class="log_title">修改人</span>：'+info['loginname']+'&nbsp;&nbsp;&nbsp;<span class="log_title">添加时间</span>：'+info['create_at']+'&nbsp;&nbsp;&nbsp;<span class="log_title">添加类型</span>：赛事结果</div>'
                                +'<div class="log_content_div"><table><tr>' +
                                '<td>第一局比分(主/客)</td>' +
                                '<td>第二局比分(主/客)</td>' +
                                '<td>第三局比分(主/客)</td>' +
                                '<td>第四局比分(主/客)</td>' +
                                '<td>第五局比分(主/客)</td>' +
                                '<td>全场比分(主/客)</td>' +
                                '</tr><tr>' +
                                '<td>'+info['inning'][1]['home']+'&nbsp;/&nbsp;'+info['inning'][1]['guest']+'</td>' +
                                '<td>'+info['inning'][2]['home']+'&nbsp;/&nbsp;'+info['inning'][2]['guest']+'</td>' +
                                '<td>'+info['inning'][3]['home']+'&nbsp;/&nbsp;'+info['inning'][3]['guest']+'</td>' +
                                '<td>'+info['inning'][4]['home']+'&nbsp;/&nbsp;'+info['inning'][4]['guest']+'</td>' +
                                '<td>'+info['inning'][5]['home']+'&nbsp;/&nbsp;'+info['inning'][5]['guest']+'</td>' +
                                '<td>'+info['inning']['all']['home']+'&nbsp;/&nbsp;'+info['inning']['all']['guest']+'</td>' +
                                '</tr></table></div></div><hr>';
                        }else{ //比分
                            html +='<div style="margin-left: 20px"><div class="log_head_div"><span class="log_title">修改人</span>：'+info['loginname']+'&nbsp;&nbsp;&nbsp;<span class="log_title">添加时间</span>：'+info['create_at']+'&nbsp;&nbsp;&nbsp;<span class="log_title">添加类型</span>：赛事比分</div>'
                            +'<div>赛事比分(主/客)：'+info['home_player_score']+'&nbsp;/&nbsp;'+info['guest_player_score']+'</div></div><hr>';
                        }
                    }

                    html += '<br><div style="margin:0px auto 10px;width: 112px;"><button class="layui-btn layui-btn-sm set" id="buttonClick" onclick="rlClick()"><h3>确定</h3></button>&nbsp;<!--<button onclick="rlClick()" class="layui-btn layui-btn-sm layui-btn-danger" id="reset"><h3>取消</h3></button>--></div></div>';

                    resultLogOpen = layer.open({
                        type: 1 //Page层类型
                        ,area: ['800px', '500px']
                        ,title: '<h2>比分记录<h2>'
                        ,shade: 0.6 //遮罩透明度
                        ,maxmin: true //允许全屏最小化
                        ,anim: 1 //0-6的动画形式，-1不开启
                        ,content:html
                    });
                }
            })
        }

        function rlClick() {
            layer.close(resultLogOpen)
        }


        //layer弹窗开始(结算)
        let settleOpen = '';
        function settleopen(match_id,type){
            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '/admin/Sportswq/getprocess',
                data: {type:type},
                success: function(data) {
                    //console.log(type);
                    let length = data.length;

                    let html = '<div style="margin-left:100px;margin-top:20px;font-size:18px;line-height:150%;width:60%;"><div><input class="checkall" type="checkbox" onclick="oncheck()">全选</div><input id="match_id" type="hidden" value="'+match_id+'"><input id="game_type" type="hidden" value="'+type+'">';
                    let info = '';
                    html += '<div style="height: 100px;"><ul>';
                    for(let i=0; i<length; i++){

                        html +='<li style="float: left;margin-left: 20px;"><input class="checkone" onclick="onecheck()" type="checkbox" value="'+data[i]['process']+'">'+data[i]['name']+'</li>';

                    }

                    html += '</div></ul><br><div><button class="layui-btn layui-btn-sm set" id="buttonClick" onclick="settleClick()"><h3>确定</h3></button>&nbsp;<button onclick="seClick()" class="layui-btn layui-btn-sm layui-btn-danger" id="reset"><h3>取消</h3></button></div></div>';

                    settleOpen = layer.open({
                        type: 1 //Page层类型
                        ,area: ['500px', '40%']
                        ,title: '<h2>结算<h2>'
                        ,shade: 0.6 //遮罩透明度
                        ,maxmin: true //允许全屏最小化
                        ,anim: 1 //0-6的动画形式，-1不开启
                        ,content:html
                    });
                }
            })
        }

        function seClick() {
            layer.close(settleOpen)
        }

        function settleClick(){
            obj = document.getElementsByClassName("checkone");
            var match_id = $("#match_id").val();
            var type = $("#game_type").val();
            process = [];
            for(k in obj){
                if(obj[k].checked)
                    process.push(obj[k].value);
            }
            $.ajax({
                type: 'POST',
                dataType: 'json',
                url: '/admin/Sportswq/Settlement1',
                data: {process:process,match_id:match_id,type:type},
                success: function(data) {
                    //console.log(data);
                    if(data.status == 1 || data.status == 4){
                        layer.msg(data.msg);
                        location. reload()//刷新当前页面
                    }else{
                        layer.msg(data.msg);
                    }
                }
            })
        }

        //结算弹框全选/取消
        function oncheck() {
            //console.log(1);
            if($('.checkall').is(':checked')==true){
                $('.checkone').prop('checked',true);
            }else{
                $('.checkone').prop('checked',false);
            }
        }

        function onecheck(){
//            console.log(1);
            var checkedinput = $("input[class='checkone']:checked").length;
            var input = $("input[class='checkone']").length;
            if(checkedinput == input){
                $('.checkall').prop('checked',true);
            }else{
                $('.checkall').prop('checked',false);
            }
        }

	</script>
@push('dataTableJS')
/*var active = {
    reload: function(){
      //执行重载
      table.reload('{{ $dataId }}', {
        page: {
          curr: 1 //重新从第 1 页开始
        }
        ,where: {
            account:$("#form_account").val(),
            register_ip:$('#form_register_ip').val(),
            last_ip:$('#form_last_ip').val(),
            register_url:$('#form_register_url').val(),
            last_url:$('#form_last_url').val(),
            regist_startime:$('#form_regist_startime').val(),
            regist_endtime:$('#form_regist_endtime').val(),
            statuss:$('#form_statuss').val(),
            cash_small:$('#form_cash_small').val(),
            cash_big:$('#form_cash_big').val(),
            sureblur:$('.layui-form-switch').text(),
        }
      });
    }
  };
$('.lay-btn-diy').on('click', function(){
    var type = $(this).data('type');
    active[type] ? active[type].call(this) : '';
  });*/

  //重置表单
  $('.reset').on('click',function(){
      $('input').val('');
      $('#form_statuss').val('');
      //var type = $(this).data('type');
      //active[type] ? active[type].call(this) : '';
  });
  //刷新表单
    $('.set').on('click',function(){
    //var type = $(this).data('type');
    //active[type] ? active[type].call(this) : '';
    });

@endpush

    @include('vip.datatable')
@endsection

