1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <!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"/>
- <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
- <meta name="format-detection"content="telephone=no">
- <title>index</title>
- <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
- <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
- <link rel="stylesheet" href="../../css/projeck.css">
- <style media="screen">
- body,html{
- margin: 0;
- background: #fff;
- }
- </style>
- </head>
- <body>
- <div class="api_layout">
- <header class="header-login">
- <img class="backBtn" src="../../image/btn_back.png" alt="" tapmode onclick="backIndex()">
- <p class="api_text">生产统计</p>
- </header>
- </div>
- </body>
- </html>
- <script type="text/javascript" src="../../script/api.js"></script>
- <script src="../../script/config.js"></script>
- <script type="text/javascript">
- apiready = function () {
- $api.fixStatusBar($api.dom('header') );
- api.parseTapmode();
- var info = $api.getStorage('data'),
- token = JSON.parse(info).data.access_token;
- openEffciency()
- }
- function openEffciency() {
- api.openFrame({
- name: 'efficiencyFrm',
- url: 'efficiencyFrm.html',
- rect: {
- x: 0,
- y: $api.dom('header').offsetHeight,
- w: 'auto',
- h: 'auto'
- },
- pageParam: {
- name: 'test'
- },
- bounces: false,
- bgColor: 'rgba(0,0,0,0)',
- vScrollBarEnabled: false,
- hScrollBarEnabled: false,
- progress:{
- type:'page'
- }
- });
- }
- function backIndex() {
- api.sendEvent({
- name: 'userInfo',
- extra: {
- key1: 'value1',
- key2: 'value2'
- }
- });
- api.closeWin();
- }
- </script>
|