index.wxml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <view class="tab">
  2. <view class="item" data-index="{{0}}" data-type="click" bindtap="changeSwiper">
  3. <text class="text-{{currentPage === 0?'blue':'grey'}}">全部</text>
  4. </view>
  5. <view class="item" data-index="{{1}}" data-type="click" bindtap="changeSwiper">
  6. <text class="text-{{currentPage === 1?'blue':'grey'}}">未开始</text>
  7. </view>
  8. <view class="item" data-index="{{2}}" data-type="click" bindtap="changeSwiper">
  9. <text class="text-{{currentPage === 2?'blue':'grey'}}">进行中</text>
  10. </view>
  11. <view class="item" data-index="{{3}}" data-type="click" bindtap="changeSwiper">
  12. <text class="text-{{currentPage === 3?'blue':'grey'}}">已结束</text>
  13. </view>
  14. </view>
  15. <swiper class="card-area" current="{{currentPage}}" duration="200" data-type="slide" bindchange="changeSwiper">
  16. <swiper-item>
  17. <scroll-view class="scroll-area" scroll-y="{{currentPage==0}}" bindscrolltolower="reachBottom" data-type="{{0}}">
  18. <my-meeting-module wx:if="{{list.length>0}}" wx:for="{{list}}" wx:key="index" item="{{item}}" type="{{type}}"/>
  19. <tailTip total="{{total}}" pageSize="{{searchData.pageSize}}" pageNum="{{searchData.pageNum}}" loadding="{{false}}"></tailTip>
  20. </scroll-view>
  21. </swiper-item>
  22. <swiper-item>
  23. <scroll-view class="scroll-area" scroll-y="{{currentPage==1}}" bindscrolltolower="reachBottom" data-type="{{1}}">
  24. <my-meeting-module wx:if="{{list.length>0}}" wx:for="{{list}}" wx:key="index" item="{{item}}" type="{{type}}"/>
  25. <tailTip total="{{total}}" pageSize="{{searchData.pageSize}}" pageNum="{{searchData.pageNum}}" loadding="{{false}}"></tailTip>
  26. </scroll-view>
  27. </swiper-item>
  28. <swiper-item>
  29. <scroll-view class="scroll-area" scroll-y="{{currentPage==2}}" bindscrolltolower="reachBottom" data-type="{{2}}">
  30. <my-meeting-module wx:if="{{list.length>0}}" wx:for="{{list}}" wx:key="index" item="{{item}}" type="{{type}}"/>
  31. <tailTip total="{{total}}" pageSize="{{searchData.pageSize}}" pageNum="{{searchData.pageNum}}" loadding="{{false}}"></tailTip>
  32. </scroll-view>
  33. </swiper-item>
  34. <swiper-item>
  35. <scroll-view class="scroll-area" scroll-y="{{currentPage==3}}" bindscrolltolower="reachBottom" data-type="{{3}}">
  36. <my-meeting-module wx:if="{{list.length>0}}" wx:for="{{list}}" wx:key="index" item="{{item}}" type="{{type}}"/>
  37. <tailTip total="{{total}}" pageSize="{{searchData.pageSize}}" pageNum="{{searchData.pageNum}}" loadding="{{false}}"></tailTip>
  38. </scroll-view>
  39. </swiper-item>
  40. </swiper>