index.wxml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <view>
  2. <view>
  3. <swiper indicator-dots="false" autoplay="true" interval="5000" duration="1000">
  4. <swiper-item>
  5. <image src="/assets/carousel/1.jpg" class="slide-image" mode="aspectFill" />
  6. </swiper-item>
  7. <swiper-item>
  8. <image src="/assets/carousel/2.jpg" class="slide-image" mode="aspectFill"/>
  9. </swiper-item>
  10. <swiper-item>
  11. <image src="/assets/carousel/3.jpg" class="slide-image" mode="aspectFill"/>
  12. </swiper-item>
  13. </swiper>
  14. </view>
  15. <view >
  16. <view class="cate-section">
  17. <button class="cate-item" bindtap="gotoCollection">
  18. <i-icon type="search" size="40" color="#e96900a0" />
  19. <text>文件搜索</text>
  20. </button>
  21. <button class="cate-item" bindtap="gotoError">
  22. <i-icon type="mine" size="40" color="#e96900a0" />
  23. <text>我的文件</text>
  24. </button>
  25. <button class="cate-item" bindtap="gotoHistory">
  26. <i-icon type="createtask" size="40" color="#e96900a0" />
  27. <text>我的任务</text>
  28. </button>
  29. </view>
  30. <i-panel>
  31. <view class="cate-section">
  32. <view wx:for="{{departments}}" wx:key="departmentId" class="cate-item cate-item-3">
  33. <button class="cate-item" bindtap="gotoDepartment" data-id="{{item.departmentId}}">
  34. <i-avatar src="/assets/icon/{{item.departmentId}}.jpg" size="50" shape="square"></i-avatar>
  35. <text>{{item.department}}</text>
  36. </button>
  37. </view>
  38. </view>
  39. </i-panel>
  40. </view>
  41. </view>