12345678910111213141516171819202122 |
- <!-- #elif <cover-view class="tab-bar">
- <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-image src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></cover-image>
- <cover-view style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</cover-view>
- </cover-view>
- </cover-view>-->
- <cover-view class="tab-bar">
- <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-image class="tab-bar-icon" src="{{selected === index ? item.selectedIconPath : item.iconPath}}"></cover-image>
- <cover-view class="tab-bar-text" style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</cover-view>
- </cover-view>
- </cover-view>
|