my_apply.axml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <view>
  2. <view class="header">
  3. <form onReset="onReset">
  4. <view class="search flex-box flex-v-ce">
  5. <image mode="scaleToFill" src="../../../image/ss.png"></image>
  6. <input placeholder="请输入姓名或事件内容搜索" onInput="bindKeyInput" class="flex-1"></input>
  7. <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
  8. </view>
  9. </form>
  10. <view class="flex-box flex-v-ce selectItems border-bottom">
  11. <view data-index="3" class="{{activeIndex == 3? 'active':''}} flex-1" catchTap="activeItem">待审批</view>
  12. <view data-index="2" class="{{activeIndex == 2? 'active':''}} flex-1" catchTap="activeItem">已通过</view>
  13. <view data-index="4" class="{{activeIndex == 4? 'active':''}} flex-1" catchTap="activeItem">被驳回</view>
  14. <view data-index="1" class="{{activeIndex == 1? 'active':''}} flex-1" catchTap="activeItem">已复核</view>
  15. </view>
  16. </view>
  17. <view class="orangeText" style="height:0.4rem" a:if="{{isFig}}">
  18. <text >复核开启后,积分需管理员复核后才计入排名和统计</text>
  19. </view>
  20. <view a:else style="height:0.2rem"></view>
  21. <view class="main">
  22. <view class="flex-box flex-v-ce staff-all" a:if="{{activeIndex==1}}">
  23. <view class="flex-1"></view>
  24. <label class="flex-box-ce">
  25. <text class="rule-all-text">只看不通过的</text>
  26. <checkbox onChange="ruleActiveAll" checked="{{isAllChecked}}"></checkbox>
  27. </label>
  28. </view>
  29. <scroll-view class="scroll" style="{{isFig?'height: calc(100vh - 2.4rem)':''}}{{activeIndex == 1&&isFig?'height: calc(100vh - 3.1rem)':'height: calc(100vh - 2.86rem)'}}" a:if="{{list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  30. <view class="flex-box li border-bottom" catchTap="openDetail" a:for="{{list}}" data-item="{{item}}" key="{{item.id}}">
  31. <view class="flex-1 main-right">
  32. <view class="flex-box">
  33. <view class="name flex-1" style="margin-right: 10rpx;">{{item.remark.customize || item.remark.rule}}</view>
  34. <block a:if="{{activeIndex==1}}">
  35. <view class="red" a:if="{{item.point > 0}}">+{{item.point}} {{item.pt_name}}</view>
  36. <view class="green" a:else>{{item.point}} {{item.pt_name}}</view>
  37. </block>
  38. <block a:else>
  39. <view class="red" a:if="{{item.review_point > 0}}">+{{item.review_point}} {{item.pt_name}}</view>
  40. <view class="green" a:else>{{item.point}} {{item.pt_name}}</view>
  41. </block>
  42. </view>
  43. <view class="flex-box flex-v-ce">
  44. <view class="date flex-1">{{item.event_time}}</view>
  45. <view class="yellowBox" a:if="{{item.status == 0}}">待审批</view>
  46. <view class="greenBox" a:if="{{item.status == 1}}">申请成功</view>
  47. <view class="redBox" a:if="{{item.status == 2}}">被驳回</view>
  48. <view class="redBox" a:if="{{item.dc_status == 2}}">不通过</view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  53. </scroll-view>
  54. <no-data a:if="{{list.length==0}}"></no-data>
  55. </view>
  56. </view>