优化首页

This commit is contained in:
yubao 2018-03-31 15:10:36 +08:00
parent 4bfdfba503
commit 8759ed3ba3
11 changed files with 59 additions and 558 deletions

View File

@ -600,13 +600,6 @@
<Content Include="layui\font\iconfont.eot" />
<Content Include="layui\font\iconfont.ttf" />
<Content Include="layui\font\iconfont.woff" />
<Content Include="json\images.json" />
<Content Include="json\linksList.json" />
<Content Include="json\message.json" />
<Content Include="json\navs.json" />
<Content Include="json\newsList.json" />
<Content Include="json\systemParameter.json" />
<Content Include="json\userface.json" />
<Content Include="js\ueditor\formdesign\textfield.html.ajax.bak" />
<Content Include="js\flow\fonts\iconflow.eot" />
<Content Include="js\flow\fonts\iconflow.ttf" />

View File

@ -4,29 +4,29 @@
}
<div class="panel_box row">
<div class="panel col">
<a href="javascript:;" data-url="page/message/message.html">
<a href="javascript:;" data-url="/orgmanager/index">
<div class="panel_icon">
<i class="layui-icon" data-icon="&#xe63a;">&#xe63a;</i>
</div>
<div class="panel_word newMessage">
<div class="panel_word orgs">
<span></span>
<cite>新消息</cite>
<cite>机构总数</cite>
</div>
</a>
</div>
<div class="panel col">
<a href="javascript:;" data-url="page/user/allUsers.html">
<a href="javascript:;" data-url="/Rolemanager/index">
<div class="panel_icon" style="background-color:#FF5722;">
<i class="iconfont icon-dongtaifensishu" data-icon="icon-dongtaifensishu"></i>
</div>
<div class="panel_word userAll">
<div class="panel_word roles">
<span></span>
<cite>新增人数</cite>
<cite>角色总数</cite>
</div>
</a>
</div>
<div class="panel col">
<a href="javascript:;" data-url="page/user/allUsers.html">
<a href="javascript:;" data-url="/UserManager/Index">
<div class="panel_icon" style="background-color:#009688;">
<i class="layui-icon" data-icon="&#xe613;">&#xe613;</i>
</div>
@ -37,36 +37,35 @@
</a>
</div>
<div class="panel col">
<a href="javascript:;" data-url="page/img/images.html">
<a href="javascript:;" data-url="/forms/index">
<div class="panel_icon" style="background-color:#5FB878;">
<i class="layui-icon" data-icon="&#xe64a;">&#xe64a;</i>
</div>
<div class="panel_word imgAll">
<div class="panel_word forms">
<span></span>
<cite>图片总数</cite>
<cite>表单总数</cite>
</div>
</a>
</div>
<div class="panel col">
<a href="javascript:;" data-url="page/news/newsList.html">
<a href="javascript:;" data-url="/flowinstances/index">
<div class="panel_icon" style="background-color:#F7B824;">
<i class="iconfont icon-wenben" data-icon="icon-wenben"></i>
</div>
<div class="panel_word waitNews">
<div class="panel_word flows">
<span></span>
<cite>待审核文章</cite>
<cite>我的流程</cite>
</div>
</a>
</div>
<div class="panel col max_panel">
<a href="javascript:;" data-url="page/news/newsList.html">
<a href="javascript:;" data-url="/flowschemes/index">
<div class="panel_icon" style="background-color:#2F4056;">
<i class="iconfont icon-text" data-icon="icon-text"></i>
</div>
<div class="panel_word allNews">
<div class="panel_word flowschemes">
<span></span>
<em>文章总数</em>
<cite>文章列表</cite>
<cite>流程模板</cite>
</div>
</a>
</div>

View File

@ -1,94 +0,0 @@
[{
"imgSrc" : "/images/userface1.jpg",
"imgTitle" : "美女生活照1"
},{
"imgSrc" : "/images/userface2.jpg",
"imgTitle" : "美女生活照2"
},{
"imgSrc" : "/images/userface3.jpg",
"imgTitle" : "美女生活照3"
},{
"imgSrc" : "/images/userface4.jpg",
"imgTitle" : "美女生活照4"
},{
"imgSrc" : "/images/userface5.jpg",
"imgTitle" : "美女生活照5"
},{
"imgSrc" : "/images/userface1.jpg",
"imgTitle" : "美女生活照6"
},{
"imgSrc" : "/images/userface2.jpg",
"imgTitle" : "美女生活照7"
},{
"imgSrc" : "/images/userface3.jpg",
"imgTitle" : "美女生活照8"
},{
"imgSrc" : "/images/userface4.jpg",
"imgTitle" : "美女生活照9"
},{
"imgSrc" : "/images/userface5.jpg",
"imgTitle" : "美女生活照10"
},{
"imgSrc" : "/images/userface1.jpg",
"imgTitle" : "美女生活照11"
},{
"imgSrc" : "/images/userface2.jpg",
"imgTitle" : "美女生活照12"
},{
"imgSrc" : "/images/userface3.jpg",
"imgTitle" : "美女生活照13"
},{
"imgSrc" : "/images/userface4.jpg",
"imgTitle" : "美女生活照14"
},{
"imgSrc" : "/images/userface5.jpg",
"imgTitle" : "美女生活照15"
},{
"imgSrc" : "/images/userface1.jpg",
"imgTitle" : "美女生活照16"
},{
"imgSrc" : "/images/userface2.jpg",
"imgTitle" : "美女生活照17"
},{
"imgSrc" : "/images/userface3.jpg",
"imgTitle" : "美女生活照18"
},{
"imgSrc" : "/images/userface4.jpg",
"imgTitle" : "美女生活照19"
},{
"imgSrc" : "/images/userface5.jpg",
"imgTitle" : "美女生活照20"
},{
"imgSrc" : "/images/userface1.jpg",
"imgTitle" : "美女生活照21"
},{
"imgSrc" : "/images/userface2.jpg",
"imgTitle" : "美女生活照22"
},{
"imgSrc" : "/images/userface3.jpg",
"imgTitle" : "美女生活照23"
},{
"imgSrc" : "/images/userface4.jpg",
"imgTitle" : "美女生活照24"
},{
"imgSrc" : "/images/userface5.jpg",
"imgTitle" : "美女生活照25"
},{
"imgSrc" : "/images/userface1.jpg",
"imgTitle" : "美女生活照26"
},{
"imgSrc" : "/images/userface2.jpg",
"imgTitle" : "美女生活照27"
},{
"imgSrc" : "/images/userface3.jpg",
"imgTitle" : "美女生活照28"
},{
"imgSrc" : "/images/userface4.jpg",
"imgTitle" : "美女生活照29"
},{
"imgSrc" : "/images/userface5.jpg",
"imgTitle" : "美女生活照30"
},{
"imgSrc" : "/images/userface3.jpg",
"imgTitle" : "美女生活照31"
}]

View File

@ -1,22 +0,0 @@
[{
"linksId" : "1",
"linksName" : "layui - 经典模块化前端框架",
"linksUrl" : "http://www.layui.com",
"masterEmail" : "xianxin@layui.com",
"linksTime" : "2017-05-14",
"showAddress" : "首页"
},{
"linksId" : "2",
"linksName" : "layer官方演示与讲解",
"linksUrl" : "http://layer.layui.com",
"masterEmail" : "xianxin@layer.com",
"linksTime" : "2017-05-15",
"showAddress" : "子页"
},{
"linksId" : "3",
"linksName" : "layui - 前端框架官方社区",
"linksUrl" : "http://fly.layui.com",
"masterEmail" : "xianxin@fly.com",
"linksTime" : "2017-05-12",
"showAddress" : "子页"
}]

View File

@ -1,46 +0,0 @@
[{
"msgId" : "1111",
"userface" : "../../images/userface1.jpg",
"userName" : "小王",
"userAsk" : "马哥你好,请问你这个模版用的是什么框架啊?",
"askTime" : "2017-05-27 12:50",
"msgReply" : [{
"userface" : "../../images/face.jpg",
"userName" : "请叫我马哥",
"userAsk" : "用的layui贤心大神开发的前端框架",
"askTime" : "2017-05-27 13:50"
}]
},{
"msgId" : "2222",
"userface" : "../../images/userface2.jpg",
"userName" : "小李",
"userAsk" : "马哥你好,请问你多大了?",
"askTime" : "2017-05-27 12:50",
"msgReply" : []
},{
"msgId" : "3333",
"userface" : "../../images/userface3.jpg",
"userName" : "小赵",
"userAsk" : "马哥你好,请问你家是哪的?",
"askTime" : "2017-05-27 12:50",
"msgReply" : []
},{
"msgId" : "4444",
"userface" : "../../images/userface4.jpg",
"userName" : "小高",
"userAsk" : "马哥你好,请问你有没有女朋友啊?",
"askTime" : "2017-05-27 12:50",
"msgReply" : [{
"userface" : "../../images/face.jpg",
"userName" : "请叫我马哥",
"userAsk" : "这个貌似和技术无关吧,难道你想给我当老婆,呵呵。。。",
"askTime" : "2017-05-27 13:50"
}]
},{
"msgId" : "5555",
"userface" : "../../images/userface5.jpg",
"userName" : "小楚",
"userAsk" : "马哥你好,请问你一个月工资多少啊?",
"askTime" : "2017-05-27 12:50",
"msgReply" : []
}]

View File

@ -1,41 +0,0 @@
[{
"title" : "后台首页",
"icon" : "icon-computer",
"href" : "page/main.html",
"spread" : false
},{
"title" : "文章列表",
"icon" : "icon-text",
"href" : "page/news/newsList.html",
"spread" : false
},{
"title" : "友情链接",
"icon" : "&#xe64c;",
"href" : "page/links/linksList.html",
"spread" : false
},{
"title" : "系统基本参数",
"icon" : "&#xe631;",
"href" : "page/systemParameter/systemParameter.html",
"spread" : false
},{
"title" : "其他页面",
"icon" : "&#xe630;",
"href" : "",
"spread" : false,
"children" : [
{
"title" : "404页面",
"icon" : "&#xe61c;",
"href" : "page/404.html",
"spread" : false
},
{
"title" : "登录",
"icon" : "&#xe609;",
"href" : "page/login/login.html",
"spread" : false,
"target" : "_blank"
}
]
}]

View File

@ -1,241 +0,0 @@
[{
"newsId" : "1",
"newsName" : "css3用transition实现边框动画效果",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "",
"newsTime" : "2017-04-14"
},{
"newsId" : "2",
"newsName" : "自定义的模块名称可以包含/吗",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "3",
"newsName" : "layui.tree如何ajax加载二级菜单",
"newsAuthor" : "admin",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "4",
"newsName" : "layui.upload如何带参数像jq的data:{}那样",
"newsAuthor" : "admin",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "5",
"newsName" : "表单元素长度应该怎么调整才美观",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "6",
"newsName" : "layui 利用ajax冲获取到json 数据后 怎样进行渲染",
"newsAuthor" : "admin",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "7",
"newsName" : "微信页面中富文本编辑器LayEdit无法使用",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "",
"newsTime" : "2017-04-14"
},{
"newsId" : "8",
"newsName" : "layui 什么时候发布新的版本呀",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "9",
"newsName" : "layui上传组件不支持上传前的图片预览嘛",
"newsAuthor" : "admin",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "10",
"newsName" : "关于layer.confirm点击无法关闭的疑惑",
"newsAuthor" : "admin",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "11",
"newsName" : "layui form表单提交成功如何拿取返回值",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "12",
"newsName" : "layer mobileV2.0 yes回调函数无法用",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "13",
"newsName" : "关于layer中自带的btn回调弹层页面的内容",
"newsAuthor" : "admin",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "",
"newsTime" : "2017-04-14"
},{
"newsId" : "14",
"newsName" : "被编辑器 layedit 图片上传搞崩溃了",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "15",
"newsName" : "element.tabChange()方法运行了,但是页面并没有产生效果",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "16",
"newsName" : "请教一下layer的滚动条时怎么搞的。真心喜欢啊",
"newsAuthor" : "admin",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "17",
"newsName" : "时间控件怎么取消默认的淡入淡出效果。。。",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "18",
"newsName" : "layer移动版有一年没有更新了不更新了吗",
"newsAuthor" : "admin",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "19",
"newsName" : "layer弹出的动画可以自定义吗",
"newsAuthor" : "admin",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "",
"newsTime" : "2017-04-14"
},{
"newsId" : "20",
"newsName" : "点击layer弹窗里的按钮不能再显示一个弹窗为什么呢",
"newsAuthor" : "admin",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "21",
"newsName" : "layer 为什么可以单引入css",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "22",
"newsName" : "进度条的lay-percent=''是通过ajax动态加载的 可是在页面上无效果",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "23",
"newsName" : "Layim适合做官网的在线客服交流功能吗",
"newsAuthor" : "admin",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "24",
"newsName" : "模块化城市三级联动!模块化加载",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "25",
"newsName" : "fly社区个人中心导航菜单效果是纯CSS做的吗",
"newsAuthor" : "admin",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "",
"newsTime" : "2017-04-14"
},{
"newsId" : "26",
"newsName" : "关于load 弹出显示文字的问题【严重】",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "27",
"newsName" : "layim for mobile移动端关于群聊的插件",
"newsAuthor" : "admin",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "28",
"newsName" : "layui表单radio和checkbox怎么做必须校验",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "29",
"newsName" : "关于layui官网页面代码里面的site样式表",
"newsAuthor" : "请叫我马哥",
"newsStatus" : "待审核",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
},{
"newsId" : "30",
"newsName" : "不触发表单的submit,如何进行layui的表单验证",
"newsAuthor" : "admin",
"newsStatus" : "审核通过",
"newsLook" : "开放浏览",
"isShow" : "checked",
"newsTime" : "2017-04-14"
}]

View File

@ -1,14 +0,0 @@
{
"cmsName": "OpenAuth.Net 最好用的.NET权限工作流框架",
"version": "v4.0",
"author": "yubaolee",
"homePage": "/Home/Index",
"server": "windows",
"dataBase": "2008 R2",
"maxUpload": "2M",
"userRights": "管理员",
"description": "这是宝哥的吐血之作",
"powerby": "copyright @2017 yubaolee",
"record": "yubaolee",
"keywords": "openauth.net.net权限工作流"
}

View File

@ -1,17 +0,0 @@
{
"code": 0,
"msg": "",
"data": [
{
"src": "/images/userface1.jpg"
},{
"src": "/images/userface2.jpg"
},{
"src": "/images/userface3.jpg"
},{
"src": "/images/userface4.jpg"
},{
"src": "/images/userface5.jpg"
}
]
}

View File

@ -10,27 +10,6 @@ layui.config({
window.parent.addTab($(this));
})
//动态获取文章总数和待审核文章数量,最新文章
$.get("/json/newsList.json",
function(data){
var waitNews = [];
$(".allNews span").text(data.length); //文章总数
for(var i=0;i<data.length;i++){
var newsStr = data[i];
if(newsStr["newsStatus"] == "待审核"){
waitNews.push(newsStr);
}
}
$(".waitNews span").text(waitNews.length); //待审核文章
}
)
//图片总数
$.get("/json/images.json",
function(data){
$(".imgAll span").text(data.length);
}
)
//用户数
$.getJSON("/UserManager/Load?limit=1&page=1",
@ -39,13 +18,40 @@ layui.config({
}
)
//新消息
$.get("/json/message.json",
function(data){
$(".newMessage span").text(data.length);
}
)
//机构
$.getJSON("/UserSession/GetOrgs",
function (data) {
$(".orgs span").text(data.length);
}
)
//机构
$.getJSON("/RoleManager/Load?limit=1&page=1",
function (data) {
$(".roles span").text(data.count);
}
)
//我的流程
$.getJSON("/Flowinstances/Load?limit=1&page=1",
function (data) {
$(".flows span").text(data.count);
}
)
//流程模板
$.getJSON("/flowschemes/Load?limit=1&page=1",
function (data) {
$(".flowschemes span").text(data.count);
}
)
//表单
$.getJSON("/Forms/Load?limit=1&page=1",
function (data) {
$(".forms span").text(data.count);
}
)
//数字格式化
$(".panel span").each(function(){
@ -53,37 +59,12 @@ layui.config({
})
//系统基本参数
if(window.sessionStorage.getItem("systemParameter")){
var systemParameter = JSON.parse(window.sessionStorage.getItem("systemParameter"));
fillParameter(systemParameter);
}else{
$.ajax({
url : "/json/systemParameter.json",
type : "get",
dataType : "json",
success : function(data){
fillParameter(data);
}
})
}
//填充数据方法
function fillParameter(data){
//判断字段数据是否存在
function nullData(data){
if(data == '' || data == "undefined"){
return "未定义";
}else{
return data;
}
}
$(".version").text(nullData(data.version)); //当前版本
$(".author").text(nullData(data.author)); //开发作者
$(".homePage").text(nullData(data.homePage)); //网站首页
$(".server").text(nullData(data.server)); //服务器环境
$(".dataBase").text(nullData(data.dataBase)); //数据库版本
$(".maxUpload").text(nullData(data.maxUpload)); //最大上传限制
$(".userRights").text(nullData(data.userRights));//当前用户权限
}
$(".version").text("4.0"); //当前版本
$(".author").text("yubaolee"); //开发作者
$(".homePage").text("/Home/Index"); //网站首页
$(".server").text("Windows Server 2012"); //服务器环境
$(".dataBase").text("Sql Server 2012"); //数据库版本
$(".maxUpload").text("100M"); //最大上传限制
$(".userRights").text("管理员");//当前用户权限
})

View File

@ -76,6 +76,9 @@ layui.config({
content: $('#divEdit'),
success: function() {
vm.$set('$data', data);
$("input:checkbox[name='Status']").prop("checked", data.Status == 1);
form.render();
},
end: mainList
});