backList_win.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport"
  6. content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  7. <title>Hello APP</title>
  8. <link rel="stylesheet" type="text/css" href="../../../../../css/api.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
  16. class="aui-iconfont aui-icon-left"></span> </a>
  17. <div class="aui-title" id="aui-title">
  18. {{ $t('window.backList') }}
  19. </div>
  20. <a class="aui-btn aui-btn-info aui-pull-right" tapmode onclick="goWin()"> <span
  21. class="aui-iconfont aui-icon-search"></span> </a>
  22. </header>
  23. </body>
  24. <script type="text/javascript" src="../../../../../script/api.js"></script>
  25. <script src="../../../../../script/js/vue.js"></script>
  26. <script src="../../../../../script/js/vue-i18n.js"></script>
  27. <script type="text/javascript" src="../../../js/zh.js"></script>
  28. <script type="text/javascript" src="../../../js/en.js"></script>
  29. <script type="text/javascript">
  30. function closeWin() {
  31. api.closeWin({
  32. });
  33. }
  34. function goWin() {
  35. api.openWin({
  36. name: 'backList_Sear_win',
  37. url: 'backList_Sear_win.html'
  38. });
  39. }
  40. apiready = function () {
  41. let langType = $api.getStorage('lang') || 'cn'
  42. const i18n = new VueI18n({
  43. locale: langType,//设置语言
  44. messages: {
  45. en: getEn(),
  46. cn: getCn()
  47. }
  48. })
  49. new Vue({
  50. el: '#aui-header',
  51. i18n,
  52. data: {}
  53. })
  54. api.parseTapmode();
  55. var header = $api.byId('aui-header');
  56. $api.fixStatusBar(header);
  57. var headerPos = $api.offset(header);
  58. var body_h = $api.offset($api.dom('body')).h;
  59. api.openFrame({
  60. name: 'backList_body',
  61. url: 'backList_body.html',
  62. bounces: false,
  63. vScrollBarEnabled: false,
  64. hScrollBarEnabled: false,
  65. rect: {
  66. x: 0,
  67. y: headerPos.h,
  68. w: 'auto',
  69. h: 'auto'
  70. },
  71. bgColor: '#f5f5f5',
  72. })
  73. };
  74. </script>
  75. </html>