<view class="sg-tabbar">
  <view class="sg-tab-item {{item.url == activeUrl ? 'sg-active' : ''}}" wx:for="{{list}}" wx:key="index" wx:if="{{!item.hidden}}" bindtap="switchTab" data-url="{{item.url}}">
    <van-icon class="sg-icon" name="{{item.icon}}" />
    <view class="sg-name">{{item.text}}</view>
  </view>
</view>