|
|
|
@ -869,6 +869,47 @@ var table = { |
|
|
|
layer.full(index); |
|
|
|
}, |
|
|
|
// 弹出层全屏
|
|
|
|
openFullCutBtnName: function (title, url, width, height, leftBtnName) { |
|
|
|
//如果是移动端,就使用自适应大小弹窗
|
|
|
|
if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) { |
|
|
|
width = 'auto'; |
|
|
|
height = 'auto'; |
|
|
|
} |
|
|
|
if ($.common.isEmpty(title)) { |
|
|
|
title = false; |
|
|
|
} |
|
|
|
if ($.common.isEmpty(url)) { |
|
|
|
url = "/404.html"; |
|
|
|
} |
|
|
|
if ($.common.isEmpty(width)) { |
|
|
|
width = 800; |
|
|
|
} |
|
|
|
if ($.common.isEmpty(height)) { |
|
|
|
height = ($(window).height() - 50); |
|
|
|
} |
|
|
|
var index = layer.open({ |
|
|
|
type: 2, |
|
|
|
area: [width + 'px', height + 'px'], |
|
|
|
fix: false, |
|
|
|
//不固定
|
|
|
|
maxmin: true, |
|
|
|
shade: 0.3, |
|
|
|
title: title, |
|
|
|
content: url, |
|
|
|
btn: [leftBtnName, '关闭'], |
|
|
|
// 弹层外区域关闭
|
|
|
|
shadeClose: true, |
|
|
|
yes: function(index, layero) { |
|
|
|
var iframeWin = layero.find('iframe')[0]; |
|
|
|
iframeWin.contentWindow.submitHandler(index, layero); |
|
|
|
}, |
|
|
|
cancel: function(index) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
}); |
|
|
|
layer.full(index); |
|
|
|
}, |
|
|
|
// 弹出层全屏
|
|
|
|
openFullClose: function (title, url, width, height) { |
|
|
|
//如果是移动端,就使用自适应大小弹窗
|
|
|
|
if (navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)) { |
|
|
|
|