intoStore_win.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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/aui-win.css" />
  9. </head>
  10. <style>
  11. </style>
  12. <body>
  13. <header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
  14. <a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left"></span> </a>
  15. <div class="aui-title" id="aui-title">
  16. {{ $t('window.intoStore') }}
  17. </div>
  18. </header>
  19. </body>
  20. <script type="text/javascript" src="../../../../../script/api.js"></script>
  21. <script src="../../../../../script/js/vue.js"></script>
  22. <script src="../../../../../script/js/vue-i18n.js"></script>
  23. <script type="text/javascript" src="../../../js/zh.js"></script>
  24. <script type="text/javascript" src="../../../js/en.js"></script>
  25. <script type="text/javascript">
  26. function closeWin() {
  27. api.closeWin({
  28. });
  29. }
  30. apiready = function() {
  31. let langType = $api.getStorage('lang') || 'cn'
  32. const i18n = new VueI18n({
  33. locale: langType,//设置语言
  34. messages: {
  35. en: getEn(),
  36. cn: getCn()
  37. }
  38. })
  39. new Vue({
  40. el: '#aui-header',
  41. i18n,
  42. data: {}
  43. })
  44. api.parseTapmode();
  45. var header = $api.byId('aui-header');
  46. $api.fixStatusBar(header);
  47. var headerPos = $api.offset(header);
  48. var body_h = $api.offset($api.dom('body')).h;
  49. api.openFrame({
  50. name : 'intoStore_body',
  51. url : 'intoStore_body.html',
  52. bounces : false,
  53. vScrollBarEnabled : false,
  54. hScrollBarEnabled : false,
  55. rect : {
  56. x : 0,
  57. y : headerPos.h,
  58. w : 'auto',
  59. h : 'auto'
  60. },
  61. bgColor:'#f5f5f5',
  62. })
  63. };
  64. </script>
  65. </html>