@extends('vip.layouts')
@section('seo_title')
    足球串关注单详情
@endsection
@section('content')
    <style>
        .layui-laydate-range {
            width: auto;
        }

        .layui-form-switch em {
            width: auto;
        }
        .layui-form-switch {
            width: 44px;
            line-height: 23px;
        }
        .layui-form-item .checkbox {
            width: auto;
        }
        .red{
            color: red;
        }
        .blue{
            color: #1E9FFF;
        }
        .green{
            color: green;
        }
        .yellow{
            color: #ffca10;
        }

        .red{
            color: red;
        }
        .blue{
            color: #1E9FFF;
        }
        .green{
            color: green;
        }
        .yellow{
            color: #ffca10;
        }
        .bottom-txt{
            padding: 0.5em;
            line-height: 2em;
        }
        table{
            text-align: center;
        }
        th div{
            margin:0 auto;
            text-align: center;
        }
        td div{
            margin:0 auto;
            text-align: center;
        }
        tbody span{
            color: red;
        }
    </style>

    <script type="text/html" id="status">
        @if(checkRriv('/admin/SportsSoccer/score'))<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="" method="get">
                <div class="layui-form-item">

                    {{--<div class="layui-inline">--}}
                        {{--<label class="layui-form-label">{{ trans('sportsnotelist.match_id') }}</label>--}}
                        {{--<div class="layui-input-inline">--}}
                            {{--<input type="text" name="match_id" id="match_id" eventType="event-query"  value="{{ $match_id }}" lay-verify="required" autocomplete="off" class="layui-input">--}}
                        {{--</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">
                        <a class="layui-btn layui-btn-sm lay-btn-diy" href="javascript:history.go(-1)">返回</a>
                        {{--<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 set" data-type="reload" style="opacity: 1; pointer-events: auto;"><i class="layui-icon">ဂ</i></a>--}}
                        {{--@if(checkRriv('/admin/SportsSoccer/add'))<a href="/admin/SportsSoccer/add" class="layui-btn layui-btn-sm ">添加</a>@endif--}}
                        {{--@if(checkRriv('/admin/SoccerNoteList/orderstatus'))<a href="/admin/SoccerNoteList/orderstatus" class="layui-btn layui-btn-sm ">订单状态审核</a>@endif--}}
                        {{--@if(checkRriv('/admin/SoccerNoteList/delete'))<a href="javascript:delWin('/admin/SoccerNoteList/delete?id=');" class="layui-btn layui-btn-sm  layui-btn-danger">删除</a>@endif--}}
                    </div>

                    <!-- &nbsp;&nbsp;&nbsp;&nbsp;<div class="layui-inline"><a href="javascript:openWin('/admin/user/infoAdd','{{ trans('menu.menu_add') }}','700px','500px')" class="layui-btn layui-btn-sm  ">添加</a></div>
                    <div class="layui-inline"><a href="/admin/menu/add" class="layui-btn layui-btn-sm  layui-btn-danger">删除</a></div> -->

                </div>
            </form>
        </div>
    </div>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <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');
                }
            })
        })
    </script>
    @push('dataTableJS')
    /*var active = {
    reload: function(){
    //执行重载
    console.log($('#form_status').val());
    table.reload('{{ $dataId }}', {
    page: {
    curr: 1 //重新从第 1 页开始
    }
    ,where: {
    account_name:$("#form_account_name").val(),
    order_id:$('#form_order_id').val(),
    bank_user:$('#form_bank_user').val(),
    money_small:$('#form_money_small').val(),
    money_big:$('#form_money_big').val(),
    status:$('#form_status').val(),
    apply_startime:$('#form_apply_startime').val(),
    apply_endtime:$('#form_apply_endtime').val(),
    haddle_startime:$('#form_haddle_startime').val(),
    haddle_endtime:$('#form_haddle_endtime').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_status').val('3');
    $('.layui-form-select input').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) : '';
    });


    {{--function dataTableLoadFinished(res,curr,count){--}}
    {{--var str='';--}}
    {{--if(document.getElementById("statistics")){--}}

    {{--}else{--}}
    {{--$('.layui-table-page').after('<div id="statistics"></div>');--}}
    {{--}--}}
    {{--$.ajax({--}}
    {{--type: 'get',--}}
    {{--url: '/admin/SoccerstringNoteList/moneycount',--}}
    {{--data: {where:res.extras},--}}
    {{--dataType: 'json',--}}
    {{--//async: false,--}}
    {{--success: function (data) {--}}
    {{--var data=data.data;--}}
    {{--for(var i in data){--}}
    {{--data[i]=parseFloat(data[i]);--}}
    {{--}--}}
    {{--str+='<p class="bottom-txt">总投注金额：<span class="blue">'+data.all_money+'</span> , 总可赢金额：<span class="green">'+data.all_prize_money+'</span> , 已赢金额：<span class="green">'+data.alraedy_prize_money+'</span></p>'--}}
    {{--str+='<p class="bottom-txt">总金额：<span class="blue">'+data.all_money+'</span> , 成功：<span class="green">'+data.success_money+'</span> , 手续费：<span class="red">'+data.service_money+'</span> , 处理中：<span class="yellow">'+data.handing+'</span></p>'--}}
    {{--$('#statistics').html(str);--}}
    {{--var height1=$('.layui-table-view').height();--}}
    {{--var height2=$('#statistics').height();--}}

    {{--$('.layui-table-view').css({height:(height1+height2)});--}}
    {{--}--}}
    {{--});--}}


    {{--}--}}
    @endpush

    @include('vip.datatable')
@endsection
