mirror of https://gitee.com/stylefeng/guns
【file】文件管理图片预览
parent
0fb4a9e24c
commit
182353c607
|
@ -106,29 +106,10 @@ layui.use(['table', 'form', 'func', 'HttpRequest', 'util', 'upload'], function (
|
|||
FileInfo.openPreview = function (data) {
|
||||
var imgUrl = Feng.ctxPath + '/sysFileInfo/previewByObjectName?fileBucket=' + data.fileBucket + '&fileObjectName=' + data.fileObjectName;
|
||||
|
||||
// layer.open({
|
||||
// type: 1,
|
||||
// title: false,
|
||||
// closeBtn: 0,
|
||||
// skin: 'layui-layer-nobg', //没有背景色
|
||||
// shadeClose: true,
|
||||
// content: '<div >' +
|
||||
// '<img src="' +
|
||||
// Feng.ctxPath + '/sysFileInfo/previewByObjectName?fileBucket=' + data.fileBucket + '&fileObjectName=' + data.fileObjectName+
|
||||
// '" style="max-width: 100%;">' +
|
||||
// '</div> '
|
||||
// // content: Feng.ctxPath + '/sysFileInfo/previewByObjectName?fileBucket=' + data.fileBucket + '&fileObjectName=' + data.fileObjectName,
|
||||
// });
|
||||
//
|
||||
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: false,
|
||||
closeBtn: 0,
|
||||
area: ['500px', '300px'],
|
||||
shadeClose: true,
|
||||
content: imgUrl
|
||||
})
|
||||
layer.photos({
|
||||
photos: { "data": [{"src": imgUrl}] }
|
||||
,anim: 0
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue