| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <title>iBit 下载</title>
- <style>
- * { margin: 0; padding: 0; box-sizing: border-box; }
- body {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
- background: #0b0f19;
- color: #eaecef;
- display: flex; justify-content: center; align-items: center;
- min-height: 100vh; padding: 24px;
- }
- .card {
- background: #1e2329;
- border-radius: 16px; padding: 40px 28px;
- max-width: 360px; width: 100%; text-align: center;
- }
- .logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 20px; }
- h1 { font-size: 22px; margin-bottom: 8px; }
- .ver { font-size: 13px; color: #848e9c; margin-bottom: 28px; }
- .btn {
- display: block; width: 100%; padding: 14px 0;
- border-radius: 10px; font-size: 16px; font-weight: 600;
- text-decoration: none; cursor: pointer; transition: opacity 0.2s;
- background: #f0b90b; color: #0b0f19;
- }
- .btn:active { opacity: 0.8; }
- .btn.disabled { background: #2b3139; color: #5e6673; pointer-events: none; }
- .hint { font-size: 12px; color: #5e6673; margin-top: 16px; }
- .badge { display: inline-block; font-size: 12px; color: #848e9c; margin-top: 24px; padding: 4px 12px; border: 1px solid #2b3139; border-radius: 20px; }
- </style>
- </head>
- <body>
- <div class="card">
- <h1>iBit</h1>
- <div class="ver" id="verDisplay"></div>
- <a id="downloadBtn" class="btn disabled" href="javascript:void(0)">检测中...</a>
- <div class="hint" id="hint"></div>
- <div class="badge" id="platformBadge"></div>
- </div>
- <script>
- (function() {
- // =========================================================
- // 下载地址配置(请在此处填写实际地址)
- // =========================================================
- var DOWNLOAD_URLS = {
- android: 'https://dl.cvcexapp.top/apk/app-release-v4.0.4.apk', // TODO: 填写 Android APK 下载地址
- ios: 'https://dgtf.6-y2.com/rOb4yR', // TODO: 填写 iOS App Store 下载地址
- };
- var APP_VERSION = '4.0.4';
- // =========================================================
- // 平台检测
- // =========================================================
- var ua = navigator.userAgent || '';
- var isIOS = /iPhone|iPad|iPod/i.test(ua);
- var isAndroid = /Android/i.test(ua);
- var platform = isIOS ? 'ios' : (isAndroid ? 'android' : 'unknown');
- var url = DOWNLOAD_URLS[platform] || '';
- // 显示版本号 & 平台
- var verEl = document.getElementById('verDisplay');
- var badgeEl = document.getElementById('platformBadge');
- var hintEl = document.getElementById('hint');
- var btn = document.getElementById('downloadBtn');
- if (verEl) verEl.textContent = 'v' + APP_VERSION;
- if (badgeEl) badgeEl.textContent = (platform === 'ios') ? 'iOS' : (platform === 'android' ? 'Android' : platform);
- if (url) {
- btn.textContent = (platform === 'ios') ? '前往 App Store 下载' : '下载 APK';
- btn.href = url;
- btn.classList.remove('disabled');
- // iOS 自动跳转
- if (platform === 'ios') {
- hintEl.textContent = '即将跳转到 App Store ...';
- setTimeout(function() { window.location.href = url; }, 800);
- }
- } else {
- if (platform === 'unknown') {
- btn.textContent = '请在手机端打开此页面';
- hintEl.textContent = '当前设备暂不支持';
- } else {
- btn.textContent = '暂无下载地址';
- hintEl.textContent = '下载地址尚未配置,请联系管理员';
- }
- }
- })();
- </script>
- </body>
- </html>
|