forumdocMobile.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  5. <link rel="stylesheet" type="text/css" href="css/style.css" charset="UTF-8" />
  6. <link rel="stylesheet" href="css/mBoxNotice.css" charset="UTF-8" />
  7. <link rel="stylesheet" href="css/mBoxTooltip.css" charset="UTF-8" />
  8. <script src="../o2_lib/htmleditor/ckeditor/ckeditor.js"></script>
  9. <script src="../o2_core/o2.min.js"></script>
  10. <script src="js/base.min.js"></script>
  11. <script>layout.mobile = true;</script>
  12. <script src="js/forumDocMobile.js"></script>
  13. <script src="../o2_lib/Decimal.js"></script>
  14. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
  15. <meta content="yes" name="apple-mobile-web-app-capable" />
  16. <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  17. <meta content="telephone=no" name="format-detection" />
  18. <title>Forum</title>
  19. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  20. </head>
  21. <body style="overflow: auto; margin:0px">
  22. <div id="layout" class="layout" style="overflow: auto"></div>
  23. <script text="text/javascript">
  24. function addWxJsSdk() {
  25. //插入微信jssdk
  26. var script = document.createElement("script");
  27. script.type = "text/javascript";
  28. script.src = "../o2_lib/wechat/jweixin-1.6.0.js";
  29. document.body.appendChild(script);
  30. }
  31. // 根据ua判断当前环境 加载各种jssdk
  32. var u = navigator.userAgent.toLocaleLowerCase();
  33. // /miniProgram/i.test(u) 小程序
  34. // /wxwork/i.test(u) 企业微信
  35. if (/micromessenger/i.test(u)){ // 微信 企业微信 小程序
  36. //微信的WeixinJSBridgeReady加载完成后进行判断
  37. if (!window.WeixinJSBridge || !WeixinJSBridge.invoke) {
  38. document.addEventListener('WeixinJSBridgeReady', addWxJsSdk, false);
  39. } else {
  40. addWxJsSdk();
  41. }
  42. }else if (/uni-app/i.test(u)) { // uniapp开发的app
  43. var script = document.createElement("script");
  44. script.type = "text/javascript";
  45. script.src = "../o2_lib/uniapp/uni.webview.1.5.2.js";
  46. document.body.appendChild(script);
  47. }else if (/dingtalk/i.test(u)) { // 钉钉
  48. }
  49. </script>
  50. </body>
  51. </html>