my_apply.axml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <view>
  2. <view class="header margin-bottom">
  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="1" class="{{activeIndex == 1? 'active':''}} flex-1" catchTap="activeItem">全部申请</view>
  12. <view data-index="2" class="{{activeIndex == 2? 'active':''}} flex-1" catchTap="activeItem">已通过</view>
  13. <view data-index="3" class="{{activeIndex == 3? 'active':''}} flex-1" catchTap="activeItem">待审批</view>
  14. <view data-index="4" class="{{activeIndex == 4? 'active':''}} flex-1" catchTap="activeItem">被驳回</view>
  15. </view>
  16. </view>
  17. <view class="main scroll">
  18. <scroll-view class="scroll" a:if="{{list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  19. <view class="flex-box li border-bottom" catchTap="openDetail" a:for="{{list}}" data-item="{{item}}" key="{{item.id}}">
  20. <view class="flex-1 main-right">
  21. <view class="flex-box">
  22. <view class="name flex-1" style="margin-right: 10rpx;">{{item.remark.customize || item.remark.rule}}</view>
  23. <view class="red" a:if="{{item.review_point > 0}}">+{{item.review_point}} {{item.pt_name}}</view>
  24. <view class="green" a:else>{{item.point}} {{item.pt_name}}</view>
  25. </view>
  26. <view class="flex-box flex-v-ce">
  27. <view class="date flex-1">{{item.event_time}}</view>
  28. <view class="yellowBox" a:if="{{item.status == 0}}">待审批</view>
  29. <view class="greenBox" a:if="{{item.status == 1}}">申请成功</view>
  30. <view class="redBox" a:if="{{item.status == 2}}">被驳回</view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  35. </scroll-view>
  36. <no-data a:if="{{list.length==0}}"></no-data>
  37. </view>
  38. </view>