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>
|
|