cmsdocMobile.html 2.5 KB

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