chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
This commit is contained in:
+194
@@ -0,0 +1,194 @@
|
||||
<!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="shortcut icon" type="image/x-icon" href="../favicon.ico" />
|
||||
<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>
|
||||
<style>
|
||||
.kh_list-container{background:#fff;border:1px solid #e5e5e5;padding-bottom:0px;border-radius:8px;-moz-border-radius:8px;-webkit-border-radius:8px;overflow:hidden;}
|
||||
.kh_list-container:hover{border:1px solid #e8e8e8;}
|
||||
.kh_list-container .img{height:250px;line-height:250px;width:188px;z-index:1;overflow:hidden;}
|
||||
.kh_info{background-color:#000;}
|
||||
.kh_info_left{float:left;height:50px;line-height:50px;padding-top:8px;padding-left:4px;}
|
||||
.kh_info_left .yph{float:left;width:40px;height:40px;line-height:40px;background:#666;text-align:center;border-radius:25px;-moz-border-radius:25px;-webkit-border-radius:25px;color:#ffffff;font-weight:bold;}
|
||||
.kh_info_left .kh{color:#333;float:left;font-size:14px;font-weight:bold;height:40px;line-height:40px;margin-left:10px;}
|
||||
.kh_info_right{float:right;padding-top:8px;padding-right:4px;height:50px;line-height:50px;text-align:right;}
|
||||
.kh_info_right .price{height:40px;line-height:40px;text-align:center;color:#333;font-size:14px;font-weight:bold;}
|
||||
.div_search{top: 0px;left: 0;width: 100%;height: 55px;z-index:999;background-color:#fff;border-bottom:1px solid #eee;}
|
||||
</style>
|
||||
</head>
|
||||
<body style="width:100%;background-color:#fff;overflow:hidden;">
|
||||
<div class="layui-fluid" style="padding:0;">
|
||||
|
||||
<div class="div_search" id="div_search" style="width:100%;">
|
||||
<div style="width:100%;float:left;height:50px;margin-top:10px;min-width:700px;">
|
||||
<form class="layui-form" id="form1_search" action="admin.htm">
|
||||
<div class="layui-input-inline" style="float:left;height:38px;padding-left:10px;"><input type="text" name="s_keyword" id="s_keyword" placeholder="款号或圆牌号" class="layui-input" style="border-radius:10px 10px 10px 10px;"></div>
|
||||
<div id="select_bc" class="layui-input-inline" style="float:left;width:120px;"></div>
|
||||
<div id="select_category" class="layui-input-inline" style="float:left;width:120px;"></div>
|
||||
<div id="change_this" class="layui-input-inline" style="float:left;">
|
||||
<input type="checkbox" id="check_pic" name="check_pic" lay-skin="switch" lay-filter="check_pic" lay-text="缺图片|缺图片">
|
||||
</div>
|
||||
<div class="layui-input-inline" style="float:left;height:38px;line-height:38px;"> <button id="form1_submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="form1_submit"> 开始分析 </button></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-row layui-col-space10" id="edt_msg_content" style="width:98%;margin:0 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;"></div>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
function show_kh_color(kh,khid){
|
||||
layui.use(['form','layer'],function(){
|
||||
var form = layui.form;
|
||||
var layer = layui.layer;
|
||||
var $=layui.jquery;
|
||||
|
||||
var url1="admin_showpic.htm?_a=add&id="+khid;
|
||||
layer.open({
|
||||
id:"picopen_iframe",
|
||||
title:kh+'图片维护',
|
||||
type : 2,
|
||||
area: ['700px','550px'],
|
||||
offset: "c",
|
||||
content : url1,
|
||||
success : function(layero, index){
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
})
|
||||
}
|
||||
var is_mobile="n";
|
||||
layui.config({
|
||||
base: './layuiadmin/'
|
||||
}).extend({
|
||||
index: 'lib/index'
|
||||
}).use(['index','form','user','rate','element','flow'], function(){
|
||||
var $ = layui.$
|
||||
,setter = layui.setter
|
||||
,admin = layui.admin
|
||||
,form = layui.form;
|
||||
var rate = layui.rate;
|
||||
var element = layui.element;
|
||||
var flow = layui.flow;
|
||||
|
||||
if(admin.screen()<2){
|
||||
is_mobile="y";
|
||||
}else{
|
||||
$("body").css("overflow","auto");
|
||||
}
|
||||
|
||||
$(window).on('resize', function(){
|
||||
//自动
|
||||
if(admin.screen()<2)
|
||||
is_mobile="y";
|
||||
});
|
||||
$("#edt_msg_content").css("height",$(document).height());
|
||||
//取得url传递参数
|
||||
var query_str=location.search.substring(1);
|
||||
if(query_str)
|
||||
query_str="&"+query_str;
|
||||
|
||||
var url="./?_m=admin&_a=getselect"+query_str;
|
||||
var url1="./?_m=admin"+query_str;
|
||||
$.ajax({
|
||||
url:url,
|
||||
contentType: "application/json",
|
||||
method: 'POST',
|
||||
success: function (res) {
|
||||
var res=$.parseJSON(res);
|
||||
var json_data=res;
|
||||
if(json_data.code==0){
|
||||
//------------------本页返回的错误信息
|
||||
layer.msg(json_data.msg);
|
||||
}else if(json_data.code==1){
|
||||
//------------------系统错误
|
||||
var msg=json_data.msg;
|
||||
var url1="error.htm?msg="+json_data.msg+"&btn_title="+json_data.btn_title+"&btn_url="+json_data.btn_url;
|
||||
window.parent.location.href=url1;
|
||||
}else if(json_data.code==2){
|
||||
//------------------重新登录
|
||||
url1="login.htm?error_msg="+json_data.msg;
|
||||
window.parent.location.href=url1;
|
||||
}else{
|
||||
var html1="";
|
||||
html1+='<select id="s_bc" name="s_bc"><option value="">'+res.select_bc.title+'</option>';
|
||||
var op=res.select_bc.op;
|
||||
for(var j=0;j<op.length;j++){
|
||||
html1+='<option value="'+op[j].no+'"';
|
||||
if(op[j].no==res.select_bc.value)
|
||||
html1+=' selected';
|
||||
html1+='>'+op[j].title+'</option>';
|
||||
}
|
||||
html1+='</select>';
|
||||
$("#select_bc").html(html1);
|
||||
|
||||
var html1="";
|
||||
html1+='<select id="s_category" name="s_category"><option value="">'+res.select_category.title+'</option>';
|
||||
var op=res.select_category.op;
|
||||
for(var j=0;j<op.length;j++){
|
||||
html1+='<option value="'+op[j].no+'"';
|
||||
if(op[j].no==res.select_category.value)
|
||||
html1+=' selected';
|
||||
html1+='>'+op[j].title+'</option>';
|
||||
}
|
||||
html1+='</select>';
|
||||
$("#select_category").html(html1);
|
||||
$("#s_keyword").val(res.s_keyword);
|
||||
if(res.check_pic=="on"){
|
||||
$("#check_pic").attr('checked',"checked");
|
||||
}else{
|
||||
$("#check_pic").removeAttr('checked');
|
||||
}
|
||||
form.render();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
flow.load({
|
||||
elem: '#edt_msg_content'
|
||||
,scrollElem:'#edt_msg_content'
|
||||
,mb:10
|
||||
,end:'<div style="width:100%;height:30px;line-height:30px;clear:both;">加载完成了</div>'
|
||||
,done: function(page, next){
|
||||
//
|
||||
var lis = [];
|
||||
//数据插入
|
||||
$.get(url1+'&page='+page, function(res){
|
||||
var res=$.parseJSON(res);
|
||||
|
||||
for(var i=0;i<res.data.length;i++){
|
||||
var html1='';
|
||||
html1+='<div class="layui-col-lg2 layui-col-md3 layui-col-sm4 layui-col-xs12"><div class="kh_list-container" id="kh_'+res.data[i].id+'">';
|
||||
//图片
|
||||
html1+='<div class="img"><img onclick="show_kh_color(\''+res.data[i].kh+'\',\''+res.data[i].id+'\')" src="'+res.data[i].pic_src+'" width="'+res.data[i].pic_w+'" height="'+res.data[i].pic_h+'"></div><hr>';
|
||||
html1+='<div class="kh_info">';
|
||||
html1+='<div class="kh_info_left">';
|
||||
//圆牌号
|
||||
html1+='<div class="yph">'+res.data[i].yph+'</div>';
|
||||
//款号
|
||||
html1+='<div class="kh">'+res.data[i].kh+'</div>';
|
||||
html1+='</div>';
|
||||
html1+='<div class="kh_info_right"><div class="price">¥'+res.data[i].price+'</div></div>';
|
||||
html1+='</div></div></div>';
|
||||
lis.push(html1);
|
||||
}
|
||||
next(lis.join(''), page < res.pages);
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
form.on('switch(check_pic)', function(obj){
|
||||
$('#form1_search').submit();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user