12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
- <title>Hello APP</title>
- <link rel="stylesheet" type="text/css" href="../../css/api.css" />
- <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
- <link rel="stylesheet" type="text/css" href="../../css/aui-win.css" />
- </head>
- <style>
- </style>
- <body>
- <header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
- <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left"></span> </a>
- <div class="aui-title" id="aui-title">
- 客户列表
- </div>
- </header>
- <!--status “” 全部的 0.待审核 1.通过 2未通过-->
- <div class="aui-tab" id="tab">
- <div class="aui-tab-item">
- 全部客户
- </div>
- <div class="aui-tab-item">
- 待审核
- </div>
- <div class="aui-tab-item">
- 通过
- </div>
- <div class="aui-tab-item">
- 未通过
- </div>
- </div>
- </body>
- <script type="text/javascript" src="../../script/api.js"></script>
- <script type="text/javascript" src="../../script/aui-tab.js" ></script>
- <script type="text/javascript">
- function closeWin() {
- api.closeWin({
- });
- }
- var tab = new auiTab({
- element : document.getElementById("tab"),
- }, function(ret) {
- var index = ret.index;
- api.sendEvent({
- name:'tabClick',
- extra : {
- index : index
- }
- });
- });
- apiready = function() {
- api.parseTapmode();
- var header = $api.byId('aui-header');
- $api.fixStatusBar(header);
- var headerPos = $api.offset(header);
- var body_h = $api.offset($api.dom('body')).h;
- var tabH = $api.offset($api.dom("#tab")).h;
- api.openFrame({
- name : 'kehu_body',
- url : 'kehu_body.html',
- bounces : false,
- vScrollBarEnabled : false,
- hScrollBarEnabled : false,
- rect : {
- x : 0,
- y : headerPos.h + tabH,
- w : 'auto',
- h : 'auto'
- },
- bgColor : '#f5f5f5',
- })
-
- };
- </script>
- </html>
|