123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
- <meta content="yes" name="apple-mobile-web-app-capable" />
- <meta content="black" name="apple-mobile-web-app-status-bar-style" />
- <meta content="telephone=no" name="format-detection" />
- <title>移动客户端</title>
- <style>
- html {
- margin: 0;
- padding: 0;
- }
- body {
- margin: 0;
- padding: 0;
- }
- @media screen and (max-width: 750px) {
- .el-message-box {
- width: 60% !important;
- }
- }
- .app_box {
- width: 100%;
- background-size: cover;
- background-position: center;
- background-image: url("./img/pic_beijing.png");
- padding-top: 62pt;
- padding-bottom: 12pt;
- }
- .app_logo {
- width: 50pt;
- height: 50pt;
- display: block;
- margin: 0 auto;
- }
- .app_title {
- color: #333333;
- font-size: 24pt;
- text-align: center;
- margin: 5pt;
- }
- .app_line {
- height: 1px;
- background-color: #dedede;
- width: 180pt;
- margin: 36pt auto 30pt;
- }
- .app_footer {
- height: 60px;
- width: 100%;
- bottom: 0;
- left: 0;
- position: fixed;
- background: #fff;
- }
- .app_footer_name {
- height: 20px;
- font-size: 14px;
- font-weight: 400;
- color: #666666;
- line-height: 20px;
- text-align: center;
- }
- .app_footer_links {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- }
- .app_footer_link {
- font-size: 12px;
- color: #999999;
- line-height: 16px;
- text-decoration: underline;
- }
- .app_footer_link a:visited,a:link {
- color: #999999;
- text-decoration: underline;
- }
- .mask {
- position: fixed;
- left: 0px;
- top: 0px;
- right: 0px;
- bottom: 0px;
- background: rgba(0, 0, 0, 0.4);
- }
- .mask .mask_alert {
- position: absolute;
- right: 12pt;
- left: 12pt;
- top: 120pt;
- text-align: center;
- color: #fff;
- font-size: 12pt;
- }
- .mask img {
- display: block;
- position: absolute;
- right: 0;
- top: 0;
- }
- .app_version {
- color: #999999;
- font-size: 12pt;
- text-align: center;
- }
- .actions {
- margin: 18pt auto 0;
- text-align: center;
- }
- .actions a {
- position: relative;
- display: inline-block;
- padding: 6pt 12pt;
- min-width: 140pt;
- border: 1px solid #fb4747;
- border-radius: 40px;
- font-size: 12pt;
- background: #fb4747;
- color: #fff;
- text-decoration: none;
- }
- .actions a img {
- width: 16pt;
- height: 16pt;
- vertical-align: middle;
- }
- .app_line {
- height: 1px;
- background-color: #dedede;
- width: 180pt;
- margin: 36pt auto 30pt;
- }
- .msg {
- margin: 12px;
- }
- .msg .msg_header {
- margin-top: 0;
- color: #333333;
- text-align: center;
- font-size: 14pt;
- }
- .msg .msg_body {
- width: 210pt;
- margin: 0 auto;
- text-align: left;
- font-size: 14pt;
- color: #999999;
- }
- </style>
- <script src="../o2_core/o2.min.js"></script>
- <script src="js/base_simple_anonymous.js"></script>
-
- </head>
- <body>
- <!-- 移动端app下载页面,用于自助打包发布的app下载 目前就只有android -->
- <div id="app">
- <div class="app_box">
- <img
- src="./img/icon_logo150.png"
- class="app_logo"
- />
- <h3 class="app_title">协同办公</h3>
- <div class="app_line"></div>
- <!-- 下载页面内容 -->
- <div id="android_box">
- <div
- id="android_version"
- class="app_version"
- >当前最新版本:{{android.versionName}}</div>
- <div
- id="actions_android"
- class="actions type-android"
- >
- <a id="android_download_link">
- <img src="./img/action_android.png" />
- 下载安装
- </a>
- </div>
- </div>
-
- <div
- class="mask"
- id="mask"
- >
- <img
- src="./img/menu_tap.png"
- width="110"
- height="140"
- />
- <p
- class="mask_alert"
- id="mask_alert"
- >请点右上角菜单,在浏览器打开</p>
- </div>
- </div>
- </div>
- <script>
- layout.addReady(function(){
- (function(layout){
-
- // 判断手机信息
- var checkUserAgent = function() {
- //判断平台
- var ua = window.navigator.userAgent.toLowerCase();
- console.log(ua);
- var isiOS = /(iPhone|iPad|iPod|iOS)/i.test(ua);
- var isAndroid = /(Android|Adr)/i.test(ua);
- console.log("isiOS:"+isiOS);
- console.log("isAndroid:"+isAndroid);
- var isDingding = false;
- var isWeixin = false;
- if (ua.match(/DingTalk/i) == "dingtalk") {
- //用钉钉打开
- isDingding = true;
- } else if (ua.match(/MicroMessenger/i) == "micromessenger") {
- //用微信打开
- isWeixin = true;
- }
- // $("android_box").setStyles({
- // display:isAndroid ? "block" : "none"
- // })
- $("mask").setStyles({
- display:isDingding || isWeixin ? "block" : "none"
- })
- };
-
- checkUserAgent();
- })(layout);
- });
- </script>
- </body>
- </html>
|