panhui 3 years ago
parent
commit
383bedd1f7
3 changed files with 6 additions and 5 deletions
  1. 3 3
      src/components/product/ProductBanner.vue
  2. 2 1
      src/router/index.js
  3. 1 1
      src/views/product/Detail.vue

+ 3 - 3
src/components/product/ProductBanner.vue

@@ -186,7 +186,7 @@ export default {
                 };
             } else {
                 return {
-                    height: `calc(${this.appHeight} - ${this.safeTop} - 46px)`
+                    height: `calc(${this.appHeight} - ${this.safeTop})`
                 };
             }
         },
@@ -194,14 +194,14 @@ export default {
             if (this.windowVertical) {
                 return 'calc(100vw - 134px)';
             } else {
-                return `calc(${this.appHeight} - ${this.safeTop} - 230px)`;
+                return `calc(${this.appHeight} - ${this.safeTop} - 184px)`;
             }
         },
         BannerWidth() {
             if (this.windowVertical) {
                 return 'calc(100vw - 124px)';
             } else {
-                return `calc(${this.appHeight} - ${this.safeTop} - 220px)`;
+                return `calc(${this.appHeight} - ${this.safeTop} - 174px)`;
             }
         }
     },

+ 2 - 1
src/router/index.js

@@ -345,7 +345,8 @@ const routes = [
         component: () => import('../views/product/Detail.vue'),
         meta: {
             pageType: Page.Every,
-            tabColor: '#181818'
+            tabColor: '#181818',
+            menuPage: true
         }
     },
     {

+ 1 - 1
src/views/product/Detail.vue

@@ -1168,7 +1168,7 @@ export default {
     }
 
     .detail-box {
-        height: calc(var(--app-height) - var(--safe-top) - 46px);
+        height: calc(var(--app-height) - var(--safe-top));
         overflow: auto;
         position: relative;
     }