<wxs module="enumItem" src="../../wxs/enumItem.wxs"></wxs>
<view>
  <view>
    <swiper indicator-dots="false" autoplay="true" interval="5000" duration="1000">
      <swiper-item>
        <image src="/assets/carousel/1.jpg" class="slide-image"  mode="aspectFill" />
      </swiper-item>
      <swiper-item>
        <image src="/assets/carousel/2.jpg" class="slide-image" mode="aspectFill"/>
      </swiper-item>
      <swiper-item>
        <image src="/assets/carousel/3.jpg" class="slide-image" mode="aspectFill"/>
      </swiper-item>
    </swiper>
  </view>

  <view >
    <view class="cate-section">
      <button class="cate-item" bindtap="gotoCollection">
        <i-icon type="search" size="40" color="#e96900a0" />
        <text>文件搜索</text>
      </button>

      <button class="cate-item" bindtap="gotoError">
        <i-icon type="mine" size="40" color="#e96900a0" />
        <text>我的文件</text>
      </button>

      <button class="cate-item" bindtap="gotoHistory">
        <i-icon type="createtask" size="40" color="#e96900a0" />
        <text>我的任务</text>
      </button>
    </view>

    <i-panel>
      <view class="cate-section">
        <view wx:for="{{departments}}" wx:key="departmentId" class="cate-item cate-item-3">
          <button class="cate-item"  bindtap="gotoExam" data-id="{{item.groupId}}">
            <!-- <i-icon type="{{item.icon}}" size="40" color="#7595f1a0" /> -->
            <i-avatar  size="40">{{item.department[0] }}</i-avatar>
            <text>{{item.department}}</text>
          </button>
        </view>
      </view>
    </i-panel>
  </view>

</view>