@extends('vip.layouts') @section('seo_title') {{ trans('menu.CancelBet') }} @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; } layui.tree({ elem: '#tree' //传入元素选择器 , click: function (item) { //点击节点回调 //layer.msg('当前节名称:' + item.id); // 加载中... var loadIndex = layer.load(2, {shade: false}); // 刷新表格 tableIns.reload({ where: { game: item.gameCode }, page: { curr: 1 //重新从第 1 页开始 }, cols:tit(item.gameCode) }); // 关闭加载 layer.close(loadIndex); } }); // $('.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','950px'); 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总投注金额:'+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