243 lines
8.9 KiB
HTML
Executable File
243 lines
8.9 KiB
HTML
Executable File
{include file="Public:header2"/}
|
||
|
||
<body>
|
||
<div class="layui-fluid">
|
||
<div class="layui-card">
|
||
<form method="get" class="layui-form layui-card-header layuiadmin-card-header-auto">
|
||
<div class="layui-form-item">
|
||
<div class="layui-inline">
|
||
<div class="layui-input-inline" style="width: 300px;margin-left: 0px">
|
||
<input type="text" name="user_id" value="{$Request.get.user_id}" placeholder="请输入用户id"
|
||
autocomplete="off" class="layui-input">
|
||
</div>
|
||
<div class="layui-input-inline" style="width: 300px;margin-left: 0px">
|
||
<input type="text" id="profit_date" name="profit_date" value="{$Request.get.profit_date}"
|
||
placeholder="开始日期" autocomplete="off" class="layui-input">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="layui-inline">
|
||
<button class="layui-btn layuiadmin-btn-useradmin mmm" lay-submit
|
||
lay-filter="LAY-user-front-search">
|
||
<i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
<!-- <xblock>
|
||
<div style="padding-bottom: 10px;">
|
||
|
||
<span style="line-height:40px;float:right;">(只显示前1000条)共有数据: {$count}条</span>
|
||
</div>
|
||
</xblock> -->
|
||
<div class="layui-card-body">
|
||
|
||
<table class="layui-table" lay-filter="test">
|
||
<thead>
|
||
<tr>
|
||
<th lay-data="{field:'index', width:80}">序号</th>
|
||
<th lay-data="{field:'nickname', width:150}">用户昵称/id</th>
|
||
<th lay-data="{field:'headimg', width:150}">用户头像</th>
|
||
<th lay-data="{field:'invitenumber', width:150}">邀请人数</th>
|
||
|
||
|
||
<th lay-data="{field:'info'}">邀请信息</th>
|
||
<th lay-data="{field:'count_mobile', width:150}">绑定手机数</th>
|
||
<th lay-data="{field:'sum_order', width:150}">消费人数</th>
|
||
<th lay-data="{field:'sum_price', width:150}">消费总金额</th>
|
||
<th lay-data="{field:'xxx', width:150}">操作</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{volist name="data" id="vo"}
|
||
<tr>
|
||
<td>{$vo['index']}</td>
|
||
<td>
|
||
{$vo['nickname']}
|
||
<p>真实ID:{$vo['user_id']}</p>
|
||
<p style="color: #e91e63;font-size: 9px">UID:{:isset($vo['uid']) ? $vo['uid'] : $vo['user_id']}</p>
|
||
</td>
|
||
<td>
|
||
<img style="width: 48px;" src="{$vo['headimg']}" />
|
||
</td>
|
||
<td>{$vo['invitenumber']}人</td>
|
||
|
||
<td class="aaaa">
|
||
<div style="height:150px;overflow:auto;">
|
||
<ui>
|
||
<li>
|
||
序号 - 真实ID/UID - 昵称 - 注册时间 - 支付订单次数 - 支付金额
|
||
</li>
|
||
{volist name="vo['info']" id="v1"}
|
||
<li>
|
||
{$v1['index']} - {$v1['id']}{:isset($v1['uid']) ? '/'.($v1['uid']) : ''} - {$v1['nickname']} - {$v1['adddate']} -
|
||
{$v1['user_item_order']} - {$v1['user_item_price']}
|
||
</li>
|
||
{/volist}
|
||
|
||
</ui>
|
||
</div>
|
||
<!-- {$vo['info']} -->
|
||
</td>
|
||
<td>{$vo['count_mobile']}人</td>
|
||
<td>{$vo['sum_order']}人</td>
|
||
<td>{$vo['sum_price']}人</td>
|
||
<td>
|
||
<!-- 查看详细信息 -->
|
||
|
||
</td>
|
||
{/volist}
|
||
|
||
{if condition="empty($data)"}
|
||
<tr>
|
||
<td colspan='11' style="text-align:center;">暂时没有数据!</td>
|
||
</tr>
|
||
{/if}
|
||
|
||
</tbody>
|
||
</table>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{include file="Public:footer"/}
|
||
<style>
|
||
.layui-table td {
|
||
min-height: 150px !important;
|
||
height: 150px !important;
|
||
padding: 0 0px !important;
|
||
}
|
||
|
||
.layui-table-cell {
|
||
height: 150px;
|
||
line-height: 28px;
|
||
padding: 0 0px !important;
|
||
|
||
position: relative;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.laytable-cell-1-0-0 {
|
||
/* width: 157px; */
|
||
height: 35px !important;
|
||
}
|
||
|
||
.laytable-cell-1-0-1 {
|
||
/* width: 157px; */
|
||
height: 35px !important;
|
||
}
|
||
|
||
.laytable-cell-1-0-2 {
|
||
/* width: 157px; */
|
||
height: 35px !important;
|
||
}
|
||
|
||
.laytable-cell-1-0-3 {
|
||
/* width: 157px; */
|
||
height: 35px !important;
|
||
}
|
||
|
||
th>.laytable-cell-1-0-4 {
|
||
/* width: 157px; */
|
||
height: 35px !important;
|
||
}
|
||
|
||
.laytable-cell-1-0-5 {
|
||
/* width: 157px; */
|
||
height: 35px !important;
|
||
}
|
||
.laytable-cell-1-0-6 {
|
||
/* width: 157px; */
|
||
height: 35px !important;
|
||
}
|
||
.laytable-cell-1-0-7 {
|
||
/* width: 157px; */
|
||
height: 35px !important;
|
||
}
|
||
.laytable-cell-1-0-8 {
|
||
/* width: 157px; */
|
||
height: 35px !important;
|
||
}
|
||
|
||
</style>
|
||
<script type="text/javascript">
|
||
layui.use(['layer', 'laydate', 'table'], function () {
|
||
var $ = layui.$;
|
||
//执行一个laydate实例
|
||
var laydate = layui.laydate;
|
||
var table = layui.table;
|
||
// 将静态表格进行动态化
|
||
table.init('test', {
|
||
height: 'full-150',
|
||
toolbar: 'true',
|
||
page:'true',
|
||
limit:100,
|
||
limits: [100, 200, 500],
|
||
autoSort:true,
|
||
even: true,
|
||
defaultToolbar: [
|
||
'filter', // 列筛选
|
||
'exports', // 导出
|
||
'print' // 打印
|
||
]
|
||
// 其他属性
|
||
// …
|
||
});
|
||
console.log('aaa');
|
||
|
||
laydate.render({
|
||
elem: '#profit_date'
|
||
, type: 'date'
|
||
, range: false
|
||
});
|
||
})
|
||
|
||
//添加盒子
|
||
function Profit_add() {
|
||
var url = "{:url('/admin/profit_add')}";
|
||
layer.open({
|
||
type: 2,
|
||
title: '添加盒子',
|
||
shadeClose: false,
|
||
shade: 0.3,
|
||
area: ['850px', '320px'],
|
||
content: url,
|
||
});
|
||
}
|
||
|
||
//编辑盒子
|
||
function goods_edit(id) {
|
||
var url = "{:url('/admin/profit_edit?id=" + id + "')}";
|
||
layer.open({
|
||
type: 2,
|
||
title: '编辑盒子',
|
||
shadeClose: false,
|
||
shade: 0.3,
|
||
area: ['850px', '320px'],
|
||
content: url,
|
||
});
|
||
}
|
||
|
||
//上下架
|
||
function del(id, type, type_name) {
|
||
layer.confirm('确认要执行' + type_name + '操作吗?', function () {
|
||
var url = "{:url('/admin/profit_del')}";
|
||
var load = layer.load(2);
|
||
var $ = layui.$;
|
||
$.post(url, { "id": id }, function (data) {
|
||
if (data.status == 1) {
|
||
layer.msg('操作成功', { icon: 1, time: 1000 }, function () {
|
||
location.reload();
|
||
});
|
||
} else {
|
||
layer.msg(data.msg, { icon: 2, anim: 6, time: 1000 }, function () {
|
||
layer.close(load);
|
||
});
|
||
}
|
||
})
|
||
});
|
||
}
|
||
</script>
|
||
</body>
|
||
|
||
</html> |