var LayerManage = {
CommonMethod: null,
OpenWindLayer: function (title, width, height, htmlcontent) {
layer.open({
type: 1
, area: [width, height]
, title: title
, shade: 0.6 //遮罩透明度
, maxmin: true //允许全屏最小化
, anim: -1 //0-6的动画形式,-1不开启
, shadeClose: true //点击遮罩关闭层
, content: htmlcontent
});
},
OpenNewiframeLayer: function (title, width, height, url, method) {
LayerManage.CommonMethod = method;
//弹出iframe
layer.open({
type: 2,
title: title,
area: [width, height],
fixed: false,
maxmin: true,
anim: -1,
shadeClose: true, //点击遮罩关闭层
content: url
});
},
iframeCallBack: function (callData) {
if (LayerManage.CommonMethod != null) {
LayerManage.CommonMethod(callData);
}
},
confirmLayer: function (msg, callback) {
layer.confirm(msg, {
btn: [CustomLanguage.lbl_Confirm, CustomLanguage.lbl_Cancel] //按钮
}, function () {
callback();
}, function () {
});
},
showLoading: function () {
var ii = layer.load();
return ii;
},
closeLoading: function (obj) {
layer.close(obj);
},
closeLayer: function () {
layer.closeAll();
},
showLoadingHint: function (describe) {
var ii = layer.msg(describe, {
icon: 16,
shade: [0.1, '#fff'],
time: 60000
});
return ii;
},
}