Compare commits

..

No commits in common. "874c8141882a40536a300f8aaab07fab7d3fd5a4" and "07d518fea95c98069683df3c16d156c46d96aea3" have entirely different histories.

1 changed files with 1 additions and 15 deletions

View File

@ -147,20 +147,6 @@
})
});
//图片预览
$(".pre_view_list").on("click",'.pre_img',function () {
let _url = $(this).attr('data-img');
layer.open({
title:'预览图片',
area:['80%','80%'],
type:1,
content:'<div style="width: 100%;height: 100%"><img style="width: 100%;height: 100%" src="'+window.location.origin+_url+'" /></div>',
success(res){
},
})
});
//文件下载
$(".pre_view_list").on("click",'.down_load_file',function () {
let _url = $(this).attr('data-url');
@ -229,7 +215,7 @@
let _nameFile = item.name.substr(item.name.lastIndexOf('/')+1,item.name.length-1);
if(item.name.indexOf('png') > -1 || item.name.indexOf('jpg')>-1){
_file_list_str += '<div class="pre_view_item">' +
'<div class="item_left pre_img" data-img="'+item.name+'" style="cursor: pointer"><img src="'+window.location.origin+item.name+'" /><span>('+(index+1)+') '+_nameFile+'</span></div>' +
'<div class="item_left"><img src="'+window.location.origin+item.name+'" /><span>('+(index+1)+') '+_nameFile+'</span></div>' +
'<div class="item_right"><span data-url="'+item.name+'" class="btn btn-primary btn-xs down_load_file">下载</span><span data-index="'+item.index+'" class="btn btn-danger btn-xs del_file">删除</span></div></div>';
}else if(item.name.indexOf('pdf') > -1){
_file_list_str += '<div class="pre_view_item">' +