@extends('vip.layouts') @section('content')
-
@push('dataTableJS') /*var active = { reload: function() { table.reload('{{ $dataId }}', { page:{ curr: 1 //重新从第 1 页开始 }, where: { time_start: $("#form_time_start").val(), time_end: $("#form_time_end").val(), account: $("#form_account").val(), game_no: $("#form_game_no").val(), game: $("#game").val(), type: $("#type").val(), rtoken: '' } }); } };*/ //重置表单 $('.reset').on('click',function(){ $('input').val(''); $('#status').val(''); $('#game').val(''); $('#type').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) : ''; // }); // $('.lay-btn-diy').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('
'); } var data=res.data; var count= 0;//总注数 var count_money=0; var count_prize_money=0;//总中奖 var count_profit=0;//总中奖 for(var i=0; i ,总笔数:'+val.num+' ,

'; str+='

当页总投注金额:'+Math.floor(count_money*100)/100+' ,总投注金额:'+Math.floor(val.money*100)/100+' ,

'; str+='

当页总派奖金额:'+Math.floor(count_prize_money*100)/100+' ,总派奖金额:'+Math.floor(val.prize_money*100)/100+' ,

'; str+='

当页平台盈利金额:' if(count_profit<0){ str+=''+ Math.floor(-100*count_profit)/100+''; }else{ str+=''+ Math.floor(-100*count_profit)/100+''; } str+=',平台总盈利金额:'; if(val.get_money>0){ str+=''+ Math.floor(val.get_money*100)/100+'

'; }else{ str+=''+ Math.floor(val.get_money*100)/100+'

'; } $('#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