index.wxml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 class="item" data-index="{{4}}" data-type="click" bindtap="changeSwiper" wx:if="{{type=='my-renewalContract'}}">
  15. <text class="text-{{currentPage === 4?'blue':'grey'}}">已取消</text>
  16. </view>
  17. </view>
  18. <swiper class="card-area" current="{{currentPage}}" duration="200" data-type="slide" bindchange="changeSwiper">
  19. <swiper-item>
  20. <scroll-view class="scroll-area" scroll-y="{{currentPage==0}}" bindscrolltolower="reachBottom" data-type="{{0}}">
  21. <my-renewawl-contract wx:if="{{list.length>0}}" wx:for="{{list}}" wx:key="index" item="{{item}}" type="{{type}}" />
  22. <tailTip total="{{total}}" pageSize="{{searchData.pageSize}}" pageNum="{{searchData.pageNum}}" loadding="{{false}}"></tailTip>
  23. </scroll-view>
  24. </swiper-item>
  25. <swiper-item>
  26. <scroll-view class="scroll-area" scroll-y="{{currentPage==1}}" bindscrolltolower="reachBottom" data-type="{{1}}">
  27. <my-renewawl-contract wx:if="{{list.length>0}}" wx:for="{{list}}" wx:key="index" item="{{item}}" type="{{type}}" />
  28. <tailTip total="{{total}}" pageSize="{{searchData.pageSize}}" pageNum="{{searchData.pageNum}}" loadding="{{false}}"></tailTip>
  29. </scroll-view>
  30. </swiper-item>
  31. <swiper-item>
  32. <scroll-view class="scroll-area" scroll-y="{{currentPage==2}}" bindscrolltolower="reachBottom" data-type="{{2}}">
  33. <my-renewawl-contract wx:if="{{list.length>0}}" wx:for="{{list}}" wx:key="index" item="{{item}}" type="{{type}}" />
  34. <tailTip total="{{total}}" pageSize="{{searchData.pageSize}}" pageNum="{{searchData.pageNum}}" loadding="{{false}}"></tailTip>
  35. </scroll-view>
  36. </swiper-item>
  37. <swiper-item>
  38. <scroll-view class="scroll-area" scroll-y="{{currentPage==3}}" bindscrolltolower="reachBottom" data-type="{{3}}">
  39. <my-renewawl-contract wx:if="{{list.length>0}}" wx:for="{{list}}" wx:key="index" item="{{item}}" type="{{type}}" />
  40. <tailTip total="{{total}}" pageSize="{{searchData.pageSize}}" pageNum="{{searchData.pageNum}}" loadding="{{false}}"></tailTip>
  41. </scroll-view>
  42. </swiper-item>
  43. <swiper-item>
  44. <scroll-view class="scroll-area" scroll-y="{{currentPage==4}}" bindscrolltolower="reachBottom" data-type="{{4}}">
  45. <my-renewawl-contract wx:if="{{list.length>0}}" wx:for="{{list}}" wx:key="index" item="{{item}}" type="{{type}}" />
  46. <tailTip total="{{total}}" pageSize="{{searchData.pageSize}}" pageNum="{{searchData.pageNum}}" loadding="{{false}}"></tailTip>
  47. </scroll-view>
  48. </swiper-item>
  49. </swiper>