404.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>404</title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  6. <style>
  7. .not-container {
  8. display: flex;
  9. align-items: center;
  10. justify-content: center;
  11. width: 100%;
  12. height: 100vh;
  13. }
  14. .not-img {
  15. margin-right: 120px;
  16. }
  17. .not-detail {
  18. display: flex;
  19. flex-direction: column;
  20. }
  21. h2,h4 {
  22. padding: 0;
  23. margin: 0;
  24. }
  25. h2 {
  26. font-size: 60px;
  27. }
  28. h4 {
  29. margin: 30px 0 20px;
  30. font-size: 19px;
  31. font-weight: normal;
  32. }
  33. .button{
  34. background: #009688;
  35. color: #fff;
  36. border-radius: 4px;
  37. display: inline-block;
  38. width: 80px;
  39. text-align: center;
  40. padding: 5px 0;
  41. font-size: 14px;
  42. cursor: pointer;
  43. }
  44. </style>
  45. </head>
  46. <body>
  47. <div class="not-container">
  48. <img src="/assets/img/404.png" class="not-img" alt="404" />
  49. <div class="not-detail">
  50. <h2>404</h2>
  51. <h4>抱歉,您访问的页面不存在~🤷‍♂️🤷‍♀️</h4>
  52. {if $modulename == 'admin'}
  53. <div class="button" type="primary" onclick="closePage()">关闭页面</div>
  54. {else}
  55. <div class="button" type="primary" onclick="goHome()">返回首页</div>
  56. {/if}
  57. </div>
  58. </div>
  59. </body>
  60. <script>
  61. function closePage(){
  62. if(top!==window){
  63. let menu=top.Yunqi.app.openMenu;
  64. if(menu.menutype=='tab'){
  65. top.Yunqi.api.closetabs(menu);
  66. }
  67. if(menu.menutype=='layer'){
  68. top.Yunqi.api.closelayer(menu);
  69. }
  70. }
  71. }
  72. function goHome(){
  73. window.location.href = '/{$modulealis}';
  74. }
  75. </script>
  76. </html>