redirect.html 678 B

12345678910111213141516171819
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!-- 1. 从 URL 参数中提取目标地址 -->
  5. <script>
  6. const params = new URLSearchParams(window.location.search);
  7. const targetUrl = params.get('redirect_open'); // 例如 ?url=http://oa.cmbchina.com
  8. if (targetUrl) {
  9. // 2. 延迟 5 秒后通过 meta 刷新跳转(无界面闪烁)
  10. setTimeout(() => {
  11. window.location.href = targetUrl + (targetUrl.includes('?') ? '&' : '?') + 'from_redirect=' + Date.now();
  12. }, 5000);
  13. }
  14. </script>
  15. <!-- 3. 确保页面完全空白 -->
  16. <style>html, body { display: none; }</style>
  17. </head>
  18. <body></body>
  19. </html>