Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
b87ed043
Commit
b87ed043
authored
Nov 01, 2018
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提示框
parent
8d136810
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1008 additions
and
225 deletions
+1008
-225
src/main/webapp/WEB-INF/common/_container.html
+12
-1
src/main/webapp/WEB-INF/system/user/user.html
+1
-1
src/main/webapp/aaastatic/js/common/Feng.js
+0
-196
src/main/webapp/assets/common/plugins/layer/layer.js
+3
-0
src/main/webapp/assets/common/plugins/layer/mobile/layer.js
+3
-0
src/main/webapp/assets/common/plugins/layer/mobile/need/layer.css
+2
-0
src/main/webapp/assets/common/plugins/layer/theme/default/icon-ext.png
+0
-0
src/main/webapp/assets/common/plugins/layer/theme/default/icon.png
+0
-0
src/main/webapp/assets/common/plugins/layer/theme/default/layer.css
+2
-0
src/main/webapp/assets/common/plugins/layer/theme/default/loading-0.gif
+0
-0
src/main/webapp/assets/common/plugins/layer/theme/default/loading-1.gif
+0
-0
src/main/webapp/assets/common/plugins/layer/theme/default/loading-2.gif
+0
-0
src/main/webapp/assets/common/plugins/sweetalert/sweetalert.css
+932
-0
src/main/webapp/assets/common/plugins/sweetalert/sweetalert.min.js
+2
-0
src/main/webapp/assets/common/static/stylefeng/Feng.js
+51
-27
No files found.
src/main/webapp/WEB-INF/common/_container.html
View file @
b87ed043
...
...
@@ -56,6 +56,9 @@
@if(array.contain(plugins,"ztree")){
<link
href=
"${ctxPath}/assets/common/plugins/ztree/zTreeStyle.css"
rel=
"stylesheet"
type=
"text/css"
/>
@}
@if(array.contain(plugins,"sweet-alert")){
<link
href=
"${ctxPath}/assets/common/plugins/sweetalert/sweetalert.css"
rel=
"stylesheet"
type=
"text/css"
/>
@}
@}
<!--其他业务用的css-->
...
...
@@ -115,6 +118,9 @@
<!--stickey kit(页面头部工具栏固定) -->
<script
src=
"${ctxPath}/assets/common/plugins/sticky-kit-master/dist/sticky-kit.min.js"
></script>
<!--toast(提示框) -->
<script
src=
"${ctxPath}/assets/common/plugins/toast-master/js/jquery.toast.js"
></script>
<!--Guns JavaScript -->
<script
src=
"${ctxPath}/assets/common/static/stylefeng/Feng.js"
></script>
<script
src=
"${ctxPath}/assets/common/static/stylefeng/ajax-object.js"
></script>
...
...
@@ -142,6 +148,12 @@
<script
src=
"${ctxPath}/assets/common/plugins/ztree/jquery.ztree.all.min.js"
></script>
<script
src=
"${ctxPath}/assets/common/plugins/ztree/ztree-object.js"
></script>
@}
@if(array.contain(plugins,"layer")){
<script
src=
"${ctxPath}/assets/common/plugins/layer/layer.js"
></script>
@}
@if(array.contain(plugins,"sweet-alert")){
<script
src=
"${ctxPath}/assets/common/plugins/sweetalert/sweetalert.min.js"
></script>
@}
@}
<!--其他业务用的js-->
...
...
@@ -154,7 +166,6 @@
@}
@}
</body>
</html>
src/main/webapp/WEB-INF/system/user/user.html
View file @
b87ed043
@layout("/common/_container.html",{plugins:["table","ztree"],js:["/assets/modular/system/user/user.js"]}){
@layout("/common/_container.html",{plugins:["table","ztree"
,"layer","sweet-alert"
],js:["/assets/modular/system/user/user.js"]}){
<div
class=
"row"
>
<div
class=
"col-lg-2 col-sm-3 p-r-0"
>
<div
class=
"card card-outline-info m-b-10"
>
...
...
src/main/webapp/aaastatic/js/common/Feng.js
deleted
100644 → 0
View file @
8d136810
var
Feng
=
{
ctxPath
:
""
,
addCtx
:
function
(
ctx
)
{
if
(
this
.
ctxPath
==
""
)
{
this
.
ctxPath
=
ctx
;
}
},
confirm
:
function
(
tip
,
ensure
)
{
//询问框
parent
.
layer
.
confirm
(
tip
,
{
btn
:
[
'确定'
,
'取消'
]
},
function
(
index
)
{
ensure
();
parent
.
layer
.
close
(
index
);
},
function
(
index
)
{
parent
.
layer
.
close
(
index
);
});
},
log
:
function
(
info
)
{
console
.
log
(
info
);
},
alert
:
function
(
info
,
iconIndex
)
{
parent
.
layer
.
msg
(
info
,
{
icon
:
iconIndex
});
},
info
:
function
(
info
)
{
Feng
.
alert
(
info
,
0
);
},
success
:
function
(
info
)
{
Feng
.
alert
(
info
,
1
);
},
error
:
function
(
info
)
{
Feng
.
alert
(
info
,
2
);
},
infoDetail
:
function
(
title
,
info
)
{
var
display
=
""
;
if
(
typeof
info
==
"string"
)
{
display
=
info
;
}
else
{
if
(
info
instanceof
Array
)
{
for
(
var
x
in
info
)
{
display
=
display
+
info
[
x
]
+
"<br/>"
;
}
}
else
{
display
=
info
;
}
}
parent
.
layer
.
open
({
title
:
title
,
type
:
1
,
skin
:
'layui-layer-rim'
,
//加上边框
area
:
[
'950px'
,
'600px'
],
//宽高
content
:
'<div style="padding: 20px;">'
+
display
+
'</div>'
});
},
writeObj
:
function
(
obj
)
{
var
description
=
""
;
for
(
var
i
in
obj
)
{
var
property
=
obj
[
i
];
description
+=
i
+
" = "
+
property
+
","
;
}
layer
.
alert
(
description
,
{
skin
:
'layui-layer-molv'
,
closeBtn
:
0
});
},
showInputTree
:
function
(
inputId
,
inputTreeContentId
,
leftOffset
,
rightOffset
)
{
var
onBodyDown
=
function
(
event
)
{
if
(
!
(
event
.
target
.
id
==
"menuBtn"
||
event
.
target
.
id
==
inputTreeContentId
||
$
(
event
.
target
).
parents
(
"#"
+
inputTreeContentId
).
length
>
0
))
{
$
(
"#"
+
inputTreeContentId
).
fadeOut
(
"fast"
);
$
(
"body"
).
unbind
(
"mousedown"
,
onBodyDown
);
// mousedown当鼠标按下就可以触发,不用弹起
}
};
if
(
leftOffset
==
undefined
&&
rightOffset
==
undefined
)
{
var
inputDiv
=
$
(
"#"
+
inputId
);
var
inputDivOffset
=
$
(
"#"
+
inputId
).
offset
();
$
(
"#"
+
inputTreeContentId
).
css
({
left
:
inputDivOffset
.
left
+
"px"
,
top
:
inputDivOffset
.
top
+
inputDiv
.
outerHeight
()
+
"px"
}).
slideDown
(
"fast"
);
}
else
{
$
(
"#"
+
inputTreeContentId
).
css
({
left
:
leftOffset
+
"px"
,
top
:
rightOffset
+
"px"
}).
slideDown
(
"fast"
);
}
$
(
"body"
).
bind
(
"mousedown"
,
onBodyDown
);
},
baseAjax
:
function
(
url
,
tip
)
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
url
,
function
(
data
)
{
Feng
.
success
(
tip
+
"成功!"
);
},
function
(
data
)
{
Feng
.
error
(
tip
+
"失败!"
+
data
.
responseJSON
.
message
+
"!"
);
});
return
ajax
;
},
changeAjax
:
function
(
url
)
{
return
Feng
.
baseAjax
(
url
,
"修改"
);
},
zTreeCheckedNodes
:
function
(
zTreeId
)
{
var
zTree
=
$
.
fn
.
zTree
.
getZTreeObj
(
zTreeId
);
var
nodes
=
zTree
.
getCheckedNodes
();
var
ids
=
""
;
for
(
var
i
=
0
,
l
=
nodes
.
length
;
i
<
l
;
i
++
)
{
ids
+=
","
+
nodes
[
i
].
id
;
}
return
ids
.
substring
(
1
);
},
eventParseObject
:
function
(
event
)
{
//获取点击事件的源对象
event
=
event
?
event
:
window
.
event
;
var
obj
=
event
.
srcElement
?
event
.
srcElement
:
event
.
target
;
return
$
(
obj
);
},
sessionTimeoutRegistry
:
function
()
{
$
.
ajaxSetup
({
contentType
:
"application/x-www-form-urlencoded;charset=utf-8"
,
complete
:
function
(
XMLHttpRequest
,
textStatus
)
{
//通过XMLHttpRequest取得响应头,sessionstatus,
var
sessionstatus
=
XMLHttpRequest
.
getResponseHeader
(
"sessionstatus"
);
if
(
sessionstatus
==
"timeout"
)
{
//如果超时就处理 ,指定要跳转的页面
window
.
location
=
Feng
.
ctxPath
+
"/global/sessionError"
;
}
}
});
},
initValidator
:
function
(
formId
,
fields
)
{
$
(
'#'
+
formId
).
bootstrapValidator
({
feedbackIcons
:
{
valid
:
'glyphicon glyphicon-ok'
,
invalid
:
'glyphicon glyphicon-remove'
,
validating
:
'glyphicon glyphicon-refresh'
},
fields
:
fields
,
live
:
'enabled'
,
message
:
'该字段不能为空'
});
},
underLineToCamel
:
function
(
str
)
{
var
strArr
=
str
.
split
(
'_'
);
for
(
var
i
=
1
;
i
<
strArr
.
length
;
i
++
)
{
strArr
[
i
]
=
strArr
[
i
].
charAt
(
0
).
toUpperCase
()
+
strArr
[
i
].
substring
(
1
);
}
var
result
=
strArr
.
join
(
''
);
return
result
.
charAt
(
0
).
toUpperCase
()
+
result
.
substring
(
1
);
},
randomNum
:
function
(
minNum
,
maxNum
)
{
switch
(
arguments
.
length
)
{
case
1
:
return
parseInt
(
Math
.
random
()
*
minNum
+
1
,
10
);
break
;
case
2
:
return
parseInt
(
Math
.
random
()
*
(
maxNum
-
minNum
+
1
)
+
minNum
,
10
);
break
;
default
:
return
0
;
break
;
}
},
newCrontab
:
function
(
href
,
menuName
)
{
var
dataUrl
=
href
;
var
needCreateCrontab
=
true
;
// 轮询已有的标签,判断是否已经存在标签
parent
.
$
(
'.J_menuTab'
).
each
(
function
()
{
if
(
$
(
this
).
data
(
'id'
)
==
dataUrl
)
{
if
(
!
$
(
this
).
hasClass
(
'active'
))
{
$
(
this
).
addClass
(
'active'
).
siblings
(
'.J_menuTab'
).
removeClass
(
'active'
);
parent
.
MyCrontab
.
scrollToTab
(
this
);
parent
.
MyCrontab
.
$
(
'.J_mainContent .J_iframe'
).
each
(
function
()
{
if
(
$
(
this
).
data
(
'id'
)
==
dataUrl
)
{
$
(
this
).
show
().
siblings
(
'.J_iframe'
).
hide
();
$
(
this
).
attr
(
'src'
,
$
(
this
).
attr
(
'src'
));
return
false
;
}
});
}
needCreateCrontab
=
false
;
return
false
;
}
});
//创建标签
if
(
needCreateCrontab
)
{
var
tabLink
=
'<a href="javascript:;" class="active J_menuTab" data-id="'
+
dataUrl
+
'">'
+
menuName
+
' <i class="fa fa-times-circle"></i></a>'
;
parent
.
$
(
'.J_menuTab'
).
removeClass
(
'active'
);
parent
.
$
(
'.J_menuTabs .page-tabs-content'
).
append
(
tabLink
);
var
iframeContent
=
'<iframe class="J_iframe" name="iframe'
+
Feng
.
randomNum
(
100
,
999
)
+
'" width="100%" height="100%" src="'
+
dataUrl
+
'" frameborder="0" data-id="'
+
dataUrl
+
'" seamless></iframe>'
;
parent
.
$
(
'.J_mainContent'
).
find
(
'iframe.J_iframe'
).
hide
().
parents
(
'.J_mainContent'
).
append
(
iframeContent
);
parent
.
MyCrontab
.
scrollToTab
(
$
(
'.J_menuTab.active'
));
}
}
};
src/main/webapp/assets/common/plugins/layer/layer.js
0 → 100644
View file @
b87ed043
/*! layer-v3.1.1 Web弹层组件 MIT License http://layer.layui.com/ By 贤心 */
;
!
function
(
e
,
t
){
"use strict"
;
var
i
,
n
,
a
=
e
.
layui
&&
layui
.
define
,
o
=
{
getPath
:
function
(){
var
e
=
document
.
currentScript
?
document
.
currentScript
.
src
:
function
(){
for
(
var
e
,
t
=
document
.
scripts
,
i
=
t
.
length
-
1
,
n
=
i
;
n
>
0
;
n
--
)
if
(
"interactive"
===
t
[
n
].
readyState
){
e
=
t
[
n
].
src
;
break
}
return
e
||
t
[
i
].
src
}();
return
e
.
substring
(
0
,
e
.
lastIndexOf
(
"/"
)
+
1
)}(),
config
:{},
end
:{},
minIndex
:
0
,
minLeft
:[],
btn
:[
"确定"
,
"取消"
],
type
:[
"dialog"
,
"page"
,
"iframe"
,
"loading"
,
"tips"
],
getStyle
:
function
(
t
,
i
){
var
n
=
t
.
currentStyle
?
t
.
currentStyle
:
e
.
getComputedStyle
(
t
,
null
);
return
n
[
n
.
getPropertyValue
?
"getPropertyValue"
:
"getAttribute"
](
i
)},
link
:
function
(
t
,
i
,
n
){
if
(
r
.
path
){
var
a
=
document
.
getElementsByTagName
(
"head"
)[
0
],
s
=
document
.
createElement
(
"link"
);
"string"
==
typeof
i
&&
(
n
=
i
);
var
l
=
(
n
||
t
).
replace
(
/
\.
|
\/
/g
,
""
),
f
=
"layuicss-"
+
l
,
c
=
0
;
s
.
rel
=
"stylesheet"
,
s
.
href
=
r
.
path
+
t
,
s
.
id
=
f
,
document
.
getElementById
(
f
)
||
a
.
appendChild
(
s
),
"function"
==
typeof
i
&&!
function
u
(){
return
++
c
>
80
?
e
.
console
&&
console
.
error
(
"layer.css: Invalid"
):
void
(
1989
===
parseInt
(
o
.
getStyle
(
document
.
getElementById
(
f
),
"width"
))?
i
():
setTimeout
(
u
,
100
))}()}}},
r
=
{
v
:
"3.1.1"
,
ie
:
function
(){
var
t
=
navigator
.
userAgent
.
toLowerCase
();
return
!!
(
e
.
ActiveXObject
||
"ActiveXObject"
in
e
)
&&
((
t
.
match
(
/msie
\s(\d
+
)
/
)
||
[])[
1
]
||
"11"
)}(),
index
:
e
.
layer
&&
e
.
layer
.
v
?
1
e5
:
0
,
path
:
o
.
getPath
,
config
:
function
(
e
,
t
){
return
e
=
e
||
{},
r
.
cache
=
o
.
config
=
i
.
extend
({},
o
.
config
,
e
),
r
.
path
=
o
.
config
.
path
||
r
.
path
,
"string"
==
typeof
e
.
extend
&&
(
e
.
extend
=
[
e
.
extend
]),
o
.
config
.
path
&&
r
.
ready
(),
e
.
extend
?(
a
?
layui
.
addcss
(
"modules/layer/"
+
e
.
extend
):
o
.
link
(
"theme/"
+
e
.
extend
),
this
):
this
},
ready
:
function
(
e
){
var
t
=
"layer"
,
i
=
""
,
n
=
(
a
?
"modules/layer/"
:
"theme/"
)
+
"default/layer.css?v="
+
r
.
v
+
i
;
return
a
?
layui
.
addcss
(
n
,
e
,
t
):
o
.
link
(
n
,
e
,
t
),
this
},
alert
:
function
(
e
,
t
,
n
){
var
a
=
"function"
==
typeof
t
;
return
a
&&
(
n
=
t
),
r
.
open
(
i
.
extend
({
content
:
e
,
yes
:
n
},
a
?{}:
t
))},
confirm
:
function
(
e
,
t
,
n
,
a
){
var
s
=
"function"
==
typeof
t
;
return
s
&&
(
a
=
n
,
n
=
t
),
r
.
open
(
i
.
extend
({
content
:
e
,
btn
:
o
.
btn
,
yes
:
n
,
btn2
:
a
},
s
?{}:
t
))},
msg
:
function
(
e
,
n
,
a
){
var
s
=
"function"
==
typeof
n
,
f
=
o
.
config
.
skin
,
c
=
(
f
?
f
+
" "
+
f
+
"-msg"
:
""
)
||
"layui-layer-msg"
,
u
=
l
.
anim
.
length
-
1
;
return
s
&&
(
a
=
n
),
r
.
open
(
i
.
extend
({
content
:
e
,
time
:
3
e3
,
shade
:
!
1
,
skin
:
c
,
title
:
!
1
,
closeBtn
:
!
1
,
btn
:
!
1
,
resize
:
!
1
,
end
:
a
},
s
&&!
o
.
config
.
skin
?{
skin
:
c
+
" layui-layer-hui"
,
anim
:
u
}:
function
(){
return
n
=
n
||
{},(
n
.
icon
===-
1
||
n
.
icon
===
t
&&!
o
.
config
.
skin
)
&&
(
n
.
skin
=
c
+
" "
+
(
n
.
skin
||
"layui-layer-hui"
)),
n
}()))},
load
:
function
(
e
,
t
){
return
r
.
open
(
i
.
extend
({
type
:
3
,
icon
:
e
||
0
,
resize
:
!
1
,
shade
:.
01
},
t
))},
tips
:
function
(
e
,
t
,
n
){
return
r
.
open
(
i
.
extend
({
type
:
4
,
content
:[
e
,
t
],
closeBtn
:
!
1
,
time
:
3
e3
,
shade
:
!
1
,
resize
:
!
1
,
fixed
:
!
1
,
maxWidth
:
210
},
n
))}},
s
=
function
(
e
){
var
t
=
this
;
t
.
index
=++
r
.
index
,
t
.
config
=
i
.
extend
({},
t
.
config
,
o
.
config
,
e
),
document
.
body
?
t
.
creat
():
setTimeout
(
function
(){
t
.
creat
()},
30
)};
s
.
pt
=
s
.
prototype
;
var
l
=
[
"layui-layer"
,
".layui-layer-title"
,
".layui-layer-main"
,
".layui-layer-dialog"
,
"layui-layer-iframe"
,
"layui-layer-content"
,
"layui-layer-btn"
,
"layui-layer-close"
];
l
.
anim
=
[
"layer-anim-00"
,
"layer-anim-01"
,
"layer-anim-02"
,
"layer-anim-03"
,
"layer-anim-04"
,
"layer-anim-05"
,
"layer-anim-06"
],
s
.
pt
.
config
=
{
type
:
0
,
shade
:.
3
,
fixed
:
!
0
,
move
:
l
[
1
],
title
:
"信息"
,
offset
:
"auto"
,
area
:
"auto"
,
closeBtn
:
1
,
time
:
0
,
zIndex
:
19891014
,
maxWidth
:
360
,
anim
:
0
,
isOutAnim
:
!
0
,
icon
:
-
1
,
moveType
:
1
,
resize
:
!
0
,
scrollbar
:
!
0
,
tips
:
2
},
s
.
pt
.
vessel
=
function
(
e
,
t
){
var
n
=
this
,
a
=
n
.
index
,
r
=
n
.
config
,
s
=
r
.
zIndex
+
a
,
f
=
"object"
==
typeof
r
.
title
,
c
=
r
.
maxmin
&&
(
1
===
r
.
type
||
2
===
r
.
type
),
u
=
r
.
title
?
'<div class="layui-layer-title" style="'
+
(
f
?
r
.
title
[
1
]:
""
)
+
'">'
+
(
f
?
r
.
title
[
0
]:
r
.
title
)
+
"</div>"
:
""
;
return
r
.
zIndex
=
s
,
t
([
r
.
shade
?
'<div class="layui-layer-shade" id="layui-layer-shade'
+
a
+
'" times="'
+
a
+
'" style="'
+
(
"z-index:"
+
(
s
-
1
)
+
"; "
)
+
'"></div>'
:
""
,
'<div class="'
+
l
[
0
]
+
(
" layui-layer-"
+
o
.
type
[
r
.
type
])
+
(
0
!=
r
.
type
&&
2
!=
r
.
type
||
r
.
shade
?
""
:
" layui-layer-border"
)
+
" "
+
(
r
.
skin
||
""
)
+
'" id="'
+
l
[
0
]
+
a
+
'" type="'
+
o
.
type
[
r
.
type
]
+
'" times="'
+
a
+
'" showtime="'
+
r
.
time
+
'" conType="'
+
(
e
?
"object"
:
"string"
)
+
'" style="z-index: '
+
s
+
"; width:"
+
r
.
area
[
0
]
+
";height:"
+
r
.
area
[
1
]
+
(
r
.
fixed
?
""
:
";position:absolute;"
)
+
'">'
+
(
e
&&
2
!=
r
.
type
?
""
:
u
)
+
'<div id="'
+
(
r
.
id
||
""
)
+
'" class="layui-layer-content'
+
(
0
==
r
.
type
&&
r
.
icon
!==-
1
?
" layui-layer-padding"
:
""
)
+
(
3
==
r
.
type
?
" layui-layer-loading"
+
r
.
icon
:
""
)
+
'">'
+
(
0
==
r
.
type
&&
r
.
icon
!==-
1
?
'<i class="layui-layer-ico layui-layer-ico'
+
r
.
icon
+
'"></i>'
:
""
)
+
(
1
==
r
.
type
&&
e
?
""
:
r
.
content
||
""
)
+
'</div><span class="layui-layer-setwin">'
+
function
(){
var
e
=
c
?
'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>'
:
""
;
return
r
.
closeBtn
&&
(
e
+=
'<a class="layui-layer-ico '
+
l
[
7
]
+
" "
+
l
[
7
]
+
(
r
.
title
?
r
.
closeBtn
:
4
==
r
.
type
?
"1"
:
"2"
)
+
'" href="javascript:;"></a>'
),
e
}()
+
"</span>"
+
(
r
.
btn
?
function
(){
var
e
=
""
;
"string"
==
typeof
r
.
btn
&&
(
r
.
btn
=
[
r
.
btn
]);
for
(
var
t
=
0
,
i
=
r
.
btn
.
length
;
t
<
i
;
t
++
)
e
+=
'<a class="'
+
l
[
6
]
+
t
+
'">'
+
r
.
btn
[
t
]
+
"</a>"
;
return
'<div class="'
+
l
[
6
]
+
" layui-layer-btn-"
+
(
r
.
btnAlign
||
""
)
+
'">'
+
e
+
"</div>"
}():
""
)
+
(
r
.
resize
?
'<span class="layui-layer-resize"></span>'
:
""
)
+
"</div>"
],
u
,
i
(
'<div class="layui-layer-move"></div>'
)),
n
},
s
.
pt
.
creat
=
function
(){
var
e
=
this
,
t
=
e
.
config
,
a
=
e
.
index
,
s
=
t
.
content
,
f
=
"object"
==
typeof
s
,
c
=
i
(
"body"
);
if
(
!
t
.
id
||!
i
(
"#"
+
t
.
id
)[
0
]){
switch
(
"string"
==
typeof
t
.
area
&&
(
t
.
area
=
"auto"
===
t
.
area
?[
""
,
""
]:[
t
.
area
,
""
]),
t
.
shift
&&
(
t
.
anim
=
t
.
shift
),
6
==
r
.
ie
&&
(
t
.
fixed
=!
1
),
t
.
type
){
case
0
:
t
.
btn
=
"btn"
in
t
?
t
.
btn
:
o
.
btn
[
0
],
r
.
closeAll
(
"dialog"
);
break
;
case
2
:
var
s
=
t
.
content
=
f
?
t
.
content
:[
t
.
content
||
"http://layer.layui.com"
,
"auto"
];
t
.
content
=
'<iframe scrolling="'
+
(
t
.
content
[
1
]
||
"auto"
)
+
'" allowtransparency="true" id="'
+
l
[
4
]
+
a
+
'" name="'
+
l
[
4
]
+
a
+
'" onload="this.className=
\'\'
;" class="layui-layer-load" frameborder="0" src="'
+
t
.
content
[
0
]
+
'"></iframe>'
;
break
;
case
3
:
delete
t
.
title
,
delete
t
.
closeBtn
,
t
.
icon
===-
1
&&
0
===
t
.
icon
,
r
.
closeAll
(
"loading"
);
break
;
case
4
:
f
||
(
t
.
content
=
[
t
.
content
,
"body"
]),
t
.
follow
=
t
.
content
[
1
],
t
.
content
=
t
.
content
[
0
]
+
'<i class="layui-layer-TipsG"></i>'
,
delete
t
.
title
,
t
.
tips
=
"object"
==
typeof
t
.
tips
?
t
.
tips
:[
t
.
tips
,
!
0
],
t
.
tipsMore
||
r
.
closeAll
(
"tips"
)}
if
(
e
.
vessel
(
f
,
function
(
n
,
r
,
u
){
c
.
append
(
n
[
0
]),
f
?
function
(){
2
==
t
.
type
||
4
==
t
.
type
?
function
(){
i
(
"body"
).
append
(
n
[
1
])}():
function
(){
s
.
parents
(
"."
+
l
[
0
])[
0
]
||
(
s
.
data
(
"display"
,
s
.
css
(
"display"
)).
show
().
addClass
(
"layui-layer-wrap"
).
wrap
(
n
[
1
]),
i
(
"#"
+
l
[
0
]
+
a
).
find
(
"."
+
l
[
5
]).
before
(
r
))}()}():
c
.
append
(
n
[
1
]),
i
(
".layui-layer-move"
)[
0
]
||
c
.
append
(
o
.
moveElem
=
u
),
e
.
layero
=
i
(
"#"
+
l
[
0
]
+
a
),
t
.
scrollbar
||
l
.
html
.
css
(
"overflow"
,
"hidden"
).
attr
(
"layer-full"
,
a
)}).
auto
(
a
),
i
(
"#layui-layer-shade"
+
e
.
index
).
css
({
"background-color"
:
t
.
shade
[
1
]
||
"#000"
,
opacity
:
t
.
shade
[
0
]
||
t
.
shade
}),
2
==
t
.
type
&&
6
==
r
.
ie
&&
e
.
layero
.
find
(
"iframe"
).
attr
(
"src"
,
s
[
0
]),
4
==
t
.
type
?
e
.
tips
():
e
.
offset
(),
t
.
fixed
&&
n
.
on
(
"resize"
,
function
(){
e
.
offset
(),(
/^
\d
+%$/
.
test
(
t
.
area
[
0
])
||
/^
\d
+%$/
.
test
(
t
.
area
[
1
]))
&&
e
.
auto
(
a
),
4
==
t
.
type
&&
e
.
tips
()}),
t
.
time
<=
0
||
setTimeout
(
function
(){
r
.
close
(
e
.
index
)},
t
.
time
),
e
.
move
().
callback
(),
l
.
anim
[
t
.
anim
]){
var
u
=
"layer-anim "
+
l
.
anim
[
t
.
anim
];
e
.
layero
.
addClass
(
u
).
one
(
"webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend"
,
function
(){
i
(
this
).
removeClass
(
u
)})}
t
.
isOutAnim
&&
e
.
layero
.
data
(
"isOutAnim"
,
!
0
)}},
s
.
pt
.
auto
=
function
(
e
){
var
t
=
this
,
a
=
t
.
config
,
o
=
i
(
"#"
+
l
[
0
]
+
e
);
""
===
a
.
area
[
0
]
&&
a
.
maxWidth
>
0
&&
(
r
.
ie
&&
r
.
ie
<
8
&&
a
.
btn
&&
o
.
width
(
o
.
innerWidth
()),
o
.
outerWidth
()
>
a
.
maxWidth
&&
o
.
width
(
a
.
maxWidth
));
var
s
=
[
o
.
innerWidth
(),
o
.
innerHeight
()],
f
=
o
.
find
(
l
[
1
]).
outerHeight
()
||
0
,
c
=
o
.
find
(
"."
+
l
[
6
]).
outerHeight
()
||
0
,
u
=
function
(
e
){
e
=
o
.
find
(
e
),
e
.
height
(
s
[
1
]
-
f
-
c
-
2
*
(
0
|
parseFloat
(
e
.
css
(
"padding-top"
))))};
switch
(
a
.
type
){
case
2
:
u
(
"iframe"
);
break
;
default
:
""
===
a
.
area
[
1
]?
a
.
maxHeight
>
0
&&
o
.
outerHeight
()
>
a
.
maxHeight
?(
s
[
1
]
=
a
.
maxHeight
,
u
(
"."
+
l
[
5
])):
a
.
fixed
&&
s
[
1
]
>=
n
.
height
()
&&
(
s
[
1
]
=
n
.
height
(),
u
(
"."
+
l
[
5
])):
u
(
"."
+
l
[
5
])}
return
t
},
s
.
pt
.
offset
=
function
(){
var
e
=
this
,
t
=
e
.
config
,
i
=
e
.
layero
,
a
=
[
i
.
outerWidth
(),
i
.
outerHeight
()],
o
=
"object"
==
typeof
t
.
offset
;
e
.
offsetTop
=
(
n
.
height
()
-
a
[
1
])
/
2
,
e
.
offsetLeft
=
(
n
.
width
()
-
a
[
0
])
/
2
,
o
?(
e
.
offsetTop
=
t
.
offset
[
0
],
e
.
offsetLeft
=
t
.
offset
[
1
]
||
e
.
offsetLeft
):
"auto"
!==
t
.
offset
&&
(
"t"
===
t
.
offset
?
e
.
offsetTop
=
0
:
"r"
===
t
.
offset
?
e
.
offsetLeft
=
n
.
width
()
-
a
[
0
]:
"b"
===
t
.
offset
?
e
.
offsetTop
=
n
.
height
()
-
a
[
1
]:
"l"
===
t
.
offset
?
e
.
offsetLeft
=
0
:
"lt"
===
t
.
offset
?(
e
.
offsetTop
=
0
,
e
.
offsetLeft
=
0
):
"lb"
===
t
.
offset
?(
e
.
offsetTop
=
n
.
height
()
-
a
[
1
],
e
.
offsetLeft
=
0
):
"rt"
===
t
.
offset
?(
e
.
offsetTop
=
0
,
e
.
offsetLeft
=
n
.
width
()
-
a
[
0
]):
"rb"
===
t
.
offset
?(
e
.
offsetTop
=
n
.
height
()
-
a
[
1
],
e
.
offsetLeft
=
n
.
width
()
-
a
[
0
]):
e
.
offsetTop
=
t
.
offset
),
t
.
fixed
||
(
e
.
offsetTop
=
/%$/
.
test
(
e
.
offsetTop
)?
n
.
height
()
*
parseFloat
(
e
.
offsetTop
)
/
100
:
parseFloat
(
e
.
offsetTop
),
e
.
offsetLeft
=
/%$/
.
test
(
e
.
offsetLeft
)?
n
.
width
()
*
parseFloat
(
e
.
offsetLeft
)
/
100
:
parseFloat
(
e
.
offsetLeft
),
e
.
offsetTop
+=
n
.
scrollTop
(),
e
.
offsetLeft
+=
n
.
scrollLeft
()),
i
.
attr
(
"minLeft"
)
&&
(
e
.
offsetTop
=
n
.
height
()
-
(
i
.
find
(
l
[
1
]).
outerHeight
()
||
0
),
e
.
offsetLeft
=
i
.
css
(
"left"
)),
i
.
css
({
top
:
e
.
offsetTop
,
left
:
e
.
offsetLeft
})},
s
.
pt
.
tips
=
function
(){
var
e
=
this
,
t
=
e
.
config
,
a
=
e
.
layero
,
o
=
[
a
.
outerWidth
(),
a
.
outerHeight
()],
r
=
i
(
t
.
follow
);
r
[
0
]
||
(
r
=
i
(
"body"
));
var
s
=
{
width
:
r
.
outerWidth
(),
height
:
r
.
outerHeight
(),
top
:
r
.
offset
().
top
,
left
:
r
.
offset
().
left
},
f
=
a
.
find
(
".layui-layer-TipsG"
),
c
=
t
.
tips
[
0
];
t
.
tips
[
1
]
||
f
.
remove
(),
s
.
autoLeft
=
function
(){
s
.
left
+
o
[
0
]
-
n
.
width
()
>
0
?(
s
.
tipLeft
=
s
.
left
+
s
.
width
-
o
[
0
],
f
.
css
({
right
:
12
,
left
:
"auto"
})):
s
.
tipLeft
=
s
.
left
},
s
.
where
=
[
function
(){
s
.
autoLeft
(),
s
.
tipTop
=
s
.
top
-
o
[
1
]
-
10
,
f
.
removeClass
(
"layui-layer-TipsB"
).
addClass
(
"layui-layer-TipsT"
).
css
(
"border-right-color"
,
t
.
tips
[
1
])},
function
(){
s
.
tipLeft
=
s
.
left
+
s
.
width
+
10
,
s
.
tipTop
=
s
.
top
,
f
.
removeClass
(
"layui-layer-TipsL"
).
addClass
(
"layui-layer-TipsR"
).
css
(
"border-bottom-color"
,
t
.
tips
[
1
])},
function
(){
s
.
autoLeft
(),
s
.
tipTop
=
s
.
top
+
s
.
height
+
10
,
f
.
removeClass
(
"layui-layer-TipsT"
).
addClass
(
"layui-layer-TipsB"
).
css
(
"border-right-color"
,
t
.
tips
[
1
])},
function
(){
s
.
tipLeft
=
s
.
left
-
o
[
0
]
-
10
,
s
.
tipTop
=
s
.
top
,
f
.
removeClass
(
"layui-layer-TipsR"
).
addClass
(
"layui-layer-TipsL"
).
css
(
"border-bottom-color"
,
t
.
tips
[
1
])}],
s
.
where
[
c
-
1
](),
1
===
c
?
s
.
top
-
(
n
.
scrollTop
()
+
o
[
1
]
+
16
)
<
0
&&
s
.
where
[
2
]():
2
===
c
?
n
.
width
()
-
(
s
.
left
+
s
.
width
+
o
[
0
]
+
16
)
>
0
||
s
.
where
[
3
]():
3
===
c
?
s
.
top
-
n
.
scrollTop
()
+
s
.
height
+
o
[
1
]
+
16
-
n
.
height
()
>
0
&&
s
.
where
[
0
]():
4
===
c
&&
o
[
0
]
+
16
-
s
.
left
>
0
&&
s
.
where
[
1
](),
a
.
find
(
"."
+
l
[
5
]).
css
({
"background-color"
:
t
.
tips
[
1
],
"padding-right"
:
t
.
closeBtn
?
"30px"
:
""
}),
a
.
css
({
left
:
s
.
tipLeft
-
(
t
.
fixed
?
n
.
scrollLeft
():
0
),
top
:
s
.
tipTop
-
(
t
.
fixed
?
n
.
scrollTop
():
0
)})},
s
.
pt
.
move
=
function
(){
var
e
=
this
,
t
=
e
.
config
,
a
=
i
(
document
),
s
=
e
.
layero
,
l
=
s
.
find
(
t
.
move
),
f
=
s
.
find
(
".layui-layer-resize"
),
c
=
{};
return
t
.
move
&&
l
.
css
(
"cursor"
,
"move"
),
l
.
on
(
"mousedown"
,
function
(
e
){
e
.
preventDefault
(),
t
.
move
&&
(
c
.
moveStart
=!
0
,
c
.
offset
=
[
e
.
clientX
-
parseFloat
(
s
.
css
(
"left"
)),
e
.
clientY
-
parseFloat
(
s
.
css
(
"top"
))],
o
.
moveElem
.
css
(
"cursor"
,
"move"
).
show
())}),
f
.
on
(
"mousedown"
,
function
(
e
){
e
.
preventDefault
(),
c
.
resizeStart
=!
0
,
c
.
offset
=
[
e
.
clientX
,
e
.
clientY
],
c
.
area
=
[
s
.
outerWidth
(),
s
.
outerHeight
()],
o
.
moveElem
.
css
(
"cursor"
,
"se-resize"
).
show
()}),
a
.
on
(
"mousemove"
,
function
(
i
){
if
(
c
.
moveStart
){
var
a
=
i
.
clientX
-
c
.
offset
[
0
],
o
=
i
.
clientY
-
c
.
offset
[
1
],
l
=
"fixed"
===
s
.
css
(
"position"
);
if
(
i
.
preventDefault
(),
c
.
stX
=
l
?
0
:
n
.
scrollLeft
(),
c
.
stY
=
l
?
0
:
n
.
scrollTop
(),
!
t
.
moveOut
){
var
f
=
n
.
width
()
-
s
.
outerWidth
()
+
c
.
stX
,
u
=
n
.
height
()
-
s
.
outerHeight
()
+
c
.
stY
;
a
<
c
.
stX
&&
(
a
=
c
.
stX
),
a
>
f
&&
(
a
=
f
),
o
<
c
.
stY
&&
(
o
=
c
.
stY
),
o
>
u
&&
(
o
=
u
)}
s
.
css
({
left
:
a
,
top
:
o
})}
if
(
t
.
resize
&&
c
.
resizeStart
){
var
a
=
i
.
clientX
-
c
.
offset
[
0
],
o
=
i
.
clientY
-
c
.
offset
[
1
];
i
.
preventDefault
(),
r
.
style
(
e
.
index
,{
width
:
c
.
area
[
0
]
+
a
,
height
:
c
.
area
[
1
]
+
o
}),
c
.
isResize
=!
0
,
t
.
resizing
&&
t
.
resizing
(
s
)}}).
on
(
"mouseup"
,
function
(
e
){
c
.
moveStart
&&
(
delete
c
.
moveStart
,
o
.
moveElem
.
hide
(),
t
.
moveEnd
&&
t
.
moveEnd
(
s
)),
c
.
resizeStart
&&
(
delete
c
.
resizeStart
,
o
.
moveElem
.
hide
())}),
e
},
s
.
pt
.
callback
=
function
(){
function
e
(){
var
e
=
a
.
cancel
&&
a
.
cancel
(
t
.
index
,
n
);
e
===!
1
||
r
.
close
(
t
.
index
)}
var
t
=
this
,
n
=
t
.
layero
,
a
=
t
.
config
;
t
.
openLayer
(),
a
.
success
&&
(
2
==
a
.
type
?
n
.
find
(
"iframe"
).
on
(
"load"
,
function
(){
a
.
success
(
n
,
t
.
index
)}):
a
.
success
(
n
,
t
.
index
)),
6
==
r
.
ie
&&
t
.
IE6
(
n
),
n
.
find
(
"."
+
l
[
6
]).
children
(
"a"
).
on
(
"click"
,
function
(){
var
e
=
i
(
this
).
index
();
if
(
0
===
e
)
a
.
yes
?
a
.
yes
(
t
.
index
,
n
):
a
.
btn1
?
a
.
btn1
(
t
.
index
,
n
):
r
.
close
(
t
.
index
);
else
{
var
o
=
a
[
"btn"
+
(
e
+
1
)]
&&
a
[
"btn"
+
(
e
+
1
)](
t
.
index
,
n
);
o
===!
1
||
r
.
close
(
t
.
index
)}}),
n
.
find
(
"."
+
l
[
7
]).
on
(
"click"
,
e
),
a
.
shadeClose
&&
i
(
"#layui-layer-shade"
+
t
.
index
).
on
(
"click"
,
function
(){
r
.
close
(
t
.
index
)}),
n
.
find
(
".layui-layer-min"
).
on
(
"click"
,
function
(){
var
e
=
a
.
min
&&
a
.
min
(
n
);
e
===!
1
||
r
.
min
(
t
.
index
,
a
)}),
n
.
find
(
".layui-layer-max"
).
on
(
"click"
,
function
(){
i
(
this
).
hasClass
(
"layui-layer-maxmin"
)?(
r
.
restore
(
t
.
index
),
a
.
restore
&&
a
.
restore
(
n
)):(
r
.
full
(
t
.
index
,
a
),
setTimeout
(
function
(){
a
.
full
&&
a
.
full
(
n
)},
100
))}),
a
.
end
&&
(
o
.
end
[
t
.
index
]
=
a
.
end
)},
o
.
reselect
=
function
(){
i
.
each
(
i
(
"select"
),
function
(
e
,
t
){
var
n
=
i
(
this
);
n
.
parents
(
"."
+
l
[
0
])[
0
]
||
1
==
n
.
attr
(
"layer"
)
&&
i
(
"."
+
l
[
0
]).
length
<
1
&&
n
.
removeAttr
(
"layer"
).
show
(),
n
=
null
})},
s
.
pt
.
IE6
=
function
(
e
){
i
(
"select"
).
each
(
function
(
e
,
t
){
var
n
=
i
(
this
);
n
.
parents
(
"."
+
l
[
0
])[
0
]
||
"none"
===
n
.
css
(
"display"
)
||
n
.
attr
({
layer
:
"1"
}).
hide
(),
n
=
null
})},
s
.
pt
.
openLayer
=
function
(){
var
e
=
this
;
r
.
zIndex
=
e
.
config
.
zIndex
,
r
.
setTop
=
function
(
e
){
var
t
=
function
(){
r
.
zIndex
++
,
e
.
css
(
"z-index"
,
r
.
zIndex
+
1
)};
return
r
.
zIndex
=
parseInt
(
e
[
0
].
style
.
zIndex
),
e
.
on
(
"mousedown"
,
t
),
r
.
zIndex
}},
o
.
record
=
function
(
e
){
var
t
=
[
e
.
width
(),
e
.
height
(),
e
.
position
().
top
,
e
.
position
().
left
+
parseFloat
(
e
.
css
(
"margin-left"
))];
e
.
find
(
".layui-layer-max"
).
addClass
(
"layui-layer-maxmin"
),
e
.
attr
({
area
:
t
})},
o
.
rescollbar
=
function
(
e
){
l
.
html
.
attr
(
"layer-full"
)
==
e
&&
(
l
.
html
[
0
].
style
.
removeProperty
?
l
.
html
[
0
].
style
.
removeProperty
(
"overflow"
):
l
.
html
[
0
].
style
.
removeAttribute
(
"overflow"
),
l
.
html
.
removeAttr
(
"layer-full"
))},
e
.
layer
=
r
,
r
.
getChildFrame
=
function
(
e
,
t
){
return
t
=
t
||
i
(
"."
+
l
[
4
]).
attr
(
"times"
),
i
(
"#"
+
l
[
0
]
+
t
).
find
(
"iframe"
).
contents
().
find
(
e
)},
r
.
getFrameIndex
=
function
(
e
){
return
i
(
"#"
+
e
).
parents
(
"."
+
l
[
4
]).
attr
(
"times"
)},
r
.
iframeAuto
=
function
(
e
){
if
(
e
){
var
t
=
r
.
getChildFrame
(
"html"
,
e
).
outerHeight
(),
n
=
i
(
"#"
+
l
[
0
]
+
e
),
a
=
n
.
find
(
l
[
1
]).
outerHeight
()
||
0
,
o
=
n
.
find
(
"."
+
l
[
6
]).
outerHeight
()
||
0
;
n
.
css
({
height
:
t
+
a
+
o
}),
n
.
find
(
"iframe"
).
css
({
height
:
t
})}},
r
.
iframeSrc
=
function
(
e
,
t
){
i
(
"#"
+
l
[
0
]
+
e
).
find
(
"iframe"
).
attr
(
"src"
,
t
)},
r
.
style
=
function
(
e
,
t
,
n
){
var
a
=
i
(
"#"
+
l
[
0
]
+
e
),
r
=
a
.
find
(
".layui-layer-content"
),
s
=
a
.
attr
(
"type"
),
f
=
a
.
find
(
l
[
1
]).
outerHeight
()
||
0
,
c
=
a
.
find
(
"."
+
l
[
6
]).
outerHeight
()
||
0
;
a
.
attr
(
"minLeft"
);
s
!==
o
.
type
[
3
]
&&
s
!==
o
.
type
[
4
]
&&
(
n
||
(
parseFloat
(
t
.
width
)
<=
260
&&
(
t
.
width
=
260
),
parseFloat
(
t
.
height
)
-
f
-
c
<=
64
&&
(
t
.
height
=
64
+
f
+
c
)),
a
.
css
(
t
),
c
=
a
.
find
(
"."
+
l
[
6
]).
outerHeight
(),
s
===
o
.
type
[
2
]?
a
.
find
(
"iframe"
).
css
({
height
:
parseFloat
(
t
.
height
)
-
f
-
c
}):
r
.
css
({
height
:
parseFloat
(
t
.
height
)
-
f
-
c
-
parseFloat
(
r
.
css
(
"padding-top"
))
-
parseFloat
(
r
.
css
(
"padding-bottom"
))}))},
r
.
min
=
function
(
e
,
t
){
var
a
=
i
(
"#"
+
l
[
0
]
+
e
),
s
=
a
.
find
(
l
[
1
]).
outerHeight
()
||
0
,
f
=
a
.
attr
(
"minLeft"
)
||
181
*
o
.
minIndex
+
"px"
,
c
=
a
.
css
(
"position"
);
o
.
record
(
a
),
o
.
minLeft
[
0
]
&&
(
f
=
o
.
minLeft
[
0
],
o
.
minLeft
.
shift
()),
a
.
attr
(
"position"
,
c
),
r
.
style
(
e
,{
width
:
180
,
height
:
s
,
left
:
f
,
top
:
n
.
height
()
-
s
,
position
:
"fixed"
,
overflow
:
"hidden"
},
!
0
),
a
.
find
(
".layui-layer-min"
).
hide
(),
"page"
===
a
.
attr
(
"type"
)
&&
a
.
find
(
l
[
4
]).
hide
(),
o
.
rescollbar
(
e
),
a
.
attr
(
"minLeft"
)
||
o
.
minIndex
++
,
a
.
attr
(
"minLeft"
,
f
)},
r
.
restore
=
function
(
e
){
var
t
=
i
(
"#"
+
l
[
0
]
+
e
),
n
=
t
.
attr
(
"area"
).
split
(
","
);
t
.
attr
(
"type"
);
r
.
style
(
e
,{
width
:
parseFloat
(
n
[
0
]),
height
:
parseFloat
(
n
[
1
]),
top
:
parseFloat
(
n
[
2
]),
left
:
parseFloat
(
n
[
3
]),
position
:
t
.
attr
(
"position"
),
overflow
:
"visible"
},
!
0
),
t
.
find
(
".layui-layer-max"
).
removeClass
(
"layui-layer-maxmin"
),
t
.
find
(
".layui-layer-min"
).
show
(),
"page"
===
t
.
attr
(
"type"
)
&&
t
.
find
(
l
[
4
]).
show
(),
o
.
rescollbar
(
e
)},
r
.
full
=
function
(
e
){
var
t
,
a
=
i
(
"#"
+
l
[
0
]
+
e
);
o
.
record
(
a
),
l
.
html
.
attr
(
"layer-full"
)
||
l
.
html
.
css
(
"overflow"
,
"hidden"
).
attr
(
"layer-full"
,
e
),
clearTimeout
(
t
),
t
=
setTimeout
(
function
(){
var
t
=
"fixed"
===
a
.
css
(
"position"
);
r
.
style
(
e
,{
top
:
t
?
0
:
n
.
scrollTop
(),
left
:
t
?
0
:
n
.
scrollLeft
(),
width
:
n
.
width
(),
height
:
n
.
height
()},
!
0
),
a
.
find
(
".layui-layer-min"
).
hide
()},
100
)},
r
.
title
=
function
(
e
,
t
){
var
n
=
i
(
"#"
+
l
[
0
]
+
(
t
||
r
.
index
)).
find
(
l
[
1
]);
n
.
html
(
e
)},
r
.
close
=
function
(
e
){
var
t
=
i
(
"#"
+
l
[
0
]
+
e
),
n
=
t
.
attr
(
"type"
),
a
=
"layer-anim-close"
;
if
(
t
[
0
]){
var
s
=
"layui-layer-wrap"
,
f
=
function
(){
if
(
n
===
o
.
type
[
1
]
&&
"object"
===
t
.
attr
(
"conType"
)){
t
.
children
(
":not(."
+
l
[
5
]
+
")"
).
remove
();
for
(
var
a
=
t
.
find
(
"."
+
s
),
r
=
0
;
r
<
2
;
r
++
)
a
.
unwrap
();
a
.
css
(
"display"
,
a
.
data
(
"display"
)).
removeClass
(
s
)}
else
{
if
(
n
===
o
.
type
[
2
])
try
{
var
f
=
i
(
"#"
+
l
[
4
]
+
e
)[
0
];
f
.
contentWindow
.
document
.
write
(
""
),
f
.
contentWindow
.
close
(),
t
.
find
(
"."
+
l
[
5
])[
0
].
removeChild
(
f
)}
catch
(
c
){}
t
[
0
].
innerHTML
=
""
,
t
.
remove
()}
"function"
==
typeof
o
.
end
[
e
]
&&
o
.
end
[
e
](),
delete
o
.
end
[
e
]};
t
.
data
(
"isOutAnim"
)
&&
t
.
addClass
(
"layer-anim "
+
a
),
i
(
"#layui-layer-moves, #layui-layer-shade"
+
e
).
remove
(),
6
==
r
.
ie
&&
o
.
reselect
(),
o
.
rescollbar
(
e
),
t
.
attr
(
"minLeft"
)
&&
(
o
.
minIndex
--
,
o
.
minLeft
.
push
(
t
.
attr
(
"minLeft"
))),
r
.
ie
&&
r
.
ie
<
10
||!
t
.
data
(
"isOutAnim"
)?
f
():
setTimeout
(
function
(){
f
()},
200
)}},
r
.
closeAll
=
function
(
e
){
i
.
each
(
i
(
"."
+
l
[
0
]),
function
(){
var
t
=
i
(
this
),
n
=
e
?
t
.
attr
(
"type"
)
===
e
:
1
;
n
&&
r
.
close
(
t
.
attr
(
"times"
)),
n
=
null
})};
var
f
=
r
.
cache
||
{},
c
=
function
(
e
){
return
f
.
skin
?
" "
+
f
.
skin
+
" "
+
f
.
skin
+
"-"
+
e
:
""
};
r
.
prompt
=
function
(
e
,
t
){
var
a
=
""
;
if
(
e
=
e
||
{},
"function"
==
typeof
e
&&
(
t
=
e
),
e
.
area
){
var
o
=
e
.
area
;
a
=
'style="width: '
+
o
[
0
]
+
"; height: "
+
o
[
1
]
+
';"'
,
delete
e
.
area
}
var
s
,
l
=
2
==
e
.
formType
?
'<textarea class="layui-layer-input"'
+
a
+
">"
+
(
e
.
value
||
""
)
+
"</textarea>"
:
function
(){
return
'<input type="'
+
(
1
==
e
.
formType
?
"password"
:
"text"
)
+
'" class="layui-layer-input" value="'
+
(
e
.
value
||
""
)
+
'">'
}(),
f
=
e
.
success
;
return
delete
e
.
success
,
r
.
open
(
i
.
extend
({
type
:
1
,
btn
:[
"确定"
,
"取消"
],
content
:
l
,
skin
:
"layui-layer-prompt"
+
c
(
"prompt"
),
maxWidth
:
n
.
width
(),
success
:
function
(
e
){
s
=
e
.
find
(
".layui-layer-input"
),
s
.
focus
(),
"function"
==
typeof
f
&&
f
(
e
)},
resize
:
!
1
,
yes
:
function
(
i
){
var
n
=
s
.
val
();
""
===
n
?
s
.
focus
():
n
.
length
>
(
e
.
maxlength
||
500
)?
r
.
tips
(
"最多输入"
+
(
e
.
maxlength
||
500
)
+
"个字数"
,
s
,{
tips
:
1
}):
t
&&
t
(
n
,
i
,
s
)}},
e
))},
r
.
tab
=
function
(
e
){
e
=
e
||
{};
var
t
=
e
.
tab
||
{},
n
=
"layui-this"
,
a
=
e
.
success
;
return
delete
e
.
success
,
r
.
open
(
i
.
extend
({
type
:
1
,
skin
:
"layui-layer-tab"
+
c
(
"tab"
),
resize
:
!
1
,
title
:
function
(){
var
e
=
t
.
length
,
i
=
1
,
a
=
""
;
if
(
e
>
0
)
for
(
a
=
'<span class="'
+
n
+
'">'
+
t
[
0
].
title
+
"</span>"
;
i
<
e
;
i
++
)
a
+=
"<span>"
+
t
[
i
].
title
+
"</span>"
;
return
a
}(),
content
:
'<ul class="layui-layer-tabmain">'
+
function
(){
var
e
=
t
.
length
,
i
=
1
,
a
=
""
;
if
(
e
>
0
)
for
(
a
=
'<li class="layui-layer-tabli '
+
n
+
'">'
+
(
t
[
0
].
content
||
"no content"
)
+
"</li>"
;
i
<
e
;
i
++
)
a
+=
'<li class="layui-layer-tabli">'
+
(
t
[
i
].
content
||
"no content"
)
+
"</li>"
;
return
a
}()
+
"</ul>"
,
success
:
function
(
t
){
var
o
=
t
.
find
(
".layui-layer-title"
).
children
(),
r
=
t
.
find
(
".layui-layer-tabmain"
).
children
();
o
.
on
(
"mousedown"
,
function
(
t
){
t
.
stopPropagation
?
t
.
stopPropagation
():
t
.
cancelBubble
=!
0
;
var
a
=
i
(
this
),
o
=
a
.
index
();
a
.
addClass
(
n
).
siblings
().
removeClass
(
n
),
r
.
eq
(
o
).
show
().
siblings
().
hide
(),
"function"
==
typeof
e
.
change
&&
e
.
change
(
o
)}),
"function"
==
typeof
a
&&
a
(
t
)}},
e
))},
r
.
photos
=
function
(
t
,
n
,
a
){
function
o
(
e
,
t
,
i
){
var
n
=
new
Image
;
return
n
.
src
=
e
,
n
.
complete
?
t
(
n
):(
n
.
onload
=
function
(){
n
.
onload
=
null
,
t
(
n
)},
void
(
n
.
onerror
=
function
(
e
){
n
.
onerror
=
null
,
i
(
e
)}))}
var
s
=
{};
if
(
t
=
t
||
{},
t
.
photos
){
var
l
=
t
.
photos
.
constructor
===
Object
,
f
=
l
?
t
.
photos
:{},
u
=
f
.
data
||
[],
d
=
f
.
start
||
0
;
s
.
imgIndex
=
(
0
|
d
)
+
1
,
t
.
img
=
t
.
img
||
"img"
;
var
y
=
t
.
success
;
if
(
delete
t
.
success
,
l
){
if
(
0
===
u
.
length
)
return
r
.
msg
(
"没有图片"
)}
else
{
var
p
=
i
(
t
.
photos
),
h
=
function
(){
u
=
[],
p
.
find
(
t
.
img
).
each
(
function
(
e
){
var
t
=
i
(
this
);
t
.
attr
(
"layer-index"
,
e
),
u
.
push
({
alt
:
t
.
attr
(
"alt"
),
pid
:
t
.
attr
(
"layer-pid"
),
src
:
t
.
attr
(
"layer-src"
)
||
t
.
attr
(
"src"
),
thumb
:
t
.
attr
(
"src"
)})})};
if
(
h
(),
0
===
u
.
length
)
return
;
if
(
n
||
p
.
on
(
"click"
,
t
.
img
,
function
(){
var
e
=
i
(
this
),
n
=
e
.
attr
(
"layer-index"
);
r
.
photos
(
i
.
extend
(
t
,{
photos
:{
start
:
n
,
data
:
u
,
tab
:
t
.
tab
},
full
:
t
.
full
}),
!
0
),
h
()}),
!
n
)
return
}
s
.
imgprev
=
function
(
e
){
s
.
imgIndex
--
,
s
.
imgIndex
<
1
&&
(
s
.
imgIndex
=
u
.
length
),
s
.
tabimg
(
e
)},
s
.
imgnext
=
function
(
e
,
t
){
s
.
imgIndex
++
,
s
.
imgIndex
>
u
.
length
&&
(
s
.
imgIndex
=
1
,
t
)
||
s
.
tabimg
(
e
)},
s
.
keyup
=
function
(
e
){
if
(
!
s
.
end
){
var
t
=
e
.
keyCode
;
e
.
preventDefault
(),
37
===
t
?
s
.
imgprev
(
!
0
):
39
===
t
?
s
.
imgnext
(
!
0
):
27
===
t
&&
r
.
close
(
s
.
index
)}},
s
.
tabimg
=
function
(
e
){
if
(
!
(
u
.
length
<=
1
))
return
f
.
start
=
s
.
imgIndex
-
1
,
r
.
close
(
s
.
index
),
r
.
photos
(
t
,
!
0
,
e
)},
s
.
event
=
function
(){
s
.
bigimg
.
hover
(
function
(){
s
.
imgsee
.
show
()},
function
(){
s
.
imgsee
.
hide
()}),
s
.
bigimg
.
find
(
".layui-layer-imgprev"
).
on
(
"click"
,
function
(
e
){
e
.
preventDefault
(),
s
.
imgprev
()}),
s
.
bigimg
.
find
(
".layui-layer-imgnext"
).
on
(
"click"
,
function
(
e
){
e
.
preventDefault
(),
s
.
imgnext
()}),
i
(
document
).
on
(
"keyup"
,
s
.
keyup
)},
s
.
loadi
=
r
.
load
(
1
,{
shade
:
!
(
"shade"
in
t
)
&&
.
9
,
scrollbar
:
!
1
}),
o
(
u
[
d
].
src
,
function
(
n
){
r
.
close
(
s
.
loadi
),
s
.
index
=
r
.
open
(
i
.
extend
({
type
:
1
,
id
:
"layui-layer-photos"
,
area
:
function
(){
var
a
=
[
n
.
width
,
n
.
height
],
o
=
[
i
(
e
).
width
()
-
100
,
i
(
e
).
height
()
-
100
];
if
(
!
t
.
full
&&
(
a
[
0
]
>
o
[
0
]
||
a
[
1
]
>
o
[
1
])){
var
r
=
[
a
[
0
]
/
o
[
0
],
a
[
1
]
/
o
[
1
]];
r
[
0
]
>
r
[
1
]?(
a
[
0
]
=
a
[
0
]
/
r
[
0
],
a
[
1
]
=
a
[
1
]
/
r
[
0
]):
r
[
0
]
<
r
[
1
]
&&
(
a
[
0
]
=
a
[
0
]
/
r
[
1
],
a
[
1
]
=
a
[
1
]
/
r
[
1
])}
return
[
a
[
0
]
+
"px"
,
a
[
1
]
+
"px"
]}(),
title
:
!
1
,
shade
:.
9
,
shadeClose
:
!
0
,
closeBtn
:
!
1
,
move
:
".layui-layer-phimg img"
,
moveType
:
1
,
scrollbar
:
!
1
,
moveOut
:
!
0
,
isOutAnim
:
!
1
,
skin
:
"layui-layer-photos"
+
c
(
"photos"
),
content
:
'<div class="layui-layer-phimg"><img src="'
+
u
[
d
].
src
+
'" alt="'
+
(
u
[
d
].
alt
||
""
)
+
'" layer-pid="'
+
u
[
d
].
pid
+
'"><div class="layui-layer-imgsee">'
+
(
u
.
length
>
1
?
'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>'
:
""
)
+
'<div class="layui-layer-imgbar" style="display:'
+
(
a
?
"block"
:
""
)
+
'"><span class="layui-layer-imgtit"><a href="javascript:;">'
+
(
u
[
d
].
alt
||
""
)
+
"</a><em>"
+
s
.
imgIndex
+
"/"
+
u
.
length
+
"</em></span></div></div></div>"
,
success
:
function
(
e
,
i
){
s
.
bigimg
=
e
.
find
(
".layui-layer-phimg"
),
s
.
imgsee
=
e
.
find
(
".layui-layer-imguide,.layui-layer-imgbar"
),
s
.
event
(
e
),
t
.
tab
&&
t
.
tab
(
u
[
d
],
e
),
"function"
==
typeof
y
&&
y
(
e
)},
end
:
function
(){
s
.
end
=!
0
,
i
(
document
).
off
(
"keyup"
,
s
.
keyup
)}},
t
))},
function
(){
r
.
close
(
s
.
loadi
),
r
.
msg
(
"当前图片地址异常<br>是否继续查看下一张?"
,{
time
:
3
e4
,
btn
:[
"下一张"
,
"不看了"
],
yes
:
function
(){
u
.
length
>
1
&&
s
.
imgnext
(
!
0
,
!
0
)}})})}},
o
.
run
=
function
(
t
){
i
=
t
,
n
=
i
(
e
),
l
.
html
=
i
(
"html"
),
r
.
open
=
function
(
e
){
var
t
=
new
s
(
e
);
return
t
.
index
}},
e
.
layui
&&
layui
.
define
?(
r
.
ready
(),
layui
.
define
(
"jquery"
,
function
(
t
){
r
.
path
=
layui
.
cache
.
dir
,
o
.
run
(
layui
.
$
),
e
.
layer
=
r
,
t
(
"layer"
,
r
)})):
"function"
==
typeof
define
&&
define
.
amd
?
define
([
"jquery"
],
function
(){
return
o
.
run
(
e
.
jQuery
),
r
}):
function
(){
o
.
run
(
e
.
jQuery
),
r
.
ready
()}()}(
window
);
\ No newline at end of file
src/main/webapp/assets/common/plugins/layer/mobile/layer.js
0 → 100644
View file @
b87ed043
/*! layer mobile-v2.0.0 Web弹层组件 MIT License http://layer.layui.com/mobile By 贤心 */
;
!
function
(
e
){
"use strict"
;
var
t
=
document
,
n
=
"querySelectorAll"
,
i
=
"getElementsByClassName"
,
a
=
function
(
e
){
return
t
[
n
](
e
)},
s
=
{
type
:
0
,
shade
:
!
0
,
shadeClose
:
!
0
,
fixed
:
!
0
,
anim
:
"scale"
},
l
=
{
extend
:
function
(
e
){
var
t
=
JSON
.
parse
(
JSON
.
stringify
(
s
));
for
(
var
n
in
e
)
t
[
n
]
=
e
[
n
];
return
t
},
timer
:{},
end
:{}};
l
.
touch
=
function
(
e
,
t
){
e
.
addEventListener
(
"click"
,
function
(
e
){
t
.
call
(
this
,
e
)},
!
1
)};
var
r
=
0
,
o
=
[
"layui-m-layer"
],
c
=
function
(
e
){
var
t
=
this
;
t
.
config
=
l
.
extend
(
e
),
t
.
view
()};
c
.
prototype
.
view
=
function
(){
var
e
=
this
,
n
=
e
.
config
,
s
=
t
.
createElement
(
"div"
);
e
.
id
=
s
.
id
=
o
[
0
]
+
r
,
s
.
setAttribute
(
"class"
,
o
[
0
]
+
" "
+
o
[
0
]
+
(
n
.
type
||
0
)),
s
.
setAttribute
(
"index"
,
r
);
var
l
=
function
(){
var
e
=
"object"
==
typeof
n
.
title
;
return
n
.
title
?
'<h3 style="'
+
(
e
?
n
.
title
[
1
]:
""
)
+
'">'
+
(
e
?
n
.
title
[
0
]:
n
.
title
)
+
"</h3>"
:
""
}(),
c
=
function
(){
"string"
==
typeof
n
.
btn
&&
(
n
.
btn
=
[
n
.
btn
]);
var
e
,
t
=
(
n
.
btn
||
[]).
length
;
return
0
!==
t
&&
n
.
btn
?(
e
=
'<span yes type="1">'
+
n
.
btn
[
0
]
+
"</span>"
,
2
===
t
&&
(
e
=
'<span no type="0">'
+
n
.
btn
[
1
]
+
"</span>"
+
e
),
'<div class="layui-m-layerbtn">'
+
e
+
"</div>"
):
""
}();
if
(
n
.
fixed
||
(
n
.
top
=
n
.
hasOwnProperty
(
"top"
)?
n
.
top
:
100
,
n
.
style
=
n
.
style
||
""
,
n
.
style
+=
" top:"
+
(
t
.
body
.
scrollTop
+
n
.
top
)
+
"px"
),
2
===
n
.
type
&&
(
n
.
content
=
'<i></i><i class="layui-m-layerload"></i><i></i><p>'
+
(
n
.
content
||
""
)
+
"</p>"
),
n
.
skin
&&
(
n
.
anim
=
"up"
),
"msg"
===
n
.
skin
&&
(
n
.
shade
=!
1
),
s
.
innerHTML
=
(
n
.
shade
?
"<div "
+
(
"string"
==
typeof
n
.
shade
?
'style="'
+
n
.
shade
+
'"'
:
""
)
+
' class="layui-m-layershade"></div>'
:
""
)
+
'<div class="layui-m-layermain" '
+
(
n
.
fixed
?
""
:
'style="position:static;"'
)
+
'><div class="layui-m-layersection"><div class="layui-m-layerchild '
+
(
n
.
skin
?
"layui-m-layer-"
+
n
.
skin
+
" "
:
""
)
+
(
n
.
className
?
n
.
className
:
""
)
+
" "
+
(
n
.
anim
?
"layui-m-anim-"
+
n
.
anim
:
""
)
+
'" '
+
(
n
.
style
?
'style="'
+
n
.
style
+
'"'
:
""
)
+
">"
+
l
+
'<div class="layui-m-layercont">'
+
n
.
content
+
"</div>"
+
c
+
"</div></div></div>"
,
!
n
.
type
||
2
===
n
.
type
){
var
d
=
t
[
i
](
o
[
0
]
+
n
.
type
),
y
=
d
.
length
;
y
>=
1
&&
layer
.
close
(
d
[
0
].
getAttribute
(
"index"
))}
document
.
body
.
appendChild
(
s
);
var
u
=
e
.
elem
=
a
(
"#"
+
e
.
id
)[
0
];
n
.
success
&&
n
.
success
(
u
),
e
.
index
=
r
++
,
e
.
action
(
n
,
u
)},
c
.
prototype
.
action
=
function
(
e
,
t
){
var
n
=
this
;
e
.
time
&&
(
l
.
timer
[
n
.
index
]
=
setTimeout
(
function
(){
layer
.
close
(
n
.
index
)},
1
e3
*
e
.
time
));
var
a
=
function
(){
var
t
=
this
.
getAttribute
(
"type"
);
0
==
t
?(
e
.
no
&&
e
.
no
(),
layer
.
close
(
n
.
index
)):
e
.
yes
?
e
.
yes
(
n
.
index
):
layer
.
close
(
n
.
index
)};
if
(
e
.
btn
)
for
(
var
s
=
t
[
i
](
"layui-m-layerbtn"
)[
0
].
children
,
r
=
s
.
length
,
o
=
0
;
o
<
r
;
o
++
)
l
.
touch
(
s
[
o
],
a
);
if
(
e
.
shade
&&
e
.
shadeClose
){
var
c
=
t
[
i
](
"layui-m-layershade"
)[
0
];
l
.
touch
(
c
,
function
(){
layer
.
close
(
n
.
index
,
e
.
end
)})}
e
.
end
&&
(
l
.
end
[
n
.
index
]
=
e
.
end
)},
e
.
layer
=
{
v
:
"2.0"
,
index
:
r
,
open
:
function
(
e
){
var
t
=
new
c
(
e
||
{});
return
t
.
index
},
close
:
function
(
e
){
var
n
=
a
(
"#"
+
o
[
0
]
+
e
)[
0
];
n
&&
(
n
.
innerHTML
=
""
,
t
.
body
.
removeChild
(
n
),
clearTimeout
(
l
.
timer
[
e
]),
delete
l
.
timer
[
e
],
"function"
==
typeof
l
.
end
[
e
]
&&
l
.
end
[
e
](),
delete
l
.
end
[
e
])},
closeAll
:
function
(){
for
(
var
e
=
t
[
i
](
o
[
0
]),
n
=
0
,
a
=
e
.
length
;
n
<
a
;
n
++
)
layer
.
close
(
0
|
e
[
0
].
getAttribute
(
"index"
))}},
"function"
==
typeof
define
?
define
(
function
(){
return
layer
}):
function
(){
var
e
=
document
.
scripts
,
n
=
e
[
e
.
length
-
1
],
i
=
n
.
src
,
a
=
i
.
substring
(
0
,
i
.
lastIndexOf
(
"/"
)
+
1
);
n
.
getAttribute
(
"merge"
)
||
document
.
head
.
appendChild
(
function
(){
var
e
=
t
.
createElement
(
"link"
);
return
e
.
href
=
a
+
"need/layer.css?2.0"
,
e
.
type
=
"text/css"
,
e
.
rel
=
"styleSheet"
,
e
.
id
=
"layermcss"
,
e
}())}()}(
window
);
\ No newline at end of file
src/main/webapp/assets/common/plugins/layer/mobile/need/layer.css
0 → 100644
View file @
b87ed043
.layui-m-layer
{
position
:
relative
;
z-index
:
19891014
}
.layui-m-layer
*
{
-webkit-box-sizing
:
content-box
;
-moz-box-sizing
:
content-box
;
box-sizing
:
content-box
}
.layui-m-layermain
,
.layui-m-layershade
{
position
:
fixed
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
}
.layui-m-layershade
{
background-color
:
rgba
(
0
,
0
,
0
,
.7
);
pointer-events
:
auto
}
.layui-m-layermain
{
display
:
table
;
font-family
:
Helvetica
,
arial
,
sans-serif
;
pointer-events
:
none
}
.layui-m-layermain
.layui-m-layersection
{
display
:
table-cell
;
vertical-align
:
middle
;
text-align
:
center
}
.layui-m-layerchild
{
position
:
relative
;
display
:
inline-block
;
text-align
:
left
;
background-color
:
#fff
;
font-size
:
14px
;
border-radius
:
5px
;
box-shadow
:
0
0
8px
rgba
(
0
,
0
,
0
,
.1
);
pointer-events
:
auto
;
-webkit-overflow-scrolling
:
touch
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
-webkit-animation-duration
:
.2s
;
animation-duration
:
.2s
}
@-webkit-keyframes
layui-m-anim-scale
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
layui-m-anim-scale
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
.layui-m-anim-scale
{
animation-name
:
layui-m-anim-scale
;
-webkit-animation-name
:
layui-m-anim-scale
}
@-webkit-keyframes
layui-m-anim-up
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
800px
);
transform
:
translateY
(
800px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
@keyframes
layui-m-anim-up
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
800px
);
transform
:
translateY
(
800px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
.layui-m-anim-up
{
-webkit-animation-name
:
layui-m-anim-up
;
animation-name
:
layui-m-anim-up
}
.layui-m-layer0
.layui-m-layerchild
{
width
:
90%
;
max-width
:
640px
}
.layui-m-layer1
.layui-m-layerchild
{
border
:
none
;
border-radius
:
0
}
.layui-m-layer2
.layui-m-layerchild
{
width
:
auto
;
max-width
:
260px
;
min-width
:
40px
;
border
:
none
;
background
:
0
0
;
box-shadow
:
none
;
color
:
#fff
}
.layui-m-layerchild
h3
{
padding
:
0
10px
;
height
:
60px
;
line-height
:
60px
;
font-size
:
16px
;
font-weight
:
400
;
border-radius
:
5px
5px
0
0
;
text-align
:
center
}
.layui-m-layerbtn
span
,
.layui-m-layerchild
h3
{
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
}
.layui-m-layercont
{
padding
:
50px
30px
;
line-height
:
22px
;
text-align
:
center
}
.layui-m-layer1
.layui-m-layercont
{
padding
:
0
;
text-align
:
left
}
.layui-m-layer2
.layui-m-layercont
{
text-align
:
center
;
padding
:
0
;
line-height
:
0
}
.layui-m-layer2
.layui-m-layercont
i
{
width
:
25px
;
height
:
25px
;
margin-left
:
8px
;
display
:
inline-block
;
background-color
:
#fff
;
border-radius
:
100%
;
-webkit-animation
:
layui-m-anim-loading
1.4s
infinite
ease-in-out
;
animation
:
layui-m-anim-loading
1.4s
infinite
ease-in-out
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
}
.layui-m-layerbtn
,
.layui-m-layerbtn
span
{
position
:
relative
;
text-align
:
center
;
border-radius
:
0
0
5px
5px
}
.layui-m-layer2
.layui-m-layercont
p
{
margin-top
:
20px
}
@-webkit-keyframes
layui-m-anim-loading
{
0
%,
100
%,
80
%
{
transform
:
scale
(
0
);
-webkit-transform
:
scale
(
0
)}
40
%
{
transform
:
scale
(
1
);
-webkit-transform
:
scale
(
1
)}}
@keyframes
layui-m-anim-loading
{
0
%,
100
%,
80
%
{
transform
:
scale
(
0
);
-webkit-transform
:
scale
(
0
)}
40
%
{
transform
:
scale
(
1
);
-webkit-transform
:
scale
(
1
)}}
.layui-m-layer2
.layui-m-layercont
i
:first-child
{
margin-left
:
0
;
-webkit-animation-delay
:
-.32s
;
animation-delay
:
-.32s
}
.layui-m-layer2
.layui-m-layercont
i
.layui-m-layerload
{
-webkit-animation-delay
:
-.16s
;
animation-delay
:
-.16s
}
.layui-m-layer2
.layui-m-layercont
>
div
{
line-height
:
22px
;
padding-top
:
7px
;
margin-bottom
:
20px
;
font-size
:
14px
}
.layui-m-layerbtn
{
display
:
box
;
display
:
-moz-box
;
display
:
-webkit-box
;
width
:
100%
;
height
:
50px
;
line-height
:
50px
;
font-size
:
0
;
border-top
:
1px
solid
#D0D0D0
;
background-color
:
#F2F2F2
}
.layui-m-layerbtn
span
{
display
:
block
;
-moz-box-flex
:
1
;
box-flex
:
1
;
-webkit-box-flex
:
1
;
font-size
:
14px
;
cursor
:
pointer
}
.layui-m-layerbtn
span
[
yes
]
{
color
:
#40AFFE
}
.layui-m-layerbtn
span
[
no
]
{
border-right
:
1px
solid
#D0D0D0
;
border-radius
:
0
0
0
5px
}
.layui-m-layerbtn
span
:active
{
background-color
:
#F6F6F6
}
.layui-m-layerend
{
position
:
absolute
;
right
:
7px
;
top
:
10px
;
width
:
30px
;
height
:
30px
;
border
:
0
;
font-weight
:
400
;
background
:
0
0
;
cursor
:
pointer
;
-webkit-appearance
:
none
;
font-size
:
30px
}
.layui-m-layerend
::after
,
.layui-m-layerend
::before
{
position
:
absolute
;
left
:
5px
;
top
:
15px
;
content
:
''
;
width
:
18px
;
height
:
1px
;
background-color
:
#999
;
transform
:
rotate
(
45deg
);
-webkit-transform
:
rotate
(
45deg
);
border-radius
:
3px
}
.layui-m-layerend
::after
{
transform
:
rotate
(
-45deg
);
-webkit-transform
:
rotate
(
-45deg
)}
body
.layui-m-layer
.layui-m-layer-footer
{
position
:
fixed
;
width
:
95%
;
max-width
:
100%
;
margin
:
0
auto
;
left
:
0
;
right
:
0
;
bottom
:
10px
;
background
:
0
0
}
.layui-m-layer-footer
.layui-m-layercont
{
padding
:
20px
;
border-radius
:
5px
5px
0
0
;
background-color
:
rgba
(
255
,
255
,
255
,
.8
)}
.layui-m-layer-footer
.layui-m-layerbtn
{
display
:
block
;
height
:
auto
;
background
:
0
0
;
border-top
:
none
}
.layui-m-layer-footer
.layui-m-layerbtn
span
{
background-color
:
rgba
(
255
,
255
,
255
,
.8
)}
.layui-m-layer-footer
.layui-m-layerbtn
span
[
no
]
{
color
:
#FD482C
;
border-top
:
1px
solid
#c2c2c2
;
border-radius
:
0
0
5px
5px
}
.layui-m-layer-footer
.layui-m-layerbtn
span
[
yes
]
{
margin-top
:
10px
;
border-radius
:
5px
}
body
.layui-m-layer
.layui-m-layer-msg
{
width
:
auto
;
max-width
:
90%
;
margin
:
0
auto
;
bottom
:
-150px
;
background-color
:
rgba
(
0
,
0
,
0
,
.7
);
color
:
#fff
}
.layui-m-layer-msg
.layui-m-layercont
{
padding
:
10px
20px
}
\ No newline at end of file
src/main/webapp/assets/common/plugins/layer/theme/default/icon-ext.png
0 → 100644
View file @
b87ed043
5.77 KB
src/main/webapp/assets/common/plugins/layer/theme/default/icon.png
0 → 100644
View file @
b87ed043
11.2 KB
src/main/webapp/assets/common/plugins/layer/theme/default/layer.css
0 → 100644
View file @
b87ed043
.layui-layer-imgbar
,
.layui-layer-imgtit
a
,
.layui-layer-tab
.layui-layer-title
span
,
.layui-layer-title
{
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
html
#layuicss-layer
{
display
:
none
;
position
:
absolute
;
width
:
1989px
}
.layui-layer
,
.layui-layer-shade
{
position
:
fixed
;
_position
:
absolute
;
pointer-events
:
auto
}
.layui-layer-shade
{
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
_height
:
expression
(
document
.
body
.
offsetHeight
+
"px"
)}
.layui-layer
{
-webkit-overflow-scrolling
:
touch
;
top
:
150px
;
left
:
0
;
margin
:
0
;
padding
:
0
;
background-color
:
#fff
;
-webkit-background-clip
:
content
;
border-radius
:
2px
;
box-shadow
:
1px
1px
50px
rgba
(
0
,
0
,
0
,
.3
)}
.layui-layer-close
{
position
:
absolute
}
.layui-layer-content
{
position
:
relative
}
.layui-layer-border
{
border
:
1px
solid
#B2B2B2
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
.1
);
box-shadow
:
1px
1px
5px
rgba
(
0
,
0
,
0
,
.2
)}
.layui-layer-load
{
background
:
url(loading-1.gif)
center
center
no-repeat
#eee
}
.layui-layer-ico
{
background
:
url(icon.png)
no-repeat
}
.layui-layer-btn
a
,
.layui-layer-dialog
.layui-layer-ico
,
.layui-layer-setwin
a
{
display
:
inline-block
;
*
display
:
inline
;
*
zoom
:
1
;
vertical-align
:
top
}
.layui-layer-move
{
display
:
none
;
position
:
fixed
;
*
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
cursor
:
move
;
opacity
:
0
;
filter
:
alpha
(
opacity
=
0
);
background-color
:
#fff
;
z-index
:
2147483647
}
.layui-layer-resize
{
position
:
absolute
;
width
:
15px
;
height
:
15px
;
right
:
0
;
bottom
:
0
;
cursor
:
se-resize
}
.layer-anim
{
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
-webkit-animation-duration
:
.3s
;
animation-duration
:
.3s
}
@-webkit-keyframes
layer-bounceIn
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
layer-bounceIn
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.5
);
-ms-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
-ms-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
.layer-anim-00
{
-webkit-animation-name
:
layer-bounceIn
;
animation-name
:
layer-bounceIn
}
@-webkit-keyframes
layer-zoomInDown
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.1
)
translateY
(
-2000px
);
transform
:
scale
(
.1
)
translateY
(
-2000px
);
-webkit-animation-timing-function
:
ease-in-out
;
animation-timing-function
:
ease-in-out
}
60
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
.475
)
translateY
(
60px
);
transform
:
scale
(
.475
)
translateY
(
60px
);
-webkit-animation-timing-function
:
ease-out
;
animation-timing-function
:
ease-out
}}
@keyframes
layer-zoomInDown
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.1
)
translateY
(
-2000px
);
-ms-transform
:
scale
(
.1
)
translateY
(
-2000px
);
transform
:
scale
(
.1
)
translateY
(
-2000px
);
-webkit-animation-timing-function
:
ease-in-out
;
animation-timing-function
:
ease-in-out
}
60
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
.475
)
translateY
(
60px
);
-ms-transform
:
scale
(
.475
)
translateY
(
60px
);
transform
:
scale
(
.475
)
translateY
(
60px
);
-webkit-animation-timing-function
:
ease-out
;
animation-timing-function
:
ease-out
}}
.layer-anim-01
{
-webkit-animation-name
:
layer-zoomInDown
;
animation-name
:
layer-zoomInDown
}
@-webkit-keyframes
layer-fadeInUpBig
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
2000px
);
transform
:
translateY
(
2000px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
@keyframes
layer-fadeInUpBig
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
2000px
);
-ms-transform
:
translateY
(
2000px
);
transform
:
translateY
(
2000px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
-ms-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
.layer-anim-02
{
-webkit-animation-name
:
layer-fadeInUpBig
;
animation-name
:
layer-fadeInUpBig
}
@-webkit-keyframes
layer-zoomInLeft
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.1
)
translateX
(
-2000px
);
transform
:
scale
(
.1
)
translateX
(
-2000px
);
-webkit-animation-timing-function
:
ease-in-out
;
animation-timing-function
:
ease-in-out
}
60
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
.475
)
translateX
(
48px
);
transform
:
scale
(
.475
)
translateX
(
48px
);
-webkit-animation-timing-function
:
ease-out
;
animation-timing-function
:
ease-out
}}
@keyframes
layer-zoomInLeft
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.1
)
translateX
(
-2000px
);
-ms-transform
:
scale
(
.1
)
translateX
(
-2000px
);
transform
:
scale
(
.1
)
translateX
(
-2000px
);
-webkit-animation-timing-function
:
ease-in-out
;
animation-timing-function
:
ease-in-out
}
60
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
.475
)
translateX
(
48px
);
-ms-transform
:
scale
(
.475
)
translateX
(
48px
);
transform
:
scale
(
.475
)
translateX
(
48px
);
-webkit-animation-timing-function
:
ease-out
;
animation-timing-function
:
ease-out
}}
.layer-anim-03
{
-webkit-animation-name
:
layer-zoomInLeft
;
animation-name
:
layer-zoomInLeft
}
@-webkit-keyframes
layer-rollIn
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateX
(
-100%
)
rotate
(
-120deg
);
transform
:
translateX
(
-100%
)
rotate
(
-120deg
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateX
(
0
)
rotate
(
0
);
transform
:
translateX
(
0
)
rotate
(
0
)}}
@keyframes
layer-rollIn
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateX
(
-100%
)
rotate
(
-120deg
);
-ms-transform
:
translateX
(
-100%
)
rotate
(
-120deg
);
transform
:
translateX
(
-100%
)
rotate
(
-120deg
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateX
(
0
)
rotate
(
0
);
-ms-transform
:
translateX
(
0
)
rotate
(
0
);
transform
:
translateX
(
0
)
rotate
(
0
)}}
.layer-anim-04
{
-webkit-animation-name
:
layer-rollIn
;
animation-name
:
layer-rollIn
}
@keyframes
layer-fadeIn
{
0
%
{
opacity
:
0
}
100
%
{
opacity
:
1
}}
.layer-anim-05
{
-webkit-animation-name
:
layer-fadeIn
;
animation-name
:
layer-fadeIn
}
@-webkit-keyframes
layer-shake
{
0
%,
100
%
{
-webkit-transform
:
translateX
(
0
);
transform
:
translateX
(
0
)}
10
%,
30
%,
50
%,
70
%,
90
%
{
-webkit-transform
:
translateX
(
-10px
);
transform
:
translateX
(
-10px
)}
20
%,
40
%,
60
%,
80
%
{
-webkit-transform
:
translateX
(
10px
);
transform
:
translateX
(
10px
)}}
@keyframes
layer-shake
{
0
%,
100
%
{
-webkit-transform
:
translateX
(
0
);
-ms-transform
:
translateX
(
0
);
transform
:
translateX
(
0
)}
10
%,
30
%,
50
%,
70
%,
90
%
{
-webkit-transform
:
translateX
(
-10px
);
-ms-transform
:
translateX
(
-10px
);
transform
:
translateX
(
-10px
)}
20
%,
40
%,
60
%,
80
%
{
-webkit-transform
:
translateX
(
10px
);
-ms-transform
:
translateX
(
10px
);
transform
:
translateX
(
10px
)}}
.layer-anim-06
{
-webkit-animation-name
:
layer-shake
;
animation-name
:
layer-shake
}
@-webkit-keyframes
fadeIn
{
0
%
{
opacity
:
0
}
100
%
{
opacity
:
1
}}
.layui-layer-title
{
padding
:
0
80px
0
20px
;
height
:
42px
;
line-height
:
42px
;
border-bottom
:
1px
solid
#eee
;
font-size
:
14px
;
color
:
#333
;
overflow
:
hidden
;
background-color
:
#F8F8F8
;
border-radius
:
2px
2px
0
0
}
.layui-layer-setwin
{
position
:
absolute
;
right
:
15px
;
*
right
:
0
;
top
:
15px
;
font-size
:
0
;
line-height
:
initial
}
.layui-layer-setwin
a
{
position
:
relative
;
width
:
16px
;
height
:
16px
;
margin-left
:
10px
;
font-size
:
12px
;
_overflow
:
hidden
}
.layui-layer-setwin
.layui-layer-min
cite
{
position
:
absolute
;
width
:
14px
;
height
:
2px
;
left
:
0
;
top
:
50%
;
margin-top
:
-1px
;
background-color
:
#2E2D3C
;
cursor
:
pointer
;
_overflow
:
hidden
}
.layui-layer-setwin
.layui-layer-min
:hover
cite
{
background-color
:
#2D93CA
}
.layui-layer-setwin
.layui-layer-max
{
background-position
:
-32px
-40px
}
.layui-layer-setwin
.layui-layer-max
:hover
{
background-position
:
-16px
-40px
}
.layui-layer-setwin
.layui-layer-maxmin
{
background-position
:
-65px
-40px
}
.layui-layer-setwin
.layui-layer-maxmin
:hover
{
background-position
:
-49px
-40px
}
.layui-layer-setwin
.layui-layer-close1
{
background-position
:
1px
-40px
;
cursor
:
pointer
}
.layui-layer-setwin
.layui-layer-close1
:hover
{
opacity
:
.7
}
.layui-layer-setwin
.layui-layer-close2
{
position
:
absolute
;
right
:
-28px
;
top
:
-28px
;
width
:
30px
;
height
:
30px
;
margin-left
:
0
;
background-position
:
-149px
-31px
;
*
right
:
-18px
;
_display
:
none
}
.layui-layer-setwin
.layui-layer-close2
:hover
{
background-position
:
-180px
-31px
}
.layui-layer-btn
{
text-align
:
right
;
padding
:
0
15px
12px
;
pointer-events
:
auto
;
user-select
:
none
;
-webkit-user-select
:
none
}
.layui-layer-btn
a
{
height
:
28px
;
line-height
:
28px
;
margin
:
5px
5px
0
;
padding
:
0
15px
;
border
:
1px
solid
#dedede
;
background-color
:
#fff
;
color
:
#333
;
border-radius
:
2px
;
font-weight
:
400
;
cursor
:
pointer
;
text-decoration
:
none
}
.layui-layer-btn
a
:hover
{
opacity
:
.9
;
text-decoration
:
none
}
.layui-layer-btn
a
:active
{
opacity
:
.8
}
.layui-layer-btn
.layui-layer-btn0
{
border-color
:
#1E9FFF
;
background-color
:
#1E9FFF
;
color
:
#fff
}
.layui-layer-btn-l
{
text-align
:
left
}
.layui-layer-btn-c
{
text-align
:
center
}
.layui-layer-dialog
{
min-width
:
260px
}
.layui-layer-dialog
.layui-layer-content
{
position
:
relative
;
padding
:
20px
;
line-height
:
24px
;
word-break
:
break-all
;
overflow
:
hidden
;
font-size
:
14px
;
overflow-x
:
hidden
;
overflow-y
:
auto
}
.layui-layer-dialog
.layui-layer-content
.layui-layer-ico
{
position
:
absolute
;
top
:
16px
;
left
:
15px
;
_left
:
-40px
;
width
:
30px
;
height
:
30px
}
.layui-layer-ico1
{
background-position
:
-30px
0
}
.layui-layer-ico2
{
background-position
:
-60px
0
}
.layui-layer-ico3
{
background-position
:
-90px
0
}
.layui-layer-ico4
{
background-position
:
-120px
0
}
.layui-layer-ico5
{
background-position
:
-150px
0
}
.layui-layer-ico6
{
background-position
:
-180px
0
}
.layui-layer-rim
{
border
:
6px
solid
#8D8D8D
;
border
:
6px
solid
rgba
(
0
,
0
,
0
,
.3
);
border-radius
:
5px
;
box-shadow
:
none
}
.layui-layer-msg
{
min-width
:
180px
;
border
:
1px
solid
#D3D4D3
;
box-shadow
:
none
}
.layui-layer-hui
{
min-width
:
100px
;
background-color
:
#000
;
filter
:
alpha
(
opacity
=
60
);
background-color
:
rgba
(
0
,
0
,
0
,
.6
);
color
:
#fff
;
border
:
none
}
.layui-layer-hui
.layui-layer-content
{
padding
:
12px
25px
;
text-align
:
center
}
.layui-layer-dialog
.layui-layer-padding
{
padding
:
20px
20px
20px
55px
;
text-align
:
left
}
.layui-layer-page
.layui-layer-content
{
position
:
relative
;
overflow
:
auto
}
.layui-layer-iframe
.layui-layer-btn
,
.layui-layer-page
.layui-layer-btn
{
padding-top
:
10px
}
.layui-layer-nobg
{
background
:
0
0
}
.layui-layer-iframe
iframe
{
display
:
block
;
width
:
100%
}
.layui-layer-loading
{
border-radius
:
100%
;
background
:
0
0
;
box-shadow
:
none
;
border
:
none
}
.layui-layer-loading
.layui-layer-content
{
width
:
60px
;
height
:
24px
;
background
:
url(loading-0.gif)
no-repeat
}
.layui-layer-loading
.layui-layer-loading1
{
width
:
37px
;
height
:
37px
;
background
:
url(loading-1.gif)
no-repeat
}
.layui-layer-ico16
,
.layui-layer-loading
.layui-layer-loading2
{
width
:
32px
;
height
:
32px
;
background
:
url(loading-2.gif)
no-repeat
}
.layui-layer-tips
{
background
:
0
0
;
box-shadow
:
none
;
border
:
none
}
.layui-layer-tips
.layui-layer-content
{
position
:
relative
;
line-height
:
22px
;
min-width
:
12px
;
padding
:
8px
15px
;
font-size
:
12px
;
_float
:
left
;
border-radius
:
2px
;
box-shadow
:
1px
1px
3px
rgba
(
0
,
0
,
0
,
.2
);
background-color
:
#000
;
color
:
#fff
}
.layui-layer-tips
.layui-layer-close
{
right
:
-2px
;
top
:
-1px
}
.layui-layer-tips
i
.layui-layer-TipsG
{
position
:
absolute
;
width
:
0
;
height
:
0
;
border-width
:
8px
;
border-color
:
transparent
;
border-style
:
dashed
;
*
overflow
:
hidden
}
.layui-layer-tips
i
.layui-layer-TipsB
,
.layui-layer-tips
i
.layui-layer-TipsT
{
left
:
5px
;
border-right-style
:
solid
;
border-right-color
:
#000
}
.layui-layer-tips
i
.layui-layer-TipsT
{
bottom
:
-8px
}
.layui-layer-tips
i
.layui-layer-TipsB
{
top
:
-8px
}
.layui-layer-tips
i
.layui-layer-TipsL
,
.layui-layer-tips
i
.layui-layer-TipsR
{
top
:
5px
;
border-bottom-style
:
solid
;
border-bottom-color
:
#000
}
.layui-layer-tips
i
.layui-layer-TipsR
{
left
:
-8px
}
.layui-layer-tips
i
.layui-layer-TipsL
{
right
:
-8px
}
.layui-layer-lan
[
type
=
dialog
]
{
min-width
:
280px
}
.layui-layer-lan
.layui-layer-title
{
background
:
#4476A7
;
color
:
#fff
;
border
:
none
}
.layui-layer-lan
.layui-layer-btn
{
padding
:
5px
10px
10px
;
text-align
:
right
;
border-top
:
1px
solid
#E9E7E7
}
.layui-layer-lan
.layui-layer-btn
a
{
background
:
#fff
;
border-color
:
#E9E7E7
;
color
:
#333
}
.layui-layer-lan
.layui-layer-btn
.layui-layer-btn1
{
background
:
#C9C5C5
}
.layui-layer-molv
.layui-layer-title
{
background
:
#009f95
;
color
:
#fff
;
border
:
none
}
.layui-layer-molv
.layui-layer-btn
a
{
background
:
#009f95
;
border-color
:
#009f95
}
.layui-layer-molv
.layui-layer-btn
.layui-layer-btn1
{
background
:
#92B8B1
}
.layui-layer-iconext
{
background
:
url(icon-ext.png)
no-repeat
}
.layui-layer-prompt
.layui-layer-input
{
display
:
block
;
width
:
230px
;
height
:
36px
;
margin
:
0
auto
;
line-height
:
30px
;
padding-left
:
10px
;
border
:
1px
solid
#e6e6e6
;
color
:
#333
}
.layui-layer-prompt
textarea
.layui-layer-input
{
width
:
300px
;
height
:
100px
;
line-height
:
20px
;
padding
:
6px
10px
}
.layui-layer-prompt
.layui-layer-content
{
padding
:
20px
}
.layui-layer-prompt
.layui-layer-btn
{
padding-top
:
0
}
.layui-layer-tab
{
box-shadow
:
1px
1px
50px
rgba
(
0
,
0
,
0
,
.4
)}
.layui-layer-tab
.layui-layer-title
{
padding-left
:
0
;
overflow
:
visible
}
.layui-layer-tab
.layui-layer-title
span
{
position
:
relative
;
float
:
left
;
min-width
:
80px
;
max-width
:
260px
;
padding
:
0
20px
;
text-align
:
center
;
overflow
:
hidden
;
cursor
:
pointer
}
.layui-layer-tab
.layui-layer-title
span
.layui-this
{
height
:
43px
;
border-left
:
1px
solid
#eee
;
border-right
:
1px
solid
#eee
;
background-color
:
#fff
;
z-index
:
10
}
.layui-layer-tab
.layui-layer-title
span
:first-child
{
border-left
:
none
}
.layui-layer-tabmain
{
line-height
:
24px
;
clear
:
both
}
.layui-layer-tabmain
.layui-layer-tabli
{
display
:
none
}
.layui-layer-tabmain
.layui-layer-tabli.layui-this
{
display
:
block
}
.layui-layer-photos
{
-webkit-animation-duration
:
.8s
;
animation-duration
:
.8s
}
.layui-layer-photos
.layui-layer-content
{
overflow
:
hidden
;
text-align
:
center
}
.layui-layer-photos
.layui-layer-phimg
img
{
position
:
relative
;
width
:
100%
;
display
:
inline-block
;
*
display
:
inline
;
*
zoom
:
1
;
vertical-align
:
top
}
.layui-layer-imgbar
,
.layui-layer-imguide
{
display
:
none
}
.layui-layer-imgnext
,
.layui-layer-imgprev
{
position
:
absolute
;
top
:
50%
;
width
:
27px
;
_width
:
44px
;
height
:
44px
;
margin-top
:
-22px
;
outline
:
0
;
blr
:
expression
(
this
.
onFocus
=
this
.
blur
())}
.layui-layer-imgprev
{
left
:
10px
;
background-position
:
-5px
-5px
;
_background-position
:
-70px
-5px
}
.layui-layer-imgprev
:hover
{
background-position
:
-33px
-5px
;
_background-position
:
-120px
-5px
}
.layui-layer-imgnext
{
right
:
10px
;
_right
:
8px
;
background-position
:
-5px
-50px
;
_background-position
:
-70px
-50px
}
.layui-layer-imgnext
:hover
{
background-position
:
-33px
-50px
;
_background-position
:
-120px
-50px
}
.layui-layer-imgbar
{
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
100%
;
height
:
32px
;
line-height
:
32px
;
background-color
:
rgba
(
0
,
0
,
0
,
.8
);
background-color
:
#000
\
9
;
filter
:
Alpha
(
opacity
=
80
);
color
:
#fff
;
overflow
:
hidden
;
font-size
:
0
}
.layui-layer-imgtit
*
{
display
:
inline-block
;
*
display
:
inline
;
*
zoom
:
1
;
vertical-align
:
top
;
font-size
:
12px
}
.layui-layer-imgtit
a
{
max-width
:
65%
;
overflow
:
hidden
;
color
:
#fff
}
.layui-layer-imgtit
a
:hover
{
color
:
#fff
;
text-decoration
:
underline
}
.layui-layer-imgtit
em
{
padding-left
:
10px
;
font-style
:
normal
}
@-webkit-keyframes
layer-bounceOut
{
100
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.7
);
transform
:
scale
(
.7
)}
30
%
{
-webkit-transform
:
scale
(
1.05
);
transform
:
scale
(
1.05
)}
0
%
{
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
layer-bounceOut
{
100
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.7
);
-ms-transform
:
scale
(
.7
);
transform
:
scale
(
.7
)}
30
%
{
-webkit-transform
:
scale
(
1.05
);
-ms-transform
:
scale
(
1.05
);
transform
:
scale
(
1.05
)}
0
%
{
-webkit-transform
:
scale
(
1
);
-ms-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
.layer-anim-close
{
-webkit-animation-name
:
layer-bounceOut
;
animation-name
:
layer-bounceOut
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
-webkit-animation-duration
:
.2s
;
animation-duration
:
.2s
}
@media
screen
and
(
max-width
:
1100px
){
.layui-layer-iframe
{
overflow-y
:
auto
;
-webkit-overflow-scrolling
:
touch
}}
\ No newline at end of file
src/main/webapp/assets/common/plugins/layer/theme/default/loading-0.gif
0 → 100644
View file @
b87ed043
5.66 KB
src/main/webapp/assets/common/plugins/layer/theme/default/loading-1.gif
0 → 100644
View file @
b87ed043
701 Bytes
src/main/webapp/assets/common/plugins/layer/theme/default/loading-2.gif
0 → 100644
View file @
b87ed043
1.75 KB
src/main/webapp/assets/common/plugins/sweetalert/sweetalert.css
0 → 100644
View file @
b87ed043
body
.stop-scrolling
{
height
:
100%
;
overflow
:
visible
;
}
.sweet-overlay
{
background-color
:
black
;
/* IE8 */
-ms-filter
:
"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"
;
/* IE8 */
background-color
:
rgba
(
0
,
0
,
0
,
0.4
);
position
:
fixed
;
left
:
0
;
right
:
0
;
top
:
0
;
bottom
:
0
;
display
:
none
;
z-index
:
10000
;
}
.sweet-alert
{
background-color
:
white
;
font-family
:
'Open Sans'
,
'Helvetica Neue'
,
Helvetica
,
Arial
,
sans-serif
;
width
:
478px
;
padding
:
17px
;
border-radius
:
2px
;
text-align
:
center
;
position
:
fixed
;
left
:
50%
;
top
:
50%
;
margin-left
:
-256px
;
margin-top
:
-200px
;
overflow
:
hidden
;
display
:
none
;
z-index
:
99999
;
}
@media
all
and
(
max-width
:
540px
)
{
.sweet-alert
{
width
:
auto
;
margin-left
:
0
;
margin-right
:
0
;
left
:
15px
;
right
:
15px
;
}
}
.sweet-alert
h2
{
color
:
#575757
;
font-size
:
30px
;
text-align
:
center
;
font-weight
:
600
;
text-transform
:
none
;
position
:
relative
;
margin
:
25px
0
;
padding
:
0
;
line-height
:
40px
;
display
:
block
;
}
.sweet-alert
p
{
color
:
#797979
;
font-size
:
16px
;
text-align
:
center
;
font-weight
:
300
;
position
:
relative
;
text-align
:
inherit
;
float
:
none
;
margin
:
0
;
padding
:
0
;
line-height
:
normal
;
}
.sweet-alert
fieldset
{
border
:
none
;
position
:
relative
;
}
.sweet-alert
.sa-error-container
{
background-color
:
#f1f1f1
;
margin-left
:
-17px
;
margin-right
:
-17px
;
overflow
:
hidden
;
padding
:
0
10px
;
max-height
:
0
;
webkit-transition
:
padding
0.15s
,
max-height
0.15s
;
transition
:
padding
0.15s
,
max-height
0.15s
;
}
.sweet-alert
.sa-error-container.show
{
padding
:
10px
0
;
max-height
:
100px
;
webkit-transition
:
padding
0.2s
,
max-height
0.2s
;
transition
:
padding
0.25s
,
max-height
0.25s
;
}
.sweet-alert
.sa-error-container
.icon
{
display
:
inline-block
;
width
:
24px
;
height
:
24px
;
border-radius
:
50%
;
background-color
:
#ea7d7d
;
color
:
white
;
line-height
:
24px
;
text-align
:
center
;
margin-right
:
3px
;
}
.sweet-alert
.sa-error-container
p
{
display
:
inline-block
;
}
.sweet-alert
.sa-input-error
{
position
:
absolute
;
top
:
29px
;
right
:
26px
;
width
:
20px
;
height
:
20px
;
opacity
:
0
;
-webkit-transform
:
scale
(
0.5
);
transform
:
scale
(
0.5
);
-webkit-transform-origin
:
50%
50%
;
transform-origin
:
50%
50%
;
-webkit-transition
:
all
0.1s
;
transition
:
all
0.1s
;
}
.sweet-alert
.sa-input-error
::before
,
.sweet-alert
.sa-input-error
::after
{
content
:
""
;
width
:
20px
;
height
:
6px
;
background-color
:
#f06e57
;
border-radius
:
3px
;
position
:
absolute
;
top
:
50%
;
margin-top
:
-4px
;
left
:
50%
;
margin-left
:
-9px
;
}
.sweet-alert
.sa-input-error
::before
{
-webkit-transform
:
rotate
(
-45deg
);
transform
:
rotate
(
-45deg
);
}
.sweet-alert
.sa-input-error
::after
{
-webkit-transform
:
rotate
(
45deg
);
transform
:
rotate
(
45deg
);
}
.sweet-alert
.sa-input-error.show
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
);
}
.sweet-alert
input
{
width
:
100%
;
box-sizing
:
border-box
;
border-radius
:
3px
;
border
:
1px
solid
#d7d7d7
;
height
:
43px
;
margin-top
:
10px
;
margin-bottom
:
17px
;
font-size
:
18px
;
box-shadow
:
inset
0px
1px
1px
rgba
(
0
,
0
,
0
,
0.06
);
padding
:
0
12px
;
display
:
none
;
-webkit-transition
:
all
0.3s
;
transition
:
all
0.3s
;
}
.sweet-alert
input
:focus
{
outline
:
none
;
box-shadow
:
0px
0px
3px
#c4e6f5
;
border
:
1px
solid
#b4dbed
;
}
.sweet-alert
input
:focus::-moz-placeholder
{
transition
:
opacity
0.3s
0.03s
ease
;
opacity
:
0.5
;
}
.sweet-alert
input
:focus:-ms-input-placeholder
{
transition
:
opacity
0.3s
0.03s
ease
;
opacity
:
0.5
;
}
.sweet-alert
input
:focus::-webkit-input-placeholder
{
transition
:
opacity
0.3s
0.03s
ease
;
opacity
:
0.5
;
}
.sweet-alert
input
::-moz-placeholder
{
color
:
#bdbdbd
;
}
.sweet-alert
input
:-ms-input-placeholder
{
color
:
#bdbdbd
;
}
.sweet-alert
input
::-webkit-input-placeholder
{
color
:
#bdbdbd
;
}
.sweet-alert.show-input
input
{
display
:
block
;
}
.sweet-alert
.sa-confirm-button-container
{
display
:
inline-block
;
position
:
relative
;
}
.sweet-alert
.la-ball-fall
{
position
:
absolute
;
left
:
50%
;
top
:
50%
;
margin-left
:
-27px
;
margin-top
:
4px
;
opacity
:
0
;
visibility
:
hidden
;
}
.sweet-alert
button
{
background-color
:
#8CD4F5
;
color
:
white
;
border
:
none
;
box-shadow
:
none
;
font-size
:
17px
;
font-weight
:
500
;
-webkit-border-radius
:
2px
;
border-radius
:
2px
;
padding
:
10px
32px
;
margin
:
26px
5px
0
5px
;
cursor
:
pointer
;
}
.sweet-alert
button
:focus
{
outline
:
none
;
box-shadow
:
0
0
2px
rgba
(
128
,
179
,
235
,
0.5
),
inset
0
0
0
1px
rgba
(
0
,
0
,
0
,
0.05
);
}
.sweet-alert
button
:hover
{
background-color
:
#7ecff4
;
}
.sweet-alert
button
:active
{
background-color
:
#5dc2f1
;
}
.sweet-alert
button
.cancel
{
background-color
:
#C1C1C1
;
}
.sweet-alert
button
.cancel
:hover
{
background-color
:
#b9b9b9
;
}
.sweet-alert
button
.cancel
:active
{
background-color
:
#a8a8a8
;
}
.sweet-alert
button
.cancel
:focus
{
box-shadow
:
rgba
(
197
,
205
,
211
,
0.8
)
0px
0px
2px
,
rgba
(
0
,
0
,
0
,
0.0470588
)
0px
0px
0px
1px
inset
!important
;
}
.sweet-alert
button
[
disabled
]
{
opacity
:
.6
;
cursor
:
default
;
}
.sweet-alert
button
.confirm
[
disabled
]
{
color
:
transparent
;
}
.sweet-alert
button
.confirm
[
disabled
]
~
.la-ball-fall
{
opacity
:
1
;
visibility
:
visible
;
transition-delay
:
0s
;
}
.sweet-alert
button
::-moz-focus-inner
{
border
:
0
;
}
.sweet-alert
[
data-has-cancel-button
=
false
]
button
{
box-shadow
:
none
!important
;
}
.sweet-alert
[
data-has-confirm-button
=
false
][
data-has-cancel-button
=
false
]
{
padding-bottom
:
40px
;
}
.sweet-alert
.sa-icon
{
width
:
80px
;
height
:
80px
;
border
:
4px
solid
gray
;
-webkit-border-radius
:
40px
;
border-radius
:
40px
;
border-radius
:
50%
;
margin
:
20px
auto
;
padding
:
0
;
position
:
relative
;
box-sizing
:
content-box
;
}
.sweet-alert
.sa-icon.sa-error
{
border-color
:
#F27474
;
}
.sweet-alert
.sa-icon.sa-error
.sa-x-mark
{
position
:
relative
;
display
:
block
;
}
.sweet-alert
.sa-icon.sa-error
.sa-line
{
position
:
absolute
;
height
:
5px
;
width
:
47px
;
background-color
:
#F27474
;
display
:
block
;
top
:
37px
;
border-radius
:
2px
;
}
.sweet-alert
.sa-icon.sa-error
.sa-line.sa-left
{
-webkit-transform
:
rotate
(
45deg
);
transform
:
rotate
(
45deg
);
left
:
17px
;
}
.sweet-alert
.sa-icon.sa-error
.sa-line.sa-right
{
-webkit-transform
:
rotate
(
-45deg
);
transform
:
rotate
(
-45deg
);
right
:
16px
;
}
.sweet-alert
.sa-icon.sa-warning
{
border-color
:
#F8BB86
;
}
.sweet-alert
.sa-icon.sa-warning
.sa-body
{
position
:
absolute
;
width
:
5px
;
height
:
47px
;
left
:
50%
;
top
:
10px
;
-webkit-border-radius
:
2px
;
border-radius
:
2px
;
margin-left
:
-2px
;
background-color
:
#F8BB86
;
}
.sweet-alert
.sa-icon.sa-warning
.sa-dot
{
position
:
absolute
;
width
:
7px
;
height
:
7px
;
-webkit-border-radius
:
50%
;
border-radius
:
50%
;
margin-left
:
-3px
;
left
:
50%
;
bottom
:
10px
;
background-color
:
#F8BB86
;
}
.sweet-alert
.sa-icon.sa-info
{
border-color
:
#C9DAE1
;
}
.sweet-alert
.sa-icon.sa-info
::before
{
content
:
""
;
position
:
absolute
;
width
:
5px
;
height
:
29px
;
left
:
50%
;
bottom
:
17px
;
border-radius
:
2px
;
margin-left
:
-2px
;
background-color
:
#C9DAE1
;
}
.sweet-alert
.sa-icon.sa-info
::after
{
content
:
""
;
position
:
absolute
;
width
:
7px
;
height
:
7px
;
border-radius
:
50%
;
margin-left
:
-3px
;
top
:
19px
;
background-color
:
#C9DAE1
;
}
.sweet-alert
.sa-icon.sa-success
{
border-color
:
#A5DC86
;
}
.sweet-alert
.sa-icon.sa-success
::before
,
.sweet-alert
.sa-icon.sa-success
::after
{
content
:
''
;
-webkit-border-radius
:
40px
;
border-radius
:
40px
;
border-radius
:
50%
;
position
:
absolute
;
width
:
60px
;
height
:
120px
;
background
:
white
;
-webkit-transform
:
rotate
(
45deg
);
transform
:
rotate
(
45deg
);
}
.sweet-alert
.sa-icon.sa-success
::before
{
-webkit-border-radius
:
120px
0
0
120px
;
border-radius
:
120px
0
0
120px
;
top
:
-7px
;
left
:
-33px
;
-webkit-transform
:
rotate
(
-45deg
);
transform
:
rotate
(
-45deg
);
-webkit-transform-origin
:
60px
60px
;
transform-origin
:
60px
60px
;
}
.sweet-alert
.sa-icon.sa-success
::after
{
-webkit-border-radius
:
0
120px
120px
0
;
border-radius
:
0
120px
120px
0
;
top
:
-11px
;
left
:
30px
;
-webkit-transform
:
rotate
(
-45deg
);
transform
:
rotate
(
-45deg
);
-webkit-transform-origin
:
0px
60px
;
transform-origin
:
0px
60px
;
}
.sweet-alert
.sa-icon.sa-success
.sa-placeholder
{
width
:
80px
;
height
:
80px
;
border
:
4px
solid
rgba
(
165
,
220
,
134
,
0.2
);
-webkit-border-radius
:
40px
;
border-radius
:
40px
;
border-radius
:
50%
;
box-sizing
:
content-box
;
position
:
absolute
;
left
:
-4px
;
top
:
-4px
;
z-index
:
2
;
}
.sweet-alert
.sa-icon.sa-success
.sa-fix
{
width
:
5px
;
height
:
90px
;
background-color
:
white
;
position
:
absolute
;
left
:
28px
;
top
:
8px
;
z-index
:
1
;
-webkit-transform
:
rotate
(
-45deg
);
transform
:
rotate
(
-45deg
);
}
.sweet-alert
.sa-icon.sa-success
.sa-line
{
height
:
5px
;
background-color
:
#A5DC86
;
display
:
block
;
border-radius
:
2px
;
position
:
absolute
;
z-index
:
2
;
}
.sweet-alert
.sa-icon.sa-success
.sa-line.sa-tip
{
width
:
25px
;
left
:
14px
;
top
:
46px
;
-webkit-transform
:
rotate
(
45deg
);
transform
:
rotate
(
45deg
);
}
.sweet-alert
.sa-icon.sa-success
.sa-line.sa-long
{
width
:
47px
;
right
:
8px
;
top
:
38px
;
-webkit-transform
:
rotate
(
-45deg
);
transform
:
rotate
(
-45deg
);
}
.sweet-alert
.sa-icon.sa-custom
{
background-size
:
contain
;
border-radius
:
50%
;
border
:
none
;
background-position
:
center
center
;
background-repeat
:
no-repeat
;
}
/*
* Animations
*/
@-webkit-keyframes
showSweetAlert
{
0
%
{
transform
:
scale
(
0.7
);
-webkit-transform
:
scale
(
0.7
);
}
45
%
{
transform
:
scale
(
1.05
);
-webkit-transform
:
scale
(
1.05
);
}
80
%
{
transform
:
scale
(
0.95
);
-webkit-transform
:
scale
(
0.95
);
}
100
%
{
transform
:
scale
(
1
);
-webkit-transform
:
scale
(
1
);
}
}
@keyframes
showSweetAlert
{
0
%
{
transform
:
scale
(
0.7
);
-webkit-transform
:
scale
(
0.7
);
}
45
%
{
transform
:
scale
(
1.05
);
-webkit-transform
:
scale
(
1.05
);
}
80
%
{
transform
:
scale
(
0.95
);
-webkit-transform
:
scale
(
0.95
);
}
100
%
{
transform
:
scale
(
1
);
-webkit-transform
:
scale
(
1
);
}
}
@-webkit-keyframes
hideSweetAlert
{
0
%
{
transform
:
scale
(
1
);
-webkit-transform
:
scale
(
1
);
}
100
%
{
transform
:
scale
(
0.5
);
-webkit-transform
:
scale
(
0.5
);
}
}
@keyframes
hideSweetAlert
{
0
%
{
transform
:
scale
(
1
);
-webkit-transform
:
scale
(
1
);
}
100
%
{
transform
:
scale
(
0.5
);
-webkit-transform
:
scale
(
0.5
);
}
}
@-webkit-keyframes
slideFromTop
{
0
%
{
top
:
0%
;
}
100
%
{
top
:
50%
;
}
}
@keyframes
slideFromTop
{
0
%
{
top
:
0%
;
}
100
%
{
top
:
50%
;
}
}
@-webkit-keyframes
slideToTop
{
0
%
{
top
:
50%
;
}
100
%
{
top
:
0%
;
}
}
@keyframes
slideToTop
{
0
%
{
top
:
50%
;
}
100
%
{
top
:
0%
;
}
}
@-webkit-keyframes
slideFromBottom
{
0
%
{
top
:
70%
;
}
100
%
{
top
:
50%
;
}
}
@keyframes
slideFromBottom
{
0
%
{
top
:
70%
;
}
100
%
{
top
:
50%
;
}
}
@-webkit-keyframes
slideToBottom
{
0
%
{
top
:
50%
;
}
100
%
{
top
:
70%
;
}
}
@keyframes
slideToBottom
{
0
%
{
top
:
50%
;
}
100
%
{
top
:
70%
;
}
}
.showSweetAlert
[
data-animation
=
pop
]
{
-webkit-animation
:
showSweetAlert
0.3s
;
animation
:
showSweetAlert
0.3s
;
}
.showSweetAlert
[
data-animation
=
none
]
{
-webkit-animation
:
none
;
animation
:
none
;
}
.showSweetAlert
[
data-animation
=
slide-from-top
]
{
-webkit-animation
:
slideFromTop
0.3s
;
animation
:
slideFromTop
0.3s
;
}
.showSweetAlert
[
data-animation
=
slide-from-bottom
]
{
-webkit-animation
:
slideFromBottom
0.3s
;
animation
:
slideFromBottom
0.3s
;
}
.hideSweetAlert
[
data-animation
=
pop
]
{
-webkit-animation
:
hideSweetAlert
0.2s
;
animation
:
hideSweetAlert
0.2s
;
}
.hideSweetAlert
[
data-animation
=
none
]
{
-webkit-animation
:
none
;
animation
:
none
;
}
.hideSweetAlert
[
data-animation
=
slide-from-top
]
{
-webkit-animation
:
slideToTop
0.4s
;
animation
:
slideToTop
0.4s
;
}
.hideSweetAlert
[
data-animation
=
slide-from-bottom
]
{
-webkit-animation
:
slideToBottom
0.3s
;
animation
:
slideToBottom
0.3s
;
}
@-webkit-keyframes
animateSuccessTip
{
0
%
{
width
:
0
;
left
:
1px
;
top
:
19px
;
}
54
%
{
width
:
0
;
left
:
1px
;
top
:
19px
;
}
70
%
{
width
:
50px
;
left
:
-8px
;
top
:
37px
;
}
84
%
{
width
:
17px
;
left
:
21px
;
top
:
48px
;
}
100
%
{
width
:
25px
;
left
:
14px
;
top
:
45px
;
}
}
@keyframes
animateSuccessTip
{
0
%
{
width
:
0
;
left
:
1px
;
top
:
19px
;
}
54
%
{
width
:
0
;
left
:
1px
;
top
:
19px
;
}
70
%
{
width
:
50px
;
left
:
-8px
;
top
:
37px
;
}
84
%
{
width
:
17px
;
left
:
21px
;
top
:
48px
;
}
100
%
{
width
:
25px
;
left
:
14px
;
top
:
45px
;
}
}
@-webkit-keyframes
animateSuccessLong
{
0
%
{
width
:
0
;
right
:
46px
;
top
:
54px
;
}
65
%
{
width
:
0
;
right
:
46px
;
top
:
54px
;
}
84
%
{
width
:
55px
;
right
:
0px
;
top
:
35px
;
}
100
%
{
width
:
47px
;
right
:
8px
;
top
:
38px
;
}
}
@keyframes
animateSuccessLong
{
0
%
{
width
:
0
;
right
:
46px
;
top
:
54px
;
}
65
%
{
width
:
0
;
right
:
46px
;
top
:
54px
;
}
84
%
{
width
:
55px
;
right
:
0px
;
top
:
35px
;
}
100
%
{
width
:
47px
;
right
:
8px
;
top
:
38px
;
}
}
@-webkit-keyframes
rotatePlaceholder
{
0
%
{
transform
:
rotate
(
-45deg
);
-webkit-transform
:
rotate
(
-45deg
);
}
5
%
{
transform
:
rotate
(
-45deg
);
-webkit-transform
:
rotate
(
-45deg
);
}
12
%
{
transform
:
rotate
(
-405deg
);
-webkit-transform
:
rotate
(
-405deg
);
}
100
%
{
transform
:
rotate
(
-405deg
);
-webkit-transform
:
rotate
(
-405deg
);
}
}
@keyframes
rotatePlaceholder
{
0
%
{
transform
:
rotate
(
-45deg
);
-webkit-transform
:
rotate
(
-45deg
);
}
5
%
{
transform
:
rotate
(
-45deg
);
-webkit-transform
:
rotate
(
-45deg
);
}
12
%
{
transform
:
rotate
(
-405deg
);
-webkit-transform
:
rotate
(
-405deg
);
}
100
%
{
transform
:
rotate
(
-405deg
);
-webkit-transform
:
rotate
(
-405deg
);
}
}
.animateSuccessTip
{
-webkit-animation
:
animateSuccessTip
0.75s
;
animation
:
animateSuccessTip
0.75s
;
}
.animateSuccessLong
{
-webkit-animation
:
animateSuccessLong
0.75s
;
animation
:
animateSuccessLong
0.75s
;
}
.sa-icon.sa-success.animate
::after
{
-webkit-animation
:
rotatePlaceholder
4.25s
ease-in
;
animation
:
rotatePlaceholder
4.25s
ease-in
;
}
@-webkit-keyframes
animateErrorIcon
{
0
%
{
transform
:
rotateX
(
100deg
);
-webkit-transform
:
rotateX
(
100deg
);
opacity
:
0
;
}
100
%
{
transform
:
rotateX
(
0deg
);
-webkit-transform
:
rotateX
(
0deg
);
opacity
:
1
;
}
}
@keyframes
animateErrorIcon
{
0
%
{
transform
:
rotateX
(
100deg
);
-webkit-transform
:
rotateX
(
100deg
);
opacity
:
0
;
}
100
%
{
transform
:
rotateX
(
0deg
);
-webkit-transform
:
rotateX
(
0deg
);
opacity
:
1
;
}
}
.animateErrorIcon
{
-webkit-animation
:
animateErrorIcon
0.5s
;
animation
:
animateErrorIcon
0.5s
;
}
@-webkit-keyframes
animateXMark
{
0
%
{
transform
:
scale
(
0.4
);
-webkit-transform
:
scale
(
0.4
);
margin-top
:
26px
;
opacity
:
0
;
}
50
%
{
transform
:
scale
(
0.4
);
-webkit-transform
:
scale
(
0.4
);
margin-top
:
26px
;
opacity
:
0
;
}
80
%
{
transform
:
scale
(
1.15
);
-webkit-transform
:
scale
(
1.15
);
margin-top
:
-6px
;
}
100
%
{
transform
:
scale
(
1
);
-webkit-transform
:
scale
(
1
);
margin-top
:
0
;
opacity
:
1
;
}
}
@keyframes
animateXMark
{
0
%
{
transform
:
scale
(
0.4
);
-webkit-transform
:
scale
(
0.4
);
margin-top
:
26px
;
opacity
:
0
;
}
50
%
{
transform
:
scale
(
0.4
);
-webkit-transform
:
scale
(
0.4
);
margin-top
:
26px
;
opacity
:
0
;
}
80
%
{
transform
:
scale
(
1.15
);
-webkit-transform
:
scale
(
1.15
);
margin-top
:
-6px
;
}
100
%
{
transform
:
scale
(
1
);
-webkit-transform
:
scale
(
1
);
margin-top
:
0
;
opacity
:
1
;
}
}
.animateXMark
{
-webkit-animation
:
animateXMark
0.5s
;
animation
:
animateXMark
0.5s
;
}
@-webkit-keyframes
pulseWarning
{
0
%
{
border-color
:
#F8D486
;
}
100
%
{
border-color
:
#F8BB86
;
}
}
@keyframes
pulseWarning
{
0
%
{
border-color
:
#F8D486
;
}
100
%
{
border-color
:
#F8BB86
;
}
}
.pulseWarning
{
-webkit-animation
:
pulseWarning
0.75s
infinite
alternate
;
animation
:
pulseWarning
0.75s
infinite
alternate
;
}
@-webkit-keyframes
pulseWarningIns
{
0
%
{
background-color
:
#F8D486
;
}
100
%
{
background-color
:
#F8BB86
;
}
}
@keyframes
pulseWarningIns
{
0
%
{
background-color
:
#F8D486
;
}
100
%
{
background-color
:
#F8BB86
;
}
}
.pulseWarningIns
{
-webkit-animation
:
pulseWarningIns
0.75s
infinite
alternate
;
animation
:
pulseWarningIns
0.75s
infinite
alternate
;
}
@-webkit-keyframes
rotate-loading
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
@keyframes
rotate-loading
{
0
%
{
transform
:
rotate
(
0deg
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
/* Internet Explorer 9 has some special quirks that are fixed here */
/* The icons are not animated. */
/* This file is automatically merged into sweet-alert.min.js through Gulp */
/* Error icon */
.sweet-alert
.sa-icon.sa-error
.sa-line.sa-left
{
-ms-transform
:
rotate
(
45deg
)
\
9
;
}
.sweet-alert
.sa-icon.sa-error
.sa-line.sa-right
{
-ms-transform
:
rotate
(
-45deg
)
\
9
;
}
/* Success icon */
.sweet-alert
.sa-icon.sa-success
{
border-color
:
transparent
\
9
;
}
.sweet-alert
.sa-icon.sa-success
.sa-line.sa-tip
{
-ms-transform
:
rotate
(
45deg
)
\
9
;
}
.sweet-alert
.sa-icon.sa-success
.sa-line.sa-long
{
-ms-transform
:
rotate
(
-45deg
)
\
9
;
}
/*!
* Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
* Copyright 2015 Daniel Cardoso <@DanielCardoso>
* Licensed under MIT
*/
.la-ball-fall
,
.la-ball-fall
>
div
{
position
:
relative
;
-webkit-box-sizing
:
border-box
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.la-ball-fall
{
display
:
block
;
font-size
:
0
;
color
:
#fff
;
}
.la-ball-fall.la-dark
{
color
:
#333
;
}
.la-ball-fall
>
div
{
display
:
inline-block
;
float
:
none
;
background-color
:
currentColor
;
border
:
0
solid
currentColor
;
}
.la-ball-fall
{
width
:
54px
;
height
:
18px
;
}
.la-ball-fall
>
div
{
width
:
10px
;
height
:
10px
;
margin
:
4px
;
border-radius
:
100%
;
opacity
:
0
;
-webkit-animation
:
ball-fall
1s
ease-in-out
infinite
;
-moz-animation
:
ball-fall
1s
ease-in-out
infinite
;
-o-animation
:
ball-fall
1s
ease-in-out
infinite
;
animation
:
ball-fall
1s
ease-in-out
infinite
;
}
.la-ball-fall
>
div
:nth-child
(
1
)
{
-webkit-animation-delay
:
-200ms
;
-moz-animation-delay
:
-200ms
;
-o-animation-delay
:
-200ms
;
animation-delay
:
-200ms
;
}
.la-ball-fall
>
div
:nth-child
(
2
)
{
-webkit-animation-delay
:
-100ms
;
-moz-animation-delay
:
-100ms
;
-o-animation-delay
:
-100ms
;
animation-delay
:
-100ms
;
}
.la-ball-fall
>
div
:nth-child
(
3
)
{
-webkit-animation-delay
:
0ms
;
-moz-animation-delay
:
0ms
;
-o-animation-delay
:
0ms
;
animation-delay
:
0ms
;
}
.la-ball-fall.la-sm
{
width
:
26px
;
height
:
8px
;
}
.la-ball-fall.la-sm
>
div
{
width
:
4px
;
height
:
4px
;
margin
:
2px
;
}
.la-ball-fall.la-2x
{
width
:
108px
;
height
:
36px
;
}
.la-ball-fall.la-2x
>
div
{
width
:
20px
;
height
:
20px
;
margin
:
8px
;
}
.la-ball-fall.la-3x
{
width
:
162px
;
height
:
54px
;
}
.la-ball-fall.la-3x
>
div
{
width
:
30px
;
height
:
30px
;
margin
:
12px
;
}
/*
* Animation
*/
@-webkit-keyframes
ball-fall
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
-145%
);
transform
:
translateY
(
-145%
);
}
10
%
{
opacity
:
.5
;
}
20
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
80
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
90
%
{
opacity
:
.5
;
}
100
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
145%
);
transform
:
translateY
(
145%
);
}
}
@-moz-keyframes
ball-fall
{
0
%
{
opacity
:
0
;
-moz-transform
:
translateY
(
-145%
);
transform
:
translateY
(
-145%
);
}
10
%
{
opacity
:
.5
;
}
20
%
{
opacity
:
1
;
-moz-transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
80
%
{
opacity
:
1
;
-moz-transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
90
%
{
opacity
:
.5
;
}
100
%
{
opacity
:
0
;
-moz-transform
:
translateY
(
145%
);
transform
:
translateY
(
145%
);
}
}
@-o-keyframes
ball-fall
{
0
%
{
opacity
:
0
;
-o-transform
:
translateY
(
-145%
);
transform
:
translateY
(
-145%
);
}
10
%
{
opacity
:
.5
;
}
20
%
{
opacity
:
1
;
-o-transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
80
%
{
opacity
:
1
;
-o-transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
90
%
{
opacity
:
.5
;
}
100
%
{
opacity
:
0
;
-o-transform
:
translateY
(
145%
);
transform
:
translateY
(
145%
);
}
}
@keyframes
ball-fall
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
-145%
);
-moz-transform
:
translateY
(
-145%
);
-o-transform
:
translateY
(
-145%
);
transform
:
translateY
(
-145%
);
}
10
%
{
opacity
:
.5
;
}
20
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
-moz-transform
:
translateY
(
0
);
-o-transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
80
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
-moz-transform
:
translateY
(
0
);
-o-transform
:
translateY
(
0
);
transform
:
translateY
(
0
);
}
90
%
{
opacity
:
.5
;
}
100
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
145%
);
-moz-transform
:
translateY
(
145%
);
-o-transform
:
translateY
(
145%
);
transform
:
translateY
(
145%
);
}
}
src/main/webapp/assets/common/plugins/sweetalert/sweetalert.min.js
0 → 100644
View file @
b87ed043
!
function
(
e
,
t
,
n
){
"use strict"
;
!
function
o
(
e
,
t
,
n
){
function
a
(
s
,
l
){
if
(
!
t
[
s
]){
if
(
!
e
[
s
]){
var
i
=
"function"
==
typeof
require
&&
require
;
if
(
!
l
&&
i
)
return
i
(
s
,
!
0
);
if
(
r
)
return
r
(
s
,
!
0
);
var
u
=
new
Error
(
"Cannot find module '"
+
s
+
"'"
);
throw
u
.
code
=
"MODULE_NOT_FOUND"
,
u
}
var
c
=
t
[
s
]
=
{
exports
:{}};
e
[
s
][
0
].
call
(
c
.
exports
,
function
(
t
){
var
n
=
e
[
s
][
1
][
t
];
return
a
(
n
?
n
:
t
)},
c
,
c
.
exports
,
o
,
e
,
t
,
n
)}
return
t
[
s
].
exports
}
for
(
var
r
=
"function"
==
typeof
require
&&
require
,
s
=
0
;
s
<
n
.
length
;
s
++
)
a
(
n
[
s
]);
return
a
}({
1
:[
function
(
o
,
a
,
r
){
function
s
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
"default"
:
e
}}
Object
.
defineProperty
(
r
,
"__esModule"
,{
value
:
!
0
});
var
l
,
i
,
u
,
c
,
d
=
o
(
"./modules/handle-dom"
),
f
=
o
(
"./modules/utils"
),
p
=
o
(
"./modules/handle-swal-dom"
),
m
=
o
(
"./modules/handle-click"
),
v
=
o
(
"./modules/handle-key"
),
y
=
s
(
v
),
b
=
o
(
"./modules/default-params"
),
h
=
s
(
b
),
g
=
o
(
"./modules/set-params"
),
w
=
s
(
g
);
r
[
"default"
]
=
u
=
c
=
function
(){
function
o
(
e
){
var
t
=
a
;
return
t
[
e
]
===
n
?
h
[
"default"
][
e
]:
t
[
e
]}
var
a
=
arguments
[
0
];
if
((
0
,
d
.
addClass
)(
t
.
body
,
"stop-scrolling"
),(
0
,
p
.
resetInput
)(),
a
===
n
)
return
(
0
,
f
.
logStr
)(
"SweetAlert expects at least 1 attribute!"
),
!
1
;
var
r
=
(
0
,
f
.
extend
)({},
h
[
"default"
]);
switch
(
typeof
a
){
case
"string"
:
r
.
title
=
a
,
r
.
text
=
arguments
[
1
]
||
""
,
r
.
type
=
arguments
[
2
]
||
""
;
break
;
case
"object"
:
if
(
a
.
title
===
n
)
return
(
0
,
f
.
logStr
)(
'Missing "title" argument!'
),
!
1
;
r
.
title
=
a
.
title
;
for
(
var
s
in
h
[
"default"
])
r
[
s
]
=
o
(
s
);
r
.
confirmButtonText
=
r
.
showCancelButton
?
"Confirm"
:
h
[
"default"
].
confirmButtonText
,
r
.
confirmButtonText
=
o
(
"confirmButtonText"
),
r
.
doneFunction
=
arguments
[
1
]
||
null
;
break
;
default
:
return
(
0
,
f
.
logStr
)(
'Unexpected type of argument! Expected "string" or "object", got '
+
typeof
a
),
!
1
}(
0
,
w
[
"default"
])(
r
),(
0
,
p
.
fixVerticalPosition
)(),(
0
,
p
.
openModal
)(
arguments
[
1
]);
for
(
var
u
=
(
0
,
p
.
getModal
)(),
v
=
u
.
querySelectorAll
(
"button"
),
b
=
[
"onclick"
,
"onmouseover"
,
"onmouseout"
,
"onmousedown"
,
"onmouseup"
,
"onfocus"
],
g
=
function
(
e
){
return
(
0
,
m
.
handleButton
)(
e
,
r
,
u
)},
C
=
0
;
C
<
v
.
length
;
C
++
)
for
(
var
S
=
0
;
S
<
b
.
length
;
S
++
){
var
x
=
b
[
S
];
v
[
C
][
x
]
=
g
}(
0
,
p
.
getOverlay
)().
onclick
=
g
,
l
=
e
.
onkeydown
;
var
k
=
function
(
e
){
return
(
0
,
y
[
"default"
])(
e
,
r
,
u
)};
e
.
onkeydown
=
k
,
e
.
onfocus
=
function
(){
setTimeout
(
function
(){
i
!==
n
&&
(
i
.
focus
(),
i
=
n
)},
0
)},
c
.
enableButtons
()},
u
.
setDefaults
=
c
.
setDefaults
=
function
(
e
){
if
(
!
e
)
throw
new
Error
(
"userParams is required"
);
if
(
"object"
!=
typeof
e
)
throw
new
Error
(
"userParams has to be a object"
);(
0
,
f
.
extend
)(
h
[
"default"
],
e
)},
u
.
close
=
c
.
close
=
function
(){
var
o
=
(
0
,
p
.
getModal
)();(
0
,
d
.
fadeOut
)((
0
,
p
.
getOverlay
)(),
5
),(
0
,
d
.
fadeOut
)(
o
,
5
),(
0
,
d
.
removeClass
)(
o
,
"showSweetAlert"
),(
0
,
d
.
addClass
)(
o
,
"hideSweetAlert"
),(
0
,
d
.
removeClass
)(
o
,
"visible"
);
var
a
=
o
.
querySelector
(
".sa-icon.sa-success"
);(
0
,
d
.
removeClass
)(
a
,
"animate"
),(
0
,
d
.
removeClass
)(
a
.
querySelector
(
".sa-tip"
),
"animateSuccessTip"
),(
0
,
d
.
removeClass
)(
a
.
querySelector
(
".sa-long"
),
"animateSuccessLong"
);
var
r
=
o
.
querySelector
(
".sa-icon.sa-error"
);(
0
,
d
.
removeClass
)(
r
,
"animateErrorIcon"
),(
0
,
d
.
removeClass
)(
r
.
querySelector
(
".sa-x-mark"
),
"animateXMark"
);
var
s
=
o
.
querySelector
(
".sa-icon.sa-warning"
);
return
(
0
,
d
.
removeClass
)(
s
,
"pulseWarning"
),(
0
,
d
.
removeClass
)(
s
.
querySelector
(
".sa-body"
),
"pulseWarningIns"
),(
0
,
d
.
removeClass
)(
s
.
querySelector
(
".sa-dot"
),
"pulseWarningIns"
),
setTimeout
(
function
(){
var
e
=
o
.
getAttribute
(
"data-custom-class"
);(
0
,
d
.
removeClass
)(
o
,
e
)},
300
),(
0
,
d
.
removeClass
)(
t
.
body
,
"stop-scrolling"
),
e
.
onkeydown
=
l
,
e
.
previousActiveElement
&&
e
.
previousActiveElement
.
focus
(),
i
=
n
,
clearTimeout
(
o
.
timeout
),
!
0
},
u
.
showInputError
=
c
.
showInputError
=
function
(
e
){
var
t
=
(
0
,
p
.
getModal
)(),
n
=
t
.
querySelector
(
".sa-input-error"
);(
0
,
d
.
addClass
)(
n
,
"show"
);
var
o
=
t
.
querySelector
(
".sa-error-container"
);(
0
,
d
.
addClass
)(
o
,
"show"
),
o
.
querySelector
(
"p"
).
innerHTML
=
e
,
setTimeout
(
function
(){
u
.
enableButtons
()},
1
),
t
.
querySelector
(
"input"
).
focus
()},
u
.
resetInputError
=
c
.
resetInputError
=
function
(
e
){
if
(
e
&&
13
===
e
.
keyCode
)
return
!
1
;
var
t
=
(
0
,
p
.
getModal
)(),
n
=
t
.
querySelector
(
".sa-input-error"
);(
0
,
d
.
removeClass
)(
n
,
"show"
);
var
o
=
t
.
querySelector
(
".sa-error-container"
);(
0
,
d
.
removeClass
)(
o
,
"show"
)},
u
.
disableButtons
=
c
.
disableButtons
=
function
(
e
){
var
t
=
(
0
,
p
.
getModal
)(),
n
=
t
.
querySelector
(
"button.confirm"
),
o
=
t
.
querySelector
(
"button.cancel"
);
n
.
disabled
=!
0
,
o
.
disabled
=!
0
},
u
.
enableButtons
=
c
.
enableButtons
=
function
(
e
){
var
t
=
(
0
,
p
.
getModal
)(),
n
=
t
.
querySelector
(
"button.confirm"
),
o
=
t
.
querySelector
(
"button.cancel"
);
n
.
disabled
=!
1
,
o
.
disabled
=!
1
},
"undefined"
!=
typeof
e
?
e
.
sweetAlert
=
e
.
swal
=
u
:(
0
,
f
.
logStr
)(
"SweetAlert is a frontend module!"
),
a
.
exports
=
r
[
"default"
]},{
"./modules/default-params"
:
2
,
"./modules/handle-click"
:
3
,
"./modules/handle-dom"
:
4
,
"./modules/handle-key"
:
5
,
"./modules/handle-swal-dom"
:
6
,
"./modules/set-params"
:
8
,
"./modules/utils"
:
9
}],
2
:[
function
(
e
,
t
,
n
){
Object
.
defineProperty
(
n
,
"__esModule"
,{
value
:
!
0
});
var
o
=
{
title
:
""
,
text
:
""
,
type
:
null
,
allowOutsideClick
:
!
1
,
showConfirmButton
:
!
0
,
showCancelButton
:
!
1
,
closeOnConfirm
:
!
0
,
closeOnCancel
:
!
0
,
confirmButtonText
:
"OK"
,
confirmButtonColor
:
"#8CD4F5"
,
cancelButtonText
:
"Cancel"
,
imageUrl
:
null
,
imageSize
:
null
,
timer
:
null
,
customClass
:
""
,
html
:
!
1
,
animation
:
!
0
,
allowEscapeKey
:
!
0
,
inputType
:
"text"
,
inputPlaceholder
:
""
,
inputValue
:
""
,
showLoaderOnConfirm
:
!
1
};
n
[
"default"
]
=
o
,
t
.
exports
=
n
[
"default"
]},{}],
3
:[
function
(
t
,
n
,
o
){
Object
.
defineProperty
(
o
,
"__esModule"
,{
value
:
!
0
});
var
a
=
t
(
"./utils"
),
r
=
(
t
(
"./handle-swal-dom"
),
t
(
"./handle-dom"
)),
s
=
function
(
t
,
n
,
o
){
function
s
(
e
){
m
&&
n
.
confirmButtonColor
&&
(
p
.
style
.
backgroundColor
=
e
)}
var
u
,
c
,
d
,
f
=
t
||
e
.
event
,
p
=
f
.
target
||
f
.
srcElement
,
m
=-
1
!==
p
.
className
.
indexOf
(
"confirm"
),
v
=-
1
!==
p
.
className
.
indexOf
(
"sweet-overlay"
),
y
=
(
0
,
r
.
hasClass
)(
o
,
"visible"
),
b
=
n
.
doneFunction
&&
"true"
===
o
.
getAttribute
(
"data-has-done-function"
);
switch
(
m
&&
n
.
confirmButtonColor
&&
(
u
=
n
.
confirmButtonColor
,
c
=
(
0
,
a
.
colorLuminance
)(
u
,
-
.
04
),
d
=
(
0
,
a
.
colorLuminance
)(
u
,
-
.
14
)),
f
.
type
){
case
"mouseover"
:
s
(
c
);
break
;
case
"mouseout"
:
s
(
u
);
break
;
case
"mousedown"
:
s
(
d
);
break
;
case
"mouseup"
:
s
(
c
);
break
;
case
"focus"
:
var
h
=
o
.
querySelector
(
"button.confirm"
),
g
=
o
.
querySelector
(
"button.cancel"
);
m
?
g
.
style
.
boxShadow
=
"none"
:
h
.
style
.
boxShadow
=
"none"
;
break
;
case
"click"
:
var
w
=
o
===
p
,
C
=
(
0
,
r
.
isDescendant
)(
o
,
p
);
if
(
!
w
&&!
C
&&
y
&&!
n
.
allowOutsideClick
)
break
;
m
&&
b
&&
y
?
l
(
o
,
n
):
b
&&
y
||
v
?
i
(
o
,
n
):(
0
,
r
.
isDescendant
)(
o
,
p
)
&&
"BUTTON"
===
p
.
tagName
&&
sweetAlert
.
close
()}},
l
=
function
(
e
,
t
){
var
n
=!
0
;(
0
,
r
.
hasClass
)(
e
,
"show-input"
)
&&
(
n
=
e
.
querySelector
(
"input"
).
value
,
n
||
(
n
=
""
)),
t
.
doneFunction
(
n
),
t
.
closeOnConfirm
&&
sweetAlert
.
close
(),
t
.
showLoaderOnConfirm
&&
sweetAlert
.
disableButtons
()},
i
=
function
(
e
,
t
){
var
n
=
String
(
t
.
doneFunction
).
replace
(
/
\s
/g
,
""
),
o
=
"function("
===
n
.
substring
(
0
,
9
)
&&
")"
!==
n
.
substring
(
9
,
10
);
o
&&
t
.
doneFunction
(
!
1
),
t
.
closeOnCancel
&&
sweetAlert
.
close
()};
o
[
"default"
]
=
{
handleButton
:
s
,
handleConfirm
:
l
,
handleCancel
:
i
},
n
.
exports
=
o
[
"default"
]},{
"./handle-dom"
:
4
,
"./handle-swal-dom"
:
6
,
"./utils"
:
9
}],
4
:[
function
(
n
,
o
,
a
){
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
r
=
function
(
e
,
t
){
return
new
RegExp
(
" "
+
t
+
" "
).
test
(
" "
+
e
.
className
+
" "
)},
s
=
function
(
e
,
t
){
r
(
e
,
t
)
||
(
e
.
className
+=
" "
+
t
)},
l
=
function
(
e
,
t
){
var
n
=
" "
+
e
.
className
.
replace
(
/
[\t\r\n]
/g
,
" "
)
+
" "
;
if
(
r
(
e
,
t
)){
for
(;
n
.
indexOf
(
" "
+
t
+
" "
)
>=
0
;)
n
=
n
.
replace
(
" "
+
t
+
" "
,
" "
);
e
.
className
=
n
.
replace
(
/^
\s
+|
\s
+$/g
,
""
)}},
i
=
function
(
e
){
var
n
=
t
.
createElement
(
"div"
);
return
n
.
appendChild
(
t
.
createTextNode
(
e
)),
n
.
innerHTML
},
u
=
function
(
e
){
e
.
style
.
opacity
=
""
,
e
.
style
.
display
=
"block"
},
c
=
function
(
e
){
if
(
e
&&!
e
.
length
)
return
u
(
e
);
for
(
var
t
=
0
;
t
<
e
.
length
;
++
t
)
u
(
e
[
t
])},
d
=
function
(
e
){
e
.
style
.
opacity
=
""
,
e
.
style
.
display
=
"none"
},
f
=
function
(
e
){
if
(
e
&&!
e
.
length
)
return
d
(
e
);
for
(
var
t
=
0
;
t
<
e
.
length
;
++
t
)
d
(
e
[
t
])},
p
=
function
(
e
,
t
){
for
(
var
n
=
t
.
parentNode
;
null
!==
n
;){
if
(
n
===
e
)
return
!
0
;
n
=
n
.
parentNode
}
return
!
1
},
m
=
function
(
e
){
e
.
style
.
left
=
"-9999px"
,
e
.
style
.
display
=
"block"
;
var
t
,
n
=
e
.
clientHeight
;
return
t
=
"undefined"
!=
typeof
getComputedStyle
?
parseInt
(
getComputedStyle
(
e
).
getPropertyValue
(
"padding-top"
),
10
):
parseInt
(
e
.
currentStyle
.
padding
),
e
.
style
.
left
=
""
,
e
.
style
.
display
=
"none"
,
"-"
+
parseInt
((
n
+
t
)
/
2
)
+
"px"
},
v
=
function
(
e
,
t
){
if
(
+
e
.
style
.
opacity
<
1
){
t
=
t
||
16
,
e
.
style
.
opacity
=
0
,
e
.
style
.
display
=
"block"
;
var
n
=+
new
Date
,
o
=
function
a
(){
e
.
style
.
opacity
=+
e
.
style
.
opacity
+
(
new
Date
-
n
)
/
100
,
n
=+
new
Date
,
+
e
.
style
.
opacity
<
1
&&
setTimeout
(
a
,
t
)};
o
()}
e
.
style
.
display
=
"block"
},
y
=
function
(
e
,
t
){
t
=
t
||
16
,
e
.
style
.
opacity
=
1
;
var
n
=+
new
Date
,
o
=
function
a
(){
e
.
style
.
opacity
=+
e
.
style
.
opacity
-
(
new
Date
-
n
)
/
100
,
n
=+
new
Date
,
+
e
.
style
.
opacity
>
0
?
setTimeout
(
a
,
t
):
e
.
style
.
display
=
"none"
};
o
()},
b
=
function
(
n
){
if
(
"function"
==
typeof
MouseEvent
){
var
o
=
new
MouseEvent
(
"click"
,{
view
:
e
,
bubbles
:
!
1
,
cancelable
:
!
0
});
n
.
dispatchEvent
(
o
)}
else
if
(
t
.
createEvent
){
var
a
=
t
.
createEvent
(
"MouseEvents"
);
a
.
initEvent
(
"click"
,
!
1
,
!
1
),
n
.
dispatchEvent
(
a
)}
else
t
.
createEventObject
?
n
.
fireEvent
(
"onclick"
):
"function"
==
typeof
n
.
onclick
&&
n
.
onclick
()},
h
=
function
(
t
){
"function"
==
typeof
t
.
stopPropagation
?(
t
.
stopPropagation
(),
t
.
preventDefault
()):
e
.
event
&&
e
.
event
.
hasOwnProperty
(
"cancelBubble"
)
&&
(
e
.
event
.
cancelBubble
=!
0
)};
a
.
hasClass
=
r
,
a
.
addClass
=
s
,
a
.
removeClass
=
l
,
a
.
escapeHtml
=
i
,
a
.
_show
=
u
,
a
.
show
=
c
,
a
.
_hide
=
d
,
a
.
hide
=
f
,
a
.
isDescendant
=
p
,
a
.
getTopMargin
=
m
,
a
.
fadeIn
=
v
,
a
.
fadeOut
=
y
,
a
.
fireClick
=
b
,
a
.
stopEventPropagation
=
h
},{}],
5
:[
function
(
t
,
o
,
a
){
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
r
=
t
(
"./handle-dom"
),
s
=
t
(
"./handle-swal-dom"
),
l
=
function
(
t
,
o
,
a
){
var
l
=
t
||
e
.
event
,
i
=
l
.
keyCode
||
l
.
which
,
u
=
a
.
querySelector
(
"button.confirm"
),
c
=
a
.
querySelector
(
"button.cancel"
),
d
=
a
.
querySelectorAll
(
"button[tabindex]"
);
if
(
-
1
!==
[
9
,
13
,
32
,
27
].
indexOf
(
i
)){
for
(
var
f
=
l
.
target
||
l
.
srcElement
,
p
=-
1
,
m
=
0
;
m
<
d
.
length
;
m
++
)
if
(
f
===
d
[
m
]){
p
=
m
;
break
}
9
===
i
?(
f
=-
1
===
p
?
u
:
p
===
d
.
length
-
1
?
d
[
0
]:
d
[
p
+
1
],(
0
,
r
.
stopEventPropagation
)(
l
),
f
.
focus
(),
o
.
confirmButtonColor
&&
(
0
,
s
.
setFocusStyle
)(
f
,
o
.
confirmButtonColor
)):
13
===
i
?(
"INPUT"
===
f
.
tagName
&&
(
f
=
u
,
u
.
focus
()),
f
=-
1
===
p
?
u
:
n
):
27
===
i
&&
o
.
allowEscapeKey
===!
0
?(
f
=
c
,(
0
,
r
.
fireClick
)(
f
,
l
)):
f
=
n
}};
a
[
"default"
]
=
l
,
o
.
exports
=
a
[
"default"
]},{
"./handle-dom"
:
4
,
"./handle-swal-dom"
:
6
}],
6
:[
function
(
n
,
o
,
a
){
function
r
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
"default"
:
e
}}
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
s
=
n
(
"./utils"
),
l
=
n
(
"./handle-dom"
),
i
=
n
(
"./default-params"
),
u
=
r
(
i
),
c
=
n
(
"./injected-html"
),
d
=
r
(
c
),
f
=
".sweet-alert"
,
p
=
".sweet-overlay"
,
m
=
function
(){
var
e
=
t
.
createElement
(
"div"
);
for
(
e
.
innerHTML
=
d
[
"default"
];
e
.
firstChild
;)
t
.
body
.
appendChild
(
e
.
firstChild
)},
v
=
function
x
(){
var
e
=
t
.
querySelector
(
f
);
return
e
||
(
m
(),
e
=
x
()),
e
},
y
=
function
(){
var
e
=
v
();
return
e
?
e
.
querySelector
(
"input"
):
void
0
},
b
=
function
(){
return
t
.
querySelector
(
p
)},
h
=
function
(
e
,
t
){
var
n
=
(
0
,
s
.
hexToRgb
)(
t
);
e
.
style
.
boxShadow
=
"0 0 2px rgba("
+
n
+
", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"
},
g
=
function
(
n
){
var
o
=
v
();(
0
,
l
.
fadeIn
)(
b
(),
10
),(
0
,
l
.
show
)(
o
),(
0
,
l
.
addClass
)(
o
,
"showSweetAlert"
),(
0
,
l
.
removeClass
)(
o
,
"hideSweetAlert"
),
e
.
previousActiveElement
=
t
.
activeElement
;
var
a
=
o
.
querySelector
(
"button.confirm"
);
a
.
focus
(),
setTimeout
(
function
(){(
0
,
l
.
addClass
)(
o
,
"visible"
)},
500
);
var
r
=
o
.
getAttribute
(
"data-timer"
);
if
(
"null"
!==
r
&&
""
!==
r
){
var
s
=
n
;
o
.
timeout
=
setTimeout
(
function
(){
var
e
=
(
s
||
null
)
&&
"true"
===
o
.
getAttribute
(
"data-has-done-function"
);
e
?
s
(
null
):
sweetAlert
.
close
()},
r
)}},
w
=
function
(){
var
e
=
v
(),
t
=
y
();(
0
,
l
.
removeClass
)(
e
,
"show-input"
),
t
.
value
=
u
[
"default"
].
inputValue
,
t
.
setAttribute
(
"type"
,
u
[
"default"
].
inputType
),
t
.
setAttribute
(
"placeholder"
,
u
[
"default"
].
inputPlaceholder
),
C
()},
C
=
function
(
e
){
if
(
e
&&
13
===
e
.
keyCode
)
return
!
1
;
var
t
=
v
(),
n
=
t
.
querySelector
(
".sa-input-error"
);(
0
,
l
.
removeClass
)(
n
,
"show"
);
var
o
=
t
.
querySelector
(
".sa-error-container"
);(
0
,
l
.
removeClass
)(
o
,
"show"
)},
S
=
function
(){
var
e
=
v
();
e
.
style
.
marginTop
=
(
0
,
l
.
getTopMargin
)(
v
())};
a
.
sweetAlertInitialize
=
m
,
a
.
getModal
=
v
,
a
.
getOverlay
=
b
,
a
.
getInput
=
y
,
a
.
setFocusStyle
=
h
,
a
.
openModal
=
g
,
a
.
resetInput
=
w
,
a
.
resetInputError
=
C
,
a
.
fixVerticalPosition
=
S
},{
"./default-params"
:
2
,
"./handle-dom"
:
4
,
"./injected-html"
:
7
,
"./utils"
:
9
}],
7
:[
function
(
e
,
t
,
n
){
Object
.
defineProperty
(
n
,
"__esModule"
,{
value
:
!
0
});
var
o
=
'<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">
\
n <span class="sa-x-mark">
\
n <span class="sa-line sa-left"></span>
\
n <span class="sa-line sa-right"></span>
\
n </span>
\
n </div><div class="sa-icon sa-warning">
\
n <span class="sa-body"></span>
\
n <span class="sa-dot"></span>
\
n </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">
\
n <span class="sa-line sa-tip"></span>
\
n <span class="sa-line sa-long"></span>
\
n
\
n <div class="sa-placeholder"></div>
\
n <div class="sa-fix"></div>
\
n </div><div class="sa-icon sa-custom"></div><h2>Title</h2>
\
n <p>Text</p>
\
n <fieldset>
\
n <input type="text" tabIndex="3" />
\
n <div class="sa-input-error"></div>
\
n </fieldset><div class="sa-error-container">
\
n <div class="icon">!</div>
\
n <p>Not valid!</p>
\
n </div><div class="sa-button-container">
\
n <button class="cancel" tabIndex="2">Cancel</button>
\
n <div class="sa-confirm-button-container">
\
n <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">
\
n <div></div>
\
n <div></div>
\
n <div></div>
\
n </div>
\
n </div>
\
n </div></div>'
;
n
[
"default"
]
=
o
,
t
.
exports
=
n
[
"default"
]},{}],
8
:[
function
(
e
,
t
,
o
){
Object
.
defineProperty
(
o
,
"__esModule"
,{
value
:
!
0
});
var
a
=
e
(
"./utils"
),
r
=
e
(
"./handle-swal-dom"
),
s
=
e
(
"./handle-dom"
),
l
=
[
"error"
,
"warning"
,
"info"
,
"success"
,
"input"
,
"prompt"
],
i
=
function
(
e
){
var
t
=
(
0
,
r
.
getModal
)(),
o
=
t
.
querySelector
(
"h2"
),
i
=
t
.
querySelector
(
"p"
),
u
=
t
.
querySelector
(
"button.cancel"
),
c
=
t
.
querySelector
(
"button.confirm"
);
if
(
o
.
innerHTML
=
e
.
html
?
e
.
title
:(
0
,
s
.
escapeHtml
)(
e
.
title
).
split
(
"
\
n"
).
join
(
"<br>"
),
i
.
innerHTML
=
e
.
html
?
e
.
text
:(
0
,
s
.
escapeHtml
)(
e
.
text
||
""
).
split
(
"
\
n"
).
join
(
"<br>"
),
e
.
text
&&
(
0
,
s
.
show
)(
i
),
e
.
customClass
)(
0
,
s
.
addClass
)(
t
,
e
.
customClass
),
t
.
setAttribute
(
"data-custom-class"
,
e
.
customClass
);
else
{
var
d
=
t
.
getAttribute
(
"data-custom-class"
);(
0
,
s
.
removeClass
)(
t
,
d
),
t
.
setAttribute
(
"data-custom-class"
,
""
)}
if
((
0
,
s
.
hide
)(
t
.
querySelectorAll
(
".sa-icon"
)),
e
.
type
&&!
(
0
,
a
.
isIE8
)()){
var
f
=
function
(){
for
(
var
o
=!
1
,
a
=
0
;
a
<
l
.
length
;
a
++
)
if
(
e
.
type
===
l
[
a
]){
o
=!
0
;
break
}
if
(
!
o
)
return
logStr
(
"Unknown alert type: "
+
e
.
type
),{
v
:
!
1
};
var
i
=
[
"success"
,
"error"
,
"warning"
,
"info"
],
u
=
n
;
-
1
!==
i
.
indexOf
(
e
.
type
)
&&
(
u
=
t
.
querySelector
(
".sa-icon.sa-"
+
e
.
type
),(
0
,
s
.
show
)(
u
));
var
c
=
(
0
,
r
.
getInput
)();
switch
(
e
.
type
){
case
"success"
:(
0
,
s
.
addClass
)(
u
,
"animate"
),(
0
,
s
.
addClass
)(
u
.
querySelector
(
".sa-tip"
),
"animateSuccessTip"
),(
0
,
s
.
addClass
)(
u
.
querySelector
(
".sa-long"
),
"animateSuccessLong"
);
break
;
case
"error"
:(
0
,
s
.
addClass
)(
u
,
"animateErrorIcon"
),(
0
,
s
.
addClass
)(
u
.
querySelector
(
".sa-x-mark"
),
"animateXMark"
);
break
;
case
"warning"
:(
0
,
s
.
addClass
)(
u
,
"pulseWarning"
),(
0
,
s
.
addClass
)(
u
.
querySelector
(
".sa-body"
),
"pulseWarningIns"
),(
0
,
s
.
addClass
)(
u
.
querySelector
(
".sa-dot"
),
"pulseWarningIns"
);
break
;
case
"input"
:
case
"prompt"
:
c
.
setAttribute
(
"type"
,
e
.
inputType
),
c
.
value
=
e
.
inputValue
,
c
.
setAttribute
(
"placeholder"
,
e
.
inputPlaceholder
),(
0
,
s
.
addClass
)(
t
,
"show-input"
),
setTimeout
(
function
(){
c
.
focus
(),
c
.
addEventListener
(
"keyup"
,
swal
.
resetInputError
)},
400
)}}();
if
(
"object"
==
typeof
f
)
return
f
.
v
}
if
(
e
.
imageUrl
){
var
p
=
t
.
querySelector
(
".sa-icon.sa-custom"
);
p
.
style
.
backgroundImage
=
"url("
+
e
.
imageUrl
+
")"
,(
0
,
s
.
show
)(
p
);
var
m
=
80
,
v
=
80
;
if
(
e
.
imageSize
){
var
y
=
e
.
imageSize
.
toString
().
split
(
"x"
),
b
=
y
[
0
],
h
=
y
[
1
];
b
&&
h
?(
m
=
b
,
v
=
h
):
logStr
(
"Parameter imageSize expects value with format WIDTHxHEIGHT, got "
+
e
.
imageSize
)}
p
.
setAttribute
(
"style"
,
p
.
getAttribute
(
"style"
)
+
"width:"
+
m
+
"px; height:"
+
v
+
"px"
)}
t
.
setAttribute
(
"data-has-cancel-button"
,
e
.
showCancelButton
),
e
.
showCancelButton
?
u
.
style
.
display
=
"inline-block"
:(
0
,
s
.
hide
)(
u
),
t
.
setAttribute
(
"data-has-confirm-button"
,
e
.
showConfirmButton
),
e
.
showConfirmButton
?
c
.
style
.
display
=
"inline-block"
:(
0
,
s
.
hide
)(
c
),
e
.
cancelButtonText
&&
(
u
.
innerHTML
=
(
0
,
s
.
escapeHtml
)(
e
.
cancelButtonText
)),
e
.
confirmButtonText
&&
(
c
.
innerHTML
=
(
0
,
s
.
escapeHtml
)(
e
.
confirmButtonText
)),
e
.
confirmButtonColor
&&
(
c
.
style
.
backgroundColor
=
e
.
confirmButtonColor
,
c
.
style
.
borderLeftColor
=
e
.
confirmLoadingButtonColor
,
c
.
style
.
borderRightColor
=
e
.
confirmLoadingButtonColor
,(
0
,
r
.
setFocusStyle
)(
c
,
e
.
confirmButtonColor
)),
t
.
setAttribute
(
"data-allow-outside-click"
,
e
.
allowOutsideClick
);
var
g
=!!
e
.
doneFunction
;
t
.
setAttribute
(
"data-has-done-function"
,
g
),
e
.
animation
?
"string"
==
typeof
e
.
animation
?
t
.
setAttribute
(
"data-animation"
,
e
.
animation
):
t
.
setAttribute
(
"data-animation"
,
"pop"
):
t
.
setAttribute
(
"data-animation"
,
"none"
),
t
.
setAttribute
(
"data-timer"
,
e
.
timer
)};
o
[
"default"
]
=
i
,
t
.
exports
=
o
[
"default"
]},{
"./handle-dom"
:
4
,
"./handle-swal-dom"
:
6
,
"./utils"
:
9
}],
9
:[
function
(
t
,
n
,
o
){
Object
.
defineProperty
(
o
,
"__esModule"
,{
value
:
!
0
});
var
a
=
function
(
e
,
t
){
for
(
var
n
in
t
)
t
.
hasOwnProperty
(
n
)
&&
(
e
[
n
]
=
t
[
n
]);
return
e
},
r
=
function
(
e
){
var
t
=
/^#
?([
a-f
\d]{2})([
a-f
\d]{2})([
a-f
\d]{2})
$/i
.
exec
(
e
);
return
t
?
parseInt
(
t
[
1
],
16
)
+
", "
+
parseInt
(
t
[
2
],
16
)
+
", "
+
parseInt
(
t
[
3
],
16
):
null
},
s
=
function
(){
return
e
.
attachEvent
&&!
e
.
addEventListener
},
l
=
function
(
t
){
"undefined"
!=
typeof
e
&&
e
.
console
&&
e
.
console
.
log
(
"SweetAlert: "
+
t
)},
i
=
function
(
e
,
t
){
e
=
String
(
e
).
replace
(
/
[^
0-9a-f
]
/gi
,
""
),
e
.
length
<
6
&&
(
e
=
e
[
0
]
+
e
[
0
]
+
e
[
1
]
+
e
[
1
]
+
e
[
2
]
+
e
[
2
]),
t
=
t
||
0
;
var
n
,
o
,
a
=
"#"
;
for
(
o
=
0
;
3
>
o
;
o
++
)
n
=
parseInt
(
e
.
substr
(
2
*
o
,
2
),
16
),
n
=
Math
.
round
(
Math
.
min
(
Math
.
max
(
0
,
n
+
n
*
t
),
255
)).
toString
(
16
),
a
+=
(
"00"
+
n
).
substr
(
n
.
length
);
return
a
};
o
.
extend
=
a
,
o
.
hexToRgb
=
r
,
o
.
isIE8
=
s
,
o
.
logStr
=
l
,
o
.
colorLuminance
=
i
},{}]},{},[
1
]),
"function"
==
typeof
define
&&
define
.
amd
?
define
(
function
(){
return
sweetAlert
}):
"undefined"
!=
typeof
module
&&
module
.
exports
&&
(
module
.
exports
=
sweetAlert
)}(
window
,
document
);
\ No newline at end of file
src/main/webapp/assets/common/static/stylefeng/Feng.js
View file @
b87ed043
var
Feng
=
{
ctxPath
:
""
,
addCtx
:
function
(
ctx
)
{
if
(
this
.
ctxPath
==
""
)
{
if
(
this
.
ctxPath
==
=
""
)
{
this
.
ctxPath
=
ctx
;
}
},
confirm
:
function
(
tip
,
ensure
)
{
//询问框
parent
.
layer
.
confirm
(
tip
,
{
btn
:
[
'确定'
,
'取消'
]
},
function
(
index
)
{
swal
({
title
:
"请确认"
,
text
:
tip
,
type
:
"warning"
,
showCancelButton
:
true
,
confirmButtonColor
:
"#009efb"
,
confirmButtonText
:
"确认执行"
,
cancelButtonText
:
"取消"
,
closeOnConfirm
:
false
},
function
()
{
ensure
();
parent
.
layer
.
close
(
index
);
},
function
(
index
)
{
parent
.
layer
.
close
(
index
);
swal
.
close
();
});
},
log
:
function
(
info
)
{
console
.
log
(
info
);
},
alert
:
function
(
info
,
iconIndex
)
{
parent
.
layer
.
msg
(
info
,
{
icon
:
iconIndex
$
.
toast
({
heading
:
'提示'
,
text
:
info
,
position
:
'bottom-right'
,
loaderBg
:
'#ff6849'
,
icon
:
'info'
,
hideAfter
:
2000
,
stack
:
6
});
},
info
:
function
(
info
)
{
Feng
.
alert
(
info
,
0
);
$
.
toast
({
heading
:
'提示'
,
text
:
info
,
position
:
'bottom-right'
,
loaderBg
:
'#ff6849'
,
icon
:
'info'
,
hideAfter
:
2000
,
stack
:
6
});
},
success
:
function
(
info
)
{
Feng
.
alert
(
info
,
1
);
$
.
toast
({
heading
:
'成功'
,
text
:
info
,
position
:
'bottom-right'
,
loaderBg
:
'#ff6849'
,
icon
:
'success'
,
hideAfter
:
2000
,
stack
:
6
});
},
error
:
function
(
info
)
{
Feng
.
alert
(
info
,
2
);
$
.
toast
({
heading
:
'错误'
,
text
:
info
,
position
:
'bottom-right'
,
loaderBg
:
'#ff6849'
,
icon
:
'error'
,
hideAfter
:
2000
,
stack
:
6
});
},
infoDetail
:
function
(
title
,
info
)
{
var
display
=
""
;
if
(
typeof
info
==
"string"
)
{
if
(
typeof
info
==
=
"string"
)
{
display
=
info
;
}
else
{
if
(
info
instanceof
Array
)
{
...
...
@@ -53,26 +88,15 @@ var Feng = {
content
:
'<div style="padding: 20px;">'
+
display
+
'</div>'
});
},
writeObj
:
function
(
obj
)
{
var
description
=
""
;
for
(
var
i
in
obj
)
{
var
property
=
obj
[
i
];
description
+=
i
+
" = "
+
property
+
","
;
}
layer
.
alert
(
description
,
{
skin
:
'layui-layer-molv'
,
closeBtn
:
0
});
},
showInputTree
:
function
(
inputId
,
inputTreeContentId
,
leftOffset
,
rightOffset
)
{
var
onBodyDown
=
function
(
event
)
{
if
(
!
(
event
.
target
.
id
==
"menuBtn"
||
event
.
target
.
id
==
inputTreeContentId
||
$
(
event
.
target
).
parents
(
"#"
+
inputTreeContentId
).
length
>
0
))
{
if
(
!
(
event
.
target
.
id
==
=
"menuBtn"
||
event
.
target
.
id
=
==
inputTreeContentId
||
$
(
event
.
target
).
parents
(
"#"
+
inputTreeContentId
).
length
>
0
))
{
$
(
"#"
+
inputTreeContentId
).
fadeOut
(
"fast"
);
$
(
"body"
).
unbind
(
"mousedown"
,
onBodyDown
);
// mousedown当鼠标按下就可以触发,不用弹起
}
};
if
(
leftOffset
==
undefined
&&
rightOffset
==
undefined
)
{
if
(
leftOffset
==
=
undefined
&&
rightOffset
=
==
undefined
)
{
var
inputDiv
=
$
(
"#"
+
inputId
);
var
inputDivOffset
=
$
(
"#"
+
inputId
).
offset
();
$
(
"#"
+
inputTreeContentId
).
css
({
...
...
@@ -119,7 +143,7 @@ var Feng = {
complete
:
function
(
XMLHttpRequest
,
textStatus
)
{
//通过XMLHttpRequest取得响应头,sessionstatus,
var
sessionstatus
=
XMLHttpRequest
.
getResponseHeader
(
"sessionstatus"
);
if
(
sessionstatus
==
"timeout"
)
{
if
(
sessionstatus
==
=
"timeout"
)
{
//如果超时就处理 ,指定要跳转的页面
window
.
location
=
Feng
.
ctxPath
+
"/global/sessionError"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment