diff --git a/src/main/webapp/assets/modular/system/fileInfo/file_info.js b/src/main/webapp/assets/modular/system/fileInfo/file_info.js index 27373843..693d6cc6 100644 --- a/src/main/webapp/assets/modular/system/fileInfo/file_info.js +++ b/src/main/webapp/assets/modular/system/fileInfo/file_info.js @@ -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: '
' + - // '' + - // '
' - // // 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 + });