getTask.axml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <view>
  2. <view class="header margin-bottom">
  3. <view class="flex-box flex-v-ce selectItems border-bottom">
  4. <view data-index="1" class="{{activeIndex == 1? 'active':''}} flex-1" catchTap="activeItem">正在抢单</view>
  5. <!-- <view data-index="2" class="{{activeIndex == 2? 'active':''}} flex-1" catchTap="activeItem">抢单结束</view> -->
  6. <view data-index="3" class="{{activeIndex == 3? 'active':''}} flex-1" catchTap="activeItem">我抢到的</view>
  7. </view>
  8. </view>
  9. <view class="main scroll">
  10. <scroll-view class="scroll" a:if="{{(activeIndex==1||activeIndex==2)&&list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  11. <view class="li border-bottom" a:for="{{list}}" catchTap="openDetail" data-item="{{item}}">
  12. <view class="flex-box li-top">
  13. <view class="flex-1">{{item.task_name}}</view>
  14. <view class="red" a:if="{{item.base_point>0}}">+{{item.base_point}} {{item.pt_name}}</view>
  15. <view class="green" a:else>{{item.base_point}} {{item.pt_name}}</view>
  16. </view>
  17. <view class="flex-box li-bottom">
  18. <text class="flex-1 fontColorC">{{item.expire_time}} 截止</text>
  19. <button type="primary" class="defBtn" data-item="{{item}}" a:if="{{activeIndex == 1&&!userInfo.is_creator&&item.owner_id!=userInfo.id&&item.reviewer_id!=userInfo.id}}">抢任务</button>
  20. </view>
  21. </view>
  22. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  23. </scroll-view>
  24. <scroll-view class="scroll" a:if="{{activeIndex==3&&list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  25. <view class="li border-bottom" a:for="{{list}}" catchTap="openDetail2" data-item="{{item}}">
  26. <view class="flex-box li-top">
  27. <view class="flex-1">{{item.task_name}}</view>
  28. <view class="red" a:if="{{item.point_config.base_point>0}}">+{{item.point_config.base_point}} {{item.pt_name}}</view>
  29. <view class="green" a:else>{{item.point_config.base_point}} {{item.pt_name}}</view>
  30. </view>
  31. <view class="flex-box li-bottom">
  32. <text class="flex-1 fontColorC">{{item.expire_time}} 截止</text>
  33. </view>
  34. </view>
  35. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  36. </scroll-view>
  37. <no-data a:if="{{list.length==0}}" content="暂无数据"></no-data>
  38. </view>
  39. </view>