中转页html代码

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>夏季大促预热专场 | 限时福利</title>
        <script src="https://cdn.tailwindcss.com"></script>
        <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
    </head>
    <body>
        <!-- 导航栏 -->
        <nav class="bg-white shadow-sm">
            <div class="max-w-6xl mx-auto px-4 py-3">
                <div class="flex justify-between items-center">
                    <span class="text-xl font-bold text-blue-600">品牌专区</span>
                    <a href="#" class="text-gray-600 hover:text-blue-500">隐私政策</a>
                </div>
            </div>
        </nav>
    
        <!-- 主体内容 -->
        <main class="max-w-6xl mx-auto px-4 py-8">
            <div class="text-center mb-12">
                <h1 class="text-4xl font-bold text-gray-800 mb-4 animate-pulse">
                    盛夏狂欢购 · 限时福利通道
                </h1>
                <p class="text-gray-600 mb-6">正在为您验证专属折扣...</p>
                
                <!-- 动态跳转按钮 -->
                <div id="jumpContainer">
                    <button onclick="handleAccess()" 
                            class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-4 px-8 rounded-lg 
                                   transform transition-all duration-300 hover:scale-105 shadow-lg">
                        点击进入特权通道(<span id="countdown">5</span>)
                    </button>
                    <p class="text-sm text-gray-500">安全提示:请勿泄露访问链接</p>
                </div>
            </div>
    
            <!-- 动态商品展示 -->
            <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-12" id="productGrid"></div>
    
            <!-- 信任标识 -->
            <div class="text-center border-t pt-8">
                <div class="flex justify-center space-x-6 mb-4">
                    <img src="https://img.icons8.com/fluency/48/security-checked.png" alt="安全认证" 
                         class="h-12 opacity-75 hover:opacity-100 transition-opacity">
                    <img src="https://img.icons8.com/color/48/guarantee.png" alt="品质保证"
                         class="h-12 opacity-75 hover:opacity-100 transition-opacity">
                </div>
                <p class="text-gray-500 text-sm">ICP备12345678号 | 消费者维权热线:400-XXX-XXXX</p>
            </div>
        </main>
    
    <script>
    // 配置项(需要修改的部分)
    const ENCRYPTED_LINK = btoa("你的真实商城链接") // 用Base64加密真实链接
    const ACCESS_KEY = "2023SUMMER" // 访问密钥
    
    // 动态生成商品图片
    function generateProducts() {
        const grid = document.getElementById('productGrid')
        const categories = ['fashion', 'electronics', 'kitchen', 'cosmetics']
        
        categories.forEach(cat => {
            const imgUrl = `https://source.unsplash.com/random/800x600/?${cat}&sig=${Math.random()}`
            const card = `
                <div class="bg-white rounded-lg shadow-md overflow-hidden hover:shadow-xl transition-shadow">
                    <img src="${imgUrl}" alt="${cat}" 
                         class="h-48 w-full object-cover hover:scale-105 transition-transform">
                    <div>
                        <h3 class="font-semibold text-gray-800">${cat.toUpperCase()}</h3>
                        <p class="text-red-500 text-sm">限时折扣中</p>
                    </div>
                </div>`
            grid.innerHTML += card
        })
    }
    
    // 跳转处理
    function handleAccess() {
        const realLink = atob(ENCRYPTED_LINK)
        Swal.fire({
            title: '正在验证访问权限...',
            html: '请稍候',
            timer: 1500,
            didOpen: () => {
                Swal.showLoading()
                // 模拟后台验证
                setTimeout(() => {
                    window.location.href = `${realLink}?key=${ACCESS_KEY}`
                }, 1600)
            }
        })
    }
    
    // 倒计时
    let countdown = 5
    const timer = setInterval(() => {
        countdown--
        document.getElementById('countdown').textContent = countdown
        if(countdown <= 0) {
            clearInterval(timer)
            handleAccess()
        }
    }, 1000)
    
    // 初始化
    document.addEventListener('DOMContentLoaded', () => {
        generateProducts()
        // 动态修改页面标题(反爬虫)
        setTimeout(() => {
            document.title = "会员专属通道 - "+ new Date().getFullYear()
        }, 2000)
    })
    </script>
    </body>
    </html>