Skip to content
切换导航面板
项目
群组
代码片段
帮助
zhangtai
/
zzhnc
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
文件
提交
分支
标签
贡献者
图像
比较
图表
Commit 63f7a0ef
由
沈姿.前端(已离职)
编写于
Dec 26, 2017
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
更新layui框架
1 个父辈
471c8ef8
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
37 个修改的文件
包含
116 行增加
和
495 行删除
WebContent/WEB-INF/jsp/pc/banner/bannerList.jsp
WebContent/WEB-INF/jsp/pc/goods/goodsList.jsp
WebContent/WEB-INF/jsp/pc/index.jsp
WebContent/WEB-INF/res/css/basic.css
WebContent/WEB-INF/res/js/index.js
WebContent/WEB-INF/res/js/navbar.js
WebContent/WEB-INF/res/js/tab.js
WebContent/WEB-INF/res/plugins/datas/nav.js
WebContent/WEB-INF/res/plugins/layui/css/layui.css
WebContent/WEB-INF/res/plugins/layui/css/layui.mobile.css
WebContent/WEB-INF/res/plugins/layui/css/modules/code.css
WebContent/WEB-INF/res/plugins/layui/css/modules/laydate/default/laydate.css
WebContent/WEB-INF/res/plugins/layui/css/modules/layer/default/layer.css
WebContent/WEB-INF/res/plugins/layui/font/iconfont.eot
WebContent/WEB-INF/res/plugins/layui/font/iconfont.svg
WebContent/WEB-INF/res/plugins/layui/font/iconfont.ttf
WebContent/WEB-INF/res/plugins/layui/font/iconfont.woff
WebContent/WEB-INF/res/plugins/layui/lay/modules/carousel.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/code.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/element.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/flow.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/form.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/jquery.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/laydate.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/layedit.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/layer.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/laypage.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/laytpl.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/mobile.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/table.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/tree.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/upload.js
WebContent/WEB-INF/res/plugins/layui/lay/modules/util.js
WebContent/WEB-INF/res/plugins/layui/layui.all.js
WebContent/WEB-INF/res/plugins/layui/layui.js
build/classes/com/w1hd/zzhnc/util/QQFaceUtil.class
build/classes/org/theyeasy/weixin/util/SHA1.class
WebContent/WEB-INF/jsp/pc/banner/bannerList.jsp
查看文件 @
63f7a0e
...
...
@@ -9,187 +9,84 @@
<title>
首页banner设置
</title>
<link
rel=
"stylesheet"
href=
"/zzhnc/res/plugins/layui/css/layui.css"
>
<link
rel=
"stylesheet"
href=
"/zzhnc/res/css/basic.css"
>
<style>
.bannerShow
.item
{
width
:
300px
;
height
:
200px
;
position
:
relative
;
display
:
inline-block
;
margin-right
:
16px
;
margin-bottom
:
16px
;
}
.bannerShow
.item
img
{
width
:
100%
;
height
:
100%
;
}
.bannerShow
.item
:hover
#deleteBtn
{
display
:
inline-block
;
}
.bannerShow
.item
#deleteBtn
{
position
:
absolute
;
right
:
-20px
;
top
:
-20px
;
font-size
:
50px
;
color
:
red
;
display
:
none
;
}
</style>
</head>
<body
class=
"wrap"
>
<table
class=
"layui-table"
>
<thead>
<tr>
<th>
No
</th>
<th>
项目名称
</th>
<th>
经度
</th>
<th>
纬度
</th>
<th>
海报模板id
</th>
<th>
更新时间
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody
id=
"tablelist"
>
</tbody>
</table>
<div
class=
"nulldata"
>
暂无数据
</div>
<div
id=
"page"
></div>
</body>
<form
class=
"layui-form Detailbtn"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
项目名称
</label>
<div
class=
"layui-input-inline"
style=
"width:390px;"
>
<input
type=
"text"
name=
"name"
lay-verify=
"required"
placeholder=
"项目名称"
class=
"layui-input"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
海报模板id
</label>
<div
class=
"layui-input-inline"
>
<select
name=
"postertempletid"
lay-verify=
"required"
>
<option
value=
""
></option>
<option
value=
"0"
>
1
</option>
<option
value=
"1"
>
2
</option>
<option
value=
"2"
>
3
</option>
<option
value=
"3"
>
4
</option>
<option
value=
"4"
>
5
</option>
</select>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
位置
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"lng"
lay-verify=
"required"
placeholder=
"经度"
class=
"layui-input"
>
</div>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"lat"
lay-verify=
"required"
placeholder=
"纬度"
class=
"layui-input"
>
</div>
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/api?v=2.0&ak=V45f8fZO8HiU1gLflQdrpv81D4gXKGRH"
></script>
<div
id=
"allmap"
></div>
<button
class=
"layui-btn uploadImg"
><i
class=
"layui-icon"
>

</i>
上传banner图
</button>
<fieldset
class=
"layui-elem-field layui-field-title"
>
<legend>
banner图片展示
</legend>
</fieldset>
<div
class=
"bannerShow"
>
</div>
</form>
<div
class=
"nodata"
>
暂无banner图,请上传banner图片。
</div>
</body>
<script
src=
'/zzhnc/res/js/jquery.min.js'
></script>
<script
src=
"/zzhnc/res/plugins/layui/layui.js"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
src=
"/zzhnc/res/js/me.js"
></script>
<script>
// 百度地图API功能
var
map
=
new
BMap
.
Map
(
"allmap"
);
map
.
centerAndZoom
(
"重庆"
,
12
);
//单击获取点击的经纬度
map
.
addEventListener
(
"click"
,
function
(
e
)
{
alert
(
e
.
point
.
lng
+
","
+
e
.
point
.
lat
);
});
layui
.
use
([
'form'
,
'element'
,
'laydate'
,
'layer'
,
'laypage'
],
function
()
{
var
form
=
layui
.
form
(),
element
=
layui
.
element
(),
laydate
=
layui
.
laydate
,
layer
=
layui
.
layer
,
laypage
=
layui
.
laypage
;
var
page
=
1
;
var
keyword
=
""
;
//查询
form
.
on
(
'submit(querybtn)'
,
function
(
data
)
{
var
keyword
=
$
(
"input[name=keyword]"
).
val
();
Initdata
(
page
,
keyword
)
});
$
(
".resetBtn"
).
on
(
"click"
,
function
()
{
$
(
"input[name=keyword]"
).
val
(
""
);
Initdata
(
page
,
keyword
)
})
//初始化数据
Initdata
(
page
,
keyword
);
function
Initdata
(
page
,
keyword
)
{
layui
.
use
([
'table'
,
'upload'
],
function
()
{
var
table
=
layui
.
table
,
upload
=
layui
.
upload
;
$
.
post
(
"/zzhnc/project/getProjectList"
,
{
page
:
page
,
keyword
:
keyword
},
function
(
data
)
{
data
=
data
.
data
;
console
.
log
(
data
)
laypage
({
cont
:
'page'
,
pages
:
data
.
totalPages
,
//总页数
curr
:
page
,
skip
:
true
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
page
=
obj
.
curr
Initdata
(
page
,
keyword
);
}
var
list
=
$
{
list
};
console
.
log
(
list
)
}
});
var
str
=
""
;
if
(
data
.
rows
.
length
<
1
)
{
$
(
".nulldata"
).
show
();
}
else
{
$
(
".nulldata"
).
hide
();
for
(
var
i
=
0
;
i
<
data
.
rows
.
length
;
i
++
)
{
str
+=
'<tr data-id='
+
data
.
rows
[
i
].
id
+
'>'
+
'<td>'
+
((
data
.
page
-
1
)
*
data
.
pageSize
+
i
+
1
)
+
'</td>'
+
'<td style="text-align:left;">'
+
data
.
rows
[
i
].
name
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
lng
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
lat
+
'</td>'
+
'<td>'
+
data
.
rows
[
i
].
postertempletid
+
'</td>'
+
'<td>'
+
toTime_G
(
data
.
rows
[
i
].
updatedtime
)
+
'</td>'
+
'<td>'
+
'<a href="#" class="layui-btn layui-btn-mini updataBtn">修改</a>'
+
'<a href="#" class="layui-btn layui-btn-mini deleteBtn">删除</a>'
+
'</td>'
+
'</tr>'
;
}
}
$
(
"#tablelist"
).
html
(
str
);
toNull_G
();
})
if
(
list
.
length
>
0
){
$
(
".bannerShow"
).
show
()
$
(
".nodata"
).
hide
()
}
else
{
$
(
".nodata"
).
show
()
$
(
".bannerShow"
).
hide
()
}
//添加项目
$
(
document
).
on
(
"click"
,
".createBtn"
,
function
()
{
if
(
parent
.
tab
.
exists
(
"添加项目"
)
>
0
)
{
var
tabid
=
parent
.
tab
.
getTabId
(
"添加项目"
);
parent
.
tab
.
deleteTab
(
tabid
);
}
parent
.
tab
.
tabAdd
({
href
:
"/zzhnc/project/projectEdit?id=0"
,
icon
:
"fa-cubes"
,
title
:
"添加项目"
});
})
//修改项目
$
(
document
).
on
(
"click"
,
".updataBtn"
,
function
()
{
var
id
=
$
(
this
).
parents
(
"tr"
).
attr
(
"data-id"
);
if
(
parent
.
tab
.
exists
(
"修改项目"
)
>
0
)
{
var
tabid
=
parent
.
tab
.
getTabId
(
"修改项目"
);
parent
.
tab
.
deleteTab
(
tabid
);
//上传图片
upload
.
render
({
url
:
'/zzhnc/upload/UploadImg'
,
elem
:
'.uploadImg'
,
method
:
'post'
,
done
:
function
(
res
)
{
if
(
res
.
code
==
0
)
{
$
(
".bannerShow"
).
show
()
$
(
".nodata"
).
hide
()
var
str
=
'<div class="item">'
+
'<img src="'
+
res
.
data
+
'" />'
+
'<i class="layui-icon" id="deleteBtn">ဇ</i>'
+
'</div>'
;
$
(
".bannerShow"
).
append
(
str
);
}
}
parent
.
tab
.
tabAdd
({
href
:
"/zzhnc/project/projectEdit?id="
+
id
,
icon
:
"fa-cubes"
,
title
:
"修改项目"
});
})
//删除项目
$
(
document
).
on
(
"click"
,
".deleteBtn"
,
function
()
{
var
id
=
$
(
this
).
parents
(
"tr"
).
attr
(
"data-id"
);
layer
.
confirm
(
'您确定要删除该项目吗?'
,
{
btn
:
[
'确定'
,
'取消'
]
//按钮
},
function
(
index
,
layero
)
{
$
.
post
(
"/zzhnc/project/deleteProject"
,
{
id
:
id
},
function
(
data
)
{
console
.
log
(
data
)
if
(
data
.
code
==
0
)
{
top
.
layer
.
msg
(
"删除成功"
);
Initdata
(
1
,
keyword
)
layer
.
close
(
index
);
}
else
{
top
.
layer
.
msg
(
data
.
msg
);
}
})
},
function
(
index
,
layero
)
{
layer
.
close
(
index
);
});
});
//删除banner图
$
(
document
).
on
(
"click"
,
"#deleteBtn"
,
function
()
{
$
(
this
).
parent
().
remove
();
})
})
</script>
...
...
WebContent/WEB-INF/jsp/pc/goods/goodsList.jsp
查看文件 @
63f7a0e
...
...
@@ -50,7 +50,7 @@
<tbody
id=
"tablelist"
>
</tbody>
</table>
<div
class=
"n
ull
data"
>
暂无数据
</div>
<div
class=
"n
o
data"
>
暂无数据
</div>
<div
id=
"page"
></div>
</body>
...
...
@@ -60,8 +60,8 @@
<script
type=
"text/javascript"
src=
"/zzhnc/res/js/me.js"
></script>
<script>
layui
.
use
([
'form'
,
'element'
,
'laydate'
,
'layer'
,
'laypage'
],
function
()
{
var
form
=
layui
.
form
()
,
element
=
layui
.
element
()
,
var
form
=
layui
.
form
,
element
=
layui
.
element
,
laydate
=
layui
.
laydate
,
layer
=
layui
.
layer
,
laypage
=
layui
.
laypage
;
...
...
@@ -98,8 +98,8 @@
$
.
post
(
"/zzhnc/article/getArticlesList"
,
queryObj
,
function
(
data
)
{
data
=
data
.
data
;
console
.
log
(
data
)
laypage
({
cont
:
'page'
,
laypage
.
render
({
elem
:
'page'
,
pages
:
data
.
totalPages
,
//总页数
curr
:
queryObj
.
page
,
skip
:
true
,
...
...
WebContent/WEB-INF/jsp/pc/index.jsp
查看文件 @
63f7a0e
...
...
@@ -11,7 +11,7 @@
<link
rel=
"stylesheet"
href=
"/zzhnc/res/plugins/layui/css/layui.css"
>
<link
rel=
"stylesheet"
href=
"/zzhnc/res/css/Layuiglobal.css"
>
<link
rel=
"stylesheet"
href=
"/zzhnc/res/plugins/font-awesome/css/font-awesome.min.css"
>
<link
rel=
"stylesheet"
href=
"http://at.alicdn.com/t/font_450595_
tgwp56b3fjuzyqfr
.css"
>
<link
rel=
"stylesheet"
href=
"http://at.alicdn.com/t/font_450595_
ifme6z69cizwu3di
.css"
>
<script
src=
'http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'
></script>
<style>
.container
{
...
...
@@ -25,6 +25,9 @@
.layui-layout-admin
.site-demo-body
{
top
:
70px
;
}
.layui-layout-admin
.layui-side
{
top
:
70px
;
}
.layui-layout-admin
.header-demo
{
border
:
none
;
...
...
@@ -80,13 +83,13 @@
</style>
<script>
/* $(function(){
var tipObj = document.getElementById('chromeTip');
if(tipObj){
if( navigator.userAgent.indexOf('Chrome') == -1 || navigator.userAgent.indexOf('Edge') != -1){
tipObj.style.display = 'block';
}
}
}) */
var tipObj = document.getElementById('chromeTip');
if(tipObj){
if( navigator.userAgent.indexOf('Chrome') == -1 || navigator.userAgent.indexOf('Edge') != -1){
tipObj.style.display = 'block';
}
}
}) */
</script>
</head>
...
...
@@ -138,7 +141,7 @@
</ul>
<div
class=
"layui-tab-content"
style=
"min-height: 150px; padding: 0; height: auto;"
>
<div
class=
"layui-tab-item layui-show"
>
<iframe
src=
"/zzhnc/
project/projectIndex
"
target=
"_self"
id=
"baseIframe"
data-id=
"0"
></iframe>
<iframe
src=
"/zzhnc/
goods/goodsList
"
target=
"_self"
id=
"baseIframe"
data-id=
"0"
></iframe>
</div>
</div>
</div>
...
...
@@ -156,7 +159,7 @@
<script
src=
"/zzhnc/res/js/me.js"
></script>
<script>
layui
.
use
([
'element'
,
'layer'
],
function
()
{
var
element
=
layui
.
element
()
,
var
element
=
layui
.
element
,
layer
=
layui
.
layer
;
$
(
".fa-dashboard"
).
on
(
"click"
,
function
()
{
if
(
$
(
this
).
attr
(
"lay-id"
)
==
"0"
)
{
...
...
WebContent/WEB-INF/res/css/basic.css
查看文件 @
63f7a0e
/*----------------鐧诲綍-----------------*/
@charset
"UTF-8"
;
/*----------------登录页面-----------------*/
.loginblock
{
background
:
url(../images/loginimg.jpg)
no-repeat
center
;
...
...
@@ -84,300 +85,19 @@
}
/*-----------鐧诲綍 end-----------*/
/*-----------鍏叡鏍峰紡-----------*/
img
[
src
=
""
]
{
opacity
:
0
;
}
.hint
{
line-height
:
30px
;
padding
:
10px
10px
;
color
:
#E06D20
;
}
.layui-table
td
{
color
:
#666
;
font-weight
:
normal
;
}
.layui-table
th
{
color
:
#333
;
font-weight
:
normal
;
}
/*-----------登录页面 end-----------*/
.wrap
{
margin-left
:
10px
;
}
.createBtn
{}
.Detailbtn
{
padding
:
20px
40px
20px
20px
;
display
:
none
;
}
.searchbox
.layui-input-inline
,
.searchbox
.layui-btn
{
margin-top
:
20px
;
display
:
inline-block
;
float
:
none
;
}
.searchbox
.layui-btn
{
margin-right
:
10px
;
}
.searchbox
.layui-btn
+
.layui-btn
{
margin-left
:
0
;
}
.nulldata
{
padding
:
40px
0
;
text-align
:
center
;
color
:
#666
;
display
:
none
;
border
:
1px
solid
#eee
;
margin-top
:
-10px
;
padding
:
16px
;
}
input
[
name
=
file
]
{
width
:
5px
;
.nodata
{
text-align
:
center
;
height
:
100px
;
line-height
:
100px
;
display
:
none
;
}
.nickbox
{
max-width
:
200px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
text-align
:
left
;
}
.nick
{
display
:
inline
;
line-height
:
40px
;
margin-left
:
10px
;
}
#page
{
display
:
block
;
clear
:
both
;
}
/*-----------鍏叡鏍峰紡end-----------*/
/*-------------鑷姩鍥炲顦�-------------*/
.popupbox
{
width
:
100%
;
}
.popupbos
{
background-color
:
#fff
;
border-bottom-left-radius
:
6px
;
border-bottom-right-radius
:
6px
;
width
:
100%
;
margin
:
auto
;
padding-top
:
20px
;
}
.popupbos
p
{
text-align
:
center
;
line-height
:
30px
;
margin-top
:
10px
;
margin-bottom
:
40px
;
color
:
#666
;
}
.popupbox
.layui-form-label
{
width
:
126px
;
}
.emotion
{
width
:
42px
;
cursor
:
pointer
;
font-size
:
25px
;
margin-top
:
10px
;
display
:
inline-block
;
color
:
#ff6c00
;
float
:
left
;
}
.qqFace
{
margin-top
:
4px
;
background
:
#fff
;
padding
:
10px
;
border
:
1px
#dfe6f6
solid
;
}
.qqFace
table
td
{
padding
:
0px
;
}
.qqFace
table
td
img
{
cursor
:
pointer
;
border
:
1px
#fff
solid
;
}
.qqFace
table
td
img
:hover
{
border
:
1px
#0066cc
solid
;
}
#show
{
width
:
770px
;
margin
:
20px
auto
;
background
:
#fff
;
padding
:
5px
;
border
:
1px
solid
#DDD
;
vertical-align
:
top
;
}
#wlogo
{
width
:
40px
;
height
:
40px
;
border-radius
:
50%
;
float
:
left
;
}
.logoimg
{
width
:
40px
;
height
:
40px
;
margin
:
0
auto
;
}
.layui-table
td
,
.layui-table
th
{
text-align
:
center
;
}
/*----------鑷姩鍥炲 end----------*/
/*---------------娴锋姤---------------*/
.haibao-box
{
width
:
100%
;
border
:
1px
solid
#eee
;
}
.haibao-viewbox
{
min-height
:
909px
;
border
:
1px
solid
#ddd
;
}
.ph_top
{
width
:
100%
;
border-bottom
:
1px
solid
#eee
;
}
.haibaofl
{
float
:
left
;
width
:
640px
;
margin-left
:
10px
;
}
.haibaofr
{
float
:
left
;
width
:
416px
;
}
.haibao-view
{
width
:
100%
;
/*height: 470px;*/
border-bottom
:
none
;
border-top
:
none
;
margin
:
0
auto
;
position
:
relative
;
overflow
:
hidden
;
border-bottom
:
1px
solid
#ddd
;
}
.haibao-view
img
{
width
:
100%
;
}
.box
{
cursor
:
move
;
background-color
:
#FFF
;
border
:
1px
solid
#eeeCCC
;
}
#box
{
width
:
160px
;
height
:
160px
;
position
:
absolute
;
top
:
0px
;
left
:
100px
;
background
:
url(../../res/images/code.png)
;
background-size
:
100%
100%
;
}
.coor
{
overflow
:
hidden
;
cursor
:
se-resize
;
position
:
absolute
;
right
:
0
;
bottom
:
0
;
}
.ph_ft
{
width
:
100%
;
border-top
:
1px
solid
#eee
;
}
/*---------------娴锋姤 end---------------*/
/*公众号*/
.publicbox
{
margin-top
:
20px
;
margin-left
:
20px
;
margin-right
:
20px
;
border
:
1px
solid
#eee
;
overflow
:
hidden
;
margin-bottom
:
20px
;
padding
:
10px
;
height
:
184px
;
}
.publicbos
{
float
:
left
;
marin-right
:
20px
;
margin-bottom
:
20px
;
overflow
:
hidden
;
text-align
:
center
;
width
:
160px
;
}
.publicbos
img
{
width
:
140px
;
height
:
140px
;
display
:
block
;
margin
:
0
auto
;
border-radius
:
2px
;
}
.publicbos
span
{
width
:
140px
;
height
:
140px
;
display
:
block
;
margin
:
0
auto
;
border-radius
:
4px
;
border
:
1px
solid
#eee
;
}
.publicbox
p
{
font-size
:
14px
;
color
:
#666
;
line-height
:
30px
;
margin-top
:
10px
;
}
\ No newline at end of file
WebContent/WEB-INF/res/js/index.js
查看文件 @
63f7a0e
...
...
@@ -6,11 +6,11 @@ layui.config({
base
:
'/zzhnc/res/js/'
,
version
:
new
Date
().
getTime
()
}).
use
([
'element'
,
'layer'
,
'navbar'
,
'tab'
],
function
()
{
var
element
=
layui
.
element
()
,
var
element
=
layui
.
element
,
$
=
layui
.
jquery
,
navbar
=
layui
.
navbar
();
layer
=
layui
.
layer
tab
=
layui
.
tab
({
layer
=
layui
.
layer
tab
=
layui
.
tab
({
elem
:
'.admin-nav-card'
//设置选项卡容器
,
//maxSetting: {
...
...
WebContent/WEB-INF/res/js/navbar.js
查看文件 @
63f7a0e
...
...
@@ -3,7 +3,7 @@ layui.define(['element'], function(exports) {
"use strict"
;
var
$
=
layui
.
jquery
,
layer
=
parent
.
layer
===
undefined
?
layui
.
layer
:
parent
.
layer
,
element
=
layui
.
element
()
,
element
=
layui
.
element
,
// common = layui.common,
cacheName
=
'tb_navbar'
;
var
common
=
{
...
...
WebContent/WEB-INF/res/js/tab.js
查看文件 @
63f7a0e
...
...
@@ -4,7 +4,7 @@ layui.define(['element', 'common'], function (exports) {
var
mod_name
=
'tab'
,
$
=
layui
.
jquery
,
element
=
layui
.
element
()
,
element
=
layui
.
element
,
commo
=
layui
.
common
,
globalTabIdIndex
=
1
,
Tab
=
function
()
{
...
...
WebContent/WEB-INF/res/plugins/datas/nav.js
查看文件 @
63f7a0e
var
navs2
=
[{
"title"
:
"首页banner"
,
"icon"
:
"icon-shangpin"
,
"href"
:
"/zzhnc/banner/bannerList"
},{
"title"
:
"商品管理"
,
"icon"
:
"icon-shangpin"
,
"href"
:
"/zzhnc/goods/goodsList"
},
{
"title"
:
"首页banner"
,
"icon"
:
"icon-banner"
,
"href"
:
"/zzhnc/banner/bannerList"
},
{
"title"
:
"活动介绍"
,
"icon"
:
"icon-huodong"
,
"href"
:
"/zzhnc/activity/activityList"
...
...
WebContent/WEB-INF/res/plugins/layui/css/layui.css
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/css/layui.mobile.css
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/css/modules/code.css
查看文件 @
63f7a0e
/** layui-v1.0.9_rls MIT License By http://www.layui.com */
html
#layuicss-skincodecss
{
display
:
none
;
position
:
absolute
;
width
:
1989px
}
.layui-code-h3
,
.layui-code-view
{
position
:
relative
;
font-size
:
12px
}
.layui-code-view
{
display
:
block
;
margin
:
10px
0
;
padding
:
0
;
border
:
1px
solid
#ddd
;
border-left-width
:
6px
;
background-color
:
#F2F2F2
;
color
:
#333
;
font-family
:
Courier
New
}
.layui-code-h3
{
padding
:
0
10px
;
height
:
30px
;
line-height
:
30px
;
border-bottom
:
1px
solid
#ddd
}
.layui-code-h3
a
{
position
:
absolute
;
right
:
10px
;
top
:
0
;
color
:
#999
}
.layui-code-view
.layui-code-ol
{
position
:
relative
;
overflow
:
auto
}
.layui-code-view
.layui-code-ol
li
{
position
:
relative
;
margin-left
:
45px
;
line-height
:
20px
;
padding
:
0
5px
;
border-left
:
1px
solid
#ddd
;
list-style-type
:
decimal-leading-zero
;
*
list-style-type
:
decimal
;
background-color
:
#fff
}
.layui-code-view
pre
{
margin
:
0
}
.layui-code-notepad
{
border
:
1px
solid
#0C0C0C
;
border-left-color
:
#3F3F3F
;
background-color
:
#0C0C0C
;
color
:
#C2BE9E
}
.layui-code-notepad
.layui-code-h3
{
border-bottom
:
none
}
.layui-code-notepad
.layui-code-ol
li
{
background-color
:
#3F3F3F
;
border-left
:
none
}
\ No newline at end of file
/** layui-v2.2.45 MIT License By http://www.layui.com */
html
#layuicss-skincodecss
{
display
:
none
;
position
:
absolute
;
width
:
1989px
}
.layui-code-h3
,
.layui-code-view
{
position
:
relative
;
font-size
:
12px
}
.layui-code-view
{
display
:
block
;
margin
:
10px
0
;
padding
:
0
;
border
:
1px
solid
#e2e2e2
;
border-left-width
:
6px
;
background-color
:
#F2F2F2
;
color
:
#333
;
font-family
:
Courier
New
}
.layui-code-h3
{
padding
:
0
10px
;
height
:
32px
;
line-height
:
32px
;
border-bottom
:
1px
solid
#e2e2e2
}
.layui-code-h3
a
{
position
:
absolute
;
right
:
10px
;
top
:
0
;
color
:
#999
}
.layui-code-view
.layui-code-ol
{
position
:
relative
;
overflow
:
auto
}
.layui-code-view
.layui-code-ol
li
{
position
:
relative
;
margin-left
:
45px
;
line-height
:
20px
;
padding
:
0
5px
;
border-left
:
1px
solid
#e2e2e2
;
list-style-type
:
decimal-leading-zero
;
*
list-style-type
:
decimal
;
background-color
:
#fff
}
.layui-code-view
pre
{
margin
:
0
}
.layui-code-notepad
{
border
:
1px
solid
#0C0C0C
;
border-left-color
:
#3F3F3F
;
background-color
:
#0C0C0C
;
color
:
#C2BE9E
}
.layui-code-notepad
.layui-code-h3
{
border-bottom
:
none
}
.layui-code-notepad
.layui-code-ol
li
{
background-color
:
#3F3F3F
;
border-left
:
none
}
\ No newline at end of file
WebContent/WEB-INF/res/plugins/layui/css/modules/laydate/default/laydate.css
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/css/modules/layer/default/layer.css
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/font/iconfont.eot
查看文件 @
63f7a0e
此文件类型无法预览
WebContent/WEB-INF/res/plugins/layui/font/iconfont.svg
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/font/iconfont.ttf
查看文件 @
63f7a0e
此文件类型无法预览
WebContent/WEB-INF/res/plugins/layui/font/iconfont.woff
查看文件 @
63f7a0e
此文件类型无法预览
WebContent/WEB-INF/res/plugins/layui/lay/modules/carousel.js
查看文件 @
63f7a0e
/** layui-v2.1.5 MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
e
){
"use strict"
;
var
i
=
layui
.
$
,
n
=
(
layui
.
hint
(),
layui
.
device
(),{
config
:{},
set
:
function
(
e
){
var
n
=
this
;
return
n
.
config
=
i
.
extend
({},
n
.
config
,
e
),
n
},
on
:
function
(
e
,
i
){
return
layui
.
onevent
.
call
(
this
,
t
,
e
,
i
)}}),
t
=
"carousel"
,
a
=
"layui-this"
,
l
=
">*[carousel-item]>*"
,
o
=
"layui-carousel-left"
,
r
=
"layui-carousel-right"
,
d
=
"layui-carousel-prev"
,
s
=
"layui-carousel-next"
,
u
=
"layui-carousel-arrow"
,
c
=
"layui-carousel-ind"
,
m
=
function
(
e
){
var
t
=
this
;
t
.
config
=
i
.
extend
({},
t
.
config
,
n
.
config
,
e
),
t
.
render
()};
m
.
prototype
.
config
=
{
width
:
"600px"
,
height
:
"280px"
,
full
:
!
1
,
arrow
:
"hover"
,
indicator
:
"inside"
,
autoplay
:
!
0
,
interval
:
3
e3
,
anim
:
""
,
trigger
:
"click"
,
index
:
0
},
m
.
prototype
.
render
=
function
(){
var
e
=
this
,
n
=
e
.
config
;
n
.
elem
=
i
(
n
.
elem
),
n
.
elem
[
0
]
&&
(
e
.
elemItem
=
n
.
elem
.
find
(
l
),
n
.
index
<
0
&&
(
n
.
index
=
0
),
n
.
index
>=
e
.
elemItem
.
length
&&
(
n
.
index
=
e
.
elemItem
.
length
-
1
),
n
.
interval
<
800
&&
(
n
.
interval
=
800
),
n
.
full
?
n
.
elem
.
css
({
position
:
"fixed"
,
width
:
"100%"
,
height
:
"100%"
,
zIndex
:
9999
}):
n
.
elem
.
css
({
width
:
n
.
width
,
height
:
n
.
height
}),
n
.
elem
.
attr
(
"lay-anim"
,
n
.
anim
),
e
.
elemItem
.
eq
(
n
.
index
).
addClass
(
a
),
e
.
indicator
(),
e
.
elemItem
.
length
<=
1
||
(
e
.
arrow
(),
e
.
autoplay
(),
e
.
events
()))},
m
.
prototype
.
reload
=
function
(
e
){
var
n
=
this
;
clearInterval
(
n
.
timer
),
n
.
config
=
i
.
extend
({},
n
.
config
,
e
),
n
.
render
()},
m
.
prototype
.
prevIndex
=
function
(){
var
e
=
this
,
i
=
e
.
config
,
n
=
i
.
index
-
1
;
return
n
<
0
&&
(
n
=
e
.
elemItem
.
length
-
1
),
n
},
m
.
prototype
.
nextIndex
=
function
(){
var
e
=
this
,
i
=
e
.
config
,
n
=
i
.
index
+
1
;
return
n
>=
e
.
elemItem
.
length
&&
(
n
=
0
),
n
},
m
.
prototype
.
addIndex
=
function
(
e
){
var
i
=
this
,
n
=
i
.
config
;
e
=
e
||
1
,
n
.
index
=
n
.
index
+
e
,
n
.
index
>=
i
.
elemItem
.
length
&&
(
n
.
index
=
0
)},
m
.
prototype
.
subIndex
=
function
(
e
){
var
i
=
this
,
n
=
i
.
config
;
e
=
e
||
1
,
n
.
index
=
n
.
index
-
e
,
n
.
index
<
0
&&
(
n
.
index
=
i
.
elemItem
.
length
-
1
)},
m
.
prototype
.
autoplay
=
function
(){
var
e
=
this
,
i
=
e
.
config
;
i
.
autoplay
&&
(
e
.
timer
=
setInterval
(
function
(){
e
.
slide
()},
i
.
interval
))},
m
.
prototype
.
arrow
=
function
(){
var
e
=
this
,
n
=
e
.
config
,
t
=
i
([
'<button class="layui-icon '
+
u
+
'" lay-type="sub">'
+
(
"updown"
===
n
.
anim
?
""
:
""
)
+
"</button>"
,
'<button class="layui-icon '
+
u
+
'" lay-type="add">'
+
(
"updown"
===
n
.
anim
?
""
:
""
)
+
"</button>"
].
join
(
""
));
n
.
elem
.
attr
(
"lay-arrow"
,
n
.
arrow
),
n
.
elem
.
find
(
"."
+
u
)[
0
]
&&
n
.
elem
.
find
(
"."
+
u
).
remove
(),
n
.
elem
.
append
(
t
),
t
.
on
(
"click"
,
function
(){
var
n
=
i
(
this
),
t
=
n
.
attr
(
"lay-type"
);
e
.
slide
(
t
)})},
m
.
prototype
.
indicator
=
function
(){
var
e
=
this
,
n
=
e
.
config
,
t
=
e
.
elemInd
=
i
([
'<div class="'
+
c
+
'"><ul>'
,
function
(){
var
i
=
[];
return
layui
.
each
(
e
.
elemItem
,
function
(
e
){
i
.
push
(
"<li"
+
(
n
.
index
===
e
?
' class="layui-this"'
:
""
)
+
"></li>"
)}),
i
.
join
(
""
)}(),
"</ul></div>"
].
join
(
""
));
n
.
elem
.
attr
(
"lay-indicator"
,
n
.
indicator
),
n
.
elem
.
find
(
"."
+
c
)[
0
]
&&
n
.
elem
.
find
(
"."
+
c
).
remove
(),
n
.
elem
.
append
(
t
),
"updown"
===
n
.
anim
&&
t
.
css
(
"margin-top"
,
-
(
t
.
height
()
/
2
)),
t
.
find
(
"li"
).
on
(
"hover"
===
n
.
trigger
?
"mouseover"
:
n
.
trigger
,
function
(){
var
t
=
i
(
this
),
a
=
t
.
index
();
a
>
n
.
index
?
e
.
slide
(
"add"
,
a
-
n
.
index
):
a
<
n
.
index
&&
e
.
slide
(
"sub"
,
n
.
index
-
a
)})},
m
.
prototype
.
slide
=
function
(
e
,
i
){
var
n
=
this
,
l
=
n
.
elemItem
,
u
=
n
.
config
,
c
=
u
.
index
,
m
=
u
.
elem
.
attr
(
"lay-filter"
);
n
.
haveSlide
||
(
"sub"
===
e
?(
n
.
subIndex
(
i
),
l
.
eq
(
u
.
index
).
addClass
(
d
),
setTimeout
(
function
(){
l
.
eq
(
c
).
addClass
(
r
),
l
.
eq
(
u
.
index
).
addClass
(
r
)},
50
)):(
n
.
addIndex
(
i
),
l
.
eq
(
u
.
index
).
addClass
(
s
),
setTimeout
(
function
(){
l
.
eq
(
c
).
addClass
(
o
),
l
.
eq
(
u
.
index
).
addClass
(
o
)},
50
)),
setTimeout
(
function
(){
l
.
removeClass
(
a
+
" "
+
d
+
" "
+
s
+
" "
+
o
+
" "
+
r
),
l
.
eq
(
u
.
index
).
addClass
(
a
),
n
.
haveSlide
=!
1
},
300
),
n
.
elemInd
.
find
(
"li"
).
eq
(
u
.
index
).
addClass
(
a
).
siblings
().
removeClass
(
a
),
n
.
haveSlide
=!
0
,
layui
.
event
.
call
(
this
,
t
,
"change("
+
m
+
")"
,{
index
:
u
.
index
,
prevIndex
:
c
,
item
:
l
.
eq
(
u
.
index
)}))},
m
.
prototype
.
events
=
function
(){
var
e
=
this
,
i
=
e
.
config
;
i
.
elem
.
data
(
"haveEvents"
)
||
(
i
.
elem
.
on
(
"mouseenter"
,
function
(){
clearInterval
(
e
.
timer
)}).
on
(
"mouseleave"
,
function
(){
e
.
autoplay
()}),
i
.
elem
.
data
(
"haveEvents"
,
!
0
))},
n
.
render
=
function
(
e
){
var
i
=
new
m
(
e
);
return
i
},
e
(
t
,
n
)});
\ No newline at end of file
/** layui-v2.2.45 MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
e
){
"use strict"
;
var
i
=
layui
.
$
,
n
=
(
layui
.
hint
(),
layui
.
device
(),{
config
:{},
set
:
function
(
e
){
var
n
=
this
;
return
n
.
config
=
i
.
extend
({},
n
.
config
,
e
),
n
},
on
:
function
(
e
,
i
){
return
layui
.
onevent
.
call
(
this
,
t
,
e
,
i
)}}),
t
=
"carousel"
,
a
=
"layui-this"
,
l
=
">*[carousel-item]>*"
,
o
=
"layui-carousel-left"
,
r
=
"layui-carousel-right"
,
d
=
"layui-carousel-prev"
,
s
=
"layui-carousel-next"
,
u
=
"layui-carousel-arrow"
,
c
=
"layui-carousel-ind"
,
m
=
function
(
e
){
var
t
=
this
;
t
.
config
=
i
.
extend
({},
t
.
config
,
n
.
config
,
e
),
t
.
render
()};
m
.
prototype
.
config
=
{
width
:
"600px"
,
height
:
"280px"
,
full
:
!
1
,
arrow
:
"hover"
,
indicator
:
"inside"
,
autoplay
:
!
0
,
interval
:
3
e3
,
anim
:
""
,
trigger
:
"click"
,
index
:
0
},
m
.
prototype
.
render
=
function
(){
var
e
=
this
,
n
=
e
.
config
;
n
.
elem
=
i
(
n
.
elem
),
n
.
elem
[
0
]
&&
(
e
.
elemItem
=
n
.
elem
.
find
(
l
),
n
.
index
<
0
&&
(
n
.
index
=
0
),
n
.
index
>=
e
.
elemItem
.
length
&&
(
n
.
index
=
e
.
elemItem
.
length
-
1
),
n
.
interval
<
800
&&
(
n
.
interval
=
800
),
n
.
full
?
n
.
elem
.
css
({
position
:
"fixed"
,
width
:
"100%"
,
height
:
"100%"
,
zIndex
:
9999
}):
n
.
elem
.
css
({
width
:
n
.
width
,
height
:
n
.
height
}),
n
.
elem
.
attr
(
"lay-anim"
,
n
.
anim
),
e
.
elemItem
.
eq
(
n
.
index
).
addClass
(
a
),
e
.
elemItem
.
length
<=
1
||
(
e
.
indicator
(),
e
.
arrow
(),
e
.
autoplay
(),
e
.
events
()))},
m
.
prototype
.
reload
=
function
(
e
){
var
n
=
this
;
clearInterval
(
n
.
timer
),
n
.
config
=
i
.
extend
({},
n
.
config
,
e
),
n
.
render
()},
m
.
prototype
.
prevIndex
=
function
(){
var
e
=
this
,
i
=
e
.
config
,
n
=
i
.
index
-
1
;
return
n
<
0
&&
(
n
=
e
.
elemItem
.
length
-
1
),
n
},
m
.
prototype
.
nextIndex
=
function
(){
var
e
=
this
,
i
=
e
.
config
,
n
=
i
.
index
+
1
;
return
n
>=
e
.
elemItem
.
length
&&
(
n
=
0
),
n
},
m
.
prototype
.
addIndex
=
function
(
e
){
var
i
=
this
,
n
=
i
.
config
;
e
=
e
||
1
,
n
.
index
=
n
.
index
+
e
,
n
.
index
>=
i
.
elemItem
.
length
&&
(
n
.
index
=
0
)},
m
.
prototype
.
subIndex
=
function
(
e
){
var
i
=
this
,
n
=
i
.
config
;
e
=
e
||
1
,
n
.
index
=
n
.
index
-
e
,
n
.
index
<
0
&&
(
n
.
index
=
i
.
elemItem
.
length
-
1
)},
m
.
prototype
.
autoplay
=
function
(){
var
e
=
this
,
i
=
e
.
config
;
i
.
autoplay
&&
(
e
.
timer
=
setInterval
(
function
(){
e
.
slide
()},
i
.
interval
))},
m
.
prototype
.
arrow
=
function
(){
var
e
=
this
,
n
=
e
.
config
,
t
=
i
([
'<button class="layui-icon '
+
u
+
'" lay-type="sub">'
+
(
"updown"
===
n
.
anim
?
""
:
""
)
+
"</button>"
,
'<button class="layui-icon '
+
u
+
'" lay-type="add">'
+
(
"updown"
===
n
.
anim
?
""
:
""
)
+
"</button>"
].
join
(
""
));
n
.
elem
.
attr
(
"lay-arrow"
,
n
.
arrow
),
n
.
elem
.
find
(
"."
+
u
)[
0
]
&&
n
.
elem
.
find
(
"."
+
u
).
remove
(),
n
.
elem
.
append
(
t
),
t
.
on
(
"click"
,
function
(){
var
n
=
i
(
this
),
t
=
n
.
attr
(
"lay-type"
);
e
.
slide
(
t
)})},
m
.
prototype
.
indicator
=
function
(){
var
e
=
this
,
n
=
e
.
config
,
t
=
e
.
elemInd
=
i
([
'<div class="'
+
c
+
'"><ul>'
,
function
(){
var
i
=
[];
return
layui
.
each
(
e
.
elemItem
,
function
(
e
){
i
.
push
(
"<li"
+
(
n
.
index
===
e
?
' class="layui-this"'
:
""
)
+
"></li>"
)}),
i
.
join
(
""
)}(),
"</ul></div>"
].
join
(
""
));
n
.
elem
.
attr
(
"lay-indicator"
,
n
.
indicator
),
n
.
elem
.
find
(
"."
+
c
)[
0
]
&&
n
.
elem
.
find
(
"."
+
c
).
remove
(),
n
.
elem
.
append
(
t
),
"updown"
===
n
.
anim
&&
t
.
css
(
"margin-top"
,
-
(
t
.
height
()
/
2
)),
t
.
find
(
"li"
).
on
(
"hover"
===
n
.
trigger
?
"mouseover"
:
n
.
trigger
,
function
(){
var
t
=
i
(
this
),
a
=
t
.
index
();
a
>
n
.
index
?
e
.
slide
(
"add"
,
a
-
n
.
index
):
a
<
n
.
index
&&
e
.
slide
(
"sub"
,
n
.
index
-
a
)})},
m
.
prototype
.
slide
=
function
(
e
,
i
){
var
n
=
this
,
l
=
n
.
elemItem
,
u
=
n
.
config
,
c
=
u
.
index
,
m
=
u
.
elem
.
attr
(
"lay-filter"
);
n
.
haveSlide
||
(
"sub"
===
e
?(
n
.
subIndex
(
i
),
l
.
eq
(
u
.
index
).
addClass
(
d
),
setTimeout
(
function
(){
l
.
eq
(
c
).
addClass
(
r
),
l
.
eq
(
u
.
index
).
addClass
(
r
)},
50
)):(
n
.
addIndex
(
i
),
l
.
eq
(
u
.
index
).
addClass
(
s
),
setTimeout
(
function
(){
l
.
eq
(
c
).
addClass
(
o
),
l
.
eq
(
u
.
index
).
addClass
(
o
)},
50
)),
setTimeout
(
function
(){
l
.
removeClass
(
a
+
" "
+
d
+
" "
+
s
+
" "
+
o
+
" "
+
r
),
l
.
eq
(
u
.
index
).
addClass
(
a
),
n
.
haveSlide
=!
1
},
300
),
n
.
elemInd
.
find
(
"li"
).
eq
(
u
.
index
).
addClass
(
a
).
siblings
().
removeClass
(
a
),
n
.
haveSlide
=!
0
,
layui
.
event
.
call
(
this
,
t
,
"change("
+
m
+
")"
,{
index
:
u
.
index
,
prevIndex
:
c
,
item
:
l
.
eq
(
u
.
index
)}))},
m
.
prototype
.
events
=
function
(){
var
e
=
this
,
i
=
e
.
config
;
i
.
elem
.
data
(
"haveEvents"
)
||
(
i
.
elem
.
on
(
"mouseenter"
,
function
(){
clearInterval
(
e
.
timer
)}).
on
(
"mouseleave"
,
function
(){
e
.
autoplay
()}),
i
.
elem
.
data
(
"haveEvents"
,
!
0
))},
n
.
render
=
function
(
e
){
var
i
=
new
m
(
e
);
return
i
},
e
(
t
,
n
)});
\ No newline at end of file
WebContent/WEB-INF/res/plugins/layui/lay/modules/code.js
查看文件 @
63f7a0e
/** layui-v1.0.9_rls MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
e
){
"use strict"
;
var
a
=
layui
.
jquery
,
l
=
"http://www.layui.com/doc/modules/code.html"
;
e
(
"code"
,
function
(
e
){
var
t
=
[];
e
=
e
||
{},
e
.
elem
=
a
(
e
.
elem
||
".layui-code"
),
e
.
about
=!
(
"about"
in
e
)
||
e
.
about
,
e
.
elem
.
each
(
function
(){
t
.
push
(
this
)}),
layui
.
each
(
t
.
reverse
(),
function
(
t
,
i
){
var
c
=
a
(
i
),
o
=
c
.
html
();(
c
.
attr
(
"lay-encode"
)
||
e
.
encode
)
&&
(
o
=
o
.
replace
(
/&
(?!
#
?[
a-zA-Z0-9
]
+;
)
/g
,
"&"
).
replace
(
/</g
,
"<"
).
replace
(
/>/g
,
">"
).
replace
(
/'/g
,
"'"
).
replace
(
/"/g
,
"""
)),
c
.
html
(
'<ol class="layui-code-ol"><li>'
+
o
.
replace
(
/
[\r\t\n]
+/g
,
"</li><li>"
)
+
"</li></ol>"
),
c
.
find
(
">.layui-code-h3"
)[
0
]
||
c
.
prepend
(
'<h3 class="layui-code-h3">'
+
(
c
.
attr
(
"lay-title"
)
||
e
.
title
||
"code"
)
+
(
e
.
about
?
'<a href="'
+
l
+
'" target="_blank">layui.code</a>'
:
""
)
+
"</h3>"
);
var
d
=
c
.
find
(
">.layui-code-ol"
);
c
.
addClass
(
"layui-box layui-code-view"
),(
c
.
attr
(
"lay-skin"
)
||
e
.
skin
)
&&
c
.
addClass
(
"layui-code-"
+
(
c
.
attr
(
"lay-skin"
)
||
e
.
skin
)),(
d
.
find
(
"li"
).
length
/
100
|
0
)
>
0
&&
d
.
css
(
"margin-left"
,(
d
.
find
(
"li"
).
length
/
100
|
0
)
+
"px"
),(
c
.
attr
(
"lay-height"
)
||
e
.
height
)
&&
d
.
css
(
"max-height"
,
c
.
attr
(
"lay-height"
)
||
e
.
height
)})})}).
addcss
(
"modules/code.css"
,
"skincodecss"
);
\ No newline at end of file
/** layui-v2.2.45 MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
e
){
"use strict"
;
var
a
=
layui
.
$
,
l
=
"http://www.layui.com/doc/modules/code.html"
;
e
(
"code"
,
function
(
e
){
var
t
=
[];
e
=
e
||
{},
e
.
elem
=
a
(
e
.
elem
||
".layui-code"
),
e
.
about
=!
(
"about"
in
e
)
||
e
.
about
,
e
.
elem
.
each
(
function
(){
t
.
push
(
this
)}),
layui
.
each
(
t
.
reverse
(),
function
(
t
,
i
){
var
c
=
a
(
i
),
o
=
c
.
html
();(
c
.
attr
(
"lay-encode"
)
||
e
.
encode
)
&&
(
o
=
o
.
replace
(
/&
(?!
#
?[
a-zA-Z0-9
]
+;
)
/g
,
"&"
).
replace
(
/</g
,
"<"
).
replace
(
/>/g
,
">"
).
replace
(
/'/g
,
"'"
).
replace
(
/"/g
,
"""
)),
c
.
html
(
'<ol class="layui-code-ol"><li>'
+
o
.
replace
(
/
[\r\t\n]
+/g
,
"</li><li>"
)
+
"</li></ol>"
),
c
.
find
(
">.layui-code-h3"
)[
0
]
||
c
.
prepend
(
'<h3 class="layui-code-h3">'
+
(
c
.
attr
(
"lay-title"
)
||
e
.
title
||
"code"
)
+
(
e
.
about
?
'<a href="'
+
l
+
'" target="_blank">layui.code</a>'
:
""
)
+
"</h3>"
);
var
d
=
c
.
find
(
">.layui-code-ol"
);
c
.
addClass
(
"layui-box layui-code-view"
),(
c
.
attr
(
"lay-skin"
)
||
e
.
skin
)
&&
c
.
addClass
(
"layui-code-"
+
(
c
.
attr
(
"lay-skin"
)
||
e
.
skin
)),(
d
.
find
(
"li"
).
length
/
100
|
0
)
>
0
&&
d
.
css
(
"margin-left"
,(
d
.
find
(
"li"
).
length
/
100
|
0
)
+
"px"
),(
c
.
attr
(
"lay-height"
)
||
e
.
height
)
&&
d
.
css
(
"max-height"
,
c
.
attr
(
"lay-height"
)
||
e
.
height
)})})}).
addcss
(
"modules/code.css"
,
"skincodecss"
);
\ No newline at end of file
WebContent/WEB-INF/res/plugins/layui/lay/modules/element.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/lay/modules/flow.js
查看文件 @
63f7a0e
/** layui-v1.0.9_rls MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
e
){
"use strict"
;
var
l
=
layui
.
jquery
,
o
=
function
(
e
){},
t
=
'<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon "></i>'
;
o
.
prototype
.
load
=
function
(
e
){
var
o
,
i
,
n
,
r
,
a
=
this
,
c
=
0
;
e
=
e
||
{};
var
u
=
l
(
e
.
elem
);
if
(
u
[
0
]){
var
f
=
l
(
e
.
scrollElem
||
document
),
m
=
e
.
mb
||
50
,
s
=!
(
"isAuto"
in
e
)
||
e
.
isAuto
,
y
=
e
.
end
||
"没有更多了"
,
v
=
e
.
scrollElem
&&
e
.
scrollElem
!==
document
,
d
=
"<cite>加载更多</cite>"
,
h
=
l
(
'<div class="layui-flow-more"><a href="javascript:;">'
+
d
+
"</a></div>"
);
u
.
find
(
".layui-flow-more"
)[
0
]
||
u
.
append
(
h
);
var
p
=
function
(
e
,
t
){
e
=
l
(
e
),
h
.
before
(
e
),
t
=
0
==
t
||
null
,
t
?
h
.
html
(
y
):
h
.
find
(
"a"
).
html
(
d
),
i
=
t
,
o
=
null
,
n
&&
n
()},
g
=
function
(){
o
=!
0
,
h
.
find
(
"a"
).
html
(
t
),
"function"
==
typeof
e
.
done
&&
e
.
done
(
++
c
,
p
)};
if
(
g
(),
h
.
find
(
"a"
).
on
(
"click"
,
function
(){
l
(
this
);
i
||
o
||
g
()}),
e
.
isLazyimg
)
var
n
=
a
.
lazyimg
({
elem
:
e
.
elem
+
" img"
,
scrollElem
:
e
.
scrollElem
});
return
s
?(
f
.
on
(
"scroll"
,
function
(){
var
e
=
l
(
this
),
t
=
e
.
scrollTop
();
r
&&
clearTimeout
(
r
),
i
||
(
r
=
setTimeout
(
function
(){
var
i
=
v
?
e
.
height
():
l
(
window
).
height
(),
n
=
v
?
e
.
prop
(
"scrollHeight"
):
document
.
documentElement
.
scrollHeight
;
n
-
t
-
i
<=
m
&&
(
o
||
g
())},
100
))}),
a
):
a
}},
o
.
prototype
.
lazyimg
=
function
(
e
){
var
o
,
t
=
this
,
i
=
0
;
e
=
e
||
{};
var
n
=
l
(
e
.
scrollElem
||
document
),
r
=
e
.
elem
||
"img"
,
a
=
e
.
scrollElem
&&
e
.
scrollElem
!==
document
,
c
=
function
(
e
,
l
){
var
o
=
n
.
scrollTop
(),
r
=
o
+
l
,
c
=
a
?
function
(){
return
e
.
offset
().
top
-
n
.
offset
().
top
+
o
}():
e
.
offset
().
top
;
if
(
c
>=
o
&&
c
<=
r
&&!
e
.
attr
(
"src"
)){
var
f
=
e
.
attr
(
"lay-src"
);
layui
.
img
(
f
,
function
(){
var
l
=
t
.
lazyimg
.
elem
.
eq
(
i
);
e
.
attr
(
"src"
,
f
).
removeAttr
(
"lay-src"
),
l
[
0
]
&&
u
(
l
),
i
++
})}},
u
=
function
(
e
,
o
){
var
u
=
a
?(
o
||
n
).
height
():
l
(
window
).
height
(),
f
=
n
.
scrollTop
(),
m
=
f
+
u
;
if
(
t
.
lazyimg
.
elem
=
l
(
r
),
e
)
c
(
e
,
u
);
else
for
(
var
s
=
0
;
s
<
t
.
lazyimg
.
elem
.
length
;
s
++
){
var
y
=
t
.
lazyimg
.
elem
.
eq
(
s
),
v
=
a
?
function
(){
return
y
.
offset
().
top
-
n
.
offset
().
top
+
f
}():
y
.
offset
().
top
;
if
(
c
(
y
,
u
),
i
=
s
,
v
>
m
)
break
}};
if
(
u
(),
!
o
){
var
f
;
n
.
on
(
"scroll"
,
function
(){
var
e
=
l
(
this
);
f
&&
clearTimeout
(
f
),
f
=
setTimeout
(
function
(){
u
(
null
,
e
)},
50
)}),
o
=!
0
}
return
u
},
e
(
"flow"
,
new
o
)});
\ No newline at end of file
/** layui-v2.2.45 MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
e
){
"use strict"
;
var
l
=
layui
.
$
,
o
=
function
(
e
){},
t
=
'<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon "></i>'
;
o
.
prototype
.
load
=
function
(
e
){
var
o
,
i
,
n
,
r
,
a
=
this
,
c
=
0
;
e
=
e
||
{};
var
f
=
l
(
e
.
elem
);
if
(
f
[
0
]){
var
m
=
l
(
e
.
scrollElem
||
document
),
u
=
e
.
mb
||
50
,
s
=!
(
"isAuto"
in
e
)
||
e
.
isAuto
,
v
=
e
.
end
||
"没有更多了"
,
y
=
e
.
scrollElem
&&
e
.
scrollElem
!==
document
,
d
=
"<cite>加载更多</cite>"
,
h
=
l
(
'<div class="layui-flow-more"><a href="javascript:;">'
+
d
+
"</a></div>"
);
f
.
find
(
".layui-flow-more"
)[
0
]
||
f
.
append
(
h
);
var
p
=
function
(
e
,
t
){
e
=
l
(
e
),
h
.
before
(
e
),
t
=
0
==
t
||
null
,
t
?
h
.
html
(
v
):
h
.
find
(
"a"
).
html
(
d
),
i
=
t
,
o
=
null
,
n
&&
n
()},
g
=
function
(){
o
=!
0
,
h
.
find
(
"a"
).
html
(
t
),
"function"
==
typeof
e
.
done
&&
e
.
done
(
++
c
,
p
)};
if
(
g
(),
h
.
find
(
"a"
).
on
(
"click"
,
function
(){
l
(
this
);
i
||
o
||
g
()}),
e
.
isLazyimg
)
var
n
=
a
.
lazyimg
({
elem
:
e
.
elem
+
" img"
,
scrollElem
:
e
.
scrollElem
});
return
s
?(
m
.
on
(
"scroll"
,
function
(){
var
e
=
l
(
this
),
t
=
e
.
scrollTop
();
r
&&
clearTimeout
(
r
),
i
||
(
r
=
setTimeout
(
function
(){
var
i
=
y
?
e
.
height
():
l
(
window
).
height
(),
n
=
y
?
e
.
prop
(
"scrollHeight"
):
document
.
documentElement
.
scrollHeight
;
n
-
t
-
i
<=
u
&&
(
o
||
g
())},
100
))}),
a
):
a
}},
o
.
prototype
.
lazyimg
=
function
(
e
){
var
o
,
t
=
this
,
i
=
0
;
e
=
e
||
{};
var
n
=
l
(
e
.
scrollElem
||
document
),
r
=
e
.
elem
||
"img"
,
a
=
e
.
scrollElem
&&
e
.
scrollElem
!==
document
,
c
=
function
(
e
,
l
){
var
o
=
n
.
scrollTop
(),
r
=
o
+
l
,
c
=
a
?
function
(){
return
e
.
offset
().
top
-
n
.
offset
().
top
+
o
}():
e
.
offset
().
top
;
if
(
c
>=
o
&&
c
<=
r
&&!
e
.
attr
(
"src"
)){
var
m
=
e
.
attr
(
"lay-src"
);
layui
.
img
(
m
,
function
(){
var
l
=
t
.
lazyimg
.
elem
.
eq
(
i
);
e
.
attr
(
"src"
,
m
).
removeAttr
(
"lay-src"
),
l
[
0
]
&&
f
(
l
),
i
++
})}},
f
=
function
(
e
,
o
){
var
f
=
a
?(
o
||
n
).
height
():
l
(
window
).
height
(),
m
=
n
.
scrollTop
(),
u
=
m
+
f
;
if
(
t
.
lazyimg
.
elem
=
l
(
r
),
e
)
c
(
e
,
f
);
else
for
(
var
s
=
0
;
s
<
t
.
lazyimg
.
elem
.
length
;
s
++
){
var
v
=
t
.
lazyimg
.
elem
.
eq
(
s
),
y
=
a
?
function
(){
return
v
.
offset
().
top
-
n
.
offset
().
top
+
m
}():
v
.
offset
().
top
;
if
(
c
(
v
,
f
),
i
=
s
,
y
>
u
)
break
}};
if
(
f
(),
!
o
){
var
m
;
n
.
on
(
"scroll"
,
function
(){
var
e
=
l
(
this
);
m
&&
clearTimeout
(
m
),
m
=
setTimeout
(
function
(){
f
(
null
,
e
)},
50
)}),
o
=!
0
}
return
f
},
e
(
"flow"
,
new
o
)});
\ No newline at end of file
WebContent/WEB-INF/res/plugins/layui/lay/modules/form.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/lay/modules/jquery.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/lay/modules/laydate.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/lay/modules/layedit.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/lay/modules/layer.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/lay/modules/laypage.js
查看文件 @
63f7a0e
/** layui-v1.0.9_rls MIT License By http://www.layui.com */
;
layui
.
define
(
function
(
a
){
"use strict"
;
function
t
(
a
){
new
p
(
a
)}
var
e
=
document
,
r
=
"getElementById"
,
n
=
"getElementsByTagName"
,
s
=
0
,
p
=
function
(
a
){
var
t
=
this
,
e
=
t
.
config
=
a
||
{};
e
.
item
=
s
++
,
t
.
render
(
!
0
)};
p
.
on
=
function
(
a
,
t
,
e
){
return
a
.
attachEvent
?
a
.
attachEvent
(
"on"
+
t
,
function
(){
e
.
call
(
a
,
window
.
even
)}):
a
.
addEventListener
(
t
,
e
,
!
1
),
p
},
p
.
prototype
.
type
=
function
(){
var
a
=
this
.
config
;
if
(
"object"
==
typeof
a
.
cont
)
return
void
0
===
a
.
cont
.
length
?
2
:
3
},
p
.
prototype
.
view
=
function
(){
var
a
=
this
,
t
=
a
.
config
,
e
=
[],
r
=
{};
if
(
t
.
pages
=
0
|
t
.
pages
,
t
.
curr
=
0
|
t
.
curr
||
1
,
t
.
groups
=
"groups"
in
t
?
0
|
t
.
groups
:
5
,
t
.
first
=
"first"
in
t
?
t
.
first
:
"首页"
,
t
.
last
=
"last"
in
t
?
t
.
last
:
"末页"
,
t
.
prev
=
"prev"
in
t
?
t
.
prev
:
"上一页"
,
t
.
next
=
"next"
in
t
?
t
.
next
:
"下一页"
,
t
.
pages
<=
1
)
return
""
;
for
(
t
.
groups
>
t
.
pages
&&
(
t
.
groups
=
t
.
pages
),
r
.
index
=
Math
.
ceil
((
t
.
curr
+
(
t
.
groups
>
1
&&
t
.
groups
!==
t
.
pages
?
1
:
0
))
/
(
0
===
t
.
groups
?
1
:
t
.
groups
)),
t
.
curr
>
1
&&
t
.
prev
&&
e
.
push
(
'<a href="javascript:;" class="layui-laypage-prev" data-page="'
+
(
t
.
curr
-
1
)
+
'">'
+
t
.
prev
+
"</a>"
),
r
.
index
>
1
&&
t
.
first
&&
0
!==
t
.
groups
&&
e
.
push
(
'<a href="javascript:;" class="laypage_first" data-page="1" title="首页">'
+
t
.
first
+
"</a><span>…</span>"
),
r
.
poor
=
Math
.
floor
((
t
.
groups
-
1
)
/
2
),
r
.
start
=
r
.
index
>
1
?
t
.
curr
-
r
.
poor
:
1
,
r
.
end
=
r
.
index
>
1
?
function
(){
var
a
=
t
.
curr
+
(
t
.
groups
-
r
.
poor
-
1
);
return
a
>
t
.
pages
?
t
.
pages
:
a
}():
t
.
groups
,
r
.
end
-
r
.
start
<
t
.
groups
-
1
&&
(
r
.
start
=
r
.
end
-
t
.
groups
+
1
);
r
.
start
<=
r
.
end
;
r
.
start
++
)
r
.
start
===
t
.
curr
?
e
.
push
(
'<span class="layui-laypage-curr"><em class="layui-laypage-em" '
+
(
/^#/
.
test
(
t
.
skin
)?
'style="background-color:'
+
t
.
skin
+
';"'
:
""
)
+
"></em><em>"
+
r
.
start
+
"</em></span>"
):
e
.
push
(
'<a href="javascript:;" data-page="'
+
r
.
start
+
'">'
+
r
.
start
+
"</a>"
);
return
t
.
pages
>
t
.
groups
&&
r
.
end
<
t
.
pages
&&
t
.
last
&&
0
!==
t
.
groups
&&
e
.
push
(
'<span>…</span><a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="'
+
t
.
pages
+
'">'
+
t
.
last
+
"</a>"
),
r
.
flow
=!
t
.
prev
&&
0
===
t
.
groups
,(
t
.
curr
!==
t
.
pages
&&
t
.
next
||
r
.
flow
)
&&
e
.
push
(
function
(){
return
r
.
flow
&&
t
.
curr
===
t
.
pages
?
'<span class="layui-laypage-nomore" title="已没有更多">'
+
t
.
next
+
"</span>"
:
'<a href="javascript:;" class="layui-laypage-next" data-page="'
+
(
t
.
curr
+
1
)
+
'">'
+
t
.
next
+
"</a>"
}()),
'<div class="layui-box layui-laypage layui-laypage-'
+
(
t
.
skin
?
function
(
a
){
return
/^#/
.
test
(
a
)?
"molv"
:
a
}(
t
.
skin
):
"default"
)
+
'" id="layui-laypage-'
+
a
.
config
.
item
+
'">'
+
e
.
join
(
""
)
+
function
(){
return
t
.
skip
?
'<span class="layui-laypage-total">到第 <input type="number" min="1" onkeyup="this.value=this.value.replace(/\\D/, \'\');" value="'
+
t
.
curr
+
'" class="layui-laypage-skip"> 页 <button type="button" class="layui-laypage-btn">确定</button></span>'
:
""
}()
+
"</div>"
},
p
.
prototype
.
jump
=
function
(
a
){
if
(
a
){
for
(
var
t
=
this
,
e
=
t
.
config
,
r
=
a
.
children
,
s
=
a
[
n
](
"button"
)[
0
],
i
=
a
[
n
](
"input"
)[
0
],
u
=
0
,
o
=
r
.
length
;
u
<
o
;
u
++
)
"a"
===
r
[
u
].
nodeName
.
toLowerCase
()
&&
p
.
on
(
r
[
u
],
"click"
,
function
(){
var
a
=
0
|
this
.
getAttribute
(
"data-page"
);
e
.
curr
=
a
,
t
.
render
()});
s
&&
p
.
on
(
s
,
"click"
,
function
(){
var
a
=
0
|
i
.
value
.
replace
(
/
\s
|
\D
/g
,
""
);
a
&&
a
<=
e
.
pages
&&
(
e
.
curr
=
a
,
t
.
render
())})}},
p
.
prototype
.
render
=
function
(
a
){
var
t
=
this
,
n
=
t
.
config
,
s
=
t
.
type
(),
p
=
t
.
view
();
2
===
s
?
n
.
cont
.
innerHTML
=
p
:
3
===
s
?
n
.
cont
.
html
(
p
):
e
[
r
](
n
.
cont
).
innerHTML
=
p
,
n
.
jump
&&
n
.
jump
(
n
,
a
),
t
.
jump
(
e
[
r
](
"layui-laypage-"
+
n
.
item
)),
n
.
hash
&&!
a
&&
(
location
.
hash
=
"!"
+
n
.
hash
+
"="
+
n
.
curr
)},
a
(
"laypage"
,
t
)});
\ No newline at end of file
/** layui-v2.2.45 MIT License By http://www.layui.com */
;
layui
.
define
(
function
(
e
){
"use strict"
;
var
a
=
document
,
t
=
"getElementById"
,
n
=
"getElementsByTagName"
,
i
=
"laypage"
,
r
=
"layui-disabled"
,
u
=
function
(
e
){
var
a
=
this
;
a
.
config
=
e
||
{},
a
.
config
.
index
=++
s
.
index
,
a
.
render
(
!
0
)};
u
.
prototype
.
type
=
function
(){
var
e
=
this
.
config
;
if
(
"object"
==
typeof
e
.
elem
)
return
void
0
===
e
.
elem
.
length
?
2
:
3
},
u
.
prototype
.
view
=
function
(){
var
e
=
this
,
a
=
e
.
config
,
t
=
a
.
groups
=
"groups"
in
a
?
0
|
a
.
groups
:
5
;
a
.
layout
=
"object"
==
typeof
a
.
layout
?
a
.
layout
:[
"prev"
,
"page"
,
"next"
],
a
.
count
=
0
|
a
.
count
,
a
.
curr
=
0
|
a
.
curr
||
1
,
a
.
limits
=
"object"
==
typeof
a
.
limits
?
a
.
limits
:[
10
,
20
,
30
,
40
,
50
],
a
.
limit
=
0
|
a
.
limit
||
10
,
a
.
pages
=
Math
.
ceil
(
a
.
count
/
a
.
limit
)
||
1
,
a
.
curr
>
a
.
pages
&&
(
a
.
curr
=
a
.
pages
),
t
<
0
?
t
=
1
:
t
>
a
.
pages
&&
(
t
=
a
.
pages
),
a
.
prev
=
"prev"
in
a
?
a
.
prev
:
"上一页"
,
a
.
next
=
"next"
in
a
?
a
.
next
:
"下一页"
;
var
n
=
a
.
pages
>
t
?
Math
.
ceil
((
a
.
curr
+
(
t
>
1
?
1
:
0
))
/
(
t
>
0
?
t
:
1
)):
1
,
i
=
{
prev
:
function
(){
return
a
.
prev
?
'<a href="javascript:;" class="layui-laypage-prev'
+
(
1
==
a
.
curr
?
" "
+
r
:
""
)
+
'" data-page="'
+
(
a
.
curr
-
1
)
+
'">'
+
a
.
prev
+
"</a>"
:
""
}(),
page
:
function
(){
var
e
=
[];
if
(
a
.
count
<
1
)
return
""
;
n
>
1
&&
a
.
first
!==!
1
&&
0
!==
t
&&
e
.
push
(
'<a href="javascript:;" class="layui-laypage-first" data-page="1" title="首页">'
+
(
a
.
first
||
1
)
+
"</a>"
);
var
i
=
Math
.
floor
((
t
-
1
)
/
2
),
r
=
n
>
1
?
a
.
curr
-
i
:
1
,
u
=
n
>
1
?
function
(){
var
e
=
a
.
curr
+
(
t
-
i
-
1
);
return
e
>
a
.
pages
?
a
.
pages
:
e
}():
t
;
for
(
u
-
r
<
t
-
1
&&
(
r
=
u
-
t
+
1
),
a
.
first
!==!
1
&&
r
>
2
&&
e
.
push
(
'<span class="layui-laypage-spr">…</span>'
);
r
<=
u
;
r
++
)
r
===
a
.
curr
?
e
.
push
(
'<span class="layui-laypage-curr"><em class="layui-laypage-em" '
+
(
/^#/
.
test
(
a
.
theme
)?
'style="background-color:'
+
a
.
theme
+
';"'
:
""
)
+
"></em><em>"
+
r
+
"</em></span>"
):
e
.
push
(
'<a href="javascript:;" data-page="'
+
r
+
'">'
+
r
+
"</a>"
);
return
a
.
pages
>
t
&&
a
.
pages
>
u
&&
a
.
last
!==!
1
&&
(
u
+
1
<
a
.
pages
&&
e
.
push
(
'<span class="layui-laypage-spr">…</span>'
),
0
!==
t
&&
e
.
push
(
'<a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="'
+
a
.
pages
+
'">'
+
(
a
.
last
||
a
.
pages
)
+
"</a>"
)),
e
.
join
(
""
)}(),
next
:
function
(){
return
a
.
next
?
'<a href="javascript:;" class="layui-laypage-next'
+
(
a
.
curr
==
a
.
pages
?
" "
+
r
:
""
)
+
'" data-page="'
+
(
a
.
curr
+
1
)
+
'">'
+
a
.
next
+
"</a>"
:
""
}(),
count
:
'<span class="layui-laypage-count">共 '
+
a
.
count
+
" 条</span>"
,
limit
:
function
(){
var
e
=
[
'<span class="layui-laypage-limits"><select lay-ignore>'
];
return
layui
.
each
(
a
.
limits
,
function
(
t
,
n
){
e
.
push
(
'<option value="'
+
n
+
'"'
+
(
n
===
a
.
limit
?
"selected"
:
""
)
+
">"
+
n
+
" 条/页</option>"
)}),
e
.
join
(
""
)
+
"</select></span>"
}(),
skip
:
function
(){
return
[
'<span class="layui-laypage-skip">到第'
,
'<input type="text" min="1" value="'
+
a
.
curr
+
'" class="layui-input">'
,
'页<button type="button" class="layui-laypage-btn">确定</button>'
,
"</span>"
].
join
(
""
)}()};
return
[
'<div class="layui-box layui-laypage layui-laypage-'
+
(
a
.
theme
?
/^#/
.
test
(
a
.
theme
)?
"molv"
:
a
.
theme
:
"default"
)
+
'" id="layui-laypage-'
+
a
.
index
+
'">'
,
function
(){
var
e
=
[];
return
layui
.
each
(
a
.
layout
,
function
(
a
,
t
){
i
[
t
]
&&
e
.
push
(
i
[
t
])}),
e
.
join
(
""
)}(),
"</div>"
].
join
(
""
)},
u
.
prototype
.
jump
=
function
(
e
,
a
){
if
(
e
){
var
t
=
this
,
i
=
t
.
config
,
r
=
e
.
children
,
u
=
e
[
n
](
"button"
)[
0
],
l
=
e
[
n
](
"input"
)[
0
],
p
=
e
[
n
](
"select"
)[
0
],
c
=
function
(){
var
e
=
0
|
l
.
value
.
replace
(
/
\s
|
\D
/g
,
""
);
e
&&
(
i
.
curr
=
e
,
t
.
render
())};
if
(
a
)
return
c
();
for
(
var
o
=
0
,
y
=
r
.
length
;
o
<
y
;
o
++
)
"a"
===
r
[
o
].
nodeName
.
toLowerCase
()
&&
s
.
on
(
r
[
o
],
"click"
,
function
(){
var
e
=
0
|
this
.
getAttribute
(
"data-page"
);
e
<
1
||
e
>
i
.
pages
||
(
i
.
curr
=
e
,
t
.
render
())});
p
&&
s
.
on
(
p
,
"change"
,
function
(){
var
e
=
this
.
value
;
i
.
curr
*
e
>
i
.
count
&&
(
i
.
curr
=
Math
.
ceil
(
i
.
count
/
e
)),
i
.
limit
=
e
,
t
.
render
()}),
u
&&
s
.
on
(
u
,
"click"
,
function
(){
c
()})}},
u
.
prototype
.
skip
=
function
(
e
){
if
(
e
){
var
a
=
this
,
t
=
e
[
n
](
"input"
)[
0
];
t
&&
s
.
on
(
t
,
"keyup"
,
function
(
t
){
var
n
=
this
.
value
,
i
=
t
.
keyCode
;
/^
(
37|38|39|40
)
$/
.
test
(
i
)
||
(
/
\D
/
.
test
(
n
)
&&
(
this
.
value
=
n
.
replace
(
/
\D
/
,
""
)),
13
===
i
&&
a
.
jump
(
e
,
!
0
))})}},
u
.
prototype
.
render
=
function
(
e
){
var
n
=
this
,
i
=
n
.
config
,
r
=
n
.
type
(),
u
=
n
.
view
();
2
===
r
?
i
.
elem
&&
(
i
.
elem
.
innerHTML
=
u
):
3
===
r
?
i
.
elem
.
html
(
u
):
a
[
t
](
i
.
elem
)
&&
(
a
[
t
](
i
.
elem
).
innerHTML
=
u
),
i
.
jump
&&
i
.
jump
(
i
,
e
);
var
s
=
a
[
t
](
"layui-laypage-"
+
i
.
index
);
n
.
jump
(
s
),
i
.
hash
&&!
e
&&
(
location
.
hash
=
"!"
+
i
.
hash
+
"="
+
i
.
curr
),
n
.
skip
(
s
)};
var
s
=
{
render
:
function
(
e
){
var
a
=
new
u
(
e
);
return
a
.
index
},
index
:
layui
.
laypage
?
layui
.
laypage
.
index
+
1
e4
:
0
,
on
:
function
(
e
,
a
,
t
){
return
e
.
attachEvent
?
e
.
attachEvent
(
"on"
+
a
,
function
(
a
){
a
.
target
=
a
.
srcElement
,
t
.
call
(
e
,
a
)}):
e
.
addEventListener
(
a
,
t
,
!
1
),
this
}};
e
(
i
,
s
)});
\ No newline at end of file
WebContent/WEB-INF/res/plugins/layui/lay/modules/laytpl.js
查看文件 @
63f7a0e
/** layui-v1.0.9_rls MIT License By http://www.layui.com */
;
layui
.
define
(
function
(
e
){
"use strict"
;
var
r
=
{
open
:
"{{"
,
close
:
"}}"
},
n
=
{
exp
:
function
(
e
){
return
new
RegExp
(
e
,
"g"
)},
query
:
function
(
e
,
n
,
t
){
var
o
=
[
"#([\\s\\S])+?"
,
"([^{#}])*?"
][
e
||
0
];
return
c
((
n
||
""
)
+
r
.
open
+
o
+
r
.
close
+
(
t
||
""
))},
escape
:
function
(
e
){
return
String
(
e
||
""
).
replace
(
/&
(?!
#
?[
a-zA-Z0-9
]
+;
)
/g
,
"&"
).
replace
(
/</g
,
"<"
).
replace
(
/>/g
,
">"
).
replace
(
/'/g
,
"'"
).
replace
(
/"/g
,
"""
)},
error
:
function
(
e
,
r
){
var
n
=
"Laytpl Error:"
;
return
"object"
==
typeof
console
&&
console
.
error
(
n
+
e
+
"\n"
+
(
r
||
""
)),
n
+
e
}},
c
=
n
.
exp
,
t
=
function
(
e
){
this
.
tpl
=
e
};
t
.
pt
=
t
.
prototype
,
window
.
errors
=
0
,
t
.
pt
.
parse
=
function
(
e
,
t
){
var
o
=
this
,
p
=
e
,
a
=
c
(
"^"
+
r
.
open
+
"#"
,
""
),
l
=
c
(
r
.
close
+
"$"
,
""
);
e
=
e
.
replace
(
/
\s
+|
\r
|
\t
|
\n
/g
,
" "
).
replace
(
c
(
r
.
open
+
"#"
),
r
.
open
+
"# "
).
replace
(
c
(
r
.
close
+
"}"
),
"} "
+
r
.
close
).
replace
(
/
\\
/g
,
"\\\\"
).
replace
(
/
(?=
"|'
)
/g
,
"\\"
).
replace
(
n
.
query
(),
function
(
e
){
return
e
=
e
.
replace
(
a
,
""
).
replace
(
l
,
""
),
'";'
+
e
.
replace
(
/
\\
/g
,
""
)
+
';view+="'
}).
replace
(
n
.
query
(
1
),
function
(
e
){
var
n
=
'"+('
;
return
e
.
replace
(
/
\s
/g
,
""
)
===
r
.
open
+
r
.
close
?
""
:(
e
=
e
.
replace
(
c
(
r
.
open
+
"|"
+
r
.
close
),
""
),
/^=/
.
test
(
e
)
&&
(
e
=
e
.
replace
(
/^=/
,
""
),
n
=
'"+_escape_('
),
n
+
e
.
replace
(
/
\\
/g
,
""
)
+
')+"'
)}),
e
=
'"use strict";var view = "'
+
e
+
'";return view;'
;
try
{
return
o
.
cache
=
e
=
new
Function
(
"d, _escape_"
,
e
),
e
(
t
,
n
.
escape
)}
catch
(
u
){
return
delete
o
.
cache
,
n
.
error
(
u
,
p
)}},
t
.
pt
.
render
=
function
(
e
,
r
){
var
c
,
t
=
this
;
return
e
?(
c
=
t
.
cache
?
t
.
cache
(
e
,
n
.
escape
):
t
.
parse
(
t
.
tpl
,
e
),
r
?
void
r
(
c
):
c
):
n
.
error
(
"no data"
)};
var
o
=
function
(
e
){
return
"string"
!=
typeof
e
?
n
.
error
(
"Template not found"
):
new
t
(
e
)};
o
.
config
=
function
(
e
){
e
=
e
||
{};
for
(
var
n
in
e
)
r
[
n
]
=
e
[
n
]},
o
.
v
=
"1.2.0"
,
e
(
"laytpl"
,
o
)});
\ No newline at end of file
/** layui-v2.2.45 MIT License By http://www.layui.com */
;
layui
.
define
(
function
(
e
){
"use strict"
;
var
r
=
{
open
:
"{{"
,
close
:
"}}"
},
c
=
{
exp
:
function
(
e
){
return
new
RegExp
(
e
,
"g"
)},
query
:
function
(
e
,
c
,
t
){
var
o
=
[
"#([\\s\\S])+?"
,
"([^{#}])*?"
][
e
||
0
];
return
n
((
c
||
""
)
+
r
.
open
+
o
+
r
.
close
+
(
t
||
""
))},
escape
:
function
(
e
){
return
String
(
e
||
""
).
replace
(
/&
(?!
#
?[
a-zA-Z0-9
]
+;
)
/g
,
"&"
).
replace
(
/</g
,
"<"
).
replace
(
/>/g
,
">"
).
replace
(
/'/g
,
"'"
).
replace
(
/"/g
,
"""
)},
error
:
function
(
e
,
r
){
var
c
=
"Laytpl Error:"
;
return
"object"
==
typeof
console
&&
console
.
error
(
c
+
e
+
"\n"
+
(
r
||
""
)),
c
+
e
}},
n
=
c
.
exp
,
t
=
function
(
e
){
this
.
tpl
=
e
};
t
.
pt
=
t
.
prototype
,
window
.
errors
=
0
,
t
.
pt
.
parse
=
function
(
e
,
t
){
var
o
=
this
,
p
=
e
,
a
=
n
(
"^"
+
r
.
open
+
"#"
,
""
),
l
=
n
(
r
.
close
+
"$"
,
""
);
e
=
e
.
replace
(
/
\s
+|
\r
|
\t
|
\n
/g
,
" "
).
replace
(
n
(
r
.
open
+
"#"
),
r
.
open
+
"# "
).
replace
(
n
(
r
.
close
+
"}"
),
"} "
+
r
.
close
).
replace
(
/
\\
/g
,
"\\\\"
).
replace
(
n
(
r
.
open
+
"!(.+?)!"
+
r
.
close
),
function
(
e
){
return
e
=
e
.
replace
(
n
(
"^"
+
r
.
open
+
"!"
),
""
).
replace
(
n
(
"!"
+
r
.
close
),
""
).
replace
(
n
(
r
.
open
+
"|"
+
r
.
close
),
function
(
e
){
return
e
.
replace
(
/
(
.
)
/g
,
"\\$1"
)})}).
replace
(
/
(?=
"|'
)
/g
,
"\\"
).
replace
(
c
.
query
(),
function
(
e
){
return
e
=
e
.
replace
(
a
,
""
).
replace
(
l
,
""
),
'";'
+
e
.
replace
(
/
\\
/g
,
""
)
+
';view+="'
}).
replace
(
c
.
query
(
1
),
function
(
e
){
var
c
=
'"+('
;
return
e
.
replace
(
/
\s
/g
,
""
)
===
r
.
open
+
r
.
close
?
""
:(
e
=
e
.
replace
(
n
(
r
.
open
+
"|"
+
r
.
close
),
""
),
/^=/
.
test
(
e
)
&&
(
e
=
e
.
replace
(
/^=/
,
""
),
c
=
'"+_escape_('
),
c
+
e
.
replace
(
/
\\
/g
,
""
)
+
')+"'
)}),
e
=
'"use strict";var view = "'
+
e
+
'";return view;'
;
try
{
return
o
.
cache
=
e
=
new
Function
(
"d, _escape_"
,
e
),
e
(
t
,
c
.
escape
)}
catch
(
u
){
return
delete
o
.
cache
,
c
.
error
(
u
,
p
)}},
t
.
pt
.
render
=
function
(
e
,
r
){
var
n
,
t
=
this
;
return
e
?(
n
=
t
.
cache
?
t
.
cache
(
e
,
c
.
escape
):
t
.
parse
(
t
.
tpl
,
e
),
r
?
void
r
(
n
):
n
):
c
.
error
(
"no data"
)};
var
o
=
function
(
e
){
return
"string"
!=
typeof
e
?
c
.
error
(
"Template not found"
):
new
t
(
e
)};
o
.
config
=
function
(
e
){
e
=
e
||
{};
for
(
var
c
in
e
)
r
[
c
]
=
e
[
c
]},
o
.
v
=
"1.2.0"
,
e
(
"laytpl"
,
o
)});
\ No newline at end of file
WebContent/WEB-INF/res/plugins/layui/lay/modules/mobile.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/lay/modules/table.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/lay/modules/tree.js
查看文件 @
63f7a0e
/** layui-v1.0.9_rls MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
e
){
"use strict"
;
var
o
=
layui
.
jquery
,
a
=
layui
.
hint
(),
r
=
"layui-tree-enter"
,
i
=
function
(
e
){
this
.
options
=
e
},
t
=
{
arrow
:[
""
,
""
],
checkbox
:[
""
,
""
],
radio
:[
""
,
""
],
branch
:[
""
,
""
],
leaf
:
""
};
i
.
prototype
.
init
=
function
(
e
){
var
o
=
this
;
e
.
addClass
(
"layui-box layui-tree"
),
o
.
options
.
skin
&&
e
.
addClass
(
"layui-tree-skin-"
+
o
.
options
.
skin
),
o
.
tree
(
e
),
o
.
on
(
e
)},
i
.
prototype
.
tree
=
function
(
e
,
a
){
var
r
=
this
,
i
=
r
.
options
,
n
=
a
||
i
.
nodes
;
layui
.
each
(
n
,
function
(
a
,
n
){
var
l
=
n
.
children
&&
n
.
children
.
length
>
0
,
c
=
o
(
'<ul class="'
+
(
n
.
spread
?
"layui-show"
:
""
)
+
'"></ul>'
),
s
=
o
([
"<li "
+
(
n
.
spread
?
'data-spread="'
+
n
.
spread
+
'"'
:
""
)
+
">"
,
function
(){
return
l
?
'<i class="layui-icon layui-tree-spread">'
+
(
n
.
spread
?
t
.
arrow
[
1
]:
t
.
arrow
[
0
])
+
"</i>"
:
""
}(),
function
(){
return
i
.
check
?
'<i class="layui-icon layui-tree-check">'
+
(
"checkbox"
===
i
.
check
?
t
.
checkbox
[
0
]:
"radio"
===
i
.
check
?
t
.
radio
[
0
]:
""
)
+
"</i>"
:
""
}(),
function
(){
return
'<a href="'
+
(
n
.
href
||
"javascript:;"
)
+
'" '
+
(
i
.
target
&&
n
.
href
?
'target="'
+
i
.
target
+
'"'
:
""
)
+
">"
+
(
'<i class="layui-icon layui-tree-'
+
(
l
?
"branch"
:
"leaf"
)
+
'">'
+
(
l
?
n
.
spread
?
t
.
branch
[
1
]:
t
.
branch
[
0
]:
t
.
leaf
)
+
"</i>"
)
+
(
"<cite>"
+
(
n
.
name
||
"未命名"
)
+
"</cite></a>"
)}(),
"</li>"
].
join
(
""
));
l
&&
(
s
.
append
(
c
),
r
.
tree
(
c
,
n
.
children
)),
e
.
append
(
s
),
"function"
==
typeof
i
.
click
&&
r
.
click
(
s
,
n
),
r
.
spread
(
s
,
n
),
i
.
drag
&&
r
.
drag
(
s
,
n
)})},
i
.
prototype
.
click
=
function
(
e
,
o
){
var
a
=
this
,
r
=
a
.
options
;
e
.
children
(
"a"
).
on
(
"click"
,
function
(
e
){
layui
.
stope
(
e
),
r
.
click
(
o
)})},
i
.
prototype
.
spread
=
function
(
e
,
o
){
var
a
=
this
,
r
=
(
a
.
options
,
e
.
children
(
".layui-tree-spread"
)),
i
=
e
.
children
(
"ul"
),
n
=
e
.
children
(
"a"
),
l
=
function
(){
e
.
data
(
"spread"
)?(
e
.
data
(
"spread"
,
null
),
i
.
removeClass
(
"layui-show"
),
r
.
html
(
t
.
arrow
[
0
]),
n
.
find
(
".layui-icon"
).
html
(
t
.
branch
[
0
])):(
e
.
data
(
"spread"
,
!
0
),
i
.
addClass
(
"layui-show"
),
r
.
html
(
t
.
arrow
[
1
]),
n
.
find
(
".layui-icon"
).
html
(
t
.
branch
[
1
]))};
i
[
0
]
&&
(
r
.
on
(
"click"
,
l
),
n
.
on
(
"dblclick"
,
l
))},
i
.
prototype
.
on
=
function
(
e
){
var
a
=
this
,
i
=
a
.
options
,
t
=
"layui-tree-drag"
;
e
.
find
(
"i"
).
on
(
"selectstart"
,
function
(
e
){
return
!
1
}),
i
.
drag
&&
o
(
document
).
on
(
"mousemove"
,
function
(
e
){
var
r
=
a
.
move
;
if
(
r
.
from
){
var
i
=
(
r
.
to
,
o
(
'<div class="layui-box '
+
t
+
'"></div>'
));
e
.
preventDefault
(),
o
(
"."
+
t
)[
0
]
||
o
(
"body"
).
append
(
i
);
var
n
=
o
(
"."
+
t
)[
0
]?
o
(
"."
+
t
):
i
;
n
.
addClass
(
"layui-show"
).
html
(
r
.
from
.
elem
.
children
(
"a"
).
html
()),
n
.
css
({
left
:
e
.
pageX
+
10
,
top
:
e
.
pageY
+
10
})}}).
on
(
"mouseup"
,
function
(){
var
e
=
a
.
move
;
e
.
from
&&
(
e
.
from
.
elem
.
children
(
"a"
).
removeClass
(
r
),
e
.
to
&&
e
.
to
.
elem
.
children
(
"a"
).
removeClass
(
r
),
a
.
move
=
{},
o
(
"."
+
t
).
remove
())})},
i
.
prototype
.
move
=
{},
i
.
prototype
.
drag
=
function
(
e
,
a
){
var
i
=
this
,
t
=
(
i
.
options
,
e
.
children
(
"a"
)),
n
=
function
(){
var
t
=
o
(
this
),
n
=
i
.
move
;
n
.
from
&&
(
n
.
to
=
{
item
:
a
,
elem
:
e
},
t
.
addClass
(
r
))};
t
.
on
(
"mousedown"
,
function
(){
var
o
=
i
.
move
;
o
.
from
=
{
item
:
a
,
elem
:
e
}}),
t
.
on
(
"mouseenter"
,
n
).
on
(
"mousemove"
,
n
).
on
(
"mouseleave"
,
function
(){
var
e
=
o
(
this
),
a
=
i
.
move
;
a
.
from
&&
(
delete
a
.
to
,
e
.
removeClass
(
r
))})},
e
(
"tree"
,
function
(
e
){
var
r
=
new
i
(
e
=
e
||
{}),
t
=
o
(
e
.
elem
);
return
t
[
0
]?
void
r
.
init
(
t
):
a
.
error
(
"layui.tree 没有找到"
+
e
.
elem
+
"元素"
)})});
\ No newline at end of file
/** layui-v2.2.45 MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
e
){
"use strict"
;
var
o
=
layui
.
$
,
a
=
layui
.
hint
(),
i
=
"layui-tree-enter"
,
r
=
function
(
e
){
this
.
options
=
e
},
t
=
{
arrow
:[
""
,
""
],
checkbox
:[
""
,
""
],
radio
:[
""
,
""
],
branch
:[
""
,
""
],
leaf
:
""
};
r
.
prototype
.
init
=
function
(
e
){
var
o
=
this
;
e
.
addClass
(
"layui-box layui-tree"
),
o
.
options
.
skin
&&
e
.
addClass
(
"layui-tree-skin-"
+
o
.
options
.
skin
),
o
.
tree
(
e
),
o
.
on
(
e
)},
r
.
prototype
.
tree
=
function
(
e
,
a
){
var
i
=
this
,
r
=
i
.
options
,
n
=
a
||
r
.
nodes
;
layui
.
each
(
n
,
function
(
a
,
n
){
var
l
=
n
.
children
&&
n
.
children
.
length
>
0
,
c
=
o
(
'<ul class="'
+
(
n
.
spread
?
"layui-show"
:
""
)
+
'"></ul>'
),
s
=
o
([
"<li "
+
(
n
.
spread
?
'data-spread="'
+
n
.
spread
+
'"'
:
""
)
+
">"
,
function
(){
return
l
?
'<i class="layui-icon layui-tree-spread">'
+
(
n
.
spread
?
t
.
arrow
[
1
]:
t
.
arrow
[
0
])
+
"</i>"
:
""
}(),
function
(){
return
r
.
check
?
'<i class="layui-icon layui-tree-check">'
+
(
"checkbox"
===
r
.
check
?
t
.
checkbox
[
0
]:
"radio"
===
r
.
check
?
t
.
radio
[
0
]:
""
)
+
"</i>"
:
""
}(),
function
(){
return
'<a href="'
+
(
n
.
href
||
"javascript:;"
)
+
'" '
+
(
r
.
target
&&
n
.
href
?
'target="'
+
r
.
target
+
'"'
:
""
)
+
">"
+
(
'<i class="layui-icon layui-tree-'
+
(
l
?
"branch"
:
"leaf"
)
+
'">'
+
(
l
?
n
.
spread
?
t
.
branch
[
1
]:
t
.
branch
[
0
]:
t
.
leaf
)
+
"</i>"
)
+
(
"<cite>"
+
(
n
.
name
||
"未命名"
)
+
"</cite></a>"
)}(),
"</li>"
].
join
(
""
));
l
&&
(
s
.
append
(
c
),
i
.
tree
(
c
,
n
.
children
)),
e
.
append
(
s
),
"function"
==
typeof
r
.
click
&&
i
.
click
(
s
,
n
),
i
.
spread
(
s
,
n
),
r
.
drag
&&
i
.
drag
(
s
,
n
)})},
r
.
prototype
.
click
=
function
(
e
,
o
){
var
a
=
this
,
i
=
a
.
options
;
e
.
children
(
"a"
).
on
(
"click"
,
function
(
e
){
layui
.
stope
(
e
),
i
.
click
(
o
)})},
r
.
prototype
.
spread
=
function
(
e
,
o
){
var
a
=
this
,
i
=
(
a
.
options
,
e
.
children
(
".layui-tree-spread"
)),
r
=
e
.
children
(
"ul"
),
n
=
e
.
children
(
"a"
),
l
=
function
(){
e
.
data
(
"spread"
)?(
e
.
data
(
"spread"
,
null
),
r
.
removeClass
(
"layui-show"
),
i
.
html
(
t
.
arrow
[
0
]),
n
.
find
(
".layui-icon"
).
html
(
t
.
branch
[
0
])):(
e
.
data
(
"spread"
,
!
0
),
r
.
addClass
(
"layui-show"
),
i
.
html
(
t
.
arrow
[
1
]),
n
.
find
(
".layui-icon"
).
html
(
t
.
branch
[
1
]))};
r
[
0
]
&&
(
i
.
on
(
"click"
,
l
),
n
.
on
(
"dblclick"
,
l
))},
r
.
prototype
.
on
=
function
(
e
){
var
a
=
this
,
r
=
a
.
options
,
t
=
"layui-tree-drag"
;
e
.
find
(
"i"
).
on
(
"selectstart"
,
function
(
e
){
return
!
1
}),
r
.
drag
&&
o
(
document
).
on
(
"mousemove"
,
function
(
e
){
var
i
=
a
.
move
;
if
(
i
.
from
){
var
r
=
(
i
.
to
,
o
(
'<div class="layui-box '
+
t
+
'"></div>'
));
e
.
preventDefault
(),
o
(
"."
+
t
)[
0
]
||
o
(
"body"
).
append
(
r
);
var
n
=
o
(
"."
+
t
)[
0
]?
o
(
"."
+
t
):
r
;
n
.
addClass
(
"layui-show"
).
html
(
i
.
from
.
elem
.
children
(
"a"
).
html
()),
n
.
css
({
left
:
e
.
pageX
+
10
,
top
:
e
.
pageY
+
10
})}}).
on
(
"mouseup"
,
function
(){
var
e
=
a
.
move
;
e
.
from
&&
(
e
.
from
.
elem
.
children
(
"a"
).
removeClass
(
i
),
e
.
to
&&
e
.
to
.
elem
.
children
(
"a"
).
removeClass
(
i
),
a
.
move
=
{},
o
(
"."
+
t
).
remove
())})},
r
.
prototype
.
move
=
{},
r
.
prototype
.
drag
=
function
(
e
,
a
){
var
r
=
this
,
t
=
(
r
.
options
,
e
.
children
(
"a"
)),
n
=
function
(){
var
t
=
o
(
this
),
n
=
r
.
move
;
n
.
from
&&
(
n
.
to
=
{
item
:
a
,
elem
:
e
},
t
.
addClass
(
i
))};
t
.
on
(
"mousedown"
,
function
(){
var
o
=
r
.
move
;
o
.
from
=
{
item
:
a
,
elem
:
e
}}),
t
.
on
(
"mouseenter"
,
n
).
on
(
"mousemove"
,
n
).
on
(
"mouseleave"
,
function
(){
var
e
=
o
(
this
),
a
=
r
.
move
;
a
.
from
&&
(
delete
a
.
to
,
e
.
removeClass
(
i
))})},
e
(
"tree"
,
function
(
e
){
var
i
=
new
r
(
e
=
e
||
{}),
t
=
o
(
e
.
elem
);
return
t
[
0
]?
void
i
.
init
(
t
):
a
.
error
(
"layui.tree 没有找到"
+
e
.
elem
+
"元素"
)})});
\ No newline at end of file
WebContent/WEB-INF/res/plugins/layui/lay/modules/upload.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
WebContent/WEB-INF/res/plugins/layui/lay/modules/util.js
查看文件 @
63f7a0e
/** layui-v1.0.9_rls MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
l
){
"use strict"
;
var
o
=
layui
.
jquery
,
i
=
{
fixbar
:
function
(
l
){
l
=
l
||
{},
l
.
bgcolor
=
l
.
bgcolor
?
"background-color:"
+
l
.
bgcolor
:
""
;
var
i
,
a
,
c
=
"layui-fixbar-top"
,
t
=
[
l
.
bar1
===!
0
?
""
:
l
.
bar1
,
l
.
bar2
===!
0
?
""
:
l
.
bar2
,
""
],
r
=
o
([
'<ul class="layui-fixbar">'
,
l
.
bar1
?
'<li class="layui-icon" lay-type="bar1" style="'
+
l
.
bgcolor
+
'">'
+
t
[
0
]
+
"</li>"
:
""
,
l
.
bar2
?
'<li class="layui-icon" lay-type="bar2" style="'
+
l
.
bgcolor
+
'">'
+
t
[
1
]
+
"</li>"
:
""
,
'<li class="layui-icon '
+
c
+
'" lay-type="top" style="'
+
l
.
bgcolor
+
'">'
+
t
[
2
]
+
"</li>"
,
"</ul>"
].
join
(
""
)),
e
=
r
.
find
(
"."
+
c
),
s
=
function
(){
var
i
=
o
(
document
).
scrollTop
();
i
>=
(
l
.
showHeight
||
200
)?
a
||
(
e
.
show
(),
a
=
1
):
a
&&
(
e
.
hide
(),
a
=
0
)};
o
(
".layui-fixbar"
)[
0
]
||
(
"object"
==
typeof
l
.
css
&&
r
.
css
(
l
.
css
),
o
(
"body"
).
append
(
r
),
s
(),
r
.
find
(
"li"
).
on
(
"click"
,
function
(){
var
i
=
o
(
this
),
a
=
i
.
attr
(
"lay-type"
);
"top"
===
a
&&
o
(
"html,body"
).
animate
({
scrollTop
:
0
},
200
),
l
.
click
&&
l
.
click
.
call
(
this
,
a
)}),
o
(
document
).
on
(
"scroll"
,
function
(){
i
&&
clearTimeout
(
i
),
i
=
setTimeout
(
function
(){
s
()},
100
)}))}};
l
(
"util"
,
i
)});
\ No newline at end of file
/** layui-v2.2.45 MIT License By http://www.layui.com */
;
layui
.
define
(
"jquery"
,
function
(
e
){
"use strict"
;
var
t
=
layui
.
$
,
i
=
{
fixbar
:
function
(
e
){
var
i
,
o
,
a
=
"layui-fixbar"
,
r
=
"layui-fixbar-top"
,
n
=
t
(
document
),
l
=
t
(
"body"
);
e
=
t
.
extend
({
showHeight
:
200
},
e
),
e
.
bar1
=
e
.
bar1
===!
0
?
""
:
e
.
bar1
,
e
.
bar2
=
e
.
bar2
===!
0
?
""
:
e
.
bar2
,
e
.
bgcolor
=
e
.
bgcolor
?
"background-color:"
+
e
.
bgcolor
:
""
;
var
c
=
[
e
.
bar1
,
e
.
bar2
,
""
],
g
=
t
([
'<ul class="'
+
a
+
'">'
,
e
.
bar1
?
'<li class="layui-icon" lay-type="bar1" style="'
+
e
.
bgcolor
+
'">'
+
c
[
0
]
+
"</li>"
:
""
,
e
.
bar2
?
'<li class="layui-icon" lay-type="bar2" style="'
+
e
.
bgcolor
+
'">'
+
c
[
1
]
+
"</li>"
:
""
,
'<li class="layui-icon '
+
r
+
'" lay-type="top" style="'
+
e
.
bgcolor
+
'">'
+
c
[
2
]
+
"</li>"
,
"</ul>"
].
join
(
""
)),
s
=
g
.
find
(
"."
+
r
),
u
=
function
(){
var
t
=
n
.
scrollTop
();
t
>=
e
.
showHeight
?
i
||
(
s
.
show
(),
i
=
1
):
i
&&
(
s
.
hide
(),
i
=
0
)};
t
(
"."
+
a
)[
0
]
||
(
"object"
==
typeof
e
.
css
&&
g
.
css
(
e
.
css
),
l
.
append
(
g
),
u
(),
g
.
find
(
"li"
).
on
(
"click"
,
function
(){
var
i
=
t
(
this
),
o
=
i
.
attr
(
"lay-type"
);
"top"
===
o
&&
t
(
"html,body"
).
animate
({
scrollTop
:
0
},
200
),
e
.
click
&&
e
.
click
.
call
(
this
,
o
)}),
n
.
on
(
"scroll"
,
function
(){
clearTimeout
(
o
),
o
=
setTimeout
(
function
(){
u
()},
100
)}))},
countdown
:
function
(
e
,
t
,
i
){
var
o
=
this
,
a
=
"function"
==
typeof
t
,
r
=
new
Date
(
e
).
getTime
(),
n
=
new
Date
(
!
t
||
a
?(
new
Date
).
getTime
():
t
).
getTime
(),
l
=
r
-
n
,
c
=
[
Math
.
floor
(
l
/
864
e5
),
Math
.
floor
(
l
/
36
e5
)
%
24
,
Math
.
floor
(
l
/
6
e4
)
%
60
,
Math
.
floor
(
l
/
1
e3
)
%
60
];
a
&&
(
i
=
t
);
var
g
=
setTimeout
(
function
(){
o
.
countdown
(
e
,
n
+
1
e3
,
i
)},
1
e3
);
return
i
&&
i
(
l
>
0
?
c
:[
0
,
0
,
0
,
0
],
t
,
g
),
l
<=
0
&&
clearTimeout
(
g
),
g
},
timeAgo
:
function
(
e
,
t
){
var
i
=
this
,
o
=
[[],[]],
a
=
(
new
Date
).
getTime
()
-
new
Date
(
e
).
getTime
();
return
a
>
6912
e5
?(
a
=
new
Date
(
e
),
o
[
0
][
0
]
=
i
.
digit
(
a
.
getFullYear
(),
4
),
o
[
0
][
1
]
=
i
.
digit
(
a
.
getMonth
()
+
1
),
o
[
0
][
2
]
=
i
.
digit
(
a
.
getDate
()),
t
||
(
o
[
1
][
0
]
=
i
.
digit
(
a
.
getHours
()),
o
[
1
][
1
]
=
i
.
digit
(
a
.
getMinutes
()),
o
[
1
][
2
]
=
i
.
digit
(
a
.
getSeconds
())),
o
[
0
].
join
(
"-"
)
+
" "
+
o
[
1
].
join
(
":"
)):
a
>=
864
e5
?(
a
/
1
e3
/
60
/
60
/
24
|
0
)
+
"天前"
:
a
>=
36
e5
?(
a
/
1
e3
/
60
/
60
|
0
)
+
"小时前"
:
a
>=
12
e4
?(
a
/
1
e3
/
60
|
0
)
+
"分钟前"
:
a
<
0
?
"未来"
:
"刚刚"
},
digit
:
function
(
e
,
t
){
var
i
=
""
;
e
=
String
(
e
),
t
=
t
||
2
;
for
(
var
o
=
e
.
length
;
o
<
t
;
o
++
)
i
+=
"0"
;
return
e
<
Math
.
pow
(
10
,
t
)?
i
+
(
0
|
e
):
e
},
toDateString
:
function
(
e
,
t
){
var
i
=
this
,
o
=
new
Date
(
parseInt
(
e
)
||
new
Date
),
a
=
[
i
.
digit
(
o
.
getFullYear
(),
4
),
i
.
digit
(
o
.
getMonth
()
+
1
),
i
.
digit
(
o
.
getDate
())],
r
=
[
i
.
digit
(
o
.
getHours
()),
i
.
digit
(
o
.
getMinutes
()),
i
.
digit
(
o
.
getSeconds
())];
return
t
=
t
||
"yyyy-MM-dd HH:mm:ss"
,
t
.
replace
(
/yyyy/g
,
a
[
0
]).
replace
(
/MM/g
,
a
[
1
]).
replace
(
/dd/g
,
a
[
2
]).
replace
(
/HH/g
,
r
[
0
]).
replace
(
/mm/g
,
r
[
1
]).
replace
(
/ss/g
,
r
[
2
])}};
e
(
"util"
,
i
)});
\ No newline at end of file
WebContent/WEB-INF/res/plugins/layui/layui.all.js
查看文件 @
63f7a0e
此文件的差异太大,无法显示。
WebContent/WEB-INF/res/plugins/layui/layui.js
查看文件 @
63f7a0e
此文件的差异被折叠,
点击展开。
build/classes/com/w1hd/zzhnc/util/QQFaceUtil.class
查看文件 @
63f7a0e
此文件类型无法预览
build/classes/org/theyeasy/weixin/util/SHA1.class
查看文件 @
63f7a0e
此文件类型无法预览
编写
预览
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论