Browse Source

feat: 修复头部间距

zhangyuhan 8 months ago
parent
commit
05a36e2ee8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      engine-template/engine-h5-long/src/index.vue

+ 2 - 2
engine-template/engine-h5-long/src/index.vue

@@ -53,7 +53,7 @@
 		},
 		},
     computed: {
     computed: {
       pageTitle () {
       pageTitle () {
-        return document.title
+        return this.isScroll ? document.title : ''
       },
       },
       isApp () {
       isApp () {
         const ua = navigator.userAgent.toLowerCase()
         const ua = navigator.userAgent.toLowerCase()
@@ -128,7 +128,7 @@
         left: 0;
         left: 0;
         background: transparent;
         background: transparent;
         color: #fff;
         color: #fff;
-        padding-top: 12px;
+        padding-top: 10.66vw;
         &.use-white-head {
         &.use-white-head {
           background: #fff;
           background: #fff;
           color: #1d1d1d;
           color: #1d1d1d;