chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
@@ -0,0 +1,200 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>客户活跃度分析-e订通后台</title>
|
||||
<link rel="stylesheet" href="layuiadmin/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="index.css">
|
||||
<script src="layuiadmin/layui/layui.js"></script>
|
||||
<script src="js/function.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<div class="layui-tab" lay-filter="tab1">
|
||||
<div class="layui-inline"><ul class="layui-tab-title"></ul></div>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<div class="layui-row">
|
||||
<!-- 查询条件 -->
|
||||
<blockquote class="layui-elem-quote" style="line-height:44px;padding:8px;">
|
||||
<form class="layui-form" id="form1_search" action="log_hd_client_active.htm">
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="s_username" name="s_username" placeholder="登陆代码" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="s_title" name="s_title" placeholder="客户名称" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-input-inline" id="search_change1"></div>
|
||||
<div class="layui-input-inline" id="search_change2"></div>
|
||||
<div class="layui-input-inline" id="search_change3"></div>
|
||||
<button id="form1_submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="form1_submit"> 开始分析 </button>
|
||||
</form>
|
||||
</blockquote>
|
||||
<!-- /查询条件结束 -->
|
||||
</div>
|
||||
<div class="layui-row">
|
||||
<!-- 表格 -->
|
||||
<div style="width:100%;">
|
||||
<table id="layui_table" lay-filter="layui_table" class="layui-table">
|
||||
<thead id="layui_table_thead">
|
||||
</thead>
|
||||
<tbody id="layui_table_tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- /表格结束 -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function show_active_table(title,id){
|
||||
layui.use(['form','layer','table','element'],function(){
|
||||
var form = layui.form;
|
||||
var layer = layui.layer;
|
||||
var $=layui.jquery;
|
||||
var url1="log_hd_view.htm?_a=view_client&id="+id;
|
||||
parent.layer.open({
|
||||
title:title+'客户操作明细',
|
||||
type : 2,
|
||||
area: ['700px','500px'],
|
||||
content : url1,
|
||||
success : function(layero, index){
|
||||
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
var this_tab_no="";
|
||||
var this_tab_title="";
|
||||
var tableIns={};
|
||||
layui.use(['form','layer','table','element'],function(){
|
||||
var form = layui.form,
|
||||
layer = parent.layer === undefined ? layui.layer : top.layer,
|
||||
$=layui.jquery,
|
||||
laytpl = layui.laytpl,
|
||||
table = layui.table;
|
||||
var element = layui.element;
|
||||
//取得url传递参数
|
||||
var query_str=location.search.substring(1);
|
||||
if(query_str)
|
||||
query_str="&"+query_str;
|
||||
//数据表格
|
||||
var url='./?_m=log_hd&_a=client_active'+query_str;
|
||||
var arr_tab=[];
|
||||
var index = layer.load();
|
||||
$.ajax(
|
||||
{
|
||||
url:url,
|
||||
contentType: "application/json",
|
||||
method: 'POST',
|
||||
success: function (res) {
|
||||
var res=$.parseJSON(res);
|
||||
this_tab_no=res.s_cate;
|
||||
//-----------------------加载tab
|
||||
arr_tab=res.tab;
|
||||
var html1="";
|
||||
for(var i=0;i<arr_tab.length;i++){
|
||||
html1+='<li';
|
||||
if(arr_tab[i].no==res.s_cate){
|
||||
html1+=' class="layui-this"';
|
||||
this_tab_title=arr_tab[i].title;
|
||||
}
|
||||
html1+='>'+arr_tab[i].title+'</li>';
|
||||
}
|
||||
$(".layui-tab-title").html(html1);
|
||||
element.render('tab1');
|
||||
|
||||
//角色
|
||||
var html1='<select id="s_face" name="s_face"><option value="">-角色-</option>';
|
||||
var arr_tmp=res.select_client_face;
|
||||
for(var i=0;i<arr_tmp.length;i++){
|
||||
html1+='<option value="'+arr_tmp[i].val+'"';
|
||||
if(res.s_face==arr_tmp[i].val)
|
||||
html1+=' selected';
|
||||
html1+='>'+arr_tmp[i].title+'</option>';
|
||||
}
|
||||
html1+='</select>';
|
||||
$("#search_change1").html(html1);
|
||||
//客户端
|
||||
var html1='<select id="s_khd" name="s_khd"><option value="">-客户端-</option>';
|
||||
var arr_tmp=res.select_khd;
|
||||
for(var i=0;i<arr_tmp.length;i++){
|
||||
html1+='<option value="'+arr_tmp[i].val+'"';
|
||||
if(res.s_khd==arr_tmp[i].val)
|
||||
html1+=' selected';
|
||||
html1+='>'+arr_tmp[i].title+'</option>';
|
||||
}
|
||||
html1+='</select>';
|
||||
$("#search_change2").html(html1);
|
||||
//排序
|
||||
var html1='<select id="s_order_by" name="s_order_by">';
|
||||
var arr_tmp=res.select_order_by;
|
||||
for(var i=0;i<arr_tmp.length;i++){
|
||||
html1+='<option value="'+arr_tmp[i].val+'"';
|
||||
if(res.s_order_by==arr_tmp[i].val)
|
||||
html1+=' selected';
|
||||
html1+='>'+arr_tmp[i].title+'</option>';
|
||||
}
|
||||
html1+='</select>';
|
||||
$("#search_change3").html(html1);
|
||||
$("#s_username").val(res.s_username);
|
||||
$("#s_title").val(res.s_title);
|
||||
form.render();
|
||||
//表头
|
||||
var html1="";
|
||||
html1+='<tr>';
|
||||
for(var i=0;i<res.thead_str.length;i++){
|
||||
html1+="<td>"+res.thead_str[i].title+"</td>";
|
||||
}
|
||||
html1+='</tr>';
|
||||
$("#layui_table_thead").html(html1);
|
||||
//正体
|
||||
var html1="";
|
||||
for(var i=0;i<res.tbody_str.length;i++){
|
||||
html1+="<tr>";
|
||||
for(var j=0;j<res.thead_str.length;j++){
|
||||
var getzd=res.thead_str[j].zd;
|
||||
if(getzd=="hyd"){
|
||||
html1+='<td onclick="show_active_table(\''+res.tbody_str[i]["kh"]+'\',\''+res.tbody_str[i]["id"]+'\')"><span style="cursor:pointer;color:#1E9FFF;font-weight:bold;">'+res.tbody_str[i][getzd]+'</span></td>';
|
||||
}else{
|
||||
html1+="<td>"+res.tbody_str[i][getzd]+"</td>";
|
||||
}
|
||||
}
|
||||
html1+="</tr>";
|
||||
}
|
||||
html1+="<tr><td align=center colspan=4>合计</td><td>"+res.total_num+"</td><td> </td></tr>";
|
||||
$("#layui_table_tbody").html(html1);
|
||||
|
||||
//关闭loading
|
||||
layer.close(index);
|
||||
},
|
||||
error: function () {
|
||||
layui.layer.msg("与服务器通信失败!");
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
//点击tab
|
||||
element.on('tab(tab1)', function(data){
|
||||
//alert(JSON.stringify(arr_tab));
|
||||
//alert(this.innerHTML);
|
||||
this_tab_title=this.innerHTML;
|
||||
for(var i=0;i<arr_tab.length;i++){
|
||||
if(arr_tab[i].title==this_tab_title){
|
||||
this_tab_no=arr_tab[i].no;
|
||||
}
|
||||
}
|
||||
var url_ext=(this_tab_no=="top")?"":"_"+this_tab_no;
|
||||
var url='log_hd'+url_ext+'.htm';
|
||||
location.href=url;
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user