intoNode_win.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <title>Hello APP</title>
  7. <link rel="stylesheet" type="text/css" href="../css/api.css" />
  8. <link rel="stylesheet" type="text/css" href="../css/aui-win.css" />
  9. <style></style>
  10. </head>
  11. <style>
  12. </style>
  13. <body>
  14. <header class="aui-bar aui-bar-nav aui-bar-info intoInfo" id="aui-header">
  15. <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left"></span> </a>
  16. <div class="aui-title" id="aui-title">入库记录</div>
  17. <div class="backhome aui-pull-right aui-btn aui-btn-info" style="display:flex;height: 100%;justify-content:center;align-items:center;"><img style="width: 32px;height: 28px;" src="./image/home01.png" alt="" onclick= "handleBackhome()"></div>
  18. <!-- <a class="aui-btn aui-btn-info aui-pull-right" tapmode> <span class="aui-iconfont aui-icon-search"></span> </a> -->
  19. </header>
  20. </body>
  21. <script type="text/javascript" src="../script/api.js"></script>
  22. <script type="text/javascript">
  23. function closeWin() {
  24. api.closeToWin({
  25. name: 'root'
  26. });
  27. // api.closeWin({
  28. // });
  29. }
  30. // 返回首页
  31. function handleBackhome(){
  32. api.closeToWin({
  33. name: 'root'
  34. });
  35. };
  36. apiready = function() {
  37. api.parseTapmode();
  38. var header = $api.byId('aui-header');
  39. $api.fixStatusBar(header);
  40. var headerPos = $api.offset(header);
  41. var body_h = $api.offset($api.dom('body')).h;
  42. api.openFrame({
  43. name : 'intoNode_body',
  44. url : 'intoNode_body.html',
  45. bounces : false,
  46. vScrollBarEnabled : false,
  47. hScrollBarEnabled : false,
  48. rect : {
  49. x : 0,
  50. y : headerPos.h,
  51. w : 'auto',
  52. h : 'auto'
  53. },
  54. bgColor:'#f5f5f5',
  55. });
  56. };
  57. </script>
  58. </html>