my_issue.axml 6.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <view>
  2. <view class="header margin-bottom" style="padding-bottom:16rpx;">
  3. <view class="flex-box flex-v-ce selectItems border-bottom">
  4. <view data-index="1" class="{{activeIndex == 1? 'active':''}} flex-2" catchTap="activeItem">我指派的</view>
  5. <view data-index="2" class="{{activeIndex == 2? 'active':''}} flex-2" catchTap="activeItem">我悬赏的</view>
  6. <view data-index="3" class="{{activeIndex == 3? 'active':''}} flex-2" catchTap="activeItem" style="border-right:1px solid #f1f1f1">重复任务</view>
  7. <view catchTap="selectSx" class="flex-1">
  8. <image mode="scaleToFill" class="sxImg" src="../../../image/sx.png"/>
  9. </view>
  10. </view>
  11. <form onReset="onReset">
  12. <view style="margin-top:16rpx;">
  13. <view class="search flex-box flex-v-ce">
  14. <image mode="scaleToFill" src="../../../image/ss.png"/>
  15. <input class="flex-1" placeholder="请输入任务内容" onInput="bindKeyInput"/>
  16. <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
  17. </view>
  18. </view>
  19. </form>
  20. </view>
  21. <view class="main scroll">
  22. <scroll-view class="scroll" a:if="{{(activeIndex==1||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}}" key="{{item.id}}">
  24. <img-box name="{{item.employee_name}}" key="{{item.id}}" id="{{item.employee_id}}" a:if="{{activeIndex==1}}" imgUrl="{{item.employee_img_url}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  25. <block a:if="{{activeIndex==2}}">
  26. <img-box name="{{item.owner_name}}" a:if="{{item.receiver_id==0}}" imgUrl="{{item.owner_img_url}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  27. <img-box name="{{item.receiver_name}}" a:else imgUrl="{{item.receiver_img_url}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  28. </block>
  29. <view class="flex-1 main-right">
  30. <view class="flex-box flex-v-ce">
  31. <view class="name flex-1" a:if="{{activeIndex==1}}">{{item.employee_name}}</view>
  32. <block a:else>
  33. <view class="name flex-1" a:if="{{item.status == 2 || item.status == 3 || item.receiver_id !=0 && item.status == 4}}">{{item.receiver_name}}的{{item.pt_name}}任务</view>
  34. <view class="name flex-1" a:if="{{item.status == 1 || item.status == -1 || item.receiver_id ==0 &&item.status == 4}}">我发布的{{item.pt_name}}任务</view>
  35. </block>
  36. <block a:if="{{activeIndex==1}}">
  37. <block a:if="{{item.point_config.review_point>0}}">
  38. <view class="red" a:if="{{item.point_config.review_point>0}}">+{{item.point_config.review_point}} {{item.pt_name}}</view>
  39. <view class="green" a:else>{{item.point_config.review_point}} {{item.pt_name}}</view>
  40. </block>
  41. <block a:else>
  42. <view class="red" a:if="{{item.point_config.base_point>0}}">+{{item.point_config.base_point}} {{item.pt_name}}</view>
  43. <view class="green" a:else>{{item.point_config.base_point}} {{item.pt_name}}</view>
  44. </block>
  45. </block>
  46. <block a:else>
  47. <view class="red" a:if="{{item.base_point>0}}">+{{item.base_point}} {{item.pt_name}}</view>
  48. <view class="green" a:else>{{item.base_point}} {{item.pt_name}}</view>
  49. </block>
  50. </view>
  51. <view class="context" a:if="{{item.task_name}}">{{item.task_name}}</view>
  52. <view class="flex-box flex-v-ce">
  53. <view class="date flex-1">{{item.expire_time}}截止</view>
  54. <block a:if="{{activeIndex==1}}">
  55. <view class="yellowBox" a:if="{{item.status==1}}">进行中</view>
  56. <view class="greenBox" a:elif="{{item.status==2}}">已完成</view>
  57. <view class="redBox" a:elif="{{item.status==3}}">退回</view>
  58. <view class="greenBox" a:elif="{{item.status==4}}">已审批</view>
  59. <view class="textBox" a:else>已撤回</view>
  60. </block>
  61. <block a:else>
  62. <view class="orangeBox" a:if="{{item.status==1}}">待领取</view>
  63. <view class="yellowBox" a:elif="{{item.status==2}}">进行中</view>
  64. <view class="greenBox" a:elif="{{item.status==3}}">已完成</view>
  65. <view class="textBox" a:elif="{{item.status==4}}">已撤回</view>
  66. <view class="redBox" a:else>已过期</view>
  67. </block>
  68. </view>
  69. </view>
  70. </view>
  71. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  72. </scroll-view>
  73. <scroll-view class="scroll" a:if="{{activeIndex==3&&list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  74. <view class="li2 border-bottom" data-index="2" a:for="{{list}}" catchTap="openDetail" data-item="{{item}}">
  75. <view style="margin-bottom:10rpx;">{{item.name}}</view>
  76. <view class="flex-box flex-v-ce fontColorC" style="font-size:28rpx;">
  77. <image mode="scaleToFill" src="../../../image/sj2.png"/>
  78. <text a:if="{{item.task_cycle == 1}}">每天0点自动发布,{{item.task_cycle_value > 9 ? item.task_cycle_value + ': 00' : '0' + item.task_cycle_value + ': 00'}}截止</text>
  79. <text a:if="{{item.task_cycle == 2}}">每周一自动发布,周{{weekList[item.task_cycle_value - 1]}}截止</text>
  80. <text a:if="{{item.task_cycle == 3}}">每月1号自动发布,{{item.task_cycle_value }}号截止</text>
  81. <text class="flex-1"></text>
  82. <text class="blue" a:if="{{item.enable}}">已启用</text>
  83. <text class="red" a:else>已暂停</text>
  84. </view>
  85. </view>
  86. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  87. </scroll-view>
  88. <no-data a:if="{{list.length==0}}"></no-data>
  89. </view>
  90. <select-zp defaultSx="{{sxObj}}" typeIndex="{{activeIndex}}" a:if="{{showZp==true}}" isShow="{{showZp}}" onClose="onClose" onConfirm="onConfirmSx"></select-zp>
  91. </view>