<!--pages/shop-tabbar/shop-tabbar.wxml-->
<view class="shop-tabbar-container">
  <block wx:for="{{list}}" wx:key="*this">
    <view class="tabBar" bindtap="tabChange" data-index="{{index}}">
      <image class="tabIcon" src="{{item.selectedIconPath}}" wx:if="{{currentTab==index}}"></image>
      <image class="tabIcon" src="{{item.iconPath}}" wx:else></image>
      <text class="tabTitle {{currentTab==index?'on':''}}">{{item.text}}</text>
    </view>
  </block>
</view>