kehu_win.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.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. <!--status “” 全部的 0.待审核 1.通过 2未通过-->
  21. <div class="aui-tab" id="tab">
  22. <div class="aui-tab-item">
  23. 全部客户
  24. </div>
  25. <div class="aui-tab-item">
  26. 待审核
  27. </div>
  28. <div class="aui-tab-item">
  29. 通过
  30. </div>
  31. <div class="aui-tab-item">
  32. 未通过
  33. </div>
  34. </div>
  35. </body>
  36. <script type="text/javascript" src="../../script/api.js"></script>
  37. <script type="text/javascript" src="../../script/aui-tab.js" ></script>
  38. <script type="text/javascript">
  39. function closeWin() {
  40. api.closeWin({
  41. });
  42. }
  43. var tab = new auiTab({
  44. element : document.getElementById("tab"),
  45. }, function(ret) {
  46. var index = ret.index;
  47. api.sendEvent({
  48. name:'tabClick',
  49. extra : {
  50. index : index
  51. }
  52. });
  53. });
  54. apiready = function() {
  55. api.parseTapmode();
  56. var header = $api.byId('aui-header');
  57. $api.fixStatusBar(header);
  58. var headerPos = $api.offset(header);
  59. var body_h = $api.offset($api.dom('body')).h;
  60. var tabH = $api.offset($api.dom("#tab")).h;
  61. api.openFrame({
  62. name : 'kehu_body',
  63. url : 'kehu_body.html',
  64. bounces : false,
  65. vScrollBarEnabled : false,
  66. hScrollBarEnabled : false,
  67. rect : {
  68. x : 0,
  69. y : headerPos.h + tabH,
  70. w : 'auto',
  71. h : 'auto'
  72. },
  73. bgColor : '#f5f5f5',
  74. })
  75. };
  76. </script>
  77. </html>