zhaoxiaohai 2 lat temu
rodzic
commit
4d878de1b2

+ 1 - 0
components/Yl_FunTabs/index.wxml

@@ -7,4 +7,5 @@
 </scroll-view>
 <view class="slot-box" bindtouchstart="myTouchStart" bindtouchmove="myTouchMove">
     <slot name='{{list[active].label}}' />
+    <slot />
 </view>

+ 0 - 1
components/Yl_Tabbar/index.wxml

@@ -7,7 +7,6 @@
     <view class="label line-1">{{item.label}}</view>
   </navigator>
 </view>
-<view style="height: 98rpx;" style="padding-bottom: {{safeAreaBot}}rpx;" />
 
 <van-popup show="{{ show }}" position="bottom" bind:close="onClose">
   <view class="title">

+ 45 - 45
components/Yl_Tabbar/index.wxss

@@ -1,67 +1,67 @@
 .tabbar {
-  display: flex;
-  justify-content: space-around;
-  position: fixed;
-  height: 98rpx;
-  width: 100vw;
-  bottom: 0;
-  background-color: #fff;
-  z-index: 999;
+    display: flex;
+    justify-content: space-around;
+    position: fixed;
+    height: 98rpx;
+    width: 100vw;
+    bottom: 0;
+    background-color: #fff;
+    z-index: 999;
 }
 
 .tabbar .item {
-  display: flex;
-  flex-direction: column;
-  align-items: center;
-  width: 98rpx;
-  height: 98rpx;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    width: 98rpx;
+    height: 98rpx;
 }
 
 .tabbar .item .icon {
-  width: 46rpx;
-  height: 46rpx;
-  text-align: center;
-  line-height: 46rpx;
-  color: #333333;
+    width: 46rpx;
+    height: 46rpx;
+    text-align: center;
+    line-height: 46rpx;
+    color: #333333;
 }
 
 .tabbar .item .num {
-  width: 80%;
-  height: 46rpx;
-  font-size: 28rpx;
-  font-family: PingFang SC-Bold, PingFang SC;
-  font-weight: bold;
-  color: #333333;
+    width: 80%;
+    height: 46rpx;
+    font-size: 28rpx;
+    font-family: PingFang SC-Bold, PingFang SC;
+    font-weight: bold;
+    color: #333333;
 }
 
 .tabbar .item .label {
-  height: 34rpx;
-  font-size: 24rpx;
-  font-family: PingFang SC-Regular, PingFang SC;
-  color: #999999;
-  margin-top: 8rpx;
+    height: 34rpx;
+    font-size: 24rpx;
+    font-family: PingFang SC-Regular, PingFang SC;
+    color: #999999;
+    margin-top: 8rpx;
 }
 
 .title {
-  width: 100vw;
-  height: 90rpx;
-  line-height: 90rpx;
-  text-align: center;
-  box-sizing: border-box;
-  border-bottom: 1px solid #EEEEEE;
-  font-size: 28rpx;
-  font-family: PingFang SC-Regular, PingFang SC;
-  color: #333333;
+    width: 100vw;
+    height: 90rpx;
+    line-height: 90rpx;
+    text-align: center;
+    box-sizing: border-box;
+    border-bottom: 1px solid #EEEEEE;
+    font-size: 28rpx;
+    font-family: PingFang SC-Regular, PingFang SC;
+    color: #333333;
 }
 
 swiper-item {
-  display: flex;
-  flex-wrap: wrap;
-  align-content: flex-start;
+    display: flex;
+    flex-wrap: wrap;
+    align-content: flex-start;
 }
 
 .swiper-item {
-  width: 150rpx;
-  height: 150rpx;
-  background-color: red;
-}
+    width: 150rpx;
+    height: 150rpx;
+    background-color: red;
+}