index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!doctype html>
  2. <html lang="en">
  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. <title>入口页面</title>
  8. <style>
  9. </style>
  10. </head>
  11. <body style="background-color: #fff">
  12. <script>
  13. apiready = function() {
  14. // 设置ios7的标题栏字体变亮,全局用一个就行了
  15. api.setStatusBarStyle({
  16. style: 'dark'
  17. });
  18. api.openFrame({
  19. name: 'main',
  20. // url: 'dist/html/main.html', //上传打包时使用
  21. url: 'http://192.168.31.103:8400/html/main.html', //调试时使用
  22. // url: 'http://192.168.1.9:8400/html/main.html', //调试时使用
  23. // url: 'http://192.168.0.105:8400/html/main.html', //调试时使用
  24. rect: {
  25. x: 0,
  26. y: 0,
  27. w: 'auto',
  28. h: 'auto'
  29. },
  30. bounces: false,
  31. vScrollBarEnabled: true,
  32. hScrollBarEnabled: true
  33. });
  34. };
  35. </script>
  36. </body>
  37. </html>