ressList_win.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. <script src="js/vue.js"></script>
  10. </head>
  11. <style>
  12. .add-right{
  13. display: flex;
  14. justify-content: flex-end;
  15. align-self: flex-end;
  16. font-size: .8rem;
  17. padding-right: .6rem;
  18. }
  19. </style>
  20. <body>
  21. <header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
  22. <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left"></span> </a>
  23. <div class="aui-title" id="aui-title">
  24. 收货地址管理
  25. </div>
  26. <div id="app" class="add-right" v-on:click="openWin('addressList')">
  27. 添加新地址
  28. </div>
  29. </header>
  30. </body>
  31. <script type="text/javascript" src="../script/api.js"></script>
  32. <script type="text/javascript" src="../script/httpRequest.js"></script>
  33. <script type="text/javascript" src="../script/vue_plugins.js"></script>
  34. <script type="text/javascript">
  35. function closeWin() {
  36. api.closeWin({
  37. });
  38. }
  39. apiready = function() {
  40. api.parseTapmode();
  41. var header = $api.byId('aui-header');
  42. $api.fixStatusBar(header);
  43. var headerPos = $api.offset(header);
  44. var body_h = $api.offset($api.dom('body')).h;
  45. api.openFrame({
  46. name : 'ressList_body',
  47. url : 'ressList_body.html',
  48. bounces : false,
  49. vScrollBarEnabled : false,
  50. hScrollBarEnabled : false,
  51. rect : {
  52. x : 0,
  53. y : headerPos.h,
  54. w : 'auto',
  55. h : 'auto'
  56. },
  57. bgColor:'#f5f5f5',
  58. })
  59. };
  60. new Vue({
  61. el: '#app',
  62. data: {
  63. },
  64. methods: {
  65. openWin: function(src) {
  66. this.goWin(src, src + '_win.html', '');
  67. },
  68. },
  69. })
  70. </script>
  71. </html>