|
@@ -509,6 +509,24 @@ var Feng = {
|
|
|
showExcel:function(url,id,title){
|
|
|
window.location.href = url;
|
|
|
},
|
|
|
+ showFile:function(url,id,title){
|
|
|
+ if(Feng.isEmptyStr(id)){
|
|
|
+ id = "id";
|
|
|
+ }
|
|
|
+ if(Feng.isEmptyStr(title)){
|
|
|
+ title = "预览";
|
|
|
+ }
|
|
|
+ var index = layer.open({
|
|
|
+ id:id,
|
|
|
+ type: 2,
|
|
|
+ shade: 0,
|
|
|
+ title: title,
|
|
|
+ area: ['600px', '350px'], //宽高
|
|
|
+ fix: false, //不固定
|
|
|
+ maxmin: true,
|
|
|
+ content: url,
|
|
|
+ });
|
|
|
+ },
|
|
|
isEmptyStr:function(str) {
|
|
|
if(str == null || str == ''){
|
|
|
return true;
|