home.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
  7. <title>横琴民生事务局健康教育课堂预约</title>
  8. </head>
  9. <style>
  10. * {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. body {
  15. width: 100vw;
  16. height: 100vh;
  17. }
  18. .main {
  19. width: 100%;
  20. height: 100%;
  21. overflow-y: auto;
  22. max-width: 500px;
  23. margin: 0 auto;
  24. }
  25. .top {
  26. width: 100%;
  27. height: auto;
  28. }
  29. .tit {
  30. padding: 30px 35px;
  31. font-size: 24px;
  32. }
  33. .txt {
  34. width: calc(100% - 70px);
  35. margin: 0 auto 15px;
  36. padding: 30px 0;
  37. font-size: 24px;
  38. font-weight: 700;
  39. color: #7dbe2b;
  40. background: rgba(125, 190, 43, 0.1);
  41. border-radius: 5px;
  42. border: 2px solid #7dbe2b;
  43. }
  44. .txt p {
  45. text-align: center;
  46. margin-bottom: 5px;
  47. }
  48. .txt2 {
  49. color: #0d79d9;
  50. border-color: #0d79d9;
  51. background: rgba(13, 121, 217, 0.1);
  52. }
  53. </style>
  54. <body>
  55. <div class="main">
  56. <img class="top" src="./home/bg2.png" alt="" />
  57. <div class="tit">请选择预约入口</div>
  58. <div class="txt" id="url1">
  59. <p>横琴民生事务局</p>
  60. <p>展馆预约</p>
  61. </div>
  62. <div class="txt txt2" id="url2">
  63. <p>横琴民生事务局</p>
  64. <p>健康教育课堂预约</p>
  65. </div>
  66. <br />
  67. <br />
  68. </div>
  69. </body>
  70. <script>
  71. const url1Dom = document.querySelector('#url1')
  72. url1Dom.onclick = () => {
  73. window.location.href = '/web/#/'
  74. }
  75. const url2Dom = document.querySelector('#url2')
  76. url2Dom.onclick = () => {
  77. window.location.href = '/web/#/exhi'
  78. }
  79. </script>
  80. </html>