Просмотр исходного кода

style: 选择模式pad样式修改

TIANYONG 7 месяцев назад
Родитель
Сommit
0ea0332f7a

+ 5 - 1
src/page-instrument/header-top/index.module.less

@@ -462,13 +462,17 @@
     left: 0;
     width: 100vw;
     height: 100vh;
-    background: url(./image/bg.png) no-repeat;
+    background: url(./image/bg.png) no-repeat center;
     background-size: cover;
     transition: all .3s;
     &.isiPad{
         .modeBox {
             padding: 0 40px;
         }
+        .modeTitle {
+            top: 5px !important;
+            height: 75px !important;
+        }
     }
 
 

+ 1 - 1
src/page-instrument/header-top/modeView.tsx

@@ -60,7 +60,7 @@ export default defineComponent({
       }
     );      
     const browserInfo = browser();
-    const isPad =  navigator?.userAgent?.includes("UAWEIVRD-W09") || browserInfo?.iPad || browserInfo.isTablet;
+    const isPad = true || navigator?.userAgent?.includes("UAWEIVRD-W09") || browserInfo?.iPad || browserInfo.isTablet;
 
     // vip图标
     const showVip = computed(() => {