efficiencyWin.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <meta name="format-detection"content="telephone=no">
  8. <title>index</title>
  9. <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
  10. <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
  11. <link rel="stylesheet" href="../../css/projeck.css">
  12. <style media="screen">
  13. body,html{
  14. margin: 0;
  15. background: #fff;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div class="api_layout">
  21. <header class="header-login">
  22. <img class="backBtn" src="../../image/btn_back.png" alt="" tapmode onclick="backIndex()">
  23. <p class="api_text">生产统计</p>
  24. </header>
  25. </div>
  26. </body>
  27. </html>
  28. <script type="text/javascript" src="../../script/api.js"></script>
  29. <script src="../../script/config.js"></script>
  30. <script type="text/javascript">
  31. apiready = function () {
  32. $api.fixStatusBar($api.dom('header') );
  33. api.parseTapmode();
  34. var info = $api.getStorage('data'),
  35. token = JSON.parse(info).data.access_token;
  36. openEffciency()
  37. }
  38. function openEffciency() {
  39. api.openFrame({
  40. name: 'efficiencyFrm',
  41. url: 'efficiencyFrm.html',
  42. rect: {
  43. x: 0,
  44. y: $api.dom('header').offsetHeight,
  45. w: 'auto',
  46. h: 'auto'
  47. },
  48. pageParam: {
  49. name: 'test'
  50. },
  51. bounces: false,
  52. bgColor: 'rgba(0,0,0,0)',
  53. vScrollBarEnabled: false,
  54. hScrollBarEnabled: false,
  55. progress:{
  56. type:'page'
  57. }
  58. });
  59. }
  60. function backIndex() {
  61. api.sendEvent({
  62. name: 'userInfo',
  63. extra: {
  64. key1: 'value1',
  65. key2: 'value2'
  66. }
  67. });
  68. api.closeWin();
  69. }
  70. </script>