diff --git a/app/admin/view/Statistics/userstatistics.html b/app/admin/view/Statistics/userstatistics.html index 756d76b..6b707c9 100755 --- a/app/admin/view/Statistics/userstatistics.html +++ b/app/admin/view/Statistics/userstatistics.html @@ -391,6 +391,7 @@ // 初始化数据表格 function initDataTable(data) { + data = data.reverse(); layui.use('table', function () { var table = layui.table; @@ -403,7 +404,7 @@ { field: 'day', title: '日期', width: 180, sort: true, rowspan: 3 }, { title: '用户信息', colspan: 2 }, { title: '订单信息', colspan: 6 }, - { title: '钻石商城',colspan: 2 } + { title: '钻石商城', colspan: 2 } ], [ { field: 'user_register', title: '注册人数', width: 120 }, { field: 'user_login', title: '登录人数', width: 120 }, @@ -416,11 +417,15 @@ { field: 'amount_paid', title: '支付总额', width: 120 } ]], page: true, // 开启分页 - limit: 10, // 每页显示的条数 - limits: [10, 20, 30, 50], // 每页条数的选择项 + limit: 50, // 每页显示的条数 + limits: [50, 100, 200], // 每页条数的选择项 height: 'full-200', // 表格高度 text: { none: '暂无相关数据' + }, + defaultSort: { + field: 'day', + type: 'desc' } }); });