@extends('vip.layouts') @section('seo_title') {{ trans('menu.Rechargedrawals') }} @endsection @section('content')
@push('dataTableJS') $('.backwater').on('click',function(){ var checkStatus = table.checkStatus('{{ $dataId }}') ,data = checkStatus.data; //var arr=JSON.stringify(data); var return_point = $('#return_point').val(); var s_time= $('#form_star_time').val(); var e_time=$('#form_end_time').val(); /*var game=$('#form_gametype').val()*/ var url='/admin/Refund/delete?star_time='+s_time+'&end_time='+e_time;/*+'&game='+game*/ if(data.length!==0){ layer.open({ type: 1, btn: ['确定', '取消'], btnAlign: 'c', id: 'box', content: '

确定提交

', //这里content是一个DOM,注意:最好该元素要存放在body最外层,否则可能被其它的相对元素所影响 yes: function (index, layero) { layer.close(index); var msgIndex = parent.layer.msg('数据处理中...', { icon: 16, shade: 0.71 }); $.ajax({ type:'post', url:url, data:{data:data,return_point:return_point}, dataType:'json', success:function(json){ layer.close(msgIndex); layer.msg(json.msg) reloadDataTable(); }, error:function(){ console.log('链接失败'); } }) } }); }else{ layer.msg('请选择条目数') } }) // $('.lay-btn-diy').on('click', function(){ // var type = $(this).data('type'); // active[type] ? active[type].call(this) : ''; // }); //重置表单 $('.reset').on('click',function(){ $('input').val(''); $('#name').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) : ''; }); @endpush @include('vip.datatable') @endsection