123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <!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-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>
- <a class="aui-btn aui-btn-info aui-pull-right" tapmode onclick="addStore()"> <span class="aui-iconfont aui-icon-add"></span> </a>
- </header>
- </body>
- <script type="text/javascript" src="../../script/api.js"></script>
- <script type="text/javascript">
- function closeWin() {
- api.closeWin({
- });
- }
- apiready = function() {
- var title = "货物列表";
- if (api.pageParam.type == 2) {
- title = "类别列表"
- }
- if (api.pageParam.type == 5) {
- title = "供应商列表"
- }
- $api.text($api.byId("aui-title"), title);
- 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;
- api.openFrame({
- name : 'orderGood_body',
- url : 'orderGood_body.html',
- bounces : false,
- vScrollBarEnabled : false,
- hScrollBarEnabled : false,
- rect : {
- x : 0,
- y : headerPos.h,
- w : 'auto',
- h : 'auto'
- },
- bgColor : '#f5f5f5',
- pageParam : {
- type : api.pageParam.type
- }
- })
- };
- // function add(){
- // api.execScript({
- // frameName : 'orderGood_body',
- // script: 'add();'
- // });
- // }
- // 添加商品
- function addStore() {
- if (api.pageParam.type == 2) {
- api.execScript({
- frameName : 'orderGood_body',
- script : 'add();'
- });
- } else if (api.pageParam.type == 5) {
- api.openWin({
- name : 'addSupplier_win',
- url : './addSupplier_win.html'
- });
- } else {
- api.openWin({
- name : 'orderScan_win',
- url : './orderScan_win.html'
- });
- }
- }
- </script>
- </html>
|