lrj
9 小时以前 29fc6f5b1981775be5d2f0f9f8e61fec2f550252
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<view class="tab-bar">
  <view 
    wx:for="{{ list }}" 
    wx:key="index" 
    class="tab-bar-item {{ active === index ? 'active' : '' }}"
    bindtap="switchTab"
    data-index="{{ index }}"
  >
    <view class="tab-bar-icon">
      <text class="icon {{ item.iconName }}"></text>
    </view>
    <view class="tab-bar-text">{{ item.text }}</view>
  </view>
</view>