news_win.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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/iconfont.css" />
  9. <link rel="stylesheet" type="text/css" href="../../css/aui-win.css" />
  10. </head>
  11. <style>
  12. </style>
  13. <body>
  14. <header class="aui-bar aui-bar-nav aui-bar-info" 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">
  17. 金宇资讯
  18. </div>
  19. </header>
  20. </body>
  21. <script type="text/javascript" src="../../script/api.js"></script>
  22. <script type="text/javascript">
  23. function closeWin() {
  24. api.closeWin({
  25. });
  26. }
  27. var h = '',
  28. apiready = function() {
  29. api.parseTapmode();
  30. var header = $api.byId('aui-header');
  31. $api.fixStatusBar(header);
  32. var headerPos = $api.offset(header);
  33. h = headerPos.h;
  34. var body_h = $api.offset($api.dom('body')).h;
  35. api.openFrame({
  36. name : 'news_body',
  37. url : 'https://weixin.jinyutires.com/jinyuwx/html/company/news.html',
  38. bounces : false,
  39. vScrollBarEnabled : false,
  40. hScrollBarEnabled : false,
  41. rect : {
  42. x : 0,
  43. y : headerPos.h,
  44. w : 'auto',
  45. h : 'auto'
  46. },
  47. pageParam : {
  48. n : api.pageParam.n
  49. },
  50. bgColor:'#f5f5f5',
  51. })
  52. };
  53. </script>
  54. </html>