home.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. overflow-y: auto;
  18. }
  19. .top {
  20. width: 100%;
  21. height: auto;
  22. }
  23. .tit {
  24. padding: 30px 35px;
  25. font-size: 24px;
  26. }
  27. .txt {
  28. width: calc(100% - 70px);
  29. margin: 0 auto 15px;
  30. padding: 30px 0;
  31. font-size: 24px;
  32. font-weight: 700;
  33. color: #7dbe2b;
  34. background: rgba(125, 190, 43, 0.1);
  35. border-radius: 5px;
  36. border: 2px solid #7dbe2b;
  37. }
  38. .txt p {
  39. text-align: center;
  40. margin-bottom: 5px;
  41. }
  42. .txt2 {
  43. color: #0d79d9;
  44. border-color: #0d79d9;
  45. background: rgba(13, 121, 217, 0.1);
  46. }
  47. </style>
  48. <body>
  49. <img class="top" src="./home/bg2.png" alt="" />
  50. <div class="tit">请选择预约入口</div>
  51. <div class="txt" id="url1">
  52. <p>横琴民生事务局</p>
  53. <p>展馆预约</p>
  54. </div>
  55. <div class="txt txt2" id="url2">
  56. <p>横琴民生事务局</p>
  57. <p>健康教育课堂预约</p>
  58. </div>
  59. <br />
  60. <br />
  61. </body>
  62. <script>
  63. const url1Dom = document.querySelector('#url1')
  64. url1Dom.onclick = () => {
  65. window.location.href = '/#/'
  66. }
  67. const url2Dom = document.querySelector('#url2')
  68. url2Dom.onclick = () => {
  69. window.location.href = '/#/exhi'
  70. }
  71. </script>
  72. </html>