合肥金麓客户积分系统
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.
 
 
 
 
 
 

148 lines
4.5 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{:config('sys_name')}后台管理</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, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
<link rel="stylesheet" href="/static/admin/css/global.css" media="all">
<link rel="stylesheet" href="/static/common/css/font.css" media="all">
<style>
.filtrate-warp{
margin-bottom: 10px;
}
.filtrate-warp .title{
padding: 5px 12px 7px 12px;
font-size: 14px;
font-weight: normal;
text-align: left;
cursor: pointer;
width: 90px;
background-color: transparent!important;
color: black!important;
}
.filtrate-warp .title:hover{
color: black;
}
.filtrate-warp .flag{
padding: 6px 12px 6px 12px;
cursor: pointer;
}
.filtrate-warp .flag:hover{
color: black;
}
.filtrate-warp .layui-badge:hover{
color: white!important;
}
</style>
</head>
<body class="skin-<?php if(!empty($_COOKIE['skin'])){echo $_COOKIE['skin'];}else{echo '0';setcookie('skin','0');}?>">
<div class="admin-main layui-anim layui-anim-upbit">
<table class="layui-table" id="table-list" lay-filter="table-list"></table>
</div>
<script type="text/html" id="action">
<a href="{:url('client/userPointDetail')}?id={{d.aid}}" class="layui-btn-primary layui-btn layui-btn-xs"><i class="layui-icon">&#xe60e;</i></a>
</script>
<script type="text/html" id="status">
{{# if(d.type==0){ }}
<input type="text" disabled value="{{d.admin_id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="open" checked>
{{# }else{ }}
<input type="checkbox" name="is_open" value="{{d.admin_id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="open" {{ d.is_open == 1 ? 'checked' : '' }}>
{{# } }}
</script>
{include file="common/foot"/}
<script>
layui.use(['table','form','upload','util','laydate'], function() {
var table = layui.table,form = layui.form,laydate = layui.laydate, $ = layui.jquery,upload = layui.upload,util = layui.util;
var tableIn = table.render({
elem: '#table-list',
url: '{:url("userPointlist")}',
method: 'post',
toolbar: '#topBtn',
page: true,
cols: [[
{checkbox:true,fixed: true},
{field: 'username', title: '经销商名称', },
{field: 'in_point', title:'有效积分'},
{field: 'out_point', title:'过期积分'},
{field:'tel', title: '联系号码'},
{field: 'add_time', title:'创建时间',templet:function (res) {
return util.toDateString(res.add_time = (res.add_time * 1000));
}},
{title:'操作',width: 260, align: 'center', toolbar: '#action'}
]],
limit: 10 //每页默认显示的数量
});
table.on('tool(table-list)', function(obj) {
var data = obj.data;
});
$('body').on('click','#add',function() {
var indexOpen = layer.open({
type: 2,
title: '添加积分活动',
closeBtn: 1, //是否显示关闭按钮
area: ['100%','86%'],
anim: 2, //动画
shadeClose: false, //点击空白处是否关闭
maxmin: false, //开启最大化最小化按钮
content: ["{:url('Client/activeAdd')}"]
});
})
});
</script>
<script>
/*添加*/
function layer_add(title,url){
var index = layer.open({
type: 2,
title: title,
closeBtn: 1, //是否显示关闭按钮
area: ['100%','86%'],
anim: 2, //动画
shadeClose: false, //点击空白处是否关闭
maxmin: true, //开启最大化最小化按钮
content: [url,'no']
});
}
</script>
</body>
</html>