- <!--components/tabbar/tabbar.wxml-->
- <view class="tabbar-box {{isIpx?'ipx_button':''}}">
- <view class="tabbar-container">
- <view wx:for="{{list}}" wx:for-item="item" wx:key="index" data-pagePath="{{item.pagePath}}" data-index="{{index}}" bindtap="changeTab">
- <view class="image_box">
- <image class="tabbar-image" src="{{selected===index?item.selectedIconPath:item.iconPath}}" lazy-load="false"> </image>
- </view>
- <text style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</text>
- </view>
- </view>
- </view>
- <view class="center" style="bottom:{{isIpx?'62rpx':'34rpx'}}"></view>
|