getTask.axml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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>
  7. </view>
  8. <view class="main scroll">
  9. <scroll-view class="scroll" a:if="{{(activeIndex==1)&&list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  10. <view class="li border-bottom" a:for="{{list}}" catchTap="openDetail" data-item="{{item}}">
  11. <view class="flex-box li-top">
  12. <view class="flex-1">{{item.task_name}}</view>
  13. <text class="fontColorX">{{item.base_point}} {{item.pt_name}}</text>
  14. </view>
  15. <view class="flex-box li-bottom">
  16. <text class="flex-1 fontColorX">{{item.end_time}} 截止</text>
  17. <button type="primary" class="defBtn" data-item="{{item}}" a:if="{{item.status == '1' && userId != item.owner_id}}">领取任务</button>
  18. </view>
  19. </view>
  20. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  21. </scroll-view>
  22. <scroll-view class="scroll" a:if="{{activeIndex==2&&list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  23. <view class="flex-box li border-bottom" data-index="1" a:for="{{list}}" catchTap="openDetail" data-item="{{item}}">
  24. <img-box name="{{item.receiver_name}}" imgUrl="{{item.receiver_img_url}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  25. <view class="flex-1 main-right">
  26. <view class="flex-box flex-v-ce">
  27. <view class="name flex-1">{{item.receiver_name}}领取{{item.pt_name}}任务</view>
  28. <view class="red" a:if="{{item.base_point>0}}">+{{item.base_point}} {{item.pt_name}}</view>
  29. <view class="green" a:else>{{item.base_point}} {{item.pt_name}}</view>
  30. </view>
  31. <view class="context" a:if="{{item.task_name}}">{{item.task_name}}</view>
  32. <view class="flex-box flex-v-ce">
  33. <view class="date fontColorX flex-1">{{item.expire_time}} 截止</view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  38. </scroll-view>
  39. <no-data a:if="{{list.length==0}}" content="你来迟了,任务已经被抢光了..."></no-data>
  40. </view>
  41. </view>