|
|
|
@ -33,7 +33,7 @@ var ready = {
|
|
|
|
|
events: {resize: {}},
|
|
|
|
|
minStackIndex: 0, |
|
|
|
|
minStackArr: [], |
|
|
|
|
btn: ['确定', '取消'], |
|
|
|
|
btn: ['确定', '取消'], |
|
|
|
|
|
|
|
|
|
// 五种原始层模式
|
|
|
|
|
type: ['dialog', 'page', 'iframe', 'loading', 'tips'], |
|
|
|
@ -264,7 +264,7 @@ Class.pt.config = {
|
|
|
|
|
shade: 0.3, |
|
|
|
|
fixed: true, |
|
|
|
|
move: doms[1], |
|
|
|
|
title: '信息', |
|
|
|
|
title: '信息', |
|
|
|
|
offset: 'auto', |
|
|
|
|
area: 'auto', |
|
|
|
|
closeBtn: 1, |
|
|
|
@ -1331,7 +1331,7 @@ layer.prompt = function(options, yes){
|
|
|
|
|
|
|
|
|
|
return layer.open($.extend({ |
|
|
|
|
type: 1, |
|
|
|
|
btn: ['确定','取消'], |
|
|
|
|
btn: ['确定;','取消'], |
|
|
|
|
content: content, |
|
|
|
|
skin: 'layui-layer-prompt' + skin('prompt'), |
|
|
|
|
maxWidth: win.width(), |
|
|
|
@ -1344,7 +1344,7 @@ layer.prompt = function(options, yes){
|
|
|
|
|
yes: function(index){ |
|
|
|
|
var value = prompt.val(); |
|
|
|
|
if(value.length > (options.maxlength||500)) { |
|
|
|
|
layer.tips('最多输入'+ (options.maxlength || 500) +'个字数', prompt, {tips: 1}); |
|
|
|
|
layer.tips('最多输入'+ (options.maxlength || 500) +'个字符', prompt, {tips: 1}); |
|
|
|
|
} else { |
|
|
|
|
yes && yes(value, index, prompt); |
|
|
|
|
} |
|
|
|
@ -1460,7 +1460,7 @@ layer.photos = function(options, loop, key){
|
|
|
|
|
// 不直接弹出
|
|
|
|
|
if (!loop) return; |
|
|
|
|
} else if (data.length === 0){ |
|
|
|
|
return layer.msg('没有图片'); |
|
|
|
|
return layer.msg('没有图片'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 上一张
|
|
|
|
@ -1745,9 +1745,9 @@ layer.photos = function(options, loop, key){
|
|
|
|
|
}, options)); |
|
|
|
|
}, function(){ |
|
|
|
|
layer.close(dict.loadi); |
|
|
|
|
layer.msg('当前图片地址异常<br>是否继续查看下一张?', { |
|
|
|
|
layer.msg('当前图片地址异常,<br>是否继续查看下一张?', { |
|
|
|
|
time: 30000,
|
|
|
|
|
btn: ['下一张', '不看了'],
|
|
|
|
|
btn: ['下一张', '不看了'],
|
|
|
|
|
yes: function(){ |
|
|
|
|
data.length > 1 && dict.imgnext(true,true); |
|
|
|
|
} |
|
|
|
|