my_task.axml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <view>
  2. <view class="header margin-bottom">
  3. <!--<form onReset="onReset"><view class="search flex-box flex-v-ce"><image mode="scaleToFill" src="../../../image/ss.png"></image><input placeholder="请输入姓名或事件内容搜索" onInput="bindKeyInput" class="flex-1"></input><button a:if="{{isVal}}" class="delVal" formType="reset">×</button></view></form> -->
  4. <view class="flex-box flex-v-ce selectItems border-bottom">
  5. <view data-index="1" class="{{activeIndex == 1? 'active':''}} flex-2" catchTap="activeItem">待完成</view>
  6. <view data-index="2" class="{{activeIndex == 2? 'active':''}} flex-2" catchTap="activeItem">待审批</view>
  7. <view data-index="3" class="{{activeIndex == 3? 'active':''}} flex-2" catchTap="activeItem" style="border-right:1px solid #f1f1f1">已审批</view>
  8. <view catchTap="selectSx" class="flex-1">
  9. <image mode="scaleToFill" class="sxImg" src="../../../image/sx.png"/>
  10. </view>
  11. </view>
  12. </view>
  13. <view class="main scroll">
  14. <scroll-view class="scroll" a:if="{{(activeIndex==1)&&list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  15. <view class="task">今日任务</view>
  16. <view class="li border-bottom" a:for="{{list}}">
  17. <view class="flex-box li-top" catchTap="openDetail" data-item="{{item}}">
  18. <view class="flex-1">临时任务1:帮我买瓶82年的雪碧(每天)我买瓶82年的雪碧(每天)我买瓶82年的雪碧(每天)</view>
  19. <text class="fontColorX">50</text>
  20. </view>
  21. <view class="flex-box li-bottom">
  22. <text class="flex-1 fontColorX" catchTap="openDetail" data-item="{{item}}">2020-08-08 01:11 截止</text>
  23. <button type="primary" class="defBtn" data-item="{{item}}" onTap="openPerform">完成任务</button>
  24. </view>
  25. </view>
  26. <view class="task">待完成任务</view>
  27. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  28. </scroll-view>
  29. <scroll-view class="scroll" a:if="{{(activeIndex==2||activeIndex==3)&&list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  30. <view class="li border-bottom" a:for="{{list}}">
  31. <view class="flex-box li-top" catchTap="openDetail" data-item="{{item}}">
  32. <view class="flex-1">临时任务1:帮我买瓶82年的雪碧(每天)我买瓶82年的雪碧(每天)我买瓶82年的雪碧(每天)</view>
  33. <text class="fontColorX">50</text>
  34. </view>
  35. <view class="flex-box li-bottom">
  36. <text class="flex-1 fontColorX" catchTap="openDetail" data-item="{{item}}">2020-08-08 01:11 截止</text>
  37. <text class="yellow">待处理</text>
  38. <text class="red">已通过</text>
  39. <text class="green">已驳回</text>
  40. </view>
  41. </view>
  42. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  43. </scroll-view>
  44. <no-data a:if="{{list.length==0}}"></no-data>
  45. </view>
  46. <select-zp defaultSx="{{sxObj}}" typeIndex="2" a:if="{{showZp==true}}" isShow="{{showZp}}" onClose="onClose" onConfirm="onConfirmSx"></select-zp>
  47. </view>