<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?php echo e(URL::asset('admin/frame/layui/css/layui.css')); ?>" media="all">
    <link rel="stylesheet" href="<?php echo e(URL::asset('admin/css/welcome.css')); ?>" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<!--<div class="layui-btn-group demoTable">
    <button class="layui-btn" data-type="getCheckData">获取选中行数据</button>
    <button class="layui-btn" data-type="getCheckLength">获取选中数目</button>
    <button class="layui-btn" data-type="isAll">验证是否全选</button>
</div>-->

<form class="layui-form" eventType=eventForm>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">单行选择框</label>
            <div class="layui-input-block">
                <select name="interest" lay-filter="aihao">
                    <option value=""></option>
                    <option value="0">写作</option>
                    <option value="1">阅读</option>
                    <option value="2">游戏</option>
                    <option value="3">音乐</option>
                    <option value="4">旅行</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">单行选择框</label>
            <div class="layui-input-block">
                <select name="interest" lay-filter="aihao">
                    <option value=""></option>
                    <option value="0">写作</option>
                    <option value="1">阅读</option>
                    <option value="2">游戏</option>
                    <option value="3">音乐</option>
                    <option value="4">旅行</option>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">验证日期</label>
            <div class="layui-input-inline">
                <input type="text" name="date" class="layui-input" id="test6" placeholder="">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">会员名称</label>
            <div class="layui-input-inline">
                <input type="tel" class="layui-input">
            </div>
        </div>


        <div class="layui-inline">
            <button class="layui-btn" lay-submit="" lay-filter="demo1">搜索</button>
        </div>
    </div>
</form>

<table class="layui-hide" id="LAY_table_user" lay-filter="demo"></table>


<script src="<?php echo e(URL::asset('admin/js/jquery-1.11.3.js')); ?>" charset="utf-8"></script>
<script src="<?php echo e(URL::asset('admin/frame/layui/layui.js')); ?>" charset="utf-8"></script>
<script src="<?php echo e(URL::asset('admin/js/configure.js')); ?>" charset="utf-8"></script>
<script>
    var url2 = '/admin/money/recharge';
    var url1 = '<?php echo e(URL::asset("admin/json/package.json")); ?>';


    layui.use(['laydate', 'laypage', 'layer', 'table'], function () {
        var laydate = layui.laydate //日期
            , laypage = layui.laypage //分页
            , laytpl = layui.laytpl;

        layer = layui.layer //弹层
            , table = layui.table //表格
            , form = layui.form;

        //获取表头
//        var thead = type(1);
        //获取数据
        var returnData = getData(url2, {page: '1'});
        //执行一个 table 实例
        table.render({
            elem: '#LAY_table_user'
            , even: true
            ,id:'tab'
            , cols: [
                [ //表头
                    //                {checkbox: true, fixed: 'left'},
                    {field: 'id', title: 'ID', width: 140, sort: true, fixed: 'left'}
                    , {field: 'account_name', title: '用户名', width: 100, sort: true, fixed: 'left'}
                    , {field: 'order_id', title: '订单号', width: 250, sort: true}
                    , {field: 'apply_time', title: '提交时间/申请时间', width: 250}
                    , {field: 'complete_time', title: '处理时间', width: 250}
                    , {field: 'money', title: '存款金额', width: 250, sort: true}
                    , {field: 'status', title: '订单状态', width: 250}
                    , {field: 'recharge_type', title: '转账信息', width: 250}
                    , {field: 'money_cash', title: '用户余额', width: 250, sort: true}
                    , {field: 'orderid_time', title: '操作管理员', width: 250}
                    , {field: 'system_user', title: '操作管理员', width: 250}
                ]
            ]
            , data: returnData.data.data
            ,page:true

        });
        laypage.render({
            elem: 'layui-table-page1'
            ,count: returnData.data.total //数据总数，从服务端得到
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj, first){
                //obj包含了当前分页的所有参数，比如：
                // console.log(obj.curr); //得到当前页，以便向服务端请求对应页的数据。
                // console.log(obj.limit); //得到每页显示的条数

                $.ajax({
                    u
                })


                //首次不执行
                if(!first){
                    //do something
                }
            }
        });

    });
</script>
</body>
</html>