success.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport"content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
  6. <meta name="browsermode" content="application"/>
  7. <meta name="renderer" content="webkit">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  9. <!-- 禁止百度转码 -->
  10. <meta http-equiv="Cache-Control" content="no-siteapp" />
  11. <!-- uc强制竖屏 -->
  12. <meta name="screen-orientation" content="portrait">
  13. <!-- QQ强制竖屏 -->
  14. <meta name="x5-orientation" content="portrait">
  15. <link rel="stylesheet" type="text/css" href="{__MODULE_PATH}error/css/reset-2.0.css" />
  16. <link rel="stylesheet" type="text/css" href="{__MODULE_PATH}error/css/style.css" />
  17. <script src="{__FRAME_PATH}js/jquery.min.js"></script>
  18. </head>
  19. <style type="text/css">
  20. </style>
  21. <body>
  22. <div class="link-wrapper">
  23. <div class="success">
  24. <img src="{__MODULE_PATH}success/images/success-icon.png" />
  25. <div class="text">
  26. <p class="status">{$msg}!</p>
  27. <p class="countdown"><span class="nmb">3</span>秒钟后自动跳转,<a class="back" href="javascript:void(0);">点此手动跳转</a></p>
  28. <p class="tips">CRMEB提示您:您访问的页面正在跳转中,请耐心等待…</p>
  29. </div>
  30. </div>
  31. </div>
  32. <script>
  33. $(document).ready(function(){
  34. var url = "{$url}";
  35. if(!url) url = document.referrer;
  36. var nmb = $('.nmb').html();
  37. var iCount = setInterval(function (e) {
  38. $('.nmb').html(--nmb);
  39. if(nmb < 1){
  40. clearInterval(iCount);
  41. if(url) location.replace(url);
  42. }
  43. }, 1000);
  44. $('.back').on('click',function(){
  45. if(url) location.replace(url);
  46. });
  47. });
  48. </script>
  49. </body>
  50. </html>