问星数据小程序

tabbar.wxml 643B

12345678910111213
  1. <!--components/tabbar/tabbar.wxml-->
  2. <view class="tabbar-box {{isIpx?'ipx_button':''}}">
  3. <view class="tabbar-container">
  4. <view wx:for="{{list}}" wx:for-item="item" wx:key="index" data-pagePath="{{item.pagePath}}" data-index="{{index}}" bindtap="changeTab">
  5. <view class="image_box">
  6. <image class="tabbar-image" src="{{selected===index?item.selectedIconPath:item.iconPath}}" lazy-load="false"> </image>
  7. </view>
  8. <text style="color: {{selected === index ? selectedColor : color}}">{{item.text}}</text>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="center" style="bottom:{{isIpx?'62rpx':'34rpx'}}"></view>