shaogen1995 8 місяців тому
батько
коміт
91b19268e3
1 змінених файлів з 21 додано та 13 видалено
  1. 21 13
      展示端/public/home.html

+ 21 - 13
展示端/public/home.html

@@ -15,7 +15,13 @@
     body {
       width: 100vw;
       height: 100vh;
+    }
+    .main {
+      width: 100%;
+      height: 100%;
       overflow-y: auto;
+      max-width: 500px;
+      margin: 0 auto;
     }
     .top {
       width: 100%;
@@ -48,31 +54,33 @@
   </style>
 
   <body>
-    <img class="top" src="./home/bg2.png" alt="" />
+    <div class="main">
+      <img class="top" src="./home/bg2.png" alt="" />
 
-    <div class="tit">请选择预约入口</div>
+      <div class="tit">请选择预约入口</div>
 
-    <div class="txt" id="url1">
-      <p>横琴民生事务局</p>
-      <p>展馆预约</p>
-    </div>
-    <div class="txt txt2" id="url2">
-      <p>横琴民生事务局</p>
-      <p>健康教育课堂预约</p>
+      <div class="txt" id="url1">
+        <p>横琴民生事务局</p>
+        <p>展馆预约</p>
+      </div>
+      <div class="txt txt2" id="url2">
+        <p>横琴民生事务局</p>
+        <p>健康教育课堂预约</p>
+      </div>
+      <br />
+      <br />
     </div>
-    <br />
-    <br />
   </body>
   <script>
     const url1Dom = document.querySelector('#url1')
     url1Dom.onclick = () => {
-      window.location.href = '/#/'
+      window.location.href = '/web/#/'
     }
 
     const url2Dom = document.querySelector('#url2')
 
     url2Dom.onclick = () => {
-      window.location.href = '/#/exhi'
+      window.location.href = '/web/#/exhi'
     }
   </script>
 </html>