7-01更新 修复后台图片列表缩略图显示部分

This commit is contained in:
Hellohao
2019-07-01 21:02:18 +08:00
parent f072a01b4e
commit 25728107af
3 changed files with 2 additions and 9 deletions
@@ -40,12 +40,6 @@ public class NOSImageupload {
static Keys key;
public Map<String, Integer> Imageupload(Map<String, MultipartFile> fileMap, String username,Map<String, String> fileMap2) throws Exception {
// String Catalog = "";//默认游客目录
// if(username.equals("tourist")){
// Catalog = "tourist";
// }else{
// Catalog = username;
// }
// 要上传文件的路径
if(fileMap2==null){
File file = null;
@@ -393,7 +393,6 @@
$("#linshi").on("load", function () {
w = $(this).width();
h = $(this).height();
//alert(w+"/"+h);
layer.closeAll('loading');
layer.open({
type: 1,
@@ -402,7 +401,7 @@
area: 'auto',
skin: 'layui-layer-nobg', //没有背景色
shadeClose: true,
content: '<img style="height: auto;width: auto;max-width:' + dw * 0.7 + 'px;max-height: ' + dh * 0.7 + 'px" src="' + urls + '">'
content: '<div style="width:'+ dw * 0.7 + 'px;height:auto;text-align:center;float:none;margin-left:auto;margin-right:auto;"></div><img style="height: 100%;width: 100%;max-width:' + dw * 0.7 + 'px;max-height: ' + dh * 0.7 + 'px" src="' + urls + '">'
});
});
@@ -442,7 +442,7 @@
}
function guanyu() {
bootbox.alert("本站的主要功能基本上都完成了,在接下来的过程中我会进行代码优化,提高性能。如果你有什么好的功能意见可以来我博客进行评论。我也会尽力打造更加强大的图床站。");
bootbox.alert("本站的主要功能基本上都完成了,在接下来的过程中我会进行代码优化,提高性能。如果你有什么好的功能意见可以来我博客进行评论。我也会尽力打造更加强大的图床站。<br /> Hellohao开发者交流群:864800972");
}
function times() {