242 lines
6.6 KiB
HTML
242 lines
6.6 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Chookoo 官方旗舰店</title>
|
|
<style>
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
|
|
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
|
color: #fff;
|
|
}
|
|
.container {
|
|
text-align: center;
|
|
padding: 40px 24px;
|
|
max-width: 420px;
|
|
width: 100%;
|
|
}
|
|
.logo {
|
|
width: 64px;
|
|
height: 64px;
|
|
margin: 0 auto 24px;
|
|
border-radius: 16px;
|
|
background: linear-gradient(135deg, #2f6bff 0%, #06b6d4 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 28px;
|
|
font-weight: 800;
|
|
color: #fff;
|
|
}
|
|
h1 {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
margin-bottom: 8px;
|
|
}
|
|
.subtitle {
|
|
font-size: 14px;
|
|
color: #94a3b8;
|
|
margin-bottom: 32px;
|
|
line-height: 1.6;
|
|
}
|
|
/* 正常浏览器:直接跳转提示 */
|
|
.redirect-msg {
|
|
padding: 20px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
.redirect-msg .spinner {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 3px solid rgba(255, 255, 255, 0.15);
|
|
border-top-color: #2f6bff;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
margin: 0 auto 16px;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
.redirect-msg p {
|
|
font-size: 15px;
|
|
color: #e2e8f0;
|
|
line-height: 1.6;
|
|
}
|
|
.redirect-msg a {
|
|
display: inline-block;
|
|
margin-top: 16px;
|
|
padding: 12px 32px;
|
|
background: linear-gradient(135deg, #2f6bff 0%, #06b6d4 100%);
|
|
color: #fff;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
border-radius: 12px;
|
|
text-decoration: none;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
.redirect-msg a:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 24px rgba(47, 107, 255, 0.4);
|
|
}
|
|
/* 微信内:引导提示 */
|
|
.wechat-guide {
|
|
display: none;
|
|
}
|
|
.wechat-guide .arrow {
|
|
font-size: 48px;
|
|
color: #2f6bff;
|
|
margin-bottom: 16px;
|
|
animation: bounce 1.5s ease infinite;
|
|
}
|
|
@keyframes bounce {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-8px); }
|
|
}
|
|
.wechat-guide h2 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
color: #fff;
|
|
}
|
|
.wechat-guide p {
|
|
font-size: 14px;
|
|
color: #94a3b8;
|
|
line-height: 1.8;
|
|
margin-bottom: 24px;
|
|
}
|
|
.wechat-guide .steps {
|
|
text-align: left;
|
|
padding: 16px 20px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
.wechat-guide .step {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 10px 0;
|
|
font-size: 14px;
|
|
color: #cbd5e1;
|
|
line-height: 1.6;
|
|
}
|
|
.wechat-guide .step + .step {
|
|
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
|
}
|
|
.wechat-guide .step-num {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #2f6bff, #06b6d4);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
flex-shrink: 0;
|
|
}
|
|
.wechat-guide .copy-btn {
|
|
display: inline-block;
|
|
margin-top: 20px;
|
|
padding: 12px 32px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
.wechat-guide .copy-btn:hover {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
}
|
|
.footer-text {
|
|
margin-top: 32px;
|
|
font-size: 12px;
|
|
color: #475569;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="logo">C</div>
|
|
<h1>Chookoo 官方旗舰店</h1>
|
|
<p class="subtitle">宠小科 · 智能宠物健康管理</p>
|
|
|
|
<!-- 正常浏览器显示 -->
|
|
<div class="redirect-msg" id="redirectMsg">
|
|
<div class="spinner"></div>
|
|
<p>正在跳转至官方旗舰店...</p>
|
|
<a id="gotoBtn" href="#">如未自动跳转,请点击这里</a>
|
|
</div>
|
|
|
|
<!-- 微信内显示 -->
|
|
<div class="wechat-guide" id="wechatGuide">
|
|
<div class="arrow">👆</div>
|
|
<h2>请在浏览器中打开</h2>
|
|
<p>微信内无法直接访问淘宝,请按以下步骤操作:</p>
|
|
<div class="steps">
|
|
<div class="step">
|
|
<span class="step-num">1</span>
|
|
<span>点击右上角 <strong>⋯</strong> 按钮</span>
|
|
</div>
|
|
<div class="step">
|
|
<span class="step-num">2</span>
|
|
<span>选择「<strong>在浏览器中打开</strong>」</span>
|
|
</div>
|
|
<div class="step">
|
|
<span class="step-num">3</span>
|
|
<span>页面将自动跳转至淘宝旗舰店</span>
|
|
</div>
|
|
</div>
|
|
<button class="copy-btn" id="copyBtn">复制链接到浏览器打开</button>
|
|
</div>
|
|
|
|
<p class="footer-text">© 2025 Chookoo 宠小科智能科技</p>
|
|
</div>
|
|
|
|
<script>
|
|
// === 淘宝店铺链接 ===
|
|
var SHOP_URL = 'https://s.tb.cn/c.0DxibM';
|
|
|
|
// 检测是否在微信内
|
|
var isWechat = /MicroMessenger/i.test(navigator.userAgent);
|
|
|
|
var link = document.getElementById('gotoBtn');
|
|
link.href = SHOP_URL;
|
|
|
|
if (isWechat) {
|
|
// 微信内:显示引导提示
|
|
document.getElementById('redirectMsg').style.display = 'none';
|
|
document.getElementById('wechatGuide').style.display = 'block';
|
|
|
|
document.getElementById('copyBtn').addEventListener('click', function() {
|
|
var input = document.createElement('input');
|
|
input.value = SHOP_URL;
|
|
document.body.appendChild(input);
|
|
input.select();
|
|
try {
|
|
document.execCommand('copy');
|
|
this.textContent = '✓ 已复制,去浏览器粘贴打开';
|
|
this.style.borderColor = '#10b981';
|
|
} catch(e) {
|
|
this.textContent = '复制失败,请手动复制链接';
|
|
}
|
|
document.body.removeChild(input);
|
|
});
|
|
} else {
|
|
// 非微信:直接跳转
|
|
setTimeout(function() {
|
|
window.location.href = SHOP_URL;
|
|
}, 1500);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|