kucunjjs_win.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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/iconfont.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. <a class="aui-btn aui-btn-info aui-pull-right" tapmode onclick="shaixuan()"><span class="icon iconfont icon-shaixuan" style="font-size: 18px;"></span></a>
  20. </header>
  21. </body>
  22. <script type="text/javascript" src="../../script/api.js"></script>
  23. <script type="text/javascript">
  24. function closeWin() {
  25. api.closeWin({
  26. });
  27. }
  28. var h = '',
  29. apiready = function() {
  30. api.parseTapmode();
  31. var header = $api.byId('aui-header');
  32. $api.fixStatusBar(header);
  33. var headerPos = $api.offset(header);
  34. h = headerPos.h;
  35. var body_h = $api.offset($api.dom('body')).h;
  36. api.openFrame({
  37. name : 'kucunjjs_body',
  38. url : 'kucunjjs_body.html',
  39. bounces : false,
  40. vScrollBarEnabled : false,
  41. hScrollBarEnabled : false,
  42. rect : {
  43. x : 0,
  44. y : headerPos.h,
  45. w : 'auto',
  46. h : 'auto'
  47. },
  48. bgColor:'#f5f5f5',
  49. pageParam : {
  50. h : h
  51. }
  52. })
  53. };
  54. function shaixuan(){
  55. api.sendEvent({
  56. name:'kucunjjs_body',
  57. extra : {
  58. f : 'kucunjjs_body',
  59. h : h
  60. }
  61. });
  62. }
  63. </script>
  64. </html>