wujingjing
2024-08-01 1ee0bcc741206079b645c584c578ee543ff75c35
1
2
3
4
5
6
7
8
9
10
<!--miniprogram/mytabbar/index.wxml-->
<view class="tab-bar-view">
  <cover-view class="tab-bar" style="height: {{tabBarHeight}};">
    <cover-view class="tab-bar-border"></cover-view>
    <cover-view wx:for="{{list}}" wx:key="index" class="tab-bar-item" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
      <cover-view class="ywicon {{item.iconClass}}" style="color: {{selected === index ? selectedColor : color}}; width: 90rpx;font-size: 49rpx"></cover-view>
      <cover-view class="bar-txt" style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</cover-view>
    </cover-view>
  </cover-view>
</view>