success.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!-- +---------------------------------------------------------------------- -->
  2. <!-- | CRMEB [ CRMEB赋能开发者,助力企业发展 ] -->
  3. <!-- +---------------------------------------------------------------------- -->
  4. <!-- | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. -->
  5. <!-- +---------------------------------------------------------------------- -->
  6. <!-- | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权 -->
  7. <!-- +---------------------------------------------------------------------- -->
  8. <!-- | Author: CRMEB Team <admin@crmeb.com> -->
  9. <!-- +---------------------------------------------------------------------- -->
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <meta charset="utf-8"/>
  14. <title>{if condition="$title"}<?php echo ($title);?>{else/}成功提醒{/if}</title>
  15. <meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
  16. <meta name="apple-mobile-web-app-capable" content="yes">
  17. <meta name='apple-touch-fullscreen' content='yes'>
  18. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  19. <meta name="format-detection" content="telephone=no">
  20. <meta name="format-detection" content="address=no">
  21. <script type="text/javascript" src="{__PLUG_PATH}sweetalert2/sweetalert2.all.min.js"></script>
  22. <style>
  23. .swal2-container.swal2-shown { background-color: rgba(255, 255, 255, 0.4); }
  24. </style>
  25. </head>
  26. <body>
  27. <script>
  28. document.addEventListener("touchmove",function(e){e.preventDefault();},false);
  29. var url = "{$url}";
  30. if(!url || url == 0) url = document.referrer;
  31. if(!url || url == 0) url = "{:Url('index')}";
  32. sweetAlert({
  33. title:"{$title}",
  34. text:"{$msg}",
  35. type:"success",
  36. allowOutsideClick:false,
  37. }).then(function() {
  38. location.href = url;
  39. })
  40. </script>
  41. </body>
  42. </html>