workmobilewithaction.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. <link rel="icon" href="data:;">
  12. <meta content="width=device-width, initial-scale=1.0,user-scalable=0" name="viewport" />
  13. <meta content="yes" name="apple-mobile-web-app-capable" />
  14. <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  15. <meta content="telephone=no" name="format-detection" />
  16. <title></title>
  17. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  18. </head>
  19. <body style="overflow: hidden; margin:0px;height: 100%;width: 100%;">
  20. <div
  21. style="-webkit-overflow-scrolling: touch; overflow: auto; position: absolute; bottom: 4em;top: 0px;left: 0px;width: 100%;">
  22. <div id="loaddingArea"
  23. style="overflow: hidden;width:0px; height:2px; background-color:#4e82bd; position: absolute; top: 0; z-index: 100">
  24. </div>
  25. <div id="appContent" class="appContent" style="overflow: hidden;"></div>
  26. </div>
  27. <div class="o2_form_mobile_actions"
  28. style="height: 4em;overflow: hidden; border-top: 1px solid #dfdfdf; display: block; position: absolute; bottom: 0px; background: #ffffff; width: 100%; z-index:100;">
  29. </div>
  30. <script src="../o2_core/o2.min.js"></script>
  31. <script src="js/base_work.min.js"></script>
  32. <script src="js/o2m.api.min.js"></script>
  33. <script src="js/work.min.js"></script>
  34. <script src="../o2_lib/Decimal.js"></script>
  35. <script>layout.mobile = true;</script>
  36. <script text="text/javascript">
  37. function addWxJsSdk() {
  38. //插入微信jssdk
  39. var script = document.createElement("script");
  40. script.type = "text/javascript";
  41. script.src = "../o2_lib/wechat/jweixin-1.6.0.js";
  42. document.body.appendChild(script);
  43. }
  44. // 根据ua判断当前环境 加载各种jssdk
  45. var u = navigator.userAgent.toLocaleLowerCase();
  46. // /miniProgram/i.test(u) 小程序
  47. // /wxwork/i.test(u) 企业微信
  48. if (/micromessenger/i.test(u)){ // 微信 企业微信 小程序
  49. //微信的WeixinJSBridgeReady加载完成后进行判断
  50. if (!window.WeixinJSBridge || !WeixinJSBridge.invoke) {
  51. document.addEventListener('WeixinJSBridgeReady', addWxJsSdk, false);
  52. } else {
  53. addWxJsSdk();
  54. }
  55. }else if (/uni-app/i.test(u)) { // uniapp开发的app
  56. var script = document.createElement("script");
  57. script.type = "text/javascript";
  58. script.src = "../o2_lib/uniapp/uni.webview.1.5.2.js";
  59. document.body.appendChild(script);
  60. }else if (/dingtalk/i.test(u)) { // 钉钉
  61. }
  62. </script>
  63. <!-- <script type="text/javascript" src="../o2_lib/wechat/jweixin-1.6.0.js"></script> -->
  64. </body>
  65. </html>