bill_win.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. </head>
  10. <style>
  11. </style>
  12. <body>
  13. <header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
  14. <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left"></span> </a>
  15. <div class="aui-title" id="aui-title">
  16. 确认
  17. </div>
  18. </header>
  19. </body>
  20. <script type="text/javascript" src="../../script/api.js"></script>
  21. <script type="text/javascript">
  22. function closeWin() {
  23. api.closeWin({
  24. });
  25. }
  26. apiready = function() {
  27. api.parseTapmode();
  28. var title = api.pageParam.type + '确认';
  29. $api.text($api.byId('aui-title'), title);
  30. var header = $api.byId('aui-header');
  31. $api.fixStatusBar(header);
  32. var headerPos = $api.offset(header);
  33. var body_h = $api.offset($api.dom('body')).h;
  34. api.openFrame({
  35. name : 'bill_body',
  36. url : 'bill_body.html',
  37. bounces : false,
  38. vScrollBarEnabled : false,
  39. hScrollBarEnabled : false,
  40. rect : {
  41. x : 0,
  42. y : headerPos.h,
  43. w : 'auto',
  44. h : 'auto'
  45. },
  46. pageParam : {
  47. body : api.pageParam.store,
  48. type : api.pageParam.type,
  49. },
  50. bgColor:'#f5f5f5'
  51. })
  52. };
  53. </script>
  54. </html>