12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- {include file="common/header"/}
- <style>
- .yourclass {
- display: block;
- }
- .canel {
- display: none;
- }
- </style>
- <div class="LM-container">
- <div class="LM-main">
- <fieldset class="layui-elem-field layui-field-title">
- <legend>通证记录</legend>
- <blockquote class="layui-elem-quote">
- <a href="{:url('index')}" class="layui-btn layui-btn-xs" lay-event="tzlg">返回</a>
- </blockquote>
- </fieldset>
- <table class="layui-table" id="list" lay-filter="list"></table>
- </div>
- </div>
- {include file="common/footer"/}
- <script>
- layui.use(['form', 'table'], function () {
- var $ = layui.jquery,
- form = layui.form,
- table = layui.table;
- let user_id= {:$user_id};
- console.log("user_id",user_id)
- var tableIn = table.render({
- elem: '#list',
- url: '{:url("certificateshow")}',
- method: 'post',
- where:{user_id:user_id},
- title: '用户数据表',
- // toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
- defaultToolbar: ['filter', 'exports', 'print', { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
- title: '提示'
- , layEvent: 'LAYTABLE_TIPS'
- , icon: 'layui-icon-tips'
- }],
- cols: [[
- // {checkbox: true, fixed: true},
- {field: 'id', title: 'ID', width: 80, sort: true},
- {field: 'user_id', title: '用户id', width: 200},
- {field: 'user_name', title: '用户名称', width: 200},
- {field: 'name', title: '说明', width: 200},
- {field: 'money', title: '金额', width: 200},
- {field: 'status', title: '0增加1减少', width: 200},
- {field: 'add_time', title: '添加时间', width: 200},
- // {title: '操作', width: 150, toolbar: '#barDemo', align: "center"},
- ]],
- limits: [10, 15, 20, 25, 50, 100],
- limit: 15,
- page: true
- });
- });
- </script>
|