Ubooktext.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="zh-cmn-Hans">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>维修保障故障资源平台</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8">
  9. <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
  10. <link rel="stylesheet" href="./css/font.css">
  11. <link rel="stylesheet" href="./css/xadmin.css">
  12. <script src="./lib/jquery.min.js"></script>
  13. <script src="./lib/layui/layui.js" charset="utf-8"></script>
  14. <script src="./js/xadmin.js"></script>
  15. <script src="../other/js/functions.js"></script>
  16. <style>
  17. #box {
  18. position: absolute;
  19. top: 0;
  20. left: 0;
  21. width: 97%;
  22. height: 90%!important;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <div class="x-body layui-anim layui-anim-up">
  28. <form class="layui-form">
  29. .<iframe id="box" src=""></iframe>
  30. </form>
  31. </div>
  32. </body>
  33. <script>
  34. $(function() {
  35. var url = sessionStorage.getItem("url") 
  36. var newurl = url.substr(url.indexOf('1'), url.length); 
  37. console.log(newurl)              
  38. // file_path  =  newurl.substr(newurl.indexOf('\\')  +  1, newurl.length);
  39. // console.log(file_path )                 
  40. newurl  = newurl.substr(0, newurl.indexOf('.')); 
  41. console.log(newurl)                  
  42. path  =  urlBase  +  "sourcefm\\"  +  newurl  +  ".pdf"
  43. console.log(path )   
  44. layui.use("form", function() {
  45. layui.form.render();
  46. });
  47. layui.use(["form", "layer", ], function() {
  48. $ = layui.jquery;
  49. var form = layui.form;
  50. var layer = layui.layer;
  51. $("#box").attr('src', path);
  52. console.log(path )   
  53. });
  54. });
  55. </script>
  56. </script>
  57. </html>