12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <!DOCTYPE html>
- <html lang="zh-cmn-Hans">
- <head>
- <meta charset="UTF-8">
- <title>维修保障故障资源平台</title>
- <meta name="renderer" content="webkit">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8">
- <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
- <link rel="stylesheet" href="./css/font.css">
- <link rel="stylesheet" href="./css/xadmin.css">
- <script src="./lib/jquery.min.js"></script>
- <script src="./lib/layui/layui.js" charset="utf-8"></script>
- <script src="./js/xadmin.js"></script>
- <script src="../other/js/functions.js"></script>
- <style>
- #box {
- position: absolute;
- top: 0;
- left: 0;
- width: 97%;
- height: 90%!important;
- }
- </style>
- </head>
- <body>
- <div class="x-body layui-anim layui-anim-up">
- <form class="layui-form">
- .<iframe id="box" src=""></iframe>
- </form>
- </div>
- </body>
- <script>
- $(function() {
- var url = sessionStorage.getItem("url")
- var newurl = url.substr(url.indexOf('1'), url.length);
- console.log(newurl)
- // file_path = newurl.substr(newurl.indexOf('\\') + 1, newurl.length);
- // console.log(file_path )
- newurl = newurl.substr(0, newurl.indexOf('.'));
- console.log(newurl)
- path = urlBase + "sourcefm\\" + newurl + ".pdf"
- console.log(path )
- layui.use("form", function() {
- layui.form.render();
- });
- layui.use(["form", "layer", ], function() {
- $ = layui.jquery;
- var form = layui.form;
- var layer = layui.layer;
- $("#box").attr('src', path);
- console.log(path )
- });
- });
- </script>
- </script>
- </html>
|