You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
240 lines
10 KiB
240 lines
10 KiB
<?php /*a:2:{s:80:"E:\waibao\ahbcqz\server\app\admin\view\account_log\account_log\growth_lists.html";i:1679478874;s:51:"E:\waibao\ahbcqz\server\app\admin\view\layout1.html";i:1679478874;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo url(); ?></title>
|
|
<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.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<link rel="stylesheet" href="/static/lib/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/app.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/like.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<script src="/static/lib/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/admin/js/app.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
|
|
<div class="wrapper">
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
|
|
<div class="layui-colla-item">
|
|
<h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
|
|
<div class="layui-colla-content layui-show">
|
|
<p>*会员成长值变动记录。</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form">
|
|
<div class="layui-form-item">
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">会员信息:</label>
|
|
<div class="layui-input-inline" style="width: 200px;">
|
|
<select name="keyword_type" id="keyword_type">
|
|
<option value="sn">会员编号</option>
|
|
<option value="nickname">会员昵称</option>
|
|
<option value="mobile">会员手机号码</option>
|
|
</select>
|
|
</div>
|
|
<div class="layui-input-inline" style="width: 200px;">
|
|
<input type="text" id="keyword" name="keyword" autocomplete="off" class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">变动类型:</label>
|
|
<div class="layui-input-inline">
|
|
<select name="order_source" id="order_source">
|
|
<option value="0">全部</option>
|
|
<?php foreach($typeDescArr as $item): ?>
|
|
<option value=<?php echo htmlentities($item['id']); ?>><?php echo htmlentities($item['name']); ?></option>
|
|
<?php endforeach; ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">记录时间:</label>
|
|
<div class="layui-input-inline">
|
|
<input type="text" class="layui-input time" id="start_time" name="start_time" autocomplete="off">
|
|
</div>
|
|
<div class="layui-input-inline" style="margin-right: 5px;width: 10px;">
|
|
<label class="layui-form-mid">-</label>
|
|
</div>
|
|
<div class="layui-input-inline">
|
|
<input type="text" class="layui-input time" id="end_time" name="end_time" autocomplete="off">
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline">
|
|
<div class="layui-btn-group">
|
|
<button type="button" id="today" day="1" class="layui-btn layui-btn-sm layui-btn-primary day">今天</button>
|
|
<button type="button" day="-1" class="layui-btn layui-btn-sm layui-btn-primary day">昨天</button>
|
|
<button type="button" day="7" class="layui-btn layui-btn-sm layui-btn-primary day">近7天</button>
|
|
<button type="button" day="30" class="layui-btn layui-btn-sm layui-btn-primary day">近30天</button>
|
|
</div>
|
|
</div>
|
|
<div class="layui-inline">
|
|
<button class="layui-btn layui-btn-sm layuiadmin-btn-account <?php echo htmlentities($view_theme_color); ?>" lay-submit lay-filter="account-search">查询</button>
|
|
<button class="layui-btn layui-btn-sm layuiadmin-btn-account layui-btn-primary }" lay-submit lay-filter="account-clear-search">清空查询</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-card-body">
|
|
<table id="account-lists" lay-filter="account-lists"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
.layui-table-cell {
|
|
height: auto;
|
|
}
|
|
</style>
|
|
<script>
|
|
layui.config({
|
|
version:"<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/lib/' //静态资源所在路径
|
|
}).use(['table','laydate'], function(){
|
|
var $ = layui.$
|
|
,form = layui.form
|
|
,table = layui.table
|
|
,laydate = layui.laydate;
|
|
|
|
//日期时间范围
|
|
laydate.render({
|
|
elem: '#start_time'
|
|
, type: 'datetime'
|
|
,theme: '#1E9FFF'
|
|
// , value: "<?php echo htmlentities($time['today'][0]); ?>"
|
|
});
|
|
|
|
laydate.render({
|
|
elem: '#end_time'
|
|
, type: 'datetime'
|
|
,theme: '#1E9FFF'
|
|
// ,value: "<?php echo htmlentities($time['today'][1]); ?>"
|
|
});
|
|
|
|
//监听搜索
|
|
form.on('submit(account-search)', function(data){
|
|
var field = data.field;
|
|
//执行重载
|
|
table.reload('account-lists', {
|
|
where: field,
|
|
page: {
|
|
curr: 1 //重新从第 1 页开始
|
|
}
|
|
});
|
|
});
|
|
|
|
//清空查询
|
|
form.on('submit(account-clear-search)', function(){
|
|
$('.day').removeClass('layui-btn-normal');
|
|
$('.day').removeClass('layui-btn-primary');
|
|
$('.day').addClass('layui-btn-primary');
|
|
$('#keyword').val('');
|
|
$('#keyword_type').val('sn');
|
|
$('#order_source').val(0);
|
|
$('#start_time').val('');
|
|
$('#end_time').val('');
|
|
form.render('select');
|
|
//刷新列表
|
|
table.reload('account-lists', {
|
|
where: [],
|
|
page: {
|
|
curr: 1 //重新从第 1 页开始
|
|
}
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
|
|
layui.define(['table', 'form'], function(exports){
|
|
var $ = layui.$
|
|
,table = layui.table
|
|
,form = layui.form;
|
|
|
|
table.render({
|
|
id:'account-lists'
|
|
,elem: '#account-lists'
|
|
,url: '<?php echo url("account_log.account_log/growthLists"); ?>'
|
|
,cols: [[
|
|
{field: 'nickname',title: '会员昵称'}
|
|
,{field: 'sn', title: '会员编号'}
|
|
,{field: 'mobile', title: '手机号码'}
|
|
,{field: 'change_amount', title: '变动成长值'}
|
|
,{field: 'left_amount', title: '剩余成长值 '}
|
|
,{field: 'source_type', title: '变动类型'}
|
|
,{field: 'log_sn', title: '来源单号'}
|
|
,{field: 'create_time', title: '记录时间'}
|
|
|
|
]]
|
|
,page:true
|
|
,text: {none: '暂无数据!'}
|
|
,parseData: function(res){ //将原始数据解析成 table 组件所规定的数据
|
|
return {
|
|
"code":res.code,
|
|
"msg":res.msg,
|
|
"count": res.data.count, //解析数据长度
|
|
"data": res.data.lists, //解析数据列表
|
|
};
|
|
},
|
|
response: {
|
|
statusCode: 1
|
|
}
|
|
, done: function fix() {
|
|
$(".layui-table-main tr").each(function (index, val) {
|
|
$(".layui-table-fixed").each(function () {
|
|
$($(this).find(".layui-table-body tbody tr")[index]).height($(val).height());
|
|
});
|
|
});
|
|
$(".layui-table-header tr").each(function (index, val) {
|
|
$(".layui-table-fixed").each(function () {
|
|
$($(this).find(".layui-table-header thead tr")[index]).height($(val).height());
|
|
});
|
|
});
|
|
window.onresize = function () {
|
|
fix()
|
|
}
|
|
}
|
|
});
|
|
|
|
$('.day').click(function(){
|
|
$('.day').removeClass('layui-btn-normal');
|
|
$('.day').removeClass('layui-btn-primary');
|
|
$('.day').addClass('layui-btn-primary');
|
|
$(this).removeClass('layui-btn-primary');
|
|
$(this).addClass('layui-btn-normal');
|
|
var day = $(this).attr('day');
|
|
switch (day) {
|
|
case '-1':
|
|
$('#start_time').val('<?php echo htmlentities($time['yesterday'][0]); ?>');
|
|
$('#end_time').val('<?php echo htmlentities($time['yesterday'][1]); ?>');
|
|
break;
|
|
case '1':
|
|
$('#start_time').val('<?php echo htmlentities($time['today'][0]); ?>');
|
|
$('#end_time').val('<?php echo htmlentities($time['today'][1]); ?>');
|
|
break;
|
|
case '7':
|
|
$('#start_time').val('<?php echo htmlentities($time['days_ago7'][0]); ?>');
|
|
$('#end_time').val('<?php echo htmlentities($time['days_ago7'][1]); ?>');
|
|
break;
|
|
case '30':
|
|
$('#start_time').val('<?php echo htmlentities($time['days_ago30'][0]); ?>');
|
|
$('#end_time').val('<?php echo htmlentities($time['days_ago30'][1]); ?>');
|
|
break;
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|