From de2ed36401bdc93085d7b2e715bf212b88fc6cd5 Mon Sep 17 00:00:00 2001
From: YFeng <tingquanren@163.com>
Date: Tue, 16 Mar 2021 10:27:49 +0800
Subject: [PATCH] 更改小程序Tab页面切换时显示兼容

---
 common/custom.scss |   33 ++++++++++++++++++++++-----------
 1 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/common/custom.scss b/common/custom.scss
index 943576b..e96fcb2 100644
--- a/common/custom.scss
+++ b/common/custom.scss
@@ -5,8 +5,9 @@
 
 @import "./sassMixin";
 
-.taro-tabbar__container {
-    font-size: 0.65rem;
+.taro_page,
+page {
+    font-size: 30px;
     color: #333;
     textarea {
         font-size: inherit;
@@ -14,7 +15,7 @@
     }
     .at-nav-bar {
         .at-nav-bar__title {
-            font-size: 0.9rem;
+            font-size: 42px;
         }
     }
     .at-button {
@@ -27,7 +28,7 @@
         .weui-input {
             height: 100%;
             border: none;
-            font-size: 0.65rem;
+            font-size: 30px;
         }
     }
     .at-float-layout {
@@ -45,7 +46,7 @@
                 width: 100%;
                 height: calc(100% - 84px);
                 max-height: 100%;
-                font-size: 0.65rem;
+                font-size: 30px;
                 box-sizing: border-box;
                 &:first-child {
                     height: 100%;
@@ -61,24 +62,34 @@
         position: unset;
     }
     .weui-picker {
-        font-size: 0.65rem;
+        font-size: 30px;
         .weui-picker__hd {
-            font-size: 0.65rem;
+            font-size: 30px;
         }
     }
     .at-tabs.at-tabs--horizontal {
         height: 100%;
         .at-tabs__header {
-            height: 1.9rem;
-            line-height: 1.15rem;
+            height: 90px;
+            line-height: 52px;
         }
         .at-tabs__body {
-            height: calc(100% - 1.9rem);
+            height: calc(100% - 90px);
             font-size: 0;
             .at-tabs-pane {
                 height: 100%;
                 margin-right: 2%;
-                font-size: 0.65rem;
+                font-size: 30px;
+            }
+        }
+    }
+}
+
+page {
+    .at-tabs.at-tabs--horizontal {
+        .at-tabs__body {
+            .at-tabs-pane {
+                margin-right: 0;
             }
         }
     }

--
Gitblit v1.9.1