This commit is contained in:
yubaolee
2017-01-12 19:48:01 +08:00
parent a1765f37ba
commit 966681a82f
656 changed files with 111312 additions and 29667 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,132 @@
*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;overflow:hidden;}
.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 30px rgba(0,0,0,.3);-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 10px;height:35px;line-height:35px;border-bottom:1px solid #D5D5D5;font-size:14px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-color:#EAEAEA}
.layui-layer-setwin{position:absolute;right:10px;*right:0;top:10px;font-size:0;line-height:initial}
.layui-layer-setwin a{position:relative;width:14px;height:14px;margin-left:10px;font-size:12px;_overflow:hidden}
.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;bottom:35%;margin-top:-1px;background-color:#919191;cursor:pointer;_overflow:hidden}
.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}
.layui-layer-setwin .layui-layer-max{background-position:-45px -55px}
.layui-layer-setwin .layui-layer-max:hover{background-position:-95px -55px}
.layui-layer-setwin .layui-layer-maxmin{background-position:-68px -55px}
.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-118px -55px}
.layui-layer-setwin .layui-layer-close1{width:14px;height:14px;background-position:-5px -55px;cursor:pointer}
.layui-layer-setwin .layui-layer-close1:hover{background-position:-25px -55px}
.layui-layer-setwin .layui-layer-close2{position:absolute;right:-23px;top:-23px;width:30px;height:30px;margin-left:0;background-position:-149px -44px;*right:-18px;_right:-15px;_top:-23px;_width:14px;_height:14px;_background-position:-5px -55px}
.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -44px;_background-position:-25px -55px}
.layui-layer-btn{-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;text-align:center;padding:0 30px 10px;pointer-events:auto;border-left:0px solid #ccc;border-right:0px solid #ccc;border-bottom:1px solid #ccc;}
.layui-layer-btn a{height:28px;line-height:28px;margin:0 5px;padding:0 20px;cursor:pointer;text-decoration:none;display: inline-block;border: 1px solid #ccc;/*background:#1ab394;border: 1px solid #1ab394;*/border-radius: 4px;}
.layui-layer-btn a:hover{background:#F5F5F5;}
.layui-layer-btn a:active{opacity:.7}
.layui-layer-btn .layui-layer-btn0{background:#5cb85c;border: 1px solid #4cae4c;color:#fff;}
.layui-layer-btn .layui-layer-btn0:hover{background:#449d44;border: 1px solid #398439;}
.layui-layer-btn .layui-layer-btn0:active{opacity:.7}
.layui-layer-btn .layui-layer-btn1{background:#d9534f;border: 1px solid #d43f3a;color:#fff;}
.layui-layer-btn .layui-layer-btn1:hover{background:#c9302c;border: 1px solid #ac2925;}
.layui-layer-btn .layui-layer-btn1:active{opacity:.7}
.layui-layer-dialog{min-width:240px}
.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;font-size:14px;overflow:auto;border-left:0px solid #ccc;border-right:0px solid #ccc;}
.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:24px;left:25px;_left:-50px;width:39px;height:39px}
.layui-layer-ico1{background-position:-46px 0}
.layui-layer-ico2{background-position:-94px 0}
.layui-layer-ico3{background-position:-145px 0}
.layui-layer-ico4{background-position:-191px 0}
.layui-layer-ico5{background-position:-239px 0}
.layui-layer-ico6{background-position:-287px 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:170px;border-radius:3px;border:5px solid #8D8D8D;border:5px solid rgba(0,0,0,.4)}
.layui-layer-msg .layui-layer-content .layui-layer-ico{top:19px}
.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:32px 32px 32px 80px;text-align:left}
.layui-layer-msg .layui-layer-padding{padding: 25px 25px 25px 80px;}
.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;-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;}
.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}
.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-dialog{background-color:#fff;border:1px solid #999;box-shadow: 0 5px 15px rgba(0,0,0,.5);border: 1px solid rgba(0,0,0,.2);border-radius:8px;}
.layui-layer-page{background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);border-radius:6px;border:7px solid #F5F5F5;}
.layui-layer-iframe{overflow: hidden;position:relative;background-color:#fff;border:1px solid #999;outline:0;border-radius:8px;box-shadow: 0 5px 15px rgba(0,0,0,.5);border: 1px solid rgba(0,0,0,.2);}
.layui-layer-title{margin:0px;padding:0px;height:40px;line-height:40px;font-size: 15px;font-family: inherit;padding-left:16px;border-bottom:1px solid #ccc;background-color:#fff;border-top-left-radius :6px;border-top-right-radius:6px;}
.layui-layer-setwin a{width:18px;height:18px;cursor:pointer;}
.layui-layer-iframe .layui-layer-ico{background:url(default/sprite_main_png.png) no-repeat}
.layui-layer-setwin .layui-layer-min cite{background-color:#666;}
.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}
.layui-layer-setwin .layui-layer-max{background-position: -34px -59px;}
.layui-layer-setwin .layui-layer-max:hover{background-position:-34px -59px}
.layui-layer-setwin .layui-layer-maxmin{background-position: -94px -59px;}
.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-94px -59px}
.layui-layer-setwin .layui-layer-close1{text-decoration:none;float:right;font-size:25px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}
.layui-layer-setwin .layui-layer-close1:focus,.layui-layer-setwin .layui-layer-close1:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}
.layui-layer-setwin{top:5px;right:12px;}
.layui-layer-content{margin:0px;padding:0px;border-bottom:1px solid #ccc;border-top:none;}
.layui-layer-msg {
box-shadow:none;
border:none;border-radius:8px;
box-shadow: 0 1px 15px rgba(0,0,0,.175);
}
.layui-layer-msg .layui-layer-content{border: 1px solid rgb(187, 187, 187);border-radius:8px;}
.layui-layer-padding{margin:0px;padding:0px;border:1px solid #ccc;border-top:none;border-bottom:none;}
.layui-layer-iframe .layui-layer-btn{padding:0px;padding-top:5px;padding-right:2px;height:35px;text-align: right;border: 0px solid #ccc;border-top:none;background-color: #f5f5f5;}
.layui-layer-page .layui-layer-btn{padding:0px;padding-top:5px;padding-right:2px;height:35px;text-align: right;border: 1px solid #ccc;border-top:none;}

View File

@@ -0,0 +1,629 @@
; !
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)
}(),
config: {},
end: {},
btn: ["确定", "取消"],
type: ["dialog", "page", "iframe", "loading", "tips"]
};
a.layer = {
v: "1.9.3",
ie6: !!a.ActiveXObject && !a.XMLHttpRequest,
index: 0,
path: e.getPath,
config: function (a, b) {
var d = 0;
return a = a || {},
layer.cache = e.config = c.extend(e.config, a),
layer.path = e.config.path || layer.path,
"string" == typeof a.extend && (a.extend = [a.extend]),
layer.use("skin/dialog.css", a.extend && a.extend.length > 0 ?
function f() {
var c = a.extend;
layer.use(c[c[d] ? d : d - 1], d < c.length ?
function () {
return ++d,
f
}() : b)
}() : b),
this
},
use: function (a, b, d) {
var e = c("head")[0],
a = a.replace(/\s/g, ""),
f = /\.css$/.test(a),
g = document.createElement(f ? "link" : "script"),
h = "layui_layer_" + a.replace(/\.|\//g, "");
return layer.path ? (f && (g.rel = "stylesheet"), g[f ? "href" : "src"] = /^http:\/\//.test(a) ? a : layer.path + a, g.id = h, c("#" + h)[0] || e.appendChild(g),
function i() {
(f ? 1989 === parseInt(c("#" + h).css("width")) : layer[d || h]) ?
function () {
b && b();
try {
f || e.removeChild(g)
} catch (a) { }
}() : setTimeout(i, 100)
}(), this) : void 0
},
ready: function (a, b) {
var d = "function" == typeof a;
return d && (b = a),
layer.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),
layer.open(c.extend({
content: a,
yes: d
},
e ? {} : b))
},
confirm: function (a, b, d, f) {
var g = "function" == typeof b;
return g && (f = d, d = b),
layer.open(c.extend({
content: a,
btn: e.btn,
yes: d,
cancel: f
},
g ? {} : b))
},
msg: function (a, d, f) {
var h = "function" == typeof d,
i = e.config.skin,
j = (i ? i + " " + i + "-msg" : "") || "layui-layer-msg",
k = g.anim.length - 1;
return h && (f = d),
layer.open(c.extend({
content: a,
time: 3e3,
shade: !1,
skin: j,
title: !1,
closeBtn: !1,
btn: !1,
end: f
},
h && !e.config.skin ? {
skin: j + " layui-layer-hui",
shift: k
} : function () {
return d = d || {},
(-1 === d.icon || d.icon === b && !e.config.skin) && (d.skin = j + " " + (d.skin || "layui-layer-hui")),
d
}()))
},
load: function (a, b) {
return layer.open(c.extend({
type: 3,
icon: a || 0,
shade: .01
},
b))
},
tips: function (a, b, d) {
return layer.open(c.extend({
type: 4,
content: [a, b],
closeBtn: !1,
time: 3e3,
maxWidth: 210
},
d))
}
};
var f = function (a) {
var b = this;
b.index = ++layer.index,
b.config = c.extend({},
b.config, e.config, a),
b.creat()
};
f.pt = f.prototype;
var g = ["layui-layer", ".layui-layer-title", ".layui-layer-main", ".layui-layer-dialog", "layui-layer-iframe", "layui-layer-content", "layui-layer-btn", "layui-layer-close"];
g.anim = ["layui-anim", "layui-anim-01", "layui-anim-02", "layui-anim-03", "layui-anim-04", "layui-anim-05", "layui-anim-06"],
f.pt.config = {
type: 0,
shade: .3,
fix: !0,
move: g[1],
title: "",
offset: "auto",
area: "auto",
closeBtn: 1,
time: 0,
zIndex: 2900,
maxWidth: "auto",
shift: -1,
icon: -1,
scrollbar: !0,
tips: 2
},
f.pt.vessel = function (a, b) {
var c = this,
d = c.index,
f = c.config,
h = 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>" : "";
var _length = top.$(".layui-layer-shade").length;
var _opacity = (f.shade[0] || f.shade);
if (_length > 0) {
//_opacity = 0;
}
return f.zIndex = h,
b([f.shade ? '<div class="layui-layer-shade" id="layui-layer-shade' + d + '" times="' + d + '" style="' + ("z-index:" + (h - 1) + "; background-color:" + (f.shade[1] || "#000") + "; opacity:" + _opacity + "; filter:alpha(opacity=" + (100 * f.shade[0] || 100 * f.shade) + ");") + '"></div>' : "", '<div class="' + g[0] + " " + (g.anim[f.shift] || "") + (" layui-layer-" + e.type[f.type]) + (0 != f.type && 2 != f.type || f.shade ? "" : " layui-layer-border") + " " + (f.skin || "") + '" id="' + g[0] + d + '" type="' + e.type[f.type] + '" times="' + d + '" showtime="' + f.time + '" conType="' + (a ? "object" : "string") + '" style="z-index: ' + h + "; 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="' + g[7] + " " + g[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="' + g[6] + b + '">' + f.btn[b] + "</a>";
var Content_IsClose = '';
if (e.type[f.type] == "iframe") {
Content_IsClose = '<div style="float: left;padding-top:5px;padding-left:15px;-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;"><input checked="checked" type="checkbox" id="IsdialogClose" style="vertical-align: middle;margin-bottom:2px;" /><label style=";padding-left:5px;cursor:pointer" for="IsdialogClose">确认并关闭窗口</label></div>';
}
return '<div class="' + g[6] + '">' + a + Content_IsClose + '</div>';
}() : "") + "</div>"], k),
c
},
f.pt.creat = function () {
var a = this,
b = a.config,
f = a.index,
h = b.content,
i = "object" == typeof h;
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],
layer.closeAll("dialog");
break;
case 2:
var h = b.content = i ? b.content : [b.content || "", "auto"];
var ajaxloader = '<div class="ajax-loader" style="cursor: progress; position: absolute; width: 100%; height: 100%; background: #fff; z-index: 100; overflow: hidden;"></div>';
b.content = ajaxloader + '<iframe scrolling="' + (b.content[1] || "auto") + '" allowtransparency="true" id="' + b.id + '" name="' + b.id + '" onload="Loading(false);" frameborder="0" src="' + b.content[0] + '"></iframe>';
break;
case 3:
b.title = !1,
b.closeBtn = !1,
-1 === b.icon && 0 === b.icon,
layer.closeAll("loading");
break;
case 4:
i || (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 || layer.closeAll("tips")
}
a.vessel(i,
function (d, e) {
c("body").append(d[0]),
i ?
function () {
2 == b.type || 4 == b.type ?
function () {
c("body").append(d[1])
}() : function () {
h.parents("." + g[0])[0] || (h.show().addClass("layui-layer-wrap").wrap(d[1]), c("#" + g[0] + f).find("." + g[5]).before(e))
}()
}() : c("body").append(d[1]),
a.layero = c("#" + g[0] + f),
b.scrollbar || g.html.css("overflow", "hidden").attr("layer-full", f)
}).auto(f),
2 == b.type && layer.ie6 && a.layero.find("iframe").attr("src", h[0]),
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(f),
4 == b.type && a.tips()
}),
b.time <= 0 || setTimeout(function () {
layer.close(a.index)
},
b.time),
a.move().callback()
},
f.pt.auto = function (a) {
function b(a) {
a = h.find(a),
a.height(i[1] - j - k - 2 * (0 | parseFloat(a.css("padding"))))
}
var e = this,
f = e.config,
h = c("#" + g[0] + a);
"" === f.area[0] && f.maxWidth > 0 && (/MSIE 7/.test(navigator.userAgent) && f.btn && h.width(h.innerWidth()), h.outerWidth() > f.maxWidth && h.width(f.maxWidth));
var i = [h.innerWidth(), h.innerHeight()],
j = h.find(g[1]).outerHeight() || 0,
k = h.find("." + g[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("." + g[5])) : b("." + g[5])
}
return e
},
f.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
})
},
f.pt.tips = function () {
var a = this,
b = a.config,
e = a.layero,
f = [e.outerWidth(), e.outerHeight()],
h = c(b.follow);
h[0] || (h = c("body"));
var i = {
width: h.outerWidth(),
height: h.outerHeight(),
top: h.offset().top,
left: h.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("." + g[5]).css({
"background-color": b.tips[1],
"padding-right": b.closeBtn ? "30px" : ""
}),
e.css({
left: i.tipLeft,
top: i.tipTop
})
},
f.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("." + g[0]);
var f = e.layero.offset().left,
h = 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:" + h + "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()),
e.ismove = !1
} catch (a) {
e.ismove = !1
}
b.moveEnd && b.moveEnd()
}),
a
},
f.pt.callback = function () {
function a() {
var a = f.cancel && f.cancel(b.index);
a === !1 || layer.close(b.index)
}
var b = this,
d = b.layero,
f = b.config;
b.openLayer(),
f.success && (2 == f.type ? d.find("iframe")[0].onload = function () {
this.className = "",
f.success(d, b.index)
} : f.success(d, b.index)),
layer.ie6 && b.IE6(d),
d.find("." + g[6]).children("a").on("click",
function () {
var e = c(this).index();
0 === e ? f.yes ? f.yes(b.index, d) : layer.close(b.index) : 1 === e ? a() : f["btn" + (e + 1)] ? f["btn" + (e + 1)](b.index, d) : layer.close(b.index)
}),
d.find("." + g[7]).on("click", a),
f.shadeClose && c("#layui-layer-shade" + b.index).on("click",
function () {
layer.close(b.index)
}),
d.find(".layui-layer-min").on("click",
function () {
layer.min(b.index, f),
f.min && f.min(d)
}),
d.find(".layui-layer-max").on("click",
function () {
c(this).hasClass("layui-layer-maxmin") ? (layer.restore(b.index), f.restore && f.restore(d)) : (layer.full(b.index, f), f.full && f.full(d))
}),
f.end && (e.end[b.index] = f.end)
},
e.reselect = function () {
c.each(c("select"),
function (a, b) {
var d = c(this);
d.parents("." + g[0])[0] || 1 == d.attr("layer") && c("." + g[0]).length < 1 && d.removeAttr("layer").show(),
d = null
})
},
f.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("." + g[0])[0] || "none" === d.css("display") || d.attr({
layer: "1"
}).hide(),
d = null
})
},
f.pt.openLayer = function () {
var a = this;
layer.zIndex = a.config.zIndex,
layer.setTop = function (a) {
var b = function () {
layer.zIndex++,
a.css("z-index", layer.zIndex + 1)
};
return layer.zIndex = parseInt(a[0].style.zIndex),
a.on("mousedown", b),
layer.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) {
g.html.attr("layer-full") == a && (g.html[0].style.removeProperty ? g.html[0].style.removeProperty("overflow") : g.html[0].style.removeAttribute("overflow"), g.html.removeAttr("layer-full"))
},
layer.getChildFrame = function (a, b) {
return b = b || c("." + g[4]).attr("times"),
c("#" + g[0] + b).find("iframe").contents().find(a)
},
layer.getFrameIndex = function (a) {
return c("#" + a).parents("." + g[4]).attr("times")
},
layer.iframeAuto = function (a) {
if (a) {
var b = layer.getChildFrame("body", a).outerHeight(),
d = c("#" + g[0] + a),
e = d.find(g[1]).outerHeight() || 0,
f = d.find("." + g[6]).outerHeight() || 0;
d.css({
height: b + e + f
}),
d.find("iframe").css({
height: b
})
}
},
layer.iframeSrc = function (a, b) {
c("#" + g[0] + a).find("iframe").attr("src", b)
},
layer.style = function (a, b) {
var d = c("#" + g[0] + a),
f = d.attr("type"),
h = d.find(g[1]).outerHeight() || 0,
i = d.find("." + g[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) - h - i
}))
},
layer.min = function (a, b) {
var d = c("#" + g[0] + a),
f = d.find(g[1]).outerHeight() || 0;
e.record(d),
layer.style(a, {
width: 180,
height: f,
overflow: "hidden"
}),
d.find(".layui-layer-min").hide(),
"page" === d.attr("type") && d.find(g[4]).hide(),
e.rescollbar(a)
},
layer.restore = function (a) {
var b = c("#" + g[0] + a),
d = b.attr("area").split(",");
b.attr("type");
layer.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(g[4]).show(),
e.rescollbar(a)
},
layer.full = function (a) {
var b,
f = c("#" + g[0] + a);
e.record(f),
g.html.attr("layer-full") || g.html.css("overflow", "hidden").attr("layer-full", a),
clearTimeout(b),
b = setTimeout(function () {
var b = "fixed" === f.css("position");
layer.style(a, {
top: b ? 0 : d.scrollTop(),
left: b ? 0 : d.scrollLeft(),
width: d.width(),
height: d.height() - 14
}),
f.find(".layui-layer-min").hide()
},
100)
},
layer.title = function (a, b) {
var d = c("#" + g[0] + (b || layer.index)).find(g[1]);
d.html(a)
},
layer.close = function (a) {
var b = c("#" + g[0] + a),
d = b.attr("type");
if (b[0]) {
if (d === e.type[1] && "object" === b.attr("conType")) {
b.children(":not(." + g[5] + ")").remove();
for (var f = 0; 2 > f; f++) b.find(".layui-layer-wrap").unwrap().hide()
} else {
if (d === e.type[2]) try {
var h = c("#" + g[4] + a)[0];
h.contentWindow.document.write(""),
h.contentWindow.close(),
b.find("." + g[5])[0].removeChild(h)
} catch (i) { }
b[0].innerHTML = "",
b.remove()
}
c("#layui-layer-moves, #layui-layer-shade" + a).remove(),
layer.ie6 && e.reselect(),
e.rescollbar(a),
"function" == typeof e.end[a] && e.end[a](),
delete e.end[a]
}
},
layer.closeAll = function (a) {
c.each(c("." + g[0]),
function () {
var b = c(this),
d = a ? b.attr("type") === a : 1;
d && layer.close(b.attr("times")),
d = null
})
},
e.run = function () {
c = jQuery,
d = c(a),
g.html = c("html"),
layer.open = function (a) {
var b = new f(a);
return b.index
}
},
"function" == typeof define ? define(function () {
return e.run(),
layer
}) : function () {
e.run(),
layer.use("dialog.css")
}()
}(window);