|
@@ -190,21 +190,21 @@ iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.doc
|
|
|
if(file=='pdf'){
|
|
|
hideAll();
|
|
|
$("#frameMain").show();
|
|
|
- // this.filepath = "/lib/pdfjs/web/viewer.html?file=/upFiles/"+marCode+"/"+name;
|
|
|
- this.filepath = "/lib/pdfjs/web/viewer.html?file=/upFiles/"+name;
|
|
|
+ this.filepath = "/lib/pdfjs/web/viewer.html?file=/upFiles/"+marCode+"/"+name;
|
|
|
+ // this.filepath = "/lib/pdfjs/web/viewer.html?file=/upFiles/"+name;
|
|
|
$("#videoType").attr('src',"");
|
|
|
}else if(file=='jpg' || file=='jpeg' || file=='png'){
|
|
|
hideAll();
|
|
|
$("#imgType").show();
|
|
|
- // $("#imgType").attr('src',"/upFiles/"+marCode+"/"+name);
|
|
|
+ $("#imgType").attr('src',"/upFiles/"+marCode+"/"+name);
|
|
|
|
|
|
- $("#imgType").attr('src',"/upFiles/"+name);
|
|
|
+ // $("#imgType").attr('src',"/upFiles/"+name);
|
|
|
$("#videoType").attr('src',"");
|
|
|
}else if(file=='avi' || file=='mov' || file=='rmvb' || file=='rm' || file=='flv' || file=='mp4' || file=='3gp'){
|
|
|
hideAll();
|
|
|
$("#videoType").show();
|
|
|
- // $("#videoType").attr('src',"/upFiles/"+marCode+"/"+name);
|
|
|
- $("#videoType").attr('src',"/upFiles/"+name);
|
|
|
+ $("#videoType").attr('src',"/upFiles/"+marCode+"/"+name);
|
|
|
+ // $("#videoType").attr('src',"/upFiles/"+name);
|
|
|
}else{
|
|
|
alert("暂时不支持该类型文件的展示");
|
|
|
}
|