瀏覽代碼

style: 选择模式pad样式修改

TIANYONG 7 月之前
父節點
當前提交
0ea0332f7a
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 5 1
      src/page-instrument/header-top/index.module.less
  2. 1 1
      src/page-instrument/header-top/modeView.tsx

+ 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(() => {