| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <!doctype html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
- <title>移动端下载</title>
- <style>
- * { box-sizing: border-box; }
- body {
- margin: 0;
- min-height: 100vh;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 24px;
- color: #1a2332;
- background: linear-gradient(135deg, #dcebff 0%, #f2f7ff 45%, #e7f0ff 100%);
- font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
- }
- .card {
- width: 100%;
- max-width: 420px;
- padding: 32px 28px;
- text-align: center;
- background: #fff;
- border: 1px solid rgba(255, 255, 255, .9);
- border-radius: 18px;
- box-shadow: 0 24px 60px rgba(42, 92, 170, .16);
- }
- .logo {
- width: 56px;
- height: 56px;
- display: block;
- margin: 0 auto 18px;
- object-fit: contain;
- border-radius: 12px;
- background: #fff;
- }
- h1 {
- margin: 0 0 8px;
- font-size: 20px;
- font-weight: 700;
- }
- .subtitle {
- margin: 0 0 24px;
- color: #52627a;
- font-size: 13px;
- line-height: 1.7;
- }
- .status {
- min-height: 22px;
- margin-bottom: 20px;
- padding: 10px 12px;
- border-radius: 8px;
- color: #1e66e8;
- background: #eef5ff;
- font-size: 13px;
- line-height: 1.6;
- }
- .links {
- display: grid;
- gap: 10px;
- }
- .links a {
- display: block;
- padding: 12px 16px;
- border: 1px solid #bfdbfe;
- border-radius: 10px;
- color: #2563eb;
- background: #eff6ff;
- font-size: 14px;
- font-weight: 600;
- text-decoration: none;
- transition: background-color .2s, border-color .2s;
- }
- .links a:hover {
- border-color: #93c5fd;
- background: #dbeafe;
- }
- .hint {
- margin: 18px 0 0;
- color: #8a9ab2;
- font-size: 12px;
- line-height: 1.7;
- }
- </style>
- </head>
- <body>
- <main class="card">
- <img class="logo" src="./logo.png" alt="平台 Logo">
- <h1>智慧管网移动端下载</h1>
- <p class="subtitle">将自动识别手机操作系统并打开对应安装包</p>
- <div id="status" class="status" aria-live="polite">正在识别设备,请稍候…</div>
- <div class="links">
- <a id="android-link" href="http://119.44.236.37:9001/minio/public/pipe.apk">Android 版下载</a>
- <a id="ios-link" href="http://119.44.236.37:9001/minio/public/pipe-ios.mobileconfig">IOS 版下载</a>
- </div>
- <p class="hint">如未自动跳转,请点击上方对应系统的手动下载。</p>
- </main>
- <script>
- (function () {
- var ANDROID_URL = 'http://119.44.236.37:9001/minio/public/pipe.apk';
- var IOS_URL = 'http://119.44.236.37:9001/minio/public/pipe-ios.mobileconfig';
- var statusEl = document.getElementById('status');
- var ua = ((navigator.userAgent || '') + ' ' + (navigator.vendor || '')).toLowerCase();
- var isAndroid = /android/.test(ua);
- var isIOS = /iphone|ipad|ipod/.test(ua)
- || (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1);
- var target = isAndroid ? ANDROID_URL : isIOS ? IOS_URL : '';
- if (isAndroid) {
- statusEl.textContent = '已识别 Android,正在打开安装包…';
- } else if (isIOS) {
- statusEl.textContent = '已识别 iOS,正在打开配置文件…';
- } else {
- statusEl.textContent = '未识别到手机系统,请手动选择下载。';
- return;
- }
- window.setTimeout(function () {
- window.location.replace(target);
- }, 600);
- }());
- </script>
- </body>
- </html>
|