@extends('vip.layouts')
@section('content')
@push('dataTableJS')
/*var active = {
reload: function(){
//执行重载
table.reload('{{ $dataId }}', {
page: {
curr: 1 //重新从第 1 页开始
}
,where: {
loginname:$("#loginname").val(),
ip:$('#ip').val(),
operation:$('#operation').val(),
star_time:$('#star_time').val(),
end_time:$('#end_time').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('');
// 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('');
}
$.ajax({
type: 'get',
url: '/admin/Lottery_money_log/Countmoney',
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+='成功的彩金总金额:'+data.money+'
';
$('#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