mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-02-06 10:35:32 +08:00
前端代码和后端代码合并到一个仓库中
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
<#assign base=springMacroRequestContext.getContextUrl("")>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
|
||||
<meta http-equiv="Cache-Control" content="no-store"/>
|
||||
<meta http-equiv="Pragma" content="no-cache"/>
|
||||
<meta http-equiv="Expires" content="0"/>
|
||||
<title>PDF预览</title>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
|
||||
function openScanFile(title,token,bizNo,archivesNo){
|
||||
//var pdfUrl ="http://127.0.0.1:8080/jeecg-boot/generic/web/viewer.html?file="+encodeURIComponent("http://127.0.0.1:8080/jeecg-boot/test/jeecgDemo/getPdfUrl?title="+encodeURI(title));
|
||||
var pdfUrl ="${base}/generic/web/viewer.html?file="+encodeURIComponent("https://jeecgos.oss-cn-beijing.aliyuncs.com/files/site/java_p3c.pdf");
|
||||
|
||||
var vm=window.open(pdfUrl);
|
||||
}
|
||||
|
||||
window.addEventListener('message', function(event) {
|
||||
var data = event.data;
|
||||
var title = data.title;
|
||||
var token = data.token;
|
||||
openScanFile(title,token);
|
||||
}, false);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user