yanghao 1 周之前
父節點
當前提交
b9bf148544
共有 4 個文件被更改,包括 10 次插入12 次删除
  1. 1 3
      src/components/home/header.vue
  2. 6 6
      src/views/flow/index.vue
  3. 1 1
      src/views/index.vue
  4. 2 2
      src/views/login.vue

+ 1 - 3
src/components/home/header.vue

@@ -2,9 +2,7 @@
   <header
     class="fixed w-full top-0 z-100 bg-[#010612] border-b border-[#131928] shadow-sm"
   >
-    <div
-      class="max-w-[1400px] mx-auto flex items-center justify-between px-5 h-15"
-    >
+    <div class="flex items-center justify-between px-5 md:px-20 h-15">
       <div class="flex items-center gap-2 cursor-pointer" @click="goHome">
         <img :src="logo" alt="logo" class="w-9 h-9 rounded-md" />
         <span

+ 6 - 6
src/views/flow/index.vue

@@ -2,8 +2,8 @@
   <div class="ehr-page">
     <Header />
 
-    <div class="banner max-w-[1400px] mx-auto rounded-2xl pt-2">
-      <section class="hero max-w-[1400px] mx-auto">
+    <div class="banner rounded-2xl pt-2">
+      <section class="hero">
         <div class="hero-inner">
           <!-- 判断上下午 -->
           <h1 class="hero-title">
@@ -17,7 +17,7 @@
       </section>
 
       <!-- 任务统计 -->
-      <section class="total max-w-[1400px] mx-auto">
+      <section class="total">
         <div class="total-card" v-for="(item, index) in stats" :key="index">
           <el-popover
             placement="top"
@@ -96,7 +96,7 @@
       </section>
     </div>
 
-    <div class="content max-w-[1500px] mx-auto mt-5">
+    <div class="content mt-5">
       <div class="search-bar">
         <div class="search-input">
           <Icon icon="mdi:magnify" class="search-icon" />
@@ -919,7 +919,7 @@ onBeforeUnmount(() => {
 
 .hero {
   position: relative;
-  padding: 20px 6vw 48px;
+  padding: 20px 5vw 48px;
   overflow: hidden;
 
   display: flex;
@@ -959,7 +959,7 @@ onBeforeUnmount(() => {
 }
 
 .content {
-  padding: 0 6vw 80px;
+  padding: 0 5vw 80px;
   /* height: 80vh; */
 }
 

+ 1 - 1
src/views/index.vue

@@ -2,7 +2,7 @@
   <div class="portal-home min-h-screen bg-[#eef3f9] text-[#17345f]">
     <Header />
 
-    <main class="mx-auto max-w-[1400px] px-3 pb-8 pt-20">
+    <main class="px-5 md:px-20 pb-8 pt-20">
       <section class="hero-banner overflow-hidden rounded-[6px] relative">
         <div class="">
           <!-- 轮播容器 -->

+ 2 - 2
src/views/login.vue

@@ -21,7 +21,7 @@
         <h1 class="text-2xl font-bold text-center">登录</h1>
 
         <!-- 用户名密码登陆 -->
-        <!-- <div>
+        <div>
           <el-form
             :model="form"
             :rules="rules"
@@ -62,7 +62,7 @@
               >
             </div>
           </div>
-        </div> -->
+        </div>
 
         <!-- 钉钉登陆 -->
         <div class="text-center">