Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
c0de35a6
Commit
c0de35a6
authored
Oct 26, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add layer and layer open command log
parent
d19b47a4
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
82 additions
and
47 deletions
+82
-47
proxy_log_commands_list_modal.html
...udits/templates/audits/proxy_log_commands_list_modal.html
+39
-6
proxy_log_detail.html
apps/audits/templates/audits/proxy_log_detail.html
+7
-0
proxy_log_list.html
apps/audits/templates/audits/proxy_log_list.html
+11
-24
urls.py
apps/audits/urls.py
+1
-0
views.py
apps/audits/views.py
+11
-0
icon-ext.png
apps/static/css/plugins/layer/default/icon-ext.png
+0
-0
icon.png
apps/static/css/plugins/layer/default/icon.png
+0
-0
loading-0.gif
apps/static/css/plugins/layer/default/loading-0.gif
+0
-0
loading-1.gif
apps/static/css/plugins/layer/default/loading-1.gif
+0
-0
loading-2.gif
apps/static/css/plugins/layer/default/loading-2.gif
+0
-0
layer.css
apps/static/css/plugins/layer/layer.css
+8
-0
layer.ext.js
apps/static/js/plugins/layer/extend/layer.ext.js
+0
-3
layer.js
apps/static/js/plugins/layer/layer.js
+3
-3
layer.css
apps/static/js/plugins/layer/skin/layer.css
+2
-2
layer.ext.css
apps/static/js/plugins/layer/skin/layer.ext.css
+0
-9
No files found.
apps/audits/templates/audits/proxy_log_command_list_modal.html
→
apps/audits/templates/audits/proxy_log_command
s
_list_modal.html
View file @
c0de35a6
{% extends '_modal.html' %}
{% load i18n %}
{% block modal_id %}command_table{% endblock %}
{% block modal_body %}
<table
class=
"footable table table-stripped toggle-arrow-tiny"
data-page-size=
"10"
>
{% load static %}
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"renderer"
content=
"webkit"
>
{% include '_head_css_js.html' %}
<link
href=
"{% static 'css/bootstrap.min.css' %}"
rel=
"stylesheet"
>
<link
href=
"{% static "
css
/
plugins
/
footable
/
footable
.
core
.
css
"
%}"
rel=
"stylesheet"
>
<script
src=
"{% static 'js/jquery-2.1.1.js' %}"
></script>
<script
src=
"{% static 'js/plugins/sweetalert/sweetalert.min.js' %}"
></script>
<script
src=
"{% static 'js/bootstrap.min.js' %}"
></script>
</head>
<body>
<div
class=
"wrapper wrapper-content animated fadeInRight"
>
<div
class=
"tab-content"
>
<div
class=
"ibox-content"
>
<input
type=
"text"
class=
"form-control input-sm m-b-xs"
id=
"filter"
placeholder=
"Search in table"
>
<table
class=
"footable table table-stripped toggle-arrow-tiny"
data-page-size=
"10"
data-filter=
#filter
>
<thead>
<tr>
<th
data-toggle=
"true"
>
ID
</th>
...
...
@@ -21,5 +37,22 @@
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td
colspan=
"5"
>
<ul
class=
"pagination pull-right"
></ul>
</td>
</tr>
</tfoot>
</table>
{% endblock %}
</div>
</div>
</div>
</body>
<script
src=
"{% static "
js
/
plugins
/
footable
/
footable
.
all
.
min
.
js
"
%}"
></script>
<script>
$
(
document
).
ready
(
function
()
{
$
(
'.footable'
).
footable
();
});
</script>
</html>
apps/audits/templates/audits/proxy_log_detail.html
View file @
c0de35a6
...
...
@@ -57,6 +57,13 @@
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td
colspan=
"5"
>
<ul
class=
"pagination pull-right"
></ul>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
...
...
apps/audits/templates/audits/proxy_log_list.html
View file @
c0de35a6
...
...
@@ -3,6 +3,7 @@
{% block custom_head_css_js %}
{{ block.super }}
<link
href=
"{% static "
css
/
plugins
/
footable
/
footable
.
core
.
css
"
%}"
rel=
"stylesheet"
>
<link
href=
"{% static "
css
/
plugins
/
layer
/
layer
.
css
"
%}"
rel=
"stylesheet"
>
<style>
div
.dataTables_wrapper
div
.dataTables_filter
,
.dataTables_length
{
...
...
@@ -40,14 +41,12 @@
<tbody>
</tbody>
</table>
{% include 'audits/proxy_log_command_list_modal.html' %}
{% endblock %}
{% block custom_foot_js %}
<script
src=
"{% static 'js/jquery.form.min.js' %}"
></script>
<script
src=
"{% static "
js
/
plugins
/
footable
/
footable
.
all
.
min
.
js
"
%}"
></script>
<script
src=
"{% static "
js
/
plugins
/
layer
/
layer
.
js
"
%}"
></script>
<script>
$
(
document
).
ready
(
function
(){
$
(
'.footable'
).
footable
();
var
options
=
{
ele
:
$
(
'#proxy_log_list_table'
),
columnDefs
:
[
...
...
@@ -57,7 +56,7 @@ $(document).ready(function(){
}},
{
targets
:
4
,
createdCell
:
function
(
td
,
cellData
,
rowData
)
{
if
(
cellData
)
{
$
(
td
).
html
(
'<a url="{% url "audits:proxy-log-
detail-api
" pk=99991938 %}" class="commands">99991937</a>'
$
(
td
).
html
(
'<a url="{% url "audits:proxy-log-
commands-list
" pk=99991938 %}" class="commands">99991937</a>'
.
replace
(
'99991937'
,
cellData
)
.
replace
(
'99991938'
,
rowData
.
id
))
}
...
...
@@ -94,28 +93,16 @@ $(document).ready(function(){
jumpserver
.
initDataTable
(
options
);
}).
on
(
'click'
,
'.commands'
,
function
()
{
var
url
=
$
(
this
).
attr
(
'url'
);
$
.
ajax
({
url
:
url
,
method
:
'GET'
,
success
:
function
(
data
)
{
var
table_body
=
''
;
$
.
each
(
data
.
commands_dict
,
function
(
index
,
value
)
{
table_body
+=
'<tr>'
+
'<td>'
+
value
.
command_no
+
'</td>'
+
'<td>'
+
value
.
command
+
'</td>'
+
'<td>'
+
value
.
output
+
'</td>'
+
'<td>'
+
value
.
datetime
+
'</td>'
+
'</tr>'
layer
.
open
({
type
:
2
,
title
:
'很多时候,我们想最大化看,比如像这个页面。'
,
shadeClose
:
true
,
shade
:
false
,
maxmin
:
true
,
//开启最大化最小化按钮
area
:
[
'893px'
,
'600px'
],
content
:
url
});
console
.
log
(
table_body
);
$
(
'.table_body'
).
html
(
table_body
);
$
(
'.footable'
).
footable
();
$
(
'#command_table'
).
modal
(
'show'
);
}
})
})
</script>
{% endblock %}
apps/audits/urls.py
View file @
c0de35a6
...
...
@@ -9,6 +9,7 @@ app_name = 'audits'
urlpatterns
=
[
url
(
r'^proxy-log$'
,
views
.
ProxyLogListView
.
as_view
(),
name
=
'proxy-log-list'
),
url
(
r'^proxy-log/(?P<pk>\d+)$'
,
views
.
ProxyLogDetailView
.
as_view
(),
name
=
'proxy-log-detail'
),
url
(
r'^proxy-log/(?P<pk>\d+)/commands$'
,
views
.
ProxyLogCommandsListView
.
as_view
(),
name
=
'proxy-log-commands-list'
),
]
...
...
apps/audits/views.py
View file @
c0de35a6
...
...
@@ -39,3 +39,14 @@ class ProxyLogDetailView(AdminUserRequiredMixin, SingleObjectMixin, ListView):
}
kwargs
.
update
(
context
)
return
super
(
ProxyLogDetailView
,
self
)
.
get_context_data
(
**
kwargs
)
class
ProxyLogCommandsListView
(
AdminUserRequiredMixin
,
SingleObjectMixin
,
ListView
):
template_name
=
'audits/proxy_log_commands_list_modal.html'
def
get
(
self
,
request
,
*
args
,
**
kwargs
):
self
.
object
=
self
.
get_object
(
queryset
=
ProxyLog
.
objects
.
all
())
return
super
(
ProxyLogCommandsListView
,
self
)
.
get
(
request
,
*
args
,
**
kwargs
)
def
get_queryset
(
self
):
return
list
(
self
.
object
.
command_log
.
all
())
apps/static/css/plugins/layer/default/icon-ext.png
0 → 100644
View file @
c0de35a6
5.77 KB
apps/static/css/plugins/layer/default/icon.png
0 → 100644
View file @
c0de35a6
11.2 KB
apps/static/css/plugins/layer/default/loading-0.gif
0 → 100644
View file @
c0de35a6
5.66 KB
apps/static/css/plugins/layer/default/loading-1.gif
0 → 100644
View file @
c0de35a6
701 Bytes
apps/static/css/plugins/layer/default/loading-2.gif
0 → 100644
View file @
c0de35a6
1.75 KB
apps/static/css/plugins/layer/layer.css
0 → 100644
View file @
c0de35a6
/*!
@Name: layer's style
@Author: 贤心
@Blog: sentsin.com
*/
.layui-layer-imgbar
,
.layui-layer-imgtit
a
,
.layui-layer-tab
.layui-layer-title
span
,
.layui-layer-title
{
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
*
html
{
background-image
:
url(about:blank)
;
background-attachment
:
fixed
}
html
#layui_layer_skinlayercss
{
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
;
box-shadow
:
1px
1px
50px
rgba
(
0
,
0
,
0
,
.3
);
border-radius
:
2px
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
-webkit-animation-duration
:
.3s
;
animation-duration
:
.3s
}
.layui-layer-close
{
position
:
absolute
}
.layui-layer-content
{
position
:
relative
}
.layui-layer-border
{
border
:
1px
solid
#B2B2B2
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
.3
);
box-shadow
:
1px
1px
5px
rgba
(
0
,
0
,
0
,
.2
)}
.layui-layer-moves
{
position
:
absolute
;
border
:
3px
solid
#666
;
border
:
3px
solid
rgba
(
0
,
0
,
0
,
.5
);
cursor
:
move
;
background-color
:
#fff
;
background-color
:
rgba
(
255
,
255
,
255
,
.3
);
filter
:
alpha
(
opacity
=
50
)}
.layui-layer-load
{
background
:
url(default/loading-0.gif)
center
center
no-repeat
#fff
}
.layui-layer-ico
{
background
:
url(default/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
}
@-webkit-keyframes
bounceIn
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
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
{
-webkit-animation-name
:
bounceIn
;
animation-name
:
bounceIn
}
@-webkit-keyframes
bounceOut
{
100
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.7
);
transform
:
scale
(
.7
)}
30
%
{
-webkit-transform
:
scale
(
1.03
);
transform
:
scale
(
1.03
)}
0
%
{
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
bounceOut
{
100
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.7
);
-ms-transform
:
scale
(
.7
);
transform
:
scale
(
.7
)}
30
%
{
-webkit-transform
:
scale
(
1.03
);
-ms-transform
:
scale
(
1.03
);
transform
:
scale
(
1.03
)}
0
%
{
-webkit-transform
:
scale
(
1
);
-ms-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
.layer-anim-close
{
-webkit-animation-name
:
bounceOut
;
animation-name
:
bounceOut
;
-webkit-animation-duration
:
.2s
;
animation-duration
:
.2s
}
@-webkit-keyframes
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
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
:
zoomInDown
;
animation-name
:
zoomInDown
}
@-webkit-keyframes
fadeInUpBig
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
2000px
);
transform
:
translateY
(
2000px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
@keyframes
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
:
fadeInUpBig
;
animation-name
:
fadeInUpBig
}
@-webkit-keyframes
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
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
:
zoomInLeft
;
animation-name
:
zoomInLeft
}
@-webkit-keyframes
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
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
:
rollIn
;
animation-name
:
rollIn
}
@keyframes
fadeIn
{
0
%
{
opacity
:
0
}
100
%
{
opacity
:
1
}}
.layer-anim-05
{
-webkit-animation-name
:
fadeIn
;
animation-name
:
fadeIn
}
@-webkit-keyframes
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
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
:
shake
;
animation-name
:
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
:
0
-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
10px
12px
;
pointer-events
:
auto
}
.layui-layer-btn
a
{
height
:
28px
;
line-height
:
28px
;
margin
:
0
6px
;
padding
:
0
15px
;
border
:
1px
solid
#dedede
;
background-color
:
#f1f1f1
;
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
:
.7
}
.layui-layer-btn
.layui-layer-btn0
{
border-color
:
#4898d5
;
background-color
:
#2e8ded
;
color
:
#fff
}
.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
.layui-layer-content
{
overflow
:
hidden
}
.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(default/loading-0.gif)
no-repeat
}
.layui-layer-loading
.layui-layer-loading1
{
width
:
37px
;
height
:
37px
;
background
:
url(default/loading-1.gif)
no-repeat
}
.layui-layer-ico16
,
.layui-layer-loading
.layui-layer-loading2
{
width
:
32px
;
height
:
32px
;
background
:
url(default/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
:
5px
10px
;
font-size
:
12px
;
_float
:
left
;
border-radius
:
3px
;
box-shadow
:
1px
1px
3px
rgba
(
0
,
0
,
0
,
.3
);
background-color
:
#F90
;
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
:
#F90
}
.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
:
1px
;
border-bottom-style
:
solid
;
border-bottom-color
:
#F90
}
.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
:
10px
;
text-align
:
right
;
border-top
:
1px
solid
#E9E7E7
}
.layui-layer-lan
.layui-layer-btn
a
{
background
:
#BBB5B5
;
border
:
none
}
.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
}
.layui-layer-molv
.layui-layer-btn
.layui-layer-btn1
{
background
:
#92B8B1
}
.layui-layer-iconext
{
background
:
url(default/icon-ext.png)
no-repeat
}
.layui-layer-prompt
.layui-layer-input
{
display
:
block
;
width
:
220px
;
height
:
30px
;
margin
:
0
auto
;
line-height
:
30px
;
padding
:
0
5px
;
border
:
1px
solid
#ccc
;
box-shadow
:
1px
1px
5px
rgba
(
0
,
0
,
0
,
.1
)
inset
;
color
:
#333
}
.layui-layer-prompt
textarea
.layui-layer-input
{
width
:
300px
;
height
:
100px
;
line-height
:
20px
}
.layui-layer-tab
{
box-shadow
:
1px
1px
50px
rgba
(
0
,
0
,
0
,
.4
)}
.layui-layer-tab
.layui-layer-title
{
padding-left
:
0
;
border-bottom
:
1px
solid
#ccc
;
background-color
:
#eee
;
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
;
cursor
:
default
;
overflow
:
hidden
}
.layui-layer-tab
.layui-layer-title
span
.layui-layer-tabnow
{
height
:
43px
;
border-left
:
1px
solid
#ccc
;
border-right
:
1px
solid
#ccc
;
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.xubox_tab_layer
{
display
:
block
}
.xubox_tabclose
{
position
:
absolute
;
right
:
10px
;
top
:
5px
;
cursor
:
pointer
}
.layui-layer-photos
{
-webkit-animation-duration
:
1s
;
animation-duration
:
1s
}
.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
}
\ No newline at end of file
apps/static/js/plugins/layer/extend/layer.ext.js
deleted
100644 → 0
View file @
d19b47a4
/*! layer弹层组件拓展类 */
;
!
function
(){
layer
.
use
(
"skin/layer.ext.css"
,
function
(){
layer
.
layui_layer_extendlayerextjs
=!
0
});
var
a
=
layer
.
cache
||
{},
b
=
function
(
b
){
return
a
.
skin
?
" "
+
a
.
skin
+
" "
+
a
.
skin
+
"-"
+
b
:
""
};
layer
.
prompt
=
function
(
a
,
c
){
a
=
a
||
{},
"function"
==
typeof
a
&&
(
c
=
a
);
var
d
,
e
=
2
==
a
.
formType
?
'<textarea class="layui-layer-input">'
+
(
a
.
value
||
""
)
+
"</textarea>"
:
function
(){
return
'<input type="'
+
(
1
==
a
.
formType
?
"password"
:
"text"
)
+
'" class="layui-layer-input" value="'
+
(
a
.
value
||
""
)
+
'">'
}();
return
layer
.
open
(
$
.
extend
({
btn
:[
"确定"
,
"取消"
],
content
:
e
,
skin
:
"layui-layer-prompt"
+
b
(
"prompt"
),
success
:
function
(
a
){
d
=
a
.
find
(
".layui-layer-input"
),
d
.
focus
()},
yes
:
function
(
b
){
var
e
=
d
.
val
();
""
===
e
?
d
.
focus
():
e
.
length
>
(
a
.
maxlength
||
500
)?
layer
.
tips
(
"最多输入"
+
(
a
.
maxlength
||
500
)
+
"个字数"
,
d
,{
tips
:
1
}):
c
&&
c
(
e
,
b
,
d
)}},
a
))},
layer
.
tab
=
function
(
a
){
a
=
a
||
{};
var
c
=
a
.
tab
||
{};
return
layer
.
open
(
$
.
extend
({
type
:
1
,
skin
:
"layui-layer-tab"
+
b
(
"tab"
),
title
:
function
(){
var
a
=
c
.
length
,
b
=
1
,
d
=
""
;
if
(
a
>
0
)
for
(
d
=
'<span class="layui-layer-tabnow">'
+
c
[
0
].
title
+
"</span>"
;
a
>
b
;
b
++
)
d
+=
"<span>"
+
c
[
b
].
title
+
"</span>"
;
return
d
}(),
content
:
'<ul class="layui-layer-tabmain">'
+
function
(){
var
a
=
c
.
length
,
b
=
1
,
d
=
""
;
if
(
a
>
0
)
for
(
d
=
'<li class="layui-layer-tabli xubox_tab_layer">'
+
(
c
[
0
].
content
||
"no content"
)
+
"</li>"
;
a
>
b
;
b
++
)
d
+=
'<li class="layui-layer-tabli">'
+
(
c
[
b
].
content
||
"no content"
)
+
"</li>"
;
return
d
}()
+
"</ul>"
,
success
:
function
(
a
){
var
b
=
a
.
find
(
".layui-layer-title"
).
children
(),
c
=
a
.
find
(
".layui-layer-tabmain"
).
children
();
b
.
on
(
"mousedown"
,
function
(
a
){
a
.
stopPropagation
?
a
.
stopPropagation
():
a
.
cancelBubble
=!
0
;
var
b
=
$
(
this
),
d
=
b
.
index
();
b
.
addClass
(
"layui-layer-tabnow"
).
siblings
().
removeClass
(
"layui-layer-tabnow"
),
c
.
eq
(
d
).
show
().
siblings
().
hide
()})}},
a
))},
layer
.
photos
=
function
(
a
,
c
,
d
){
function
e
(
a
,
b
,
c
){
var
d
=
new
Image
;
d
.
onload
=
function
(){
d
.
onload
=
null
,
b
(
d
)},
d
.
onerror
=
function
(
a
){
d
.
onerror
=
null
,
c
(
a
)},
d
.
src
=
a
}
var
f
=
{};
if
(
a
=
a
||
{},
a
.
photos
){
var
g
=
a
.
photos
.
constructor
===
Object
,
h
=
g
?
a
.
photos
:{},
i
=
h
.
data
||
[],
j
=
h
.
start
||
0
;
if
(
f
.
imgIndex
=
j
+
1
,
g
){
if
(
0
===
i
.
length
)
return
void
layer
.
msg
(
"没有图片"
)}
else
{
var
k
=
$
(
a
.
photos
),
l
=
k
.
find
(
a
.
img
||
"img"
);
if
(
0
===
l
.
length
)
return
;
if
(
c
||
k
.
find
(
h
.
img
||
"img"
).
each
(
function
(
b
){
var
c
=
$
(
this
);
i
.
push
({
alt
:
c
.
attr
(
"alt"
),
pid
:
c
.
attr
(
"layer-pid"
),
src
:
c
.
attr
(
"layer-src"
)
||
c
.
attr
(
"src"
),
thumb
:
c
.
attr
(
"src"
)}),
c
.
on
(
"click"
,
function
(){
layer
.
photos
(
$
.
extend
(
a
,{
photos
:{
start
:
b
,
data
:
i
,
tab
:
a
.
tab
},
full
:
a
.
full
}),
!
0
)})}),
!
c
)
return
}
f
.
imgprev
=
function
(
a
){
f
.
imgIndex
--
,
f
.
imgIndex
<
1
&&
(
f
.
imgIndex
=
i
.
length
),
f
.
tabimg
(
a
)},
f
.
imgnext
=
function
(
a
,
b
){
f
.
imgIndex
++
,
f
.
imgIndex
>
i
.
length
&&
(
f
.
imgIndex
=
1
,
b
)
||
f
.
tabimg
(
a
)},
f
.
keyup
=
function
(
a
){
if
(
!
f
.
end
){
var
b
=
a
.
keyCode
;
a
.
preventDefault
(),
37
===
b
?
f
.
imgprev
(
!
0
):
39
===
b
?
f
.
imgnext
(
!
0
):
27
===
b
&&
layer
.
close
(
f
.
index
)}},
f
.
tabimg
=
function
(
b
){
i
.
length
<=
1
||
(
h
.
start
=
f
.
imgIndex
-
1
,
layer
.
close
(
f
.
index
),
layer
.
photos
(
a
,
!
0
,
b
))},
f
.
event
=
function
(){
f
.
bigimg
.
hover
(
function
(){
f
.
imgsee
.
show
()},
function
(){
f
.
imgsee
.
hide
()}),
f
.
bigimg
.
find
(
".layui-layer-imgprev"
).
on
(
"click"
,
function
(
a
){
a
.
preventDefault
(),
f
.
imgprev
()}),
f
.
bigimg
.
find
(
".layui-layer-imgnext"
).
on
(
"click"
,
function
(
a
){
a
.
preventDefault
(),
f
.
imgnext
()}),
$
(
document
).
on
(
"keyup"
,
f
.
keyup
)},
f
.
loadi
=
layer
.
load
(
1
,{
shade
:
"shade"
in
a
?
!
1
:.
9
,
scrollbar
:
!
1
}),
e
(
i
[
j
].
src
,
function
(
c
){
layer
.
close
(
f
.
loadi
),
f
.
index
=
layer
.
open
(
$
.
extend
({
type
:
1
,
area
:
function
(){
var
b
=
[
c
.
width
,
c
.
height
],
d
=
[
$
(
window
).
width
()
-
100
,
$
(
window
).
height
()
-
100
];
return
!
a
.
full
&&
b
[
0
]
>
d
[
0
]
&&
(
b
[
0
]
=
d
[
0
],
b
[
1
]
=
b
[
0
]
*
d
[
1
]
/
b
[
0
]),[
b
[
0
]
+
"px"
,
b
[
1
]
+
"px"
]}(),
title
:
!
1
,
shade
:.
9
,
shadeClose
:
!
0
,
closeBtn
:
!
1
,
move
:
".layui-layer-phimg img"
,
moveType
:
1
,
scrollbar
:
!
1
,
moveOut
:
!
0
,
shift
:
5
*
Math
.
random
()
|
0
,
skin
:
"layui-layer-photos"
+
b
(
"photos"
),
content
:
'<div class="layui-layer-phimg"><img src="'
+
i
[
j
].
src
+
'" alt="'
+
(
i
[
j
].
alt
||
""
)
+
'" layer-pid="'
+
i
[
j
].
pid
+
'"><div class="layui-layer-imgsee">'
+
(
i
.
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:'
+
(
d
?
"block"
:
""
)
+
'"><span class="layui-layer-imgtit"><a href="javascript:;">'
+
(
i
[
j
].
alt
||
""
)
+
"</a><em>"
+
f
.
imgIndex
+
"/"
+
i
.
length
+
"</em></span></div></div></div>"
,
success
:
function
(
b
,
c
){
f
.
bigimg
=
b
.
find
(
".layui-layer-phimg"
),
f
.
imgsee
=
b
.
find
(
".layui-layer-imguide,.layui-layer-imgbar"
),
f
.
event
(
b
),
a
.
tab
&&
a
.
tab
(
i
[
j
],
b
)},
end
:
function
(){
f
.
end
=!
0
,
$
(
document
).
off
(
"keyup"
,
f
.
keyup
)}},
a
))},
function
(){
layer
.
close
(
f
.
loadi
),
layer
.
msg
(
"当前图片地址异常<br>是否继续查看下一张?"
,{
time
:
3
e4
,
btn
:[
"下一张"
,
"不看了"
],
yes
:
function
(){
i
.
length
>
1
&&
f
.
imgnext
(
!
0
,
!
0
)}})})}}}();
\ No newline at end of file
apps/static/js/plugins/layer/layer.js
View file @
c0de35a6
/*! layer-v2.1 弹层组件 License LGPL http://layer.layui.com/ By 贤心 */
;
!
function
(
a
,
b
){
"use strict"
;
var
c
,
d
,
e
=
{
getPath
:
function
(){
var
a
=
document
.
scripts
,
b
=
a
[
a
.
length
-
1
],
c
=
b
.
src
;
if
(
!
b
.
getAttribute
(
"merge"
))
return
c
.
substring
(
0
,
c
.
lastIndexOf
(
"/"
)
+
1
)}(),
enter
:
function
(
a
){
13
===
a
.
keyCode
&&
a
.
preventDefault
()},
config
:{},
end
:{},
btn
:[
"确定"
,
"取消"
],
type
:[
"dialog"
,
"page"
,
"iframe"
,
"loading"
,
"tips"
]},
f
=
{
v
:
"2.1"
,
ie6
:
!!
a
.
ActiveXObject
&&!
a
.
XMLHttpRequest
,
index
:
0
,
path
:
e
.
getPath
,
config
:
function
(
a
,
b
){
var
d
=
0
;
return
a
=
a
||
{},
f
.
cache
=
e
.
config
=
c
.
extend
(
e
.
config
,
a
),
f
.
path
=
e
.
config
.
path
||
f
.
path
,
"string"
==
typeof
a
.
extend
&&
(
a
.
extend
=
[
a
.
extend
]),
f
.
use
(
"skin/layer.css"
,
a
.
extend
&&
a
.
extend
.
length
>
0
?
function
g
(){
var
c
=
a
.
extend
;
f
.
use
(
c
[
c
[
d
]?
d
:
d
-
1
],
d
<
c
.
length
?
function
(){
return
++
d
,
g
}():
b
)}():
b
),
this
},
use
:
function
(
a
,
b
,
d
){
var
e
=
c
(
"head"
)[
0
],
a
=
a
.
replace
(
/
\s
/g
,
""
),
g
=
/
\.
css$/
.
test
(
a
),
h
=
document
.
createElement
(
g
?
"link"
:
"script"
),
i
=
"layui_layer_"
+
a
.
replace
(
/
\.
|
\/
/g
,
""
);
return
f
.
path
?(
g
&&
(
h
.
rel
=
"stylesheet"
),
h
[
g
?
"href"
:
"src"
]
=
/^http:
\/\/
/
.
test
(
a
)?
a
:
f
.
path
+
a
,
h
.
id
=
i
,
c
(
"#"
+
i
)[
0
]
||
e
.
appendChild
(
h
),
function
j
(){(
g
?
1989
===
parseInt
(
c
(
"#"
+
i
).
css
(
"width"
)):
f
[
d
||
i
])?
function
(){
b
&&
b
();
try
{
g
||
e
.
removeChild
(
h
)}
catch
(
a
){}}():
setTimeout
(
j
,
100
)}(),
this
):
void
0
},
ready
:
function
(
a
,
b
){
var
d
=
"function"
==
typeof
a
;
return
d
&&
(
b
=
a
),
f
.
config
(
c
.
extend
(
e
.
config
,
function
(){
return
d
?{}:{
path
:
a
}}()),
b
),
this
},
alert
:
function
(
a
,
b
,
d
){
var
e
=
"function"
==
typeof
b
;
return
e
&&
(
d
=
b
),
f
.
open
(
c
.
extend
({
content
:
a
,
yes
:
d
},
e
?{}:
b
))},
confirm
:
function
(
a
,
b
,
d
,
g
){
var
h
=
"function"
==
typeof
b
;
return
h
&&
(
g
=
d
,
d
=
b
),
f
.
open
(
c
.
extend
({
content
:
a
,
btn
:
e
.
btn
,
yes
:
d
,
cancel
:
g
},
h
?{}:
b
))},
msg
:
function
(
a
,
d
,
g
){
var
i
=
"function"
==
typeof
d
,
j
=
e
.
config
.
skin
,
k
=
(
j
?
j
+
" "
+
j
+
"-msg"
:
""
)
||
"layui-layer-msg"
,
l
=
h
.
anim
.
length
-
1
;
return
i
&&
(
g
=
d
),
f
.
open
(
c
.
extend
({
content
:
a
,
time
:
3
e3
,
shade
:
!
1
,
skin
:
k
,
title
:
!
1
,
closeBtn
:
!
1
,
btn
:
!
1
,
end
:
g
},
i
&&!
e
.
config
.
skin
?{
skin
:
k
+
" layui-layer-hui"
,
shift
:
l
}:
function
(){
return
d
=
d
||
{},(
-
1
===
d
.
icon
||
d
.
icon
===
b
&&!
e
.
config
.
skin
)
&&
(
d
.
skin
=
k
+
" "
+
(
d
.
skin
||
"layui-layer-hui"
)),
d
}()))},
load
:
function
(
a
,
b
){
return
f
.
open
(
c
.
extend
({
type
:
3
,
icon
:
a
||
0
,
shade
:.
01
},
b
))},
tips
:
function
(
a
,
b
,
d
){
return
f
.
open
(
c
.
extend
({
type
:
4
,
content
:[
a
,
b
],
closeBtn
:
!
1
,
time
:
3
e3
,
maxWidth
:
210
},
d
))}},
g
=
function
(
a
){
var
b
=
this
;
b
.
index
=++
f
.
index
,
b
.
config
=
c
.
extend
({},
b
.
config
,
e
.
config
,
a
),
b
.
creat
()};
g
.
pt
=
g
.
prototype
;
var
h
=
[
"layui-layer"
,
".layui-layer-title"
,
".layui-layer-main"
,
".layui-layer-dialog"
,
"layui-layer-iframe"
,
"layui-layer-content"
,
"layui-layer-btn"
,
"layui-layer-close"
];
h
.
anim
=
[
"layui-anim"
,
"layui-anim-01"
,
"layui-anim-02"
,
"layui-anim-03"
,
"layui-anim-04"
,
"layui-anim-05"
,
"layui-anim-06"
],
g
.
pt
.
config
=
{
type
:
0
,
shade
:.
3
,
fix
:
!
0
,
move
:
h
[
1
],
title
:
"信息"
,
offset
:
"auto"
,
area
:
"auto"
,
closeBtn
:
1
,
time
:
0
,
zIndex
:
19891014
,
maxWidth
:
360
,
shift
:
0
,
icon
:
-
1
,
scrollbar
:
!
0
,
tips
:
2
},
g
.
pt
.
vessel
=
function
(
a
,
b
){
var
c
=
this
,
d
=
c
.
index
,
f
=
c
.
config
,
g
=
f
.
zIndex
+
d
,
i
=
"object"
==
typeof
f
.
title
,
j
=
f
.
maxmin
&&
(
1
===
f
.
type
||
2
===
f
.
type
),
k
=
f
.
title
?
'<div class="layui-layer-title" style="'
+
(
i
?
f
.
title
[
1
]:
""
)
+
'">'
+
(
i
?
f
.
title
[
0
]:
f
.
title
)
+
"</div>"
:
""
;
return
f
.
zIndex
=
g
,
b
([
f
.
shade
?
'<div class="layui-layer-shade" id="layui-layer-shade'
+
d
+
'" times="'
+
d
+
'" style="'
+
(
"z-index:"
+
(
g
-
1
)
+
"; background-color:"
+
(
f
.
shade
[
1
]
||
"#000"
)
+
"; opacity:"
+
(
f
.
shade
[
0
]
||
f
.
shade
)
+
"; filter:alpha(opacity="
+
(
100
*
f
.
shade
[
0
]
||
100
*
f
.
shade
)
+
");"
)
+
'"></div>'
:
""
,
'<div class="'
+
h
[
0
]
+
" "
+
(
h
.
anim
[
f
.
shift
]
||
""
)
+
(
" layui-layer-"
+
e
.
type
[
f
.
type
])
+
(
0
!=
f
.
type
&&
2
!=
f
.
type
||
f
.
shade
?
""
:
" layui-layer-border"
)
+
" "
+
(
f
.
skin
||
""
)
+
'" id="'
+
h
[
0
]
+
d
+
'" type="'
+
e
.
type
[
f
.
type
]
+
'" times="'
+
d
+
'" showtime="'
+
f
.
time
+
'" conType="'
+
(
a
?
"object"
:
"string"
)
+
'" style="z-index: '
+
g
+
"; width:"
+
f
.
area
[
0
]
+
";height:"
+
f
.
area
[
1
]
+
(
f
.
fix
?
""
:
";position:absolute;"
)
+
'">'
+
(
a
&&
2
!=
f
.
type
?
""
:
k
)
+
'<div class="layui-layer-content'
+
(
0
==
f
.
type
&&-
1
!==
f
.
icon
?
" layui-layer-padding"
:
""
)
+
(
3
==
f
.
type
?
" layui-layer-loading"
+
f
.
icon
:
""
)
+
'">'
+
(
0
==
f
.
type
&&-
1
!==
f
.
icon
?
'<i class="layui-layer-ico layui-layer-ico'
+
f
.
icon
+
'"></i>'
:
""
)
+
(
1
==
f
.
type
&&
a
?
""
:
f
.
content
||
""
)
+
'</div><span class="layui-layer-setwin">'
+
function
(){
var
a
=
j
?
'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>'
:
""
;
return
f
.
closeBtn
&&
(
a
+=
'<a class="layui-layer-ico '
+
h
[
7
]
+
" "
+
h
[
7
]
+
(
f
.
title
?
f
.
closeBtn
:
4
==
f
.
type
?
"1"
:
"2"
)
+
'" href="javascript:;"></a>'
),
a
}()
+
"</span>"
+
(
f
.
btn
?
function
(){
var
a
=
""
;
"string"
==
typeof
f
.
btn
&&
(
f
.
btn
=
[
f
.
btn
]);
for
(
var
b
=
0
,
c
=
f
.
btn
.
length
;
c
>
b
;
b
++
)
a
+=
'<a class="'
+
h
[
6
]
+
b
+
'">'
+
f
.
btn
[
b
]
+
"</a>"
;
return
'<div class="'
+
h
[
6
]
+
'">'
+
a
+
"</div>"
}():
""
)
+
"</div>"
],
k
),
c
},
g
.
pt
.
creat
=
function
(){
var
a
=
this
,
b
=
a
.
config
,
g
=
a
.
index
,
i
=
b
.
content
,
j
=
"object"
==
typeof
i
;
switch
(
"string"
==
typeof
b
.
area
&&
(
b
.
area
=
"auto"
===
b
.
area
?[
""
,
""
]:[
b
.
area
,
""
]),
b
.
type
){
case
0
:
b
.
btn
=
"btn"
in
b
?
b
.
btn
:
e
.
btn
[
0
],
f
.
closeAll
(
"dialog"
);
break
;
case
2
:
var
i
=
b
.
content
=
j
?
b
.
content
:[
b
.
content
||
"http://layer.layui.com"
,
"auto"
];
b
.
content
=
'<iframe scrolling="'
+
(
b
.
content
[
1
]
||
"auto"
)
+
'" allowtransparency="true" id="'
+
h
[
4
]
+
g
+
'" name="'
+
h
[
4
]
+
g
+
'" onload="this.className=
\'\'
;" class="layui-layer-load" frameborder="0" src="'
+
b
.
content
[
0
]
+
'"></iframe>'
;
break
;
case
3
:
b
.
title
=!
1
,
b
.
closeBtn
=!
1
,
-
1
===
b
.
icon
&&
0
===
b
.
icon
,
f
.
closeAll
(
"loading"
);
break
;
case
4
:
j
||
(
b
.
content
=
[
b
.
content
,
"body"
]),
b
.
follow
=
b
.
content
[
1
],
b
.
content
=
b
.
content
[
0
]
+
'<i class="layui-layer-TipsG"></i>'
,
b
.
title
=!
1
,
b
.
shade
=!
1
,
b
.
fix
=!
1
,
b
.
tips
=
"object"
==
typeof
b
.
tips
?
b
.
tips
:[
b
.
tips
,
!
0
],
b
.
tipsMore
||
f
.
closeAll
(
"tips"
)}
a
.
vessel
(
j
,
function
(
d
,
e
){
c
(
"body"
).
append
(
d
[
0
]),
j
?
function
(){
2
==
b
.
type
||
4
==
b
.
type
?
function
(){
c
(
"body"
).
append
(
d
[
1
])}():
function
(){
i
.
parents
(
"."
+
h
[
0
])[
0
]
||
(
i
.
show
().
addClass
(
"layui-layer-wrap"
).
wrap
(
d
[
1
]),
c
(
"#"
+
h
[
0
]
+
g
).
find
(
"."
+
h
[
5
]).
before
(
e
))}()}():
c
(
"body"
).
append
(
d
[
1
]),
a
.
layero
=
c
(
"#"
+
h
[
0
]
+
g
),
b
.
scrollbar
||
h
.
html
.
css
(
"overflow"
,
"hidden"
).
attr
(
"layer-full"
,
g
)}).
auto
(
g
),
2
==
b
.
type
&&
f
.
ie6
&&
a
.
layero
.
find
(
"iframe"
).
attr
(
"src"
,
i
[
0
]),
c
(
document
).
off
(
"keydown"
,
e
.
enter
).
on
(
"keydown"
,
e
.
enter
),
a
.
layero
.
on
(
"keydown"
,
function
(
a
){
c
(
document
).
off
(
"keydown"
,
e
.
enter
)}),
4
==
b
.
type
?
a
.
tips
():
a
.
offset
(),
b
.
fix
&&
d
.
on
(
"resize"
,
function
(){
a
.
offset
(),(
/^
\d
+%$/
.
test
(
b
.
area
[
0
])
||
/^
\d
+%$/
.
test
(
b
.
area
[
1
]))
&&
a
.
auto
(
g
),
4
==
b
.
type
&&
a
.
tips
()}),
b
.
time
<=
0
||
setTimeout
(
function
(){
f
.
close
(
a
.
index
)},
b
.
time
),
a
.
move
().
callback
()},
g
.
pt
.
auto
=
function
(
a
){
function
b
(
a
){
a
=
g
.
find
(
a
),
a
.
height
(
i
[
1
]
-
j
-
k
-
2
*
(
0
|
parseFloat
(
a
.
css
(
"padding"
))))}
var
e
=
this
,
f
=
e
.
config
,
g
=
c
(
"#"
+
h
[
0
]
+
a
);
""
===
f
.
area
[
0
]
&&
f
.
maxWidth
>
0
&&
(
/MSIE 7/
.
test
(
navigator
.
userAgent
)
&&
f
.
btn
&&
g
.
width
(
g
.
innerWidth
()),
g
.
outerWidth
()
>
f
.
maxWidth
&&
g
.
width
(
f
.
maxWidth
));
var
i
=
[
g
.
innerWidth
(),
g
.
innerHeight
()],
j
=
g
.
find
(
h
[
1
]).
outerHeight
()
||
0
,
k
=
g
.
find
(
"."
+
h
[
6
]).
outerHeight
()
||
0
;
switch
(
f
.
type
){
case
2
:
b
(
"iframe"
);
break
;
default
:
""
===
f
.
area
[
1
]?
f
.
fix
&&
i
[
1
]
>=
d
.
height
()
&&
(
i
[
1
]
=
d
.
height
(),
b
(
"."
+
h
[
5
])):
b
(
"."
+
h
[
5
])}
return
e
},
g
.
pt
.
offset
=
function
(){
var
a
=
this
,
b
=
a
.
config
,
c
=
a
.
layero
,
e
=
[
c
.
outerWidth
(),
c
.
outerHeight
()],
f
=
"object"
==
typeof
b
.
offset
;
a
.
offsetTop
=
(
d
.
height
()
-
e
[
1
])
/
2
,
a
.
offsetLeft
=
(
d
.
width
()
-
e
[
0
])
/
2
,
f
?(
a
.
offsetTop
=
b
.
offset
[
0
],
a
.
offsetLeft
=
b
.
offset
[
1
]
||
a
.
offsetLeft
):
"auto"
!==
b
.
offset
&&
(
a
.
offsetTop
=
b
.
offset
,
"rb"
===
b
.
offset
&&
(
a
.
offsetTop
=
d
.
height
()
-
e
[
1
],
a
.
offsetLeft
=
d
.
width
()
-
e
[
0
])),
b
.
fix
||
(
a
.
offsetTop
=
/%$/
.
test
(
a
.
offsetTop
)?
d
.
height
()
*
parseFloat
(
a
.
offsetTop
)
/
100
:
parseFloat
(
a
.
offsetTop
),
a
.
offsetLeft
=
/%$/
.
test
(
a
.
offsetLeft
)?
d
.
width
()
*
parseFloat
(
a
.
offsetLeft
)
/
100
:
parseFloat
(
a
.
offsetLeft
),
a
.
offsetTop
+=
d
.
scrollTop
(),
a
.
offsetLeft
+=
d
.
scrollLeft
()),
c
.
css
({
top
:
a
.
offsetTop
,
left
:
a
.
offsetLeft
})},
g
.
pt
.
tips
=
function
(){
var
a
=
this
,
b
=
a
.
config
,
e
=
a
.
layero
,
f
=
[
e
.
outerWidth
(),
e
.
outerHeight
()],
g
=
c
(
b
.
follow
);
g
[
0
]
||
(
g
=
c
(
"body"
));
var
i
=
{
width
:
g
.
outerWidth
(),
height
:
g
.
outerHeight
(),
top
:
g
.
offset
().
top
,
left
:
g
.
offset
().
left
},
j
=
e
.
find
(
".layui-layer-TipsG"
),
k
=
b
.
tips
[
0
];
b
.
tips
[
1
]
||
j
.
remove
(),
i
.
autoLeft
=
function
(){
i
.
left
+
f
[
0
]
-
d
.
width
()
>
0
?(
i
.
tipLeft
=
i
.
left
+
i
.
width
-
f
[
0
],
j
.
css
({
right
:
12
,
left
:
"auto"
})):
i
.
tipLeft
=
i
.
left
},
i
.
where
=
[
function
(){
i
.
autoLeft
(),
i
.
tipTop
=
i
.
top
-
f
[
1
]
-
10
,
j
.
removeClass
(
"layui-layer-TipsB"
).
addClass
(
"layui-layer-TipsT"
).
css
(
"border-right-color"
,
b
.
tips
[
1
])},
function
(){
i
.
tipLeft
=
i
.
left
+
i
.
width
+
10
,
i
.
tipTop
=
i
.
top
,
j
.
removeClass
(
"layui-layer-TipsL"
).
addClass
(
"layui-layer-TipsR"
).
css
(
"border-bottom-color"
,
b
.
tips
[
1
])},
function
(){
i
.
autoLeft
(),
i
.
tipTop
=
i
.
top
+
i
.
height
+
10
,
j
.
removeClass
(
"layui-layer-TipsT"
).
addClass
(
"layui-layer-TipsB"
).
css
(
"border-right-color"
,
b
.
tips
[
1
])},
function
(){
i
.
tipLeft
=
i
.
left
-
f
[
0
]
-
10
,
i
.
tipTop
=
i
.
top
,
j
.
removeClass
(
"layui-layer-TipsR"
).
addClass
(
"layui-layer-TipsL"
).
css
(
"border-bottom-color"
,
b
.
tips
[
1
])}],
i
.
where
[
k
-
1
](),
1
===
k
?
i
.
top
-
(
d
.
scrollTop
()
+
f
[
1
]
+
16
)
<
0
&&
i
.
where
[
2
]():
2
===
k
?
d
.
width
()
-
(
i
.
left
+
i
.
width
+
f
[
0
]
+
16
)
>
0
||
i
.
where
[
3
]():
3
===
k
?
i
.
top
-
d
.
scrollTop
()
+
i
.
height
+
f
[
1
]
+
16
-
d
.
height
()
>
0
&&
i
.
where
[
0
]():
4
===
k
&&
f
[
0
]
+
16
-
i
.
left
>
0
&&
i
.
where
[
1
](),
e
.
find
(
"."
+
h
[
5
]).
css
({
"background-color"
:
b
.
tips
[
1
],
"padding-right"
:
b
.
closeBtn
?
"30px"
:
""
}),
e
.
css
({
left
:
i
.
tipLeft
,
top
:
i
.
tipTop
})},
g
.
pt
.
move
=
function
(){
var
a
=
this
,
b
=
a
.
config
,
e
=
{
setY
:
0
,
moveLayer
:
function
(){
var
a
=
e
.
layero
,
b
=
parseInt
(
a
.
css
(
"margin-left"
)),
c
=
parseInt
(
e
.
move
.
css
(
"left"
));
0
===
b
||
(
c
-=
b
),
"fixed"
!==
a
.
css
(
"position"
)
&&
(
c
-=
a
.
parent
().
offset
().
left
,
e
.
setY
=
0
),
a
.
css
({
left
:
c
,
top
:
parseInt
(
e
.
move
.
css
(
"top"
))
-
e
.
setY
})}},
f
=
a
.
layero
.
find
(
b
.
move
);
return
b
.
move
&&
f
.
attr
(
"move"
,
"ok"
),
f
.
css
({
cursor
:
b
.
move
?
"move"
:
"auto"
}),
c
(
b
.
move
).
on
(
"mousedown"
,
function
(
a
){
if
(
a
.
preventDefault
(),
"ok"
===
c
(
this
).
attr
(
"move"
)){
e
.
ismove
=!
0
,
e
.
layero
=
c
(
this
).
parents
(
"."
+
h
[
0
]);
var
f
=
e
.
layero
.
offset
().
left
,
g
=
e
.
layero
.
offset
().
top
,
i
=
e
.
layero
.
outerWidth
()
-
6
,
j
=
e
.
layero
.
outerHeight
()
-
6
;
c
(
"#layui-layer-moves"
)[
0
]
||
c
(
"body"
).
append
(
'<div id="layui-layer-moves" class="layui-layer-moves" style="left:'
+
f
+
"px; top:"
+
g
+
"px; width:"
+
i
+
"px; height:"
+
j
+
'px; z-index:2147483584"></div>'
),
e
.
move
=
c
(
"#layui-layer-moves"
),
b
.
moveType
&&
e
.
move
.
css
({
visibility
:
"hidden"
}),
e
.
moveX
=
a
.
pageX
-
e
.
move
.
position
().
left
,
e
.
moveY
=
a
.
pageY
-
e
.
move
.
position
().
top
,
"fixed"
!==
e
.
layero
.
css
(
"position"
)
||
(
e
.
setY
=
d
.
scrollTop
())}}),
c
(
document
).
mousemove
(
function
(
a
){
if
(
e
.
ismove
){
var
c
=
a
.
pageX
-
e
.
moveX
,
f
=
a
.
pageY
-
e
.
moveY
;
if
(
a
.
preventDefault
(),
!
b
.
moveOut
){
e
.
setY
=
d
.
scrollTop
();
var
g
=
d
.
width
()
-
e
.
move
.
outerWidth
(),
h
=
e
.
setY
;
0
>
c
&&
(
c
=
0
),
c
>
g
&&
(
c
=
g
),
h
>
f
&&
(
f
=
h
),
f
>
d
.
height
()
-
e
.
move
.
outerHeight
()
+
e
.
setY
&&
(
f
=
d
.
height
()
-
e
.
move
.
outerHeight
()
+
e
.
setY
)}
e
.
move
.
css
({
left
:
c
,
top
:
f
}),
b
.
moveType
&&
e
.
moveLayer
(),
c
=
f
=
g
=
h
=
null
}}).
mouseup
(
function
(){
try
{
e
.
ismove
&&
(
e
.
moveLayer
(),
e
.
move
.
remove
(),
b
.
moveEnd
&&
b
.
moveEnd
()),
e
.
ismove
=!
1
}
catch
(
a
){
e
.
ismove
=!
1
}}),
a
},
g
.
pt
.
callback
=
function
(){
function
a
(){
var
a
=
g
.
cancel
&&
g
.
cancel
(
b
.
index
);
a
===!
1
||
f
.
close
(
b
.
index
)}
var
b
=
this
,
d
=
b
.
layero
,
g
=
b
.
config
;
b
.
openLayer
(),
g
.
success
&&
(
2
==
g
.
type
?
d
.
find
(
"iframe"
).
on
(
"load"
,
function
(){
g
.
success
(
d
,
b
.
index
)}):
g
.
success
(
d
,
b
.
index
)),
f
.
ie6
&&
b
.
IE6
(
d
),
d
.
find
(
"."
+
h
[
6
]).
children
(
"a"
).
on
(
"click"
,
function
(){
var
e
=
c
(
this
).
index
();
g
[
"btn"
+
(
e
+
1
)]
&&
g
[
"btn"
+
(
e
+
1
)](
b
.
index
,
d
),
0
===
e
?
g
.
yes
?
g
.
yes
(
b
.
index
,
d
):
f
.
close
(
b
.
index
):
1
===
e
?
a
():
g
[
"btn"
+
(
e
+
1
)]
||
f
.
close
(
b
.
index
)}),
d
.
find
(
"."
+
h
[
7
]).
on
(
"click"
,
a
),
g
.
shadeClose
&&
c
(
"#layui-layer-shade"
+
b
.
index
).
on
(
"click"
,
function
(){
f
.
close
(
b
.
index
)}),
d
.
find
(
".layui-layer-min"
).
on
(
"click"
,
function
(){
f
.
min
(
b
.
index
,
g
),
g
.
min
&&
g
.
min
(
d
)}),
d
.
find
(
".layui-layer-max"
).
on
(
"click"
,
function
(){
c
(
this
).
hasClass
(
"layui-layer-maxmin"
)?(
f
.
restore
(
b
.
index
),
g
.
restore
&&
g
.
restore
(
d
)):(
f
.
full
(
b
.
index
,
g
),
g
.
full
&&
g
.
full
(
d
))}),
g
.
end
&&
(
e
.
end
[
b
.
index
]
=
g
.
end
)},
e
.
reselect
=
function
(){
c
.
each
(
c
(
"select"
),
function
(
a
,
b
){
var
d
=
c
(
this
);
d
.
parents
(
"."
+
h
[
0
])[
0
]
||
1
==
d
.
attr
(
"layer"
)
&&
c
(
"."
+
h
[
0
]).
length
<
1
&&
d
.
removeAttr
(
"layer"
).
show
(),
d
=
null
})},
g
.
pt
.
IE6
=
function
(
a
){
function
b
(){
a
.
css
({
top
:
f
+
(
e
.
config
.
fix
?
d
.
scrollTop
():
0
)})}
var
e
=
this
,
f
=
a
.
offset
().
top
;
b
(),
d
.
scroll
(
b
),
c
(
"select"
).
each
(
function
(
a
,
b
){
var
d
=
c
(
this
);
d
.
parents
(
"."
+
h
[
0
])[
0
]
||
"none"
===
d
.
css
(
"display"
)
||
d
.
attr
({
layer
:
"1"
}).
hide
(),
d
=
null
})},
g
.
pt
.
openLayer
=
function
(){
var
a
=
this
;
f
.
zIndex
=
a
.
config
.
zIndex
,
f
.
setTop
=
function
(
a
){
var
b
=
function
(){
f
.
zIndex
++
,
a
.
css
(
"z-index"
,
f
.
zIndex
+
1
)};
return
f
.
zIndex
=
parseInt
(
a
[
0
].
style
.
zIndex
),
a
.
on
(
"mousedown"
,
b
),
f
.
zIndex
}},
e
.
record
=
function
(
a
){
var
b
=
[
a
.
outerWidth
(),
a
.
outerHeight
(),
a
.
position
().
top
,
a
.
position
().
left
+
parseFloat
(
a
.
css
(
"margin-left"
))];
a
.
find
(
".layui-layer-max"
).
addClass
(
"layui-layer-maxmin"
),
a
.
attr
({
area
:
b
})},
e
.
rescollbar
=
function
(
a
){
h
.
html
.
attr
(
"layer-full"
)
==
a
&&
(
h
.
html
[
0
].
style
.
removeProperty
?
h
.
html
[
0
].
style
.
removeProperty
(
"overflow"
):
h
.
html
[
0
].
style
.
removeAttribute
(
"overflow"
),
h
.
html
.
removeAttr
(
"layer-full"
))},
a
.
layer
=
f
,
f
.
getChildFrame
=
function
(
a
,
b
){
return
b
=
b
||
c
(
"."
+
h
[
4
]).
attr
(
"times"
),
c
(
"#"
+
h
[
0
]
+
b
).
find
(
"iframe"
).
contents
().
find
(
a
)},
f
.
getFrameIndex
=
function
(
a
){
return
c
(
"#"
+
a
).
parents
(
"."
+
h
[
4
]).
attr
(
"times"
)},
f
.
iframeAuto
=
function
(
a
){
if
(
a
){
var
b
=
f
.
getChildFrame
(
"html"
,
a
).
outerHeight
(),
d
=
c
(
"#"
+
h
[
0
]
+
a
),
e
=
d
.
find
(
h
[
1
]).
outerHeight
()
||
0
,
g
=
d
.
find
(
"."
+
h
[
6
]).
outerHeight
()
||
0
;
d
.
css
({
height
:
b
+
e
+
g
}),
d
.
find
(
"iframe"
).
css
({
height
:
b
})}},
f
.
iframeSrc
=
function
(
a
,
b
){
c
(
"#"
+
h
[
0
]
+
a
).
find
(
"iframe"
).
attr
(
"src"
,
b
)},
f
.
style
=
function
(
a
,
b
){
var
d
=
c
(
"#"
+
h
[
0
]
+
a
),
f
=
d
.
attr
(
"type"
),
g
=
d
.
find
(
h
[
1
]).
outerHeight
()
||
0
,
i
=
d
.
find
(
"."
+
h
[
6
]).
outerHeight
()
||
0
;(
f
===
e
.
type
[
1
]
||
f
===
e
.
type
[
2
])
&&
(
d
.
css
(
b
),
f
===
e
.
type
[
2
]
&&
d
.
find
(
"iframe"
).
css
({
height
:
parseFloat
(
b
.
height
)
-
g
-
i
}))},
f
.
min
=
function
(
a
,
b
){
var
d
=
c
(
"#"
+
h
[
0
]
+
a
),
g
=
d
.
find
(
h
[
1
]).
outerHeight
()
||
0
;
e
.
record
(
d
),
f
.
style
(
a
,{
width
:
180
,
height
:
g
,
overflow
:
"hidden"
}),
d
.
find
(
".layui-layer-min"
).
hide
(),
"page"
===
d
.
attr
(
"type"
)
&&
d
.
find
(
h
[
4
]).
hide
(),
e
.
rescollbar
(
a
)},
f
.
restore
=
function
(
a
){
var
b
=
c
(
"#"
+
h
[
0
]
+
a
),
d
=
b
.
attr
(
"area"
).
split
(
","
);
b
.
attr
(
"type"
);
f
.
style
(
a
,{
width
:
parseFloat
(
d
[
0
]),
height
:
parseFloat
(
d
[
1
]),
top
:
parseFloat
(
d
[
2
]),
left
:
parseFloat
(
d
[
3
]),
overflow
:
"visible"
}),
b
.
find
(
".layui-layer-max"
).
removeClass
(
"layui-layer-maxmin"
),
b
.
find
(
".layui-layer-min"
).
show
(),
"page"
===
b
.
attr
(
"type"
)
&&
b
.
find
(
h
[
4
]).
show
(),
e
.
rescollbar
(
a
)},
f
.
full
=
function
(
a
){
var
b
,
g
=
c
(
"#"
+
h
[
0
]
+
a
);
e
.
record
(
g
),
h
.
html
.
attr
(
"layer-full"
)
||
h
.
html
.
css
(
"overflow"
,
"hidden"
).
attr
(
"layer-full"
,
a
),
clearTimeout
(
b
),
b
=
setTimeout
(
function
(){
var
b
=
"fixed"
===
g
.
css
(
"position"
);
f
.
style
(
a
,{
top
:
b
?
0
:
d
.
scrollTop
(),
left
:
b
?
0
:
d
.
scrollLeft
(),
width
:
d
.
width
(),
height
:
d
.
height
()}),
g
.
find
(
".layui-layer-min"
).
hide
()},
100
)},
f
.
title
=
function
(
a
,
b
){
var
d
=
c
(
"#"
+
h
[
0
]
+
(
b
||
f
.
index
)).
find
(
h
[
1
]);
d
.
html
(
a
)},
f
.
close
=
function
(
a
){
var
b
=
c
(
"#"
+
h
[
0
]
+
a
),
d
=
b
.
attr
(
"type"
);
if
(
b
[
0
]){
if
(
d
===
e
.
type
[
1
]
&&
"object"
===
b
.
attr
(
"conType"
)){
b
.
children
(
":not(."
+
h
[
5
]
+
")"
).
remove
();
for
(
var
g
=
0
;
2
>
g
;
g
++
)
b
.
find
(
".layui-layer-wrap"
).
unwrap
().
hide
()}
else
{
if
(
d
===
e
.
type
[
2
])
try
{
var
i
=
c
(
"#"
+
h
[
4
]
+
a
)[
0
];
i
.
contentWindow
.
document
.
write
(
""
),
i
.
contentWindow
.
close
(),
b
.
find
(
"."
+
h
[
5
])[
0
].
removeChild
(
i
)}
catch
(
j
){}
b
[
0
].
innerHTML
=
""
,
b
.
remove
()}
c
(
"#layui-layer-moves, #layui-layer-shade"
+
a
).
remove
(),
f
.
ie6
&&
e
.
reselect
(),
e
.
rescollbar
(
a
),
c
(
document
).
off
(
"keydown"
,
e
.
enter
),
"function"
==
typeof
e
.
end
[
a
]
&&
e
.
end
[
a
](),
delete
e
.
end
[
a
]}},
f
.
closeAll
=
function
(
a
){
c
.
each
(
c
(
"."
+
h
[
0
]),
function
(){
var
b
=
c
(
this
),
d
=
a
?
b
.
attr
(
"type"
)
===
a
:
1
;
d
&&
f
.
close
(
b
.
attr
(
"times"
)),
d
=
null
})},
e
.
run
=
function
(){
c
=
jQuery
,
d
=
c
(
a
),
h
.
html
=
c
(
"html"
),
f
.
open
=
function
(
a
){
var
b
=
new
g
(
a
);
return
b
.
index
}},
"function"
==
typeof
define
?
define
(
function
(){
return
e
.
run
(),
f
}):
function
(){
e
.
run
(),
f
.
use
(
"skin/layer.css"
)}()}(
window
);
\ No newline at end of file
/*! layer-v2.4 弹层组件 License LGPL http://layer.layui.com/ By 贤心 */
;
!
function
(
a
,
b
){
"use strict"
;
var
c
,
d
,
e
=
{
getPath
:
function
(){
var
a
=
document
.
scripts
,
b
=
a
[
a
.
length
-
1
],
c
=
b
.
src
;
if
(
!
b
.
getAttribute
(
"merge"
))
return
c
.
substring
(
0
,
c
.
lastIndexOf
(
"/"
)
+
1
)}(),
enter
:
function
(
a
){
13
===
a
.
keyCode
&&
a
.
preventDefault
()},
config
:{},
end
:{},
btn
:[
"确定"
,
"取消"
],
type
:[
"dialog"
,
"page"
,
"iframe"
,
"loading"
,
"tips"
]},
f
=
{
v
:
"2.4"
,
ie6
:
!!
a
.
ActiveXObject
&&!
a
.
XMLHttpRequest
,
index
:
0
,
path
:
e
.
getPath
,
config
:
function
(
a
,
b
){
var
d
=
0
;
return
a
=
a
||
{},
f
.
cache
=
e
.
config
=
c
.
extend
(
e
.
config
,
a
),
f
.
path
=
e
.
config
.
path
||
f
.
path
,
"string"
==
typeof
a
.
extend
&&
(
a
.
extend
=
[
a
.
extend
]),
f
.
use
(
"skin/layer.css"
,
a
.
extend
&&
a
.
extend
.
length
>
0
?
function
g
(){
var
c
=
a
.
extend
;
f
.
use
(
c
[
c
[
d
]?
d
:
d
-
1
],
d
<
c
.
length
?
function
(){
return
++
d
,
g
}():
b
)}():
b
),
this
},
use
:
function
(
a
,
b
,
d
){
var
e
=
c
(
"head"
)[
0
],
a
=
a
.
replace
(
/
\s
/g
,
""
),
g
=
/
\.
css$/
.
test
(
a
),
h
=
document
.
createElement
(
g
?
"link"
:
"script"
),
i
=
"layui_layer_"
+
a
.
replace
(
/
\.
|
\/
/g
,
""
);
return
f
.
path
?(
g
&&
(
h
.
rel
=
"stylesheet"
),
h
[
g
?
"href"
:
"src"
]
=
/^http:
\/\/
/
.
test
(
a
)?
a
:
f
.
path
+
a
,
h
.
id
=
i
,
c
(
"#"
+
i
)[
0
]
||
e
.
appendChild
(
h
),
function
j
(){(
g
?
1989
===
parseInt
(
c
(
"#"
+
i
).
css
(
"width"
)):
f
[
d
||
i
])?
function
(){
b
&&
b
();
try
{
g
||
e
.
removeChild
(
h
)}
catch
(
a
){}}():
setTimeout
(
j
,
100
)}(),
this
):
void
0
},
ready
:
function
(
a
,
b
){
var
d
=
"function"
==
typeof
a
;
return
d
&&
(
b
=
a
),
f
.
config
(
c
.
extend
(
e
.
config
,
function
(){
return
d
?{}:{
path
:
a
}}()),
b
),
this
},
alert
:
function
(
a
,
b
,
d
){
var
e
=
"function"
==
typeof
b
;
return
e
&&
(
d
=
b
),
f
.
open
(
c
.
extend
({
content
:
a
,
yes
:
d
},
e
?{}:
b
))},
confirm
:
function
(
a
,
b
,
d
,
g
){
var
h
=
"function"
==
typeof
b
;
return
h
&&
(
g
=
d
,
d
=
b
),
f
.
open
(
c
.
extend
({
content
:
a
,
btn
:
e
.
btn
,
yes
:
d
,
btn2
:
g
},
h
?{}:
b
))},
msg
:
function
(
a
,
d
,
g
){
var
i
=
"function"
==
typeof
d
,
j
=
e
.
config
.
skin
,
k
=
(
j
?
j
+
" "
+
j
+
"-msg"
:
""
)
||
"layui-layer-msg"
,
l
=
h
.
anim
.
length
-
1
;
return
i
&&
(
g
=
d
),
f
.
open
(
c
.
extend
({
content
:
a
,
time
:
3
e3
,
shade
:
!
1
,
skin
:
k
,
title
:
!
1
,
closeBtn
:
!
1
,
btn
:
!
1
,
end
:
g
},
i
&&!
e
.
config
.
skin
?{
skin
:
k
+
" layui-layer-hui"
,
shift
:
l
}:
function
(){
return
d
=
d
||
{},(
-
1
===
d
.
icon
||
d
.
icon
===
b
&&!
e
.
config
.
skin
)
&&
(
d
.
skin
=
k
+
" "
+
(
d
.
skin
||
"layui-layer-hui"
)),
d
}()))},
load
:
function
(
a
,
b
){
return
f
.
open
(
c
.
extend
({
type
:
3
,
icon
:
a
||
0
,
shade
:.
01
},
b
))},
tips
:
function
(
a
,
b
,
d
){
return
f
.
open
(
c
.
extend
({
type
:
4
,
content
:[
a
,
b
],
closeBtn
:
!
1
,
time
:
3
e3
,
shade
:
!
1
,
fix
:
!
1
,
maxWidth
:
210
},
d
))}},
g
=
function
(
a
){
var
b
=
this
;
b
.
index
=++
f
.
index
,
b
.
config
=
c
.
extend
({},
b
.
config
,
e
.
config
,
a
),
b
.
creat
()};
g
.
pt
=
g
.
prototype
;
var
h
=
[
"layui-layer"
,
".layui-layer-title"
,
".layui-layer-main"
,
".layui-layer-dialog"
,
"layui-layer-iframe"
,
"layui-layer-content"
,
"layui-layer-btn"
,
"layui-layer-close"
];
h
.
anim
=
[
"layer-anim"
,
"layer-anim-01"
,
"layer-anim-02"
,
"layer-anim-03"
,
"layer-anim-04"
,
"layer-anim-05"
,
"layer-anim-06"
],
g
.
pt
.
config
=
{
type
:
0
,
shade
:.
3
,
fix
:
!
0
,
move
:
h
[
1
],
title
:
"信息"
,
offset
:
"auto"
,
area
:
"auto"
,
closeBtn
:
1
,
time
:
0
,
zIndex
:
19891014
,
maxWidth
:
360
,
shift
:
0
,
icon
:
-
1
,
scrollbar
:
!
0
,
tips
:
2
},
g
.
pt
.
vessel
=
function
(
a
,
b
){
var
c
=
this
,
d
=
c
.
index
,
f
=
c
.
config
,
g
=
f
.
zIndex
+
d
,
i
=
"object"
==
typeof
f
.
title
,
j
=
f
.
maxmin
&&
(
1
===
f
.
type
||
2
===
f
.
type
),
k
=
f
.
title
?
'<div class="layui-layer-title" style="'
+
(
i
?
f
.
title
[
1
]:
""
)
+
'">'
+
(
i
?
f
.
title
[
0
]:
f
.
title
)
+
"</div>"
:
""
;
return
f
.
zIndex
=
g
,
b
([
f
.
shade
?
'<div class="layui-layer-shade" id="layui-layer-shade'
+
d
+
'" times="'
+
d
+
'" style="'
+
(
"z-index:"
+
(
g
-
1
)
+
"; background-color:"
+
(
f
.
shade
[
1
]
||
"#000"
)
+
"; opacity:"
+
(
f
.
shade
[
0
]
||
f
.
shade
)
+
"; filter:alpha(opacity="
+
(
100
*
f
.
shade
[
0
]
||
100
*
f
.
shade
)
+
");"
)
+
'"></div>'
:
""
,
'<div class="'
+
h
[
0
]
+
(
" layui-layer-"
+
e
.
type
[
f
.
type
])
+
(
0
!=
f
.
type
&&
2
!=
f
.
type
||
f
.
shade
?
""
:
" layui-layer-border"
)
+
" "
+
(
f
.
skin
||
""
)
+
'" id="'
+
h
[
0
]
+
d
+
'" type="'
+
e
.
type
[
f
.
type
]
+
'" times="'
+
d
+
'" showtime="'
+
f
.
time
+
'" conType="'
+
(
a
?
"object"
:
"string"
)
+
'" style="z-index: '
+
g
+
"; width:"
+
f
.
area
[
0
]
+
";height:"
+
f
.
area
[
1
]
+
(
f
.
fix
?
""
:
";position:absolute;"
)
+
'">'
+
(
a
&&
2
!=
f
.
type
?
""
:
k
)
+
'<div id="'
+
(
f
.
id
||
""
)
+
'" class="layui-layer-content'
+
(
0
==
f
.
type
&&-
1
!==
f
.
icon
?
" layui-layer-padding"
:
""
)
+
(
3
==
f
.
type
?
" layui-layer-loading"
+
f
.
icon
:
""
)
+
'">'
+
(
0
==
f
.
type
&&-
1
!==
f
.
icon
?
'<i class="layui-layer-ico layui-layer-ico'
+
f
.
icon
+
'"></i>'
:
""
)
+
(
1
==
f
.
type
&&
a
?
""
:
f
.
content
||
""
)
+
'</div><span class="layui-layer-setwin">'
+
function
(){
var
a
=
j
?
'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>'
:
""
;
return
f
.
closeBtn
&&
(
a
+=
'<a class="layui-layer-ico '
+
h
[
7
]
+
" "
+
h
[
7
]
+
(
f
.
title
?
f
.
closeBtn
:
4
==
f
.
type
?
"1"
:
"2"
)
+
'" href="javascript:;"></a>'
),
a
}()
+
"</span>"
+
(
f
.
btn
?
function
(){
var
a
=
""
;
"string"
==
typeof
f
.
btn
&&
(
f
.
btn
=
[
f
.
btn
]);
for
(
var
b
=
0
,
c
=
f
.
btn
.
length
;
c
>
b
;
b
++
)
a
+=
'<a class="'
+
h
[
6
]
+
b
+
'">'
+
f
.
btn
[
b
]
+
"</a>"
;
return
'<div class="'
+
h
[
6
]
+
'">'
+
a
+
"</div>"
}():
""
)
+
"</div>"
],
k
),
c
},
g
.
pt
.
creat
=
function
(){
var
a
=
this
,
b
=
a
.
config
,
g
=
a
.
index
,
i
=
b
.
content
,
j
=
"object"
==
typeof
i
;
if
(
!
c
(
"#"
+
b
.
id
)[
0
]){
switch
(
"string"
==
typeof
b
.
area
&&
(
b
.
area
=
"auto"
===
b
.
area
?[
""
,
""
]:[
b
.
area
,
""
]),
b
.
type
){
case
0
:
b
.
btn
=
"btn"
in
b
?
b
.
btn
:
e
.
btn
[
0
],
f
.
closeAll
(
"dialog"
);
break
;
case
2
:
var
i
=
b
.
content
=
j
?
b
.
content
:[
b
.
content
||
"http://layer.layui.com"
,
"auto"
];
b
.
content
=
'<iframe scrolling="'
+
(
b
.
content
[
1
]
||
"auto"
)
+
'" allowtransparency="true" id="'
+
h
[
4
]
+
g
+
'" name="'
+
h
[
4
]
+
g
+
'" onload="this.className=
\'\'
;" class="layui-layer-load" frameborder="0" src="'
+
b
.
content
[
0
]
+
'"></iframe>'
;
break
;
case
3
:
b
.
title
=!
1
,
b
.
closeBtn
=!
1
,
-
1
===
b
.
icon
&&
0
===
b
.
icon
,
f
.
closeAll
(
"loading"
);
break
;
case
4
:
j
||
(
b
.
content
=
[
b
.
content
,
"body"
]),
b
.
follow
=
b
.
content
[
1
],
b
.
content
=
b
.
content
[
0
]
+
'<i class="layui-layer-TipsG"></i>'
,
b
.
title
=!
1
,
b
.
tips
=
"object"
==
typeof
b
.
tips
?
b
.
tips
:[
b
.
tips
,
!
0
],
b
.
tipsMore
||
f
.
closeAll
(
"tips"
)}
a
.
vessel
(
j
,
function
(
d
,
e
){
c
(
"body"
).
append
(
d
[
0
]),
j
?
function
(){
2
==
b
.
type
||
4
==
b
.
type
?
function
(){
c
(
"body"
).
append
(
d
[
1
])}():
function
(){
i
.
parents
(
"."
+
h
[
0
])[
0
]
||
(
i
.
show
().
addClass
(
"layui-layer-wrap"
).
wrap
(
d
[
1
]),
c
(
"#"
+
h
[
0
]
+
g
).
find
(
"."
+
h
[
5
]).
before
(
e
))}()}():
c
(
"body"
).
append
(
d
[
1
]),
a
.
layero
=
c
(
"#"
+
h
[
0
]
+
g
),
b
.
scrollbar
||
h
.
html
.
css
(
"overflow"
,
"hidden"
).
attr
(
"layer-full"
,
g
)}).
auto
(
g
),
2
==
b
.
type
&&
f
.
ie6
&&
a
.
layero
.
find
(
"iframe"
).
attr
(
"src"
,
i
[
0
]),
c
(
document
).
off
(
"keydown"
,
e
.
enter
).
on
(
"keydown"
,
e
.
enter
),
a
.
layero
.
on
(
"keydown"
,
function
(
a
){
c
(
document
).
off
(
"keydown"
,
e
.
enter
)}),
4
==
b
.
type
?
a
.
tips
():
a
.
offset
(),
b
.
fix
&&
d
.
on
(
"resize"
,
function
(){
a
.
offset
(),(
/^
\d
+%$/
.
test
(
b
.
area
[
0
])
||
/^
\d
+%$/
.
test
(
b
.
area
[
1
]))
&&
a
.
auto
(
g
),
4
==
b
.
type
&&
a
.
tips
()}),
b
.
time
<=
0
||
setTimeout
(
function
(){
f
.
close
(
a
.
index
)},
b
.
time
),
a
.
move
().
callback
(),
h
.
anim
[
b
.
shift
]
&&
a
.
layero
.
addClass
(
h
.
anim
[
b
.
shift
])}},
g
.
pt
.
auto
=
function
(
a
){
function
b
(
a
){
a
=
g
.
find
(
a
),
a
.
height
(
i
[
1
]
-
j
-
k
-
2
*
(
0
|
parseFloat
(
a
.
css
(
"padding"
))))}
var
e
=
this
,
f
=
e
.
config
,
g
=
c
(
"#"
+
h
[
0
]
+
a
);
""
===
f
.
area
[
0
]
&&
f
.
maxWidth
>
0
&&
(
/MSIE 7/
.
test
(
navigator
.
userAgent
)
&&
f
.
btn
&&
g
.
width
(
g
.
innerWidth
()),
g
.
outerWidth
()
>
f
.
maxWidth
&&
g
.
width
(
f
.
maxWidth
));
var
i
=
[
g
.
innerWidth
(),
g
.
innerHeight
()],
j
=
g
.
find
(
h
[
1
]).
outerHeight
()
||
0
,
k
=
g
.
find
(
"."
+
h
[
6
]).
outerHeight
()
||
0
;
switch
(
f
.
type
){
case
2
:
b
(
"iframe"
);
break
;
default
:
""
===
f
.
area
[
1
]?
f
.
fix
&&
i
[
1
]
>=
d
.
height
()
&&
(
i
[
1
]
=
d
.
height
(),
b
(
"."
+
h
[
5
])):
b
(
"."
+
h
[
5
])}
return
e
},
g
.
pt
.
offset
=
function
(){
var
a
=
this
,
b
=
a
.
config
,
c
=
a
.
layero
,
e
=
[
c
.
outerWidth
(),
c
.
outerHeight
()],
f
=
"object"
==
typeof
b
.
offset
;
a
.
offsetTop
=
(
d
.
height
()
-
e
[
1
])
/
2
,
a
.
offsetLeft
=
(
d
.
width
()
-
e
[
0
])
/
2
,
f
?(
a
.
offsetTop
=
b
.
offset
[
0
],
a
.
offsetLeft
=
b
.
offset
[
1
]
||
a
.
offsetLeft
):
"auto"
!==
b
.
offset
&&
(
a
.
offsetTop
=
b
.
offset
,
"rb"
===
b
.
offset
&&
(
a
.
offsetTop
=
d
.
height
()
-
e
[
1
],
a
.
offsetLeft
=
d
.
width
()
-
e
[
0
])),
b
.
fix
||
(
a
.
offsetTop
=
/%$/
.
test
(
a
.
offsetTop
)?
d
.
height
()
*
parseFloat
(
a
.
offsetTop
)
/
100
:
parseFloat
(
a
.
offsetTop
),
a
.
offsetLeft
=
/%$/
.
test
(
a
.
offsetLeft
)?
d
.
width
()
*
parseFloat
(
a
.
offsetLeft
)
/
100
:
parseFloat
(
a
.
offsetLeft
),
a
.
offsetTop
+=
d
.
scrollTop
(),
a
.
offsetLeft
+=
d
.
scrollLeft
()),
c
.
css
({
top
:
a
.
offsetTop
,
left
:
a
.
offsetLeft
})},
g
.
pt
.
tips
=
function
(){
var
a
=
this
,
b
=
a
.
config
,
e
=
a
.
layero
,
f
=
[
e
.
outerWidth
(),
e
.
outerHeight
()],
g
=
c
(
b
.
follow
);
g
[
0
]
||
(
g
=
c
(
"body"
));
var
i
=
{
width
:
g
.
outerWidth
(),
height
:
g
.
outerHeight
(),
top
:
g
.
offset
().
top
,
left
:
g
.
offset
().
left
},
j
=
e
.
find
(
".layui-layer-TipsG"
),
k
=
b
.
tips
[
0
];
b
.
tips
[
1
]
||
j
.
remove
(),
i
.
autoLeft
=
function
(){
i
.
left
+
f
[
0
]
-
d
.
width
()
>
0
?(
i
.
tipLeft
=
i
.
left
+
i
.
width
-
f
[
0
],
j
.
css
({
right
:
12
,
left
:
"auto"
})):
i
.
tipLeft
=
i
.
left
},
i
.
where
=
[
function
(){
i
.
autoLeft
(),
i
.
tipTop
=
i
.
top
-
f
[
1
]
-
10
,
j
.
removeClass
(
"layui-layer-TipsB"
).
addClass
(
"layui-layer-TipsT"
).
css
(
"border-right-color"
,
b
.
tips
[
1
])},
function
(){
i
.
tipLeft
=
i
.
left
+
i
.
width
+
10
,
i
.
tipTop
=
i
.
top
,
j
.
removeClass
(
"layui-layer-TipsL"
).
addClass
(
"layui-layer-TipsR"
).
css
(
"border-bottom-color"
,
b
.
tips
[
1
])},
function
(){
i
.
autoLeft
(),
i
.
tipTop
=
i
.
top
+
i
.
height
+
10
,
j
.
removeClass
(
"layui-layer-TipsT"
).
addClass
(
"layui-layer-TipsB"
).
css
(
"border-right-color"
,
b
.
tips
[
1
])},
function
(){
i
.
tipLeft
=
i
.
left
-
f
[
0
]
-
10
,
i
.
tipTop
=
i
.
top
,
j
.
removeClass
(
"layui-layer-TipsR"
).
addClass
(
"layui-layer-TipsL"
).
css
(
"border-bottom-color"
,
b
.
tips
[
1
])}],
i
.
where
[
k
-
1
](),
1
===
k
?
i
.
top
-
(
d
.
scrollTop
()
+
f
[
1
]
+
16
)
<
0
&&
i
.
where
[
2
]():
2
===
k
?
d
.
width
()
-
(
i
.
left
+
i
.
width
+
f
[
0
]
+
16
)
>
0
||
i
.
where
[
3
]():
3
===
k
?
i
.
top
-
d
.
scrollTop
()
+
i
.
height
+
f
[
1
]
+
16
-
d
.
height
()
>
0
&&
i
.
where
[
0
]():
4
===
k
&&
f
[
0
]
+
16
-
i
.
left
>
0
&&
i
.
where
[
1
](),
e
.
find
(
"."
+
h
[
5
]).
css
({
"background-color"
:
b
.
tips
[
1
],
"padding-right"
:
b
.
closeBtn
?
"30px"
:
""
}),
e
.
css
({
left
:
i
.
tipLeft
-
(
b
.
fix
?
d
.
scrollLeft
():
0
),
top
:
i
.
tipTop
-
(
b
.
fix
?
d
.
scrollTop
():
0
)})},
g
.
pt
.
move
=
function
(){
var
a
=
this
,
b
=
a
.
config
,
e
=
{
setY
:
0
,
moveLayer
:
function
(){
var
a
=
e
.
layero
,
b
=
parseInt
(
a
.
css
(
"margin-left"
)),
c
=
parseInt
(
e
.
move
.
css
(
"left"
));
0
===
b
||
(
c
-=
b
),
"fixed"
!==
a
.
css
(
"position"
)
&&
(
c
-=
a
.
parent
().
offset
().
left
,
e
.
setY
=
0
),
a
.
css
({
left
:
c
,
top
:
parseInt
(
e
.
move
.
css
(
"top"
))
-
e
.
setY
})}},
f
=
a
.
layero
.
find
(
b
.
move
);
return
b
.
move
&&
f
.
attr
(
"move"
,
"ok"
),
f
.
css
({
cursor
:
b
.
move
?
"move"
:
"auto"
}),
c
(
b
.
move
).
on
(
"mousedown"
,
function
(
a
){
if
(
a
.
preventDefault
(),
"ok"
===
c
(
this
).
attr
(
"move"
)){
e
.
ismove
=!
0
,
e
.
layero
=
c
(
this
).
parents
(
"."
+
h
[
0
]);
var
f
=
e
.
layero
.
offset
().
left
,
g
=
e
.
layero
.
offset
().
top
,
i
=
e
.
layero
.
outerWidth
()
-
6
,
j
=
e
.
layero
.
outerHeight
()
-
6
;
c
(
"#layui-layer-moves"
)[
0
]
||
c
(
"body"
).
append
(
'<div id="layui-layer-moves" class="layui-layer-moves" style="left:'
+
f
+
"px; top:"
+
g
+
"px; width:"
+
i
+
"px; height:"
+
j
+
'px; z-index:2147483584"></div>'
),
e
.
move
=
c
(
"#layui-layer-moves"
),
b
.
moveType
&&
e
.
move
.
css
({
visibility
:
"hidden"
}),
e
.
moveX
=
a
.
pageX
-
e
.
move
.
position
().
left
,
e
.
moveY
=
a
.
pageY
-
e
.
move
.
position
().
top
,
"fixed"
!==
e
.
layero
.
css
(
"position"
)
||
(
e
.
setY
=
d
.
scrollTop
())}}),
c
(
document
).
mousemove
(
function
(
a
){
if
(
e
.
ismove
){
var
c
=
a
.
pageX
-
e
.
moveX
,
f
=
a
.
pageY
-
e
.
moveY
;
if
(
a
.
preventDefault
(),
!
b
.
moveOut
){
e
.
setY
=
d
.
scrollTop
();
var
g
=
d
.
width
()
-
e
.
move
.
outerWidth
(),
h
=
e
.
setY
;
0
>
c
&&
(
c
=
0
),
c
>
g
&&
(
c
=
g
),
h
>
f
&&
(
f
=
h
),
f
>
d
.
height
()
-
e
.
move
.
outerHeight
()
+
e
.
setY
&&
(
f
=
d
.
height
()
-
e
.
move
.
outerHeight
()
+
e
.
setY
)}
e
.
move
.
css
({
left
:
c
,
top
:
f
}),
b
.
moveType
&&
e
.
moveLayer
(),
c
=
f
=
g
=
h
=
null
}}).
mouseup
(
function
(){
try
{
e
.
ismove
&&
(
e
.
moveLayer
(),
e
.
move
.
remove
(),
b
.
moveEnd
&&
b
.
moveEnd
()),
e
.
ismove
=!
1
}
catch
(
a
){
e
.
ismove
=!
1
}}),
a
},
g
.
pt
.
callback
=
function
(){
function
a
(){
var
a
=
g
.
cancel
&&
g
.
cancel
(
b
.
index
,
d
);
a
===!
1
||
f
.
close
(
b
.
index
)}
var
b
=
this
,
d
=
b
.
layero
,
g
=
b
.
config
;
b
.
openLayer
(),
g
.
success
&&
(
2
==
g
.
type
?
d
.
find
(
"iframe"
).
on
(
"load"
,
function
(){
g
.
success
(
d
,
b
.
index
)}):
g
.
success
(
d
,
b
.
index
)),
f
.
ie6
&&
b
.
IE6
(
d
),
d
.
find
(
"."
+
h
[
6
]).
children
(
"a"
).
on
(
"click"
,
function
(){
var
a
=
c
(
this
).
index
();
if
(
0
===
a
)
g
.
yes
?
g
.
yes
(
b
.
index
,
d
):
g
.
btn1
?
g
.
btn1
(
b
.
index
,
d
):
f
.
close
(
b
.
index
);
else
{
var
e
=
g
[
"btn"
+
(
a
+
1
)]
&&
g
[
"btn"
+
(
a
+
1
)](
b
.
index
,
d
);
e
===!
1
||
f
.
close
(
b
.
index
)}}),
d
.
find
(
"."
+
h
[
7
]).
on
(
"click"
,
a
),
g
.
shadeClose
&&
c
(
"#layui-layer-shade"
+
b
.
index
).
on
(
"click"
,
function
(){
f
.
close
(
b
.
index
)}),
d
.
find
(
".layui-layer-min"
).
on
(
"click"
,
function
(){
var
a
=
g
.
min
&&
g
.
min
(
d
);
a
===!
1
||
f
.
min
(
b
.
index
,
g
)}),
d
.
find
(
".layui-layer-max"
).
on
(
"click"
,
function
(){
c
(
this
).
hasClass
(
"layui-layer-maxmin"
)?(
f
.
restore
(
b
.
index
),
g
.
restore
&&
g
.
restore
(
d
)):(
f
.
full
(
b
.
index
,
g
),
setTimeout
(
function
(){
g
.
full
&&
g
.
full
(
d
)},
100
))}),
g
.
end
&&
(
e
.
end
[
b
.
index
]
=
g
.
end
)},
e
.
reselect
=
function
(){
c
.
each
(
c
(
"select"
),
function
(
a
,
b
){
var
d
=
c
(
this
);
d
.
parents
(
"."
+
h
[
0
])[
0
]
||
1
==
d
.
attr
(
"layer"
)
&&
c
(
"."
+
h
[
0
]).
length
<
1
&&
d
.
removeAttr
(
"layer"
).
show
(),
d
=
null
})},
g
.
pt
.
IE6
=
function
(
a
){
function
b
(){
a
.
css
({
top
:
f
+
(
e
.
config
.
fix
?
d
.
scrollTop
():
0
)})}
var
e
=
this
,
f
=
a
.
offset
().
top
;
b
(),
d
.
scroll
(
b
),
c
(
"select"
).
each
(
function
(
a
,
b
){
var
d
=
c
(
this
);
d
.
parents
(
"."
+
h
[
0
])[
0
]
||
"none"
===
d
.
css
(
"display"
)
||
d
.
attr
({
layer
:
"1"
}).
hide
(),
d
=
null
})},
g
.
pt
.
openLayer
=
function
(){
var
a
=
this
;
f
.
zIndex
=
a
.
config
.
zIndex
,
f
.
setTop
=
function
(
a
){
var
b
=
function
(){
f
.
zIndex
++
,
a
.
css
(
"z-index"
,
f
.
zIndex
+
1
)};
return
f
.
zIndex
=
parseInt
(
a
[
0
].
style
.
zIndex
),
a
.
on
(
"mousedown"
,
b
),
f
.
zIndex
}},
e
.
record
=
function
(
a
){
var
b
=
[
a
.
width
(),
a
.
height
(),
a
.
position
().
top
,
a
.
position
().
left
+
parseFloat
(
a
.
css
(
"margin-left"
))];
a
.
find
(
".layui-layer-max"
).
addClass
(
"layui-layer-maxmin"
),
a
.
attr
({
area
:
b
})},
e
.
rescollbar
=
function
(
a
){
h
.
html
.
attr
(
"layer-full"
)
==
a
&&
(
h
.
html
[
0
].
style
.
removeProperty
?
h
.
html
[
0
].
style
.
removeProperty
(
"overflow"
):
h
.
html
[
0
].
style
.
removeAttribute
(
"overflow"
),
h
.
html
.
removeAttr
(
"layer-full"
))},
a
.
layer
=
f
,
f
.
getChildFrame
=
function
(
a
,
b
){
return
b
=
b
||
c
(
"."
+
h
[
4
]).
attr
(
"times"
),
c
(
"#"
+
h
[
0
]
+
b
).
find
(
"iframe"
).
contents
().
find
(
a
)},
f
.
getFrameIndex
=
function
(
a
){
return
c
(
"#"
+
a
).
parents
(
"."
+
h
[
4
]).
attr
(
"times"
)},
f
.
iframeAuto
=
function
(
a
){
if
(
a
){
var
b
=
f
.
getChildFrame
(
"html"
,
a
).
outerHeight
(),
d
=
c
(
"#"
+
h
[
0
]
+
a
),
e
=
d
.
find
(
h
[
1
]).
outerHeight
()
||
0
,
g
=
d
.
find
(
"."
+
h
[
6
]).
outerHeight
()
||
0
;
d
.
css
({
height
:
b
+
e
+
g
}),
d
.
find
(
"iframe"
).
css
({
height
:
b
})}},
f
.
iframeSrc
=
function
(
a
,
b
){
c
(
"#"
+
h
[
0
]
+
a
).
find
(
"iframe"
).
attr
(
"src"
,
b
)},
f
.
style
=
function
(
a
,
b
){
var
d
=
c
(
"#"
+
h
[
0
]
+
a
),
f
=
d
.
attr
(
"type"
),
g
=
d
.
find
(
h
[
1
]).
outerHeight
()
||
0
,
i
=
d
.
find
(
"."
+
h
[
6
]).
outerHeight
()
||
0
;(
f
===
e
.
type
[
1
]
||
f
===
e
.
type
[
2
])
&&
(
d
.
css
(
b
),
f
===
e
.
type
[
2
]
&&
d
.
find
(
"iframe"
).
css
({
height
:
parseFloat
(
b
.
height
)
-
g
-
i
}))},
f
.
min
=
function
(
a
,
b
){
var
d
=
c
(
"#"
+
h
[
0
]
+
a
),
g
=
d
.
find
(
h
[
1
]).
outerHeight
()
||
0
;
e
.
record
(
d
),
f
.
style
(
a
,{
width
:
180
,
height
:
g
,
overflow
:
"hidden"
}),
d
.
find
(
".layui-layer-min"
).
hide
(),
"page"
===
d
.
attr
(
"type"
)
&&
d
.
find
(
h
[
4
]).
hide
(),
e
.
rescollbar
(
a
)},
f
.
restore
=
function
(
a
){
var
b
=
c
(
"#"
+
h
[
0
]
+
a
),
d
=
b
.
attr
(
"area"
).
split
(
","
);
b
.
attr
(
"type"
);
f
.
style
(
a
,{
width
:
parseFloat
(
d
[
0
]),
height
:
parseFloat
(
d
[
1
]),
top
:
parseFloat
(
d
[
2
]),
left
:
parseFloat
(
d
[
3
]),
overflow
:
"visible"
}),
b
.
find
(
".layui-layer-max"
).
removeClass
(
"layui-layer-maxmin"
),
b
.
find
(
".layui-layer-min"
).
show
(),
"page"
===
b
.
attr
(
"type"
)
&&
b
.
find
(
h
[
4
]).
show
(),
e
.
rescollbar
(
a
)},
f
.
full
=
function
(
a
){
var
b
,
g
=
c
(
"#"
+
h
[
0
]
+
a
);
e
.
record
(
g
),
h
.
html
.
attr
(
"layer-full"
)
||
h
.
html
.
css
(
"overflow"
,
"hidden"
).
attr
(
"layer-full"
,
a
),
clearTimeout
(
b
),
b
=
setTimeout
(
function
(){
var
b
=
"fixed"
===
g
.
css
(
"position"
);
f
.
style
(
a
,{
top
:
b
?
0
:
d
.
scrollTop
(),
left
:
b
?
0
:
d
.
scrollLeft
(),
width
:
d
.
width
(),
height
:
d
.
height
()}),
g
.
find
(
".layui-layer-min"
).
hide
()},
100
)},
f
.
title
=
function
(
a
,
b
){
var
d
=
c
(
"#"
+
h
[
0
]
+
(
b
||
f
.
index
)).
find
(
h
[
1
]);
d
.
html
(
a
)},
f
.
close
=
function
(
a
){
var
b
=
c
(
"#"
+
h
[
0
]
+
a
),
d
=
b
.
attr
(
"type"
);
if
(
b
[
0
]){
if
(
d
===
e
.
type
[
1
]
&&
"object"
===
b
.
attr
(
"conType"
)){
b
.
children
(
":not(."
+
h
[
5
]
+
")"
).
remove
();
for
(
var
g
=
0
;
2
>
g
;
g
++
)
b
.
find
(
".layui-layer-wrap"
).
unwrap
().
hide
()}
else
{
if
(
d
===
e
.
type
[
2
])
try
{
var
i
=
c
(
"#"
+
h
[
4
]
+
a
)[
0
];
i
.
contentWindow
.
document
.
write
(
""
),
i
.
contentWindow
.
close
(),
b
.
find
(
"."
+
h
[
5
])[
0
].
removeChild
(
i
)}
catch
(
j
){}
b
[
0
].
innerHTML
=
""
,
b
.
remove
()}
c
(
"#layui-layer-moves, #layui-layer-shade"
+
a
).
remove
(),
f
.
ie6
&&
e
.
reselect
(),
e
.
rescollbar
(
a
),
c
(
document
).
off
(
"keydown"
,
e
.
enter
),
"function"
==
typeof
e
.
end
[
a
]
&&
e
.
end
[
a
](),
delete
e
.
end
[
a
]}},
f
.
closeAll
=
function
(
a
){
c
.
each
(
c
(
"."
+
h
[
0
]),
function
(){
var
b
=
c
(
this
),
d
=
a
?
b
.
attr
(
"type"
)
===
a
:
1
;
d
&&
f
.
close
(
b
.
attr
(
"times"
)),
d
=
null
})};
var
i
=
f
.
cache
||
{},
j
=
function
(
a
){
return
i
.
skin
?
" "
+
i
.
skin
+
" "
+
i
.
skin
+
"-"
+
a
:
""
};
f
.
prompt
=
function
(
a
,
b
){
a
=
a
||
{},
"function"
==
typeof
a
&&
(
b
=
a
);
var
d
,
e
=
2
==
a
.
formType
?
'<textarea class="layui-layer-input">'
+
(
a
.
value
||
""
)
+
"</textarea>"
:
function
(){
return
'<input type="'
+
(
1
==
a
.
formType
?
"password"
:
"text"
)
+
'" class="layui-layer-input" value="'
+
(
a
.
value
||
""
)
+
'">'
}();
return
f
.
open
(
c
.
extend
({
btn
:[
"确定"
,
"取消"
],
content
:
e
,
skin
:
"layui-layer-prompt"
+
j
(
"prompt"
),
success
:
function
(
a
){
d
=
a
.
find
(
".layui-layer-input"
),
d
.
focus
()},
yes
:
function
(
c
){
var
e
=
d
.
val
();
""
===
e
?
d
.
focus
():
e
.
length
>
(
a
.
maxlength
||
500
)?
f
.
tips
(
"最多输入"
+
(
a
.
maxlength
||
500
)
+
"个字数"
,
d
,{
tips
:
1
}):
b
&&
b
(
e
,
c
,
d
)}},
a
))},
f
.
tab
=
function
(
a
){
a
=
a
||
{};
var
b
=
a
.
tab
||
{};
return
f
.
open
(
c
.
extend
({
type
:
1
,
skin
:
"layui-layer-tab"
+
j
(
"tab"
),
title
:
function
(){
var
a
=
b
.
length
,
c
=
1
,
d
=
""
;
if
(
a
>
0
)
for
(
d
=
'<span class="layui-layer-tabnow">'
+
b
[
0
].
title
+
"</span>"
;
a
>
c
;
c
++
)
d
+=
"<span>"
+
b
[
c
].
title
+
"</span>"
;
return
d
}(),
content
:
'<ul class="layui-layer-tabmain">'
+
function
(){
var
a
=
b
.
length
,
c
=
1
,
d
=
""
;
if
(
a
>
0
)
for
(
d
=
'<li class="layui-layer-tabli xubox_tab_layer">'
+
(
b
[
0
].
content
||
"no content"
)
+
"</li>"
;
a
>
c
;
c
++
)
d
+=
'<li class="layui-layer-tabli">'
+
(
b
[
c
].
content
||
"no content"
)
+
"</li>"
;
return
d
}()
+
"</ul>"
,
success
:
function
(
b
){
var
d
=
b
.
find
(
".layui-layer-title"
).
children
(),
e
=
b
.
find
(
".layui-layer-tabmain"
).
children
();
d
.
on
(
"mousedown"
,
function
(
b
){
b
.
stopPropagation
?
b
.
stopPropagation
():
b
.
cancelBubble
=!
0
;
var
d
=
c
(
this
),
f
=
d
.
index
();
d
.
addClass
(
"layui-layer-tabnow"
).
siblings
().
removeClass
(
"layui-layer-tabnow"
),
e
.
eq
(
f
).
show
().
siblings
().
hide
(),
"function"
==
typeof
a
.
change
&&
a
.
change
(
f
)})}},
a
))},
f
.
photos
=
function
(
b
,
d
,
e
){
function
g
(
a
,
b
,
c
){
var
d
=
new
Image
;
return
d
.
src
=
a
,
d
.
complete
?
b
(
d
):(
d
.
onload
=
function
(){
d
.
onload
=
null
,
b
(
d
)},
void
(
d
.
onerror
=
function
(
a
){
d
.
onerror
=
null
,
c
(
a
)}))}
var
h
=
{};
if
(
b
=
b
||
{},
b
.
photos
){
var
i
=
b
.
photos
.
constructor
===
Object
,
k
=
i
?
b
.
photos
:{},
l
=
k
.
data
||
[],
m
=
k
.
start
||
0
;
if
(
h
.
imgIndex
=
(
0
|
m
)
+
1
,
b
.
img
=
b
.
img
||
"img"
,
i
){
if
(
0
===
l
.
length
)
return
f
.
msg
(
"没有图片"
)}
else
{
var
n
=
c
(
b
.
photos
),
o
=
function
(){
l
=
[],
n
.
find
(
b
.
img
).
each
(
function
(
a
){
var
b
=
c
(
this
);
b
.
attr
(
"layer-index"
,
a
),
l
.
push
({
alt
:
b
.
attr
(
"alt"
),
pid
:
b
.
attr
(
"layer-pid"
),
src
:
b
.
attr
(
"layer-src"
)
||
b
.
attr
(
"src"
),
thumb
:
b
.
attr
(
"src"
)})})};
if
(
o
(),
0
===
l
.
length
)
return
;
if
(
d
||
n
.
on
(
"click"
,
b
.
img
,
function
(){
var
a
=
c
(
this
),
d
=
a
.
attr
(
"layer-index"
);
f
.
photos
(
c
.
extend
(
b
,{
photos
:{
start
:
d
,
data
:
l
,
tab
:
b
.
tab
},
full
:
b
.
full
}),
!
0
),
o
()}),
!
d
)
return
}
h
.
imgprev
=
function
(
a
){
h
.
imgIndex
--
,
h
.
imgIndex
<
1
&&
(
h
.
imgIndex
=
l
.
length
),
h
.
tabimg
(
a
)},
h
.
imgnext
=
function
(
a
,
b
){
h
.
imgIndex
++
,
h
.
imgIndex
>
l
.
length
&&
(
h
.
imgIndex
=
1
,
b
)
||
h
.
tabimg
(
a
)},
h
.
keyup
=
function
(
a
){
if
(
!
h
.
end
){
var
b
=
a
.
keyCode
;
a
.
preventDefault
(),
37
===
b
?
h
.
imgprev
(
!
0
):
39
===
b
?
h
.
imgnext
(
!
0
):
27
===
b
&&
f
.
close
(
h
.
index
)}},
h
.
tabimg
=
function
(
a
){
l
.
length
<=
1
||
(
k
.
start
=
h
.
imgIndex
-
1
,
f
.
close
(
h
.
index
),
f
.
photos
(
b
,
!
0
,
a
))},
h
.
event
=
function
(){
h
.
bigimg
.
hover
(
function
(){
h
.
imgsee
.
show
()},
function
(){
h
.
imgsee
.
hide
()}),
h
.
bigimg
.
find
(
".layui-layer-imgprev"
).
on
(
"click"
,
function
(
a
){
a
.
preventDefault
(),
h
.
imgprev
()}),
h
.
bigimg
.
find
(
".layui-layer-imgnext"
).
on
(
"click"
,
function
(
a
){
a
.
preventDefault
(),
h
.
imgnext
()}),
c
(
document
).
on
(
"keyup"
,
h
.
keyup
)},
h
.
loadi
=
f
.
load
(
1
,{
shade
:
"shade"
in
b
?
!
1
:.
9
,
scrollbar
:
!
1
}),
g
(
l
[
m
].
src
,
function
(
d
){
f
.
close
(
h
.
loadi
),
h
.
index
=
f
.
open
(
c
.
extend
({
type
:
1
,
area
:
function
(){
var
e
=
[
d
.
width
,
d
.
height
],
f
=
[
c
(
a
).
width
()
-
50
,
c
(
a
).
height
()
-
50
];
return
!
b
.
full
&&
e
[
0
]
>
f
[
0
]
&&
(
e
[
0
]
=
f
[
0
],
e
[
1
]
=
e
[
0
]
*
d
.
height
/
d
.
width
),[
e
[
0
]
+
"px"
,
e
[
1
]
+
"px"
]}(),
title
:
!
1
,
shade
:.
9
,
shadeClose
:
!
0
,
closeBtn
:
!
1
,
move
:
".layui-layer-phimg img"
,
moveType
:
1
,
scrollbar
:
!
1
,
moveOut
:
!
0
,
shift
:
5
*
Math
.
random
()
|
0
,
skin
:
"layui-layer-photos"
+
j
(
"photos"
),
content
:
'<div class="layui-layer-phimg"><img src="'
+
l
[
m
].
src
+
'" alt="'
+
(
l
[
m
].
alt
||
""
)
+
'" layer-pid="'
+
l
[
m
].
pid
+
'"><div class="layui-layer-imgsee">'
+
(
l
.
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:'
+
(
e
?
"block"
:
""
)
+
'"><span class="layui-layer-imgtit"><a href="javascript:;">'
+
(
l
[
m
].
alt
||
""
)
+
"</a><em>"
+
h
.
imgIndex
+
"/"
+
l
.
length
+
"</em></span></div></div></div>"
,
success
:
function
(
a
,
c
){
h
.
bigimg
=
a
.
find
(
".layui-layer-phimg"
),
h
.
imgsee
=
a
.
find
(
".layui-layer-imguide,.layui-layer-imgbar"
),
h
.
event
(
a
),
b
.
tab
&&
b
.
tab
(
l
[
m
],
a
)},
end
:
function
(){
h
.
end
=!
0
,
c
(
document
).
off
(
"keyup"
,
h
.
keyup
)}},
b
))},
function
(){
f
.
close
(
h
.
loadi
),
f
.
msg
(
"当前图片地址异常<br>是否继续查看下一张?"
,{
time
:
3
e4
,
btn
:[
"下一张"
,
"不看了"
],
yes
:
function
(){
l
.
length
>
1
&&
h
.
imgnext
(
!
0
,
!
0
)}})})}},
e
.
run
=
function
(){
c
=
jQuery
,
d
=
c
(
a
),
h
.
html
=
c
(
"html"
),
f
.
open
=
function
(
a
){
var
b
=
new
g
(
a
);
return
b
.
index
}},
"function"
==
typeof
define
?
define
(
function
(){
return
e
.
run
(),
f
}):
function
(){
e
.
run
(),
f
.
use
(
"skin/layer.css"
)}()}(
window
);
\ No newline at end of file
apps/static/js/plugins/layer/skin/layer.css
View file @
c0de35a6
...
...
@@ -4,4 +4,4 @@
@Author: 贤心
@Blog: sentsin.com
*/
*
html
{
background-image
:
url(about:blank)
;
background-attachment
:
fixed
}
html
#layui_layer_skinlayercss
{
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
{
top
:
150px
;
left
:
50%
;
margin
:
0
;
padding
:
0
;
background-color
:
#fff
;
-webkit-background-clip
:
content
;
box-shadow
:
1px
1px
50px
rgba
(
0
,
0
,
0
,
.3
);
border-radius
:
2px
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
-webkit-animation-duration
:
.3s
;
animation-duration
:
.3s
}
.layui-layer-close
{
position
:
absolute
}
.layui-layer-content
{
position
:
relative
}
.layui-layer-border
{
border
:
1px
solid
#B2B2B2
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
.3
);
box-shadow
:
1px
1px
5px
rgba
(
0
,
0
,
0
,
.2
)}
.layui-layer-moves
{
position
:
absolute
;
border
:
3px
solid
#666
;
border
:
3px
solid
rgba
(
0
,
0
,
0
,
.5
);
cursor
:
move
;
background-color
:
#fff
;
background-color
:
rgba
(
255
,
255
,
255
,
.3
);
filter
:
alpha
(
opacity
=
50
)}
.layui-layer-load
{
background
:
url(default/loading-0.gif)
center
center
no-repeat
#fff
}
.layui-layer-ico
{
background
:
url(default/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
}
@-webkit-keyframes
bounceIn
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
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
)}}
.layui-anim
{
-webkit-animation-name
:
bounceIn
;
animation-name
:
bounceIn
}
@-webkit-keyframes
bounceOut
{
100
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.7
);
transform
:
scale
(
.7
)}
30
%
{
-webkit-transform
:
scale
(
1.03
);
transform
:
scale
(
1.03
)}
0
%
{
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
bounceOut
{
100
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.7
);
-ms-transform
:
scale
(
.7
);
transform
:
scale
(
.7
)}
30
%
{
-webkit-transform
:
scale
(
1.03
);
-ms-transform
:
scale
(
1.03
);
transform
:
scale
(
1.03
)}
0
%
{
-webkit-transform
:
scale
(
1
);
-ms-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
.layui-anim-close
{
-webkit-animation-name
:
bounceOut
;
animation-name
:
bounceOut
;
-webkit-animation-duration
:
.2s
;
animation-duration
:
.2s
}
@-webkit-keyframes
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
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
}}
.layui-anim-01
{
-webkit-animation-name
:
zoomInDown
;
animation-name
:
zoomInDown
}
@-webkit-keyframes
fadeInUpBig
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
2000px
);
transform
:
translateY
(
2000px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
@keyframes
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
)}}
.layui-anim-02
{
-webkit-animation-name
:
fadeInUpBig
;
animation-name
:
fadeInUpBig
}
@-webkit-keyframes
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
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
}}
.layui-anim-03
{
-webkit-animation-name
:
zoomInLeft
;
animation-name
:
zoomInLeft
}
@-webkit-keyframes
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
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
)}}
.layui-anim-04
{
-webkit-animation-name
:
rollIn
;
animation-name
:
rollIn
}
@keyframes
fadeIn
{
0
%
{
opacity
:
0
}
100
%
{
opacity
:
1
}}
.layui-anim-05
{
-webkit-animation-name
:
fadeIn
;
animation-name
:
fadeIn
}
@-webkit-keyframes
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
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
)}}
.layui-anim-06
{
-webkit-animation-name
:
shake
;
animation-name
:
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
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
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
:
0
-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
10px
12px
;
pointer-events
:
auto
}
.layui-layer-btn
a
{
height
:
28px
;
line-height
:
28px
;
margin
:
0
6px
;
padding
:
0
15px
;
border
:
1px
solid
#dedede
;
background-color
:
#f1f1f1
;
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
:
.7
}
.layui-layer-btn
.layui-layer-btn0
{
border-color
:
#4898d5
;
background-color
:
#2e8ded
;
color
:
#fff
}
.layui-layer-dialog
{
min-width
:
260px
}
.layui-layer-dialog
.layui-layer-content
{
position
:
relative
;
padding
:
20px
;
line-height
:
24px
;
word-break
:
break-all
;
font-size
:
14px
;
overflow
:
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
.layui-layer-content
{
overflow
:
hidden
}
.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(default/loading-0.gif)
no-repeat
}
.layui-layer-loading
.layui-layer-loading1
{
width
:
37px
;
height
:
37px
;
background
:
url(default/loading-1.gif)
no-repeat
}
.layui-layer-ico16
,
.layui-layer-loading
.layui-layer-loading2
{
width
:
32px
;
height
:
32px
;
background
:
url(default/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
:
5px
10px
;
font-size
:
12px
;
_float
:
left
;
border-radius
:
3px
;
box-shadow
:
1px
1px
3px
rgba
(
0
,
0
,
0
,
.3
);
background-color
:
#F90
;
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
:
#F90
}
.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
:
1px
;
border-bottom-style
:
solid
;
border-bottom-color
:
#F90
}
.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-lan
.layui-layer-btn
{
padding
:
10px
;
text-align
:
right
;
border-top
:
1px
solid
#E9E7E7
}
.layui-layer-lan
.layui-layer-btn
a
{
background
:
#BBB5B5
;
border
:
none
}
.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
}
.layui-layer-molv
.layui-layer-btn
.layui-layer-btn1
{
background
:
#92B8B1
}
\ No newline at end of file
*/
.layui-layer-imgbar
,
.layui-layer-imgtit
a
,
.layui-layer-tab
.layui-layer-title
span
,
.layui-layer-title
{
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
*
html
{
background-image
:
url(about:blank)
;
background-attachment
:
fixed
}
html
#layui_layer_skinlayercss
{
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
;
box-shadow
:
1px
1px
50px
rgba
(
0
,
0
,
0
,
.3
);
border-radius
:
2px
;
-webkit-animation-fill-mode
:
both
;
animation-fill-mode
:
both
;
-webkit-animation-duration
:
.3s
;
animation-duration
:
.3s
}
.layui-layer-close
{
position
:
absolute
}
.layui-layer-content
{
position
:
relative
}
.layui-layer-border
{
border
:
1px
solid
#B2B2B2
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
.3
);
box-shadow
:
1px
1px
5px
rgba
(
0
,
0
,
0
,
.2
)}
.layui-layer-moves
{
position
:
absolute
;
border
:
3px
solid
#666
;
border
:
3px
solid
rgba
(
0
,
0
,
0
,
.5
);
cursor
:
move
;
background-color
:
#fff
;
background-color
:
rgba
(
255
,
255
,
255
,
.3
);
filter
:
alpha
(
opacity
=
50
)}
.layui-layer-load
{
background
:
url(default/loading-0.gif)
center
center
no-repeat
#fff
}
.layui-layer-ico
{
background
:
url(default/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
}
@-webkit-keyframes
bounceIn
{
0
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.5
);
transform
:
scale
(
.5
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
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
{
-webkit-animation-name
:
bounceIn
;
animation-name
:
bounceIn
}
@-webkit-keyframes
bounceOut
{
100
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.7
);
transform
:
scale
(
.7
)}
30
%
{
-webkit-transform
:
scale
(
1.03
);
transform
:
scale
(
1.03
)}
0
%
{
-webkit-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
@keyframes
bounceOut
{
100
%
{
opacity
:
0
;
-webkit-transform
:
scale
(
.7
);
-ms-transform
:
scale
(
.7
);
transform
:
scale
(
.7
)}
30
%
{
-webkit-transform
:
scale
(
1.03
);
-ms-transform
:
scale
(
1.03
);
transform
:
scale
(
1.03
)}
0
%
{
-webkit-transform
:
scale
(
1
);
-ms-transform
:
scale
(
1
);
transform
:
scale
(
1
)}}
.layer-anim-close
{
-webkit-animation-name
:
bounceOut
;
animation-name
:
bounceOut
;
-webkit-animation-duration
:
.2s
;
animation-duration
:
.2s
}
@-webkit-keyframes
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
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
:
zoomInDown
;
animation-name
:
zoomInDown
}
@-webkit-keyframes
fadeInUpBig
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translateY
(
2000px
);
transform
:
translateY
(
2000px
)}
100
%
{
opacity
:
1
;
-webkit-transform
:
translateY
(
0
);
transform
:
translateY
(
0
)}}
@keyframes
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
:
fadeInUpBig
;
animation-name
:
fadeInUpBig
}
@-webkit-keyframes
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
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
:
zoomInLeft
;
animation-name
:
zoomInLeft
}
@-webkit-keyframes
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
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
:
rollIn
;
animation-name
:
rollIn
}
@keyframes
fadeIn
{
0
%
{
opacity
:
0
}
100
%
{
opacity
:
1
}}
.layer-anim-05
{
-webkit-animation-name
:
fadeIn
;
animation-name
:
fadeIn
}
@-webkit-keyframes
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
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
:
shake
;
animation-name
:
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
:
0
-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
10px
12px
;
pointer-events
:
auto
}
.layui-layer-btn
a
{
height
:
28px
;
line-height
:
28px
;
margin
:
0
6px
;
padding
:
0
15px
;
border
:
1px
solid
#dedede
;
background-color
:
#f1f1f1
;
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
:
.7
}
.layui-layer-btn
.layui-layer-btn0
{
border-color
:
#4898d5
;
background-color
:
#2e8ded
;
color
:
#fff
}
.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
.layui-layer-content
{
overflow
:
hidden
}
.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(default/loading-0.gif)
no-repeat
}
.layui-layer-loading
.layui-layer-loading1
{
width
:
37px
;
height
:
37px
;
background
:
url(default/loading-1.gif)
no-repeat
}
.layui-layer-ico16
,
.layui-layer-loading
.layui-layer-loading2
{
width
:
32px
;
height
:
32px
;
background
:
url(default/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
:
5px
10px
;
font-size
:
12px
;
_float
:
left
;
border-radius
:
3px
;
box-shadow
:
1px
1px
3px
rgba
(
0
,
0
,
0
,
.3
);
background-color
:
#F90
;
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
:
#F90
}
.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
:
1px
;
border-bottom-style
:
solid
;
border-bottom-color
:
#F90
}
.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
:
10px
;
text-align
:
right
;
border-top
:
1px
solid
#E9E7E7
}
.layui-layer-lan
.layui-layer-btn
a
{
background
:
#BBB5B5
;
border
:
none
}
.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
}
.layui-layer-molv
.layui-layer-btn
.layui-layer-btn1
{
background
:
#92B8B1
}
.layui-layer-iconext
{
background
:
url(default/icon-ext.png)
no-repeat
}
.layui-layer-prompt
.layui-layer-input
{
display
:
block
;
width
:
220px
;
height
:
30px
;
margin
:
0
auto
;
line-height
:
30px
;
padding
:
0
5px
;
border
:
1px
solid
#ccc
;
box-shadow
:
1px
1px
5px
rgba
(
0
,
0
,
0
,
.1
)
inset
;
color
:
#333
}
.layui-layer-prompt
textarea
.layui-layer-input
{
width
:
300px
;
height
:
100px
;
line-height
:
20px
}
.layui-layer-tab
{
box-shadow
:
1px
1px
50px
rgba
(
0
,
0
,
0
,
.4
)}
.layui-layer-tab
.layui-layer-title
{
padding-left
:
0
;
border-bottom
:
1px
solid
#ccc
;
background-color
:
#eee
;
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
;
cursor
:
default
;
overflow
:
hidden
}
.layui-layer-tab
.layui-layer-title
span
.layui-layer-tabnow
{
height
:
43px
;
border-left
:
1px
solid
#ccc
;
border-right
:
1px
solid
#ccc
;
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.xubox_tab_layer
{
display
:
block
}
.xubox_tabclose
{
position
:
absolute
;
right
:
10px
;
top
:
5px
;
cursor
:
pointer
}
.layui-layer-photos
{
-webkit-animation-duration
:
1s
;
animation-duration
:
1s
}
.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
}
\ No newline at end of file
apps/static/js/plugins/layer/skin/layer.ext.css
deleted
100644 → 0
View file @
d19b47a4
/*!
@Name: layer拓展样式
@Date: 2012.12.13
@Author: 贤心
@blog: sentsin.com
*/
.layui-layer-imgbar
,
.layui-layer-imgtit
a
,
.layui-layer-tab
.layui-layer-title
span
{
text-overflow
:
ellipsis
;
white-space
:
nowrap
}
.layui-layer-iconext
{
background
:
url(default/icon-ext.png)
no-repeat
}
html
#layui_layer_skinlayerextcss
{
display
:
none
;
position
:
absolute
;
width
:
1989px
}
.layui-layer-prompt
.layui-layer-input
{
display
:
block
;
width
:
220px
;
height
:
30px
;
margin
:
0
auto
;
line-height
:
30px
;
padding
:
0
5px
;
border
:
1px
solid
#ccc
;
box-shadow
:
1px
1px
5px
rgba
(
0
,
0
,
0
,
.1
)
inset
;
color
:
#333
}
.layui-layer-prompt
textarea
.layui-layer-input
{
width
:
300px
;
height
:
100px
;
line-height
:
20px
}
.layui-layer-tab
{
box-shadow
:
1px
1px
50px
rgba
(
0
,
0
,
0
,
.4
)}
.layui-layer-tab
.layui-layer-title
{
padding-left
:
0
;
border-bottom
:
1px
solid
#ccc
;
background-color
:
#eee
;
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
;
cursor
:
default
;
overflow
:
hidden
}
.layui-layer-tab
.layui-layer-title
span
.layui-layer-tabnow
{
height
:
43px
;
border-left
:
1px
solid
#ccc
;
border-right
:
1px
solid
#ccc
;
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.xubox_tab_layer
{
display
:
block
}
.xubox_tabclose
{
position
:
absolute
;
right
:
10px
;
top
:
5px
;
cursor
:
pointer
}
.layui-layer-photos
{
-webkit-animation-duration
:
1s
;
animation-duration
:
1s
;
background
:
url(default/xubox_loading1.gif)
center
center
no-repeat
#000
}
.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
}
\ No newline at end of file
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