<!--shoppingGuid/page/pages/welfare/welfare.wxml-->
<!-- 福利界面 -->
<view class='main-container'>
  <view class='top-container'>
    <view class='top-item {{item.isActive ? "active" : ""}}' 
    wx:for="{{navBar}}" 
    wx:key="nav" 
    bindtap='onTopBarTap'
    data-index="{{idx}}"
    data-item="{{item}}"
    wx:for-index="idx" 
    wx:for-item="item">{{item.name}}</view>
  </view>

  <!-- 导购 -->
  <view class='guid' wx:if="{{current == 1}}">
    <view class='guid-item' 
    bindtap='onTapToGuidCollegeInfo' 
    wx:for="{{guidCollege.list}}" 
    wx:key="guidCollege"
    data-index="{{idx}}"
    data-item="{{item}}"
    wx:for-index="idx" 
    wx:for-item="item">
      <image src="{{item.titleUrl}}" mode='widthFix'></image>
      <view class='guid-item-title'>{{item.title}}</view>
    </view>
    <!-- 空时 -->
    <view class='empty' wx:if="{{guidCollege.list.length == 0}}">暂无数据~</view>
  </view>
  <!-- 品牌营销 -->
  <view class='guid' wx:if="{{current == 2}}">
    <view class='guid-item' 
    bindtap='onTapToGuidCollegeInfo' 
    wx:for="{{brandPromotions.list}}" 
    wx:key="brandPromotions{{idx}}"
    data-index="{{idx}}"
    data-item="{{item}}"
    wx:for-index="idx" 
    wx:for-item="item">
      <image src="{{item.titleUrl}}" mode='widthFix'></image>
      <view class='guid-item-title'>{{item.title}}</view>
    </view>
    <!-- 空时 -->
    <view class='empty' wx:if="{{brandPromotions.list.length == 0}}">暂无数据~</view>
  </view>
  <!-- 产品素材 -->
  <view class='guid' wx:if="{{current == 3}}">
    <view class='guid-item' 
    bindtap='onTapToGuidCollegeInfo' 
    wx:for="{{productFiles.list}}" 
    wx:key="productFiles{{idx}}"
    data-index="{{idx}}"
    data-item="{{item}}"
    wx:for-index="idx" 
    wx:for-item="item">
      <image src="{{item.titleUrl}}" mode='widthFix'></image>
      <view class='guid-item-title'>{{item.title}}</view>
    </view>
    <!-- 空时 -->
    <view class='empty' wx:if="{{productFiles.list.length == 0}}">暂无数据~</view>
  </view>
</view>
<!-- tabbar -->
<tab-bar index="{{0}}"></tab-bar>
