@extends('vip.layouts') @section('seo_title') {{ trans('menu.bet') }} @endsection @section('content') @push('dataTableJS') //获取表头 var tit=function (game){ var header=[]; $.ajax({ type: 'post', url: '/admin/gameOrder/index?data=1&game='+ game, data: {}, dataType: 'json', async: false, success: function (json) { header=json.data.dataCols } }); return header; } // $('.lay-btn-diy').on('click', function(){ // var type = $(this).data('type'); // active[type] ? active[type].call(this) : ''; // }); //重置表单 $('.reset').on('click',function(){ $('input').val(''); $('#trade_type').val(''); // var type = $(this).data('type'); // active[type] ? active[type].call(this) : ''; }); //刷新表单 // $('.set').on('click',function(){ // $('input').val(''); // $('#type').val(''); // var type = $(this).data('type'); // active[type] ? active[type].call(this) : ''; // }); var height = document.documentElement.clientHeight; $('.menu').css({height: (height-30)}); function dataTableLoadFinished(res,curr,count){ $('[eventType=event-view]').attr('win-width','955px'); $('[eventType=event-view]').attr('win-height','460px'); var str=''; if(document.getElementById("statistics")){ }else{ $('.layui-table-page').after('
'); } var data=res.data; var total_bet_money=0,win_money=0; for(var i=0;i,当页平台输赢结果:'; if(win_money<0){ str+=''+ Math.floor(-1*win_money*100)/100+'

' }else{ str+=''+ Math.floor(-1*win_money*100)/100+'

' } $.ajax({ type: 'get', url: '/admin/GameOrder/Total', 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]); } var betMoney=data.bet_money; var getMoney=data.get_money; str+='

总投注金额:'+Math.floor(betMoney*100)/100+',平台总输赢结果:'; if(getMoney>0){ str+=''+Math.floor(getMoney*100)/100+'

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

'; } } }) $('#statistics').html(str); var height1=$('.layui-table-view').height(); var height2=$('#statistics').height(); $('.layui-table-view').css({height:(height1+height2)}); } @endpush
-
-
提交 重置 @if(checkRriv('/admin/GameOrder/checkPwd'))导出@endif
@include('vip.datatable')
@endsection