product_old.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title></title>
  7. <link href="css/mui.min.css" rel="stylesheet" />
  8. <link href="css/main.css" rel="stylesheet" />
  9. </head>
  10. <body>
  11. <header class="mui-bar mui-bar-nav">
  12. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  13. <h1 class="mui-title" id="title">温室</h1>
  14. </header>
  15. <div class="mui-content">
  16. <div class="mui-control-content mui-active">
  17. <iframe id="product" src="" style="width:100%;overflow: hidden;border:0px;margin-top:10px;"></iframe>
  18. </div>
  19. </div>
  20. <script src="js/mui.min.js"></script>
  21. <script src="js/main.js"></script>
  22. <script type="text/javascript" charset="utf-8">
  23. (function($, self) {
  24. $.init();
  25. $.plusReady(function() {
  26. plus.webview.currentWebview().setStyle({scrollIndicator:'none'});
  27. var self = plus.webview.currentWebview();
  28. var id = self.id;
  29. var name = self.name;
  30. document.getElementById('title').innerText = name;
  31. var page = document.getElementById("product");
  32. //alert(winSize().height);
  33. page.setAttribute('height', winSize().height-100);
  34. //alert(page.getAttribute('height'));
  35. page.setAttribute('src', config.host + 'product?id='+id);
  36. });
  37. }(mui, document));
  38. </script>
  39. </body>
  40. </html>