Quellcode durchsuchen

修改框架及头部

tanxue vor 4 Jahren
Ursprung
Commit
a73f6d4d1d
3 geänderte Dateien mit 11 neuen und 4 gelöschten Zeilen
  1. 9 2
      assets/scss/cus-client/cus-client-common.scss
  2. 1 1
      layouts/templateA.vue
  3. 1 1
      layouts/templateB.vue

+ 9 - 2
assets/scss/cus-client/cus-client-common.scss

@@ -130,6 +130,11 @@ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
   min-width: 1240px;
 }
 
+/* 饿了么右侧生成的间距 */
+.el-popup-parent--hidden{
+  padding-right:0 !important
+}
+
 /*  网站主体部分 */
 .client-container{width: 1200px;margin: 0 auto;}
 .client-container-middle{width: 960px;margin: 0 auto;}
@@ -140,6 +145,8 @@ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
   height: 80px;
   z-index: 999;
   background: #fff;
+  position: fixed;
+  top:0;
 
   //头部布局
   .head-layout{display: flex;justify-content: space-between;}
@@ -153,8 +160,8 @@ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
         height: 80px;
         line-height: 80px;
         margin: 0 10px;
-        padding: 0 6px;
-        a{height: inherit;display: inline-block;}
+        padding: 0!important;
+        a{height: inherit;display: inline-block;padding: 0 6px;}
       }
       >.el-menu-item.is-active{
         @include setThemeColorBase("color", 0);

+ 1 - 1
layouts/templateA.vue

@@ -30,5 +30,5 @@
   }
 </script>
 <style lang="scss" scoped>
-  .nuxt-box:not(.client-index-page){width: 100%;}
+  .nuxt-box:not(.client-index-page){width: 100%;margin-top: 80px;}
 </style>

+ 1 - 1
layouts/templateB.vue

@@ -30,5 +30,5 @@
   }
 </script>
 <style lang="scss" scoped>
-  .nuxt-box:not(.client-index-page){width: 100%;}
+  .nuxt-box:not(.client-index-page){width: 100%;margin-top: 80px;}
 </style>