代码拉取完成,页面将自动刷新
<!DOCTYPE>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="css/style.css"/>
<link href="assets/css/codemirror.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/ace.min.css" />
<link rel="stylesheet" href="font/css/font-awesome.min.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
<![endif]-->
<script src="js/jquery-1.9.1.min.js"></script>
<script src="assets/js/typeahead-bs2.min.js"></script>
<script src="js/lrtk.js" type="text/javascript" ></script>
<script src="assets/js/jquery.dataTables.min.js"></script>
<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
<script src="assets/layer/layer.js" type="text/javascript" ></script>
<script src="assets/dist/echarts.js"></script>
<title>会员等级</title>
</head>
<body>
<div class="grading_style">
<div id="category">
<div id="scrollsidebar" class="left_Treeview">
<div class="show_btn" id="rightArrow"><span></span></div>
<div class="widget-box side_content" >
<div class="side_title"><a title="隐藏" class="close_btn"><span></span></a></div>
<div class="side_list">
<div class="widget-header header-color-green2">
<h4 class="lighter smaller">会员等级</h4>
</div>
<div class="widget-body">
<ul class="b_P_Sort_list">
<li><i class="orange fa fa-user-secret"></i><a href="http://www.erdangjiade.com">全部(235)</a></li>
<li><i class="fa fa-diamond pink "></i> <a href="http://www.erdangjiade.com">普通会员(235)</a></li>
<li> <i class="fa fa-diamond pink "></i> <a href="http://www.erdangjiade.com">铁牌会员(2215)</a> </li>
<li> <i class="fa fa-diamond pink "></i> <a href="http://www.erdangjiade.com">铜牌会员(3456)</a></li>
<li><i class="fa fa-diamond pink "></i> <a href="http://www.erdangjiade.com">银牌会员(4332)</a></li>
<li><i class="fa fa-diamond pink "></i> <a href="http://www.erdangjiade.com">金牌会员(1332)</a></li>
<li> <i class="fa fa-diamond grey"></i> <a href="http://www.erdangjiade.com">钻石会员(4543)</a></li>
<li> <i class="fa fa-diamond red"></i> <a href="http://www.erdangjiade.com">红钻会员(343)</a></li>
<li> <i class="fa fa-diamond blue"></i> <a href="http://www.erdangjiade.com">蓝钻会员(2343)</a></li>
<li> <i class="fa fa-diamond grey"></i> <a href="http://www.erdangjiade.com">黑钻2(53)</a></li>
</ul>
</div>
</div>
</div>
</div>
<!--右侧样式-->
<div class="page_right_style right_grading">
<div class="Statistics_style" id="Statistic_pie">
<div class="type_title">等级统计
<span class="top_show_btn Statistic_btn">显示</span>
<span class="Statistic_title Statistic_btn"><a title="隐藏" class="top_close_btn">隐藏</a></span>
</div>
<div id="Statistics" class="Statistics"></div>
</div>
<!--列表样式-->
<div class="grading_list">
<div class="type_title">全部会员等级列表</div>
<div class="table_menu_list">
<table class="table table-striped table-bordered table-hover" id="sample-table">
<thead>
<tr>
<th width="25"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
<th width="80">ID</th>
<th width="100">用户名</th>
<th width="80">性别</th>
<th width="120">手机</th>
<th width="150">邮箱</th>
<th width="180">加入时间</th>
<th width="100">等级</th>
<th width="100">积分</th>
<th width="70">状态</th>
<th width="250">操作</th>
</tr>
</thead>
<tbody>
<tr>
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
<td>1</td>
<td><u style="cursor:pointer" class="text-primary" onclick="member_show('张三','member-show.html','10001','500','400')">张三</u></td>
<td>男</td>
<td>13000000000</td>
<td>2014-6-11 11:11:42</td>
<td>普通用户</td>
<td class="text-l">345</td>
<td class="td-status"><span class="label label-success radius">已启用</span></td>
<td class="td-manage">
<a onClick="member_stop(this,'10001')" href="javascript:;" title="停用" class="btn btn-xs btn-success"><i class="fa fa-check bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
</td>
</tr>
<tr>
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
<td>2</td>
<td><u style="cursor:pointer" class="text-primary" onclick="member_show('二当家的','member-show.html','1031','500','400')">二当家的</u></td>
<td>男</td>
<td>13000000000</td>
<td>2014-6-11 11:11:42</td>
<td>普通用户</td>
<td class="text-l">1345</td>
<td class="td-status"><span class="label label-success radius">已启用</span></td>
<td class="td-manage">
<a onClick="member_stop(this,'10001')" href="javascript:;" title="停用" class="btn btn-xs btn-success"><i class="fa fa-check bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
</td>
</tr>
<tr>
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
<td>3</td>
<td><u style="cursor:pointer" class="text-primary" onclick="member_show('二当家的','member-show.html','10301','500','400')">二当家的</u></td>
<td>男</td>
<td>13000000000</td>
<td>2014-6-11 11:11:42</td>
<td>银牌用户</td>
<td class="text-l">645</td>
<td class="td-status"><span class="label label-success radius">已启用</span></td>
<td class="td-manage">
<a onClick="member_stop(this,'10001')" href="javascript:;" title="停用" class="btn btn-xs btn-success"><i class="fa fa-check bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
</td>
</tr>
<tr>
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
<td>4</td>
<td><u style="cursor:pointer" class="text-primary" onclick="member_show('二当家的','member-show.html','10001','500','400')">二当家的</u></td>
<td>男</td>
<td>13000000000</td>
<td>2014-6-11 11:11:42</td>
<td>银牌用户</td>
<td class="text-l">645</td>
<td class="td-status"><span class="label label-success radius">已启用</span></td>
<td class="td-manage">
<a onClick="member_stop(this,'10001')" href="javascript:;" title="停用" class="btn btn-xs btn-success"><i class="fa fa-check bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
</td>
</tr>
<tr>
<td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
<td>5</td>
<td><u style="cursor:pointer" class="text-primary" onclick="member_show('二当家的','member-show.html','10001','500','400')">二当家的</u></td>
<td>男</td>
<td>13000000000</td>
<td>2014-6-11 11:11:42</td>
<td>银牌用户</td>
<td class="text-l">345</td>
<td class="td-status"><span class="label label-success radius">已启用</span></td>
<td class="td-manage">
<a onClick="member_stop(this,'10001')" href="javascript:;" title="停用" class="btn btn-xs btn-success"><i class="fa fa-check bigger-120"></i></a>
<a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="btn btn-xs btn-warning" ><i class="fa fa-trash bigger-120"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
$(function() {
$("#category").fix({
float : 'left',
//minStatue : true,
skin : 'green',
durationTime :false,
spacingw:20,
spacingh:240,
set_scrollsidebar:'.right_grading',
});
});
$(function() {
$("#Statistic_pie").fix({
float : 'top',
//minStatue : true,
skin : 'green',
durationTime :false,
spacingw:0,
spacingh:0,
close_btn:'.top_close_btn',
show_btn:'.top_show_btn',
side_list:'.Statistics',
close_btn_width:80,
side_title:'.Statistic_title',
});
});
/*用户-查看*/
function member_show(title,url,id,w,h){
layer_show(title,url+'#?='+id,w,h);
}
/*用户-停用*/
function member_stop(obj,id){
layer.confirm('确认要停用吗?',function(index){
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs " onClick="member_start(this,id)" href="javascript:;" title="启用"><i class="fa fa-close bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已停用</span>');
$(obj).remove();
layer.msg('已停用!',{icon: 5,time:1000});
});
}
/*用户-启用*/
function member_start(obj,id){
layer.confirm('确认要启用吗?',function(index){
$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" class="btn btn-xs btn-success" onClick="member_stop(this,id)" href="javascript:;" title="停用"><i class="fa fa-check bigger-120"></i></a>');
$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
$(obj).remove();
layer.msg('已启用!',{icon: 6,time:1000});
});
}
</script>
<script type="text/javascript">
//初始化宽度、高度
$(".widget-box").height($(window).height());
$(".page_right_style").width($(window).width()-220);
//$(".table_menu_list").width($(window).width()-240);
//当文档窗口发生改变时 触发
$(window).resize(function(){
$(".widget-box").height($(window).height());
$(".page_right_style").width($(window).width()-220);
//$(".table_menu_list").width($(window).width()-240);
})
/**************/
require.config({
paths: {
echarts: './assets/dist'
}
});
require(
[
'echarts',
'echarts/theme/macarons',
'echarts/chart/pie', // 按需加载所需图表,如需动态类型切换功能,别忘了同时加载相应图表
'echarts/chart/funnel'
],
function (ec,theme) {
var myChart = ec.init(document.getElementById('Statistics'),theme);
option = {
title : {
text: '用户等级统计',
subtext: '实时更新最新等级',
x:'center'
},
tooltip : {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
legend: {
x : 'center',
y : 'bottom',
data:['普通用户','铁牌用户','铜牌用户','银牌用户','金牌用户','钻石用户','蓝钻用户','红钻用户']
},
toolbox: {
show : true,
feature : {
mark : {show: false},
dataView : {show: false, readOnly: true},
magicType : {
show: true,
type: ['pie', 'funnel'],
option: {
funnel: {
x: '25%',
width: '50%',
funnelAlign: 'left',
max: 6200
}
}
},
restore : {show: true},
saveAsImage : {show: true}
}
},
calculable : true,
series : [
{
name:'品牌数量',
type:'pie',
radius : '55%',
center: ['50%', '60%'],
data:[
{value:1200, name:'普通用户'},
{value:1100, name:'铁牌用户'},
{value:1300, name:'铜牌用户'},
{value:1000, name:'银牌用户'},
{value:980, name:'金牌用户'},
{value:850, name:'钻石用户'},
{value:550, name:'蓝钻用户'},
{value:220, name:'红钻用户'},
]
}
]
};
myChart.setOption(option);
}
);
</script>
<script type="text/javascript">
$(function($) {
var oTable1 = $('#sample-table').dataTable( {
"aaSorting": [[ 1, "desc" ]],//默认第几个排序
"bStateSave": true,//状态保存
"aoColumnDefs": [
//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
{"orderable":false,"aTargets":[0,2,3,4,5,6,7,9]}// 制定列不参与排序
] } );
$('table th input:checkbox').on('click' , function(){
var that = this;
$(this).closest('table').find('tr > td:first-child input:checkbox')
.each(function(){
this.checked = that.checked;
$(this).closest('tr').toggleClass('selected');
});
});
$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
function tooltip_placement(context, source) {
var $source = $(source);
var $parent = $source.closest('table')
var off1 = $parent.offset();
var w1 = $parent.width();
var off2 = $source.offset();
var w2 = $source.width();
if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
return 'left';
}
});
</script>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。