address_new_win.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. <a class="aui-btn aui-btn-info aui-pull-right" tapmode onclick="addAddress()"> <span class="aui-iconfont aui-icon-add"></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.closeWin({
  25. });
  26. }
  27. function addAddress(){
  28. api.openWin({
  29. name: 'addressinfo_win',
  30. url: 'addressinfo_win.html',
  31. pageParam: {
  32. type : 'add'
  33. }
  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 : 'address_new_body',
  44. url : 'address_new_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>