parent
a24b94288b
commit
c0089b2920
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,61 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
|
||||
|
||||
<style mce_bogus="1">
|
||||
body {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
iframe {
|
||||
border: 0px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
||||
<body scroll="no">
|
||||
<div id="pdfView"></div>
|
||||
<script id="pdfScript" type="text/html">
|
||||
<iframe id="frame3d" name="frame3d" frameborder="0" width="100%" scrolling="auto"
|
||||
onload="this.style.height=document.body.clientHeight" height="100%" src="{{d.url}}"></iframe>
|
||||
</script>
|
||||
|
||||
<script src="../../component/layui/layui.js"></script>
|
||||
<script src="../../component/pear/pear.js"></script>
|
||||
<script src="../../component/pear/base64.js"></script>
|
||||
<script>
|
||||
layui.use(function () {
|
||||
var $ = layui.jquery;
|
||||
var laytpl = layui.laytpl;
|
||||
|
||||
var _url = Base64.decode(GetQueryString("url"));
|
||||
|
||||
|
||||
|
||||
$(document).attr("title", "查看");
|
||||
|
||||
var data = { "url": _url };
|
||||
|
||||
var pdfTpl = pdfScript.innerHTML,
|
||||
pdfView = document.getElementById('pdfView');
|
||||
laytpl(pdfTpl).render(data, function (html) {
|
||||
pdfView.innerHTML = html;
|
||||
});
|
||||
|
||||
function GetQueryString(name, istop) {
|
||||
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
|
||||
var r = window.location.search.substr(1).match(reg);
|
||||
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
|
||||
|
||||
if (r != null) return unescape(r[2]);
|
||||
return null;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue