integralEvent.axml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <view>
  2. <view class="flex-box flex-v-ce tab margin-bottom">
  3. <view class="flex-1" catchTap="selectDate">
  4. <text class="{{showDate? 'activeView blue':''}}">{{selectDateVal}}</text>
  5. </view>
  6. <view class="flex-1" catchTap="selectStaff">
  7. <text class="{{showStaff? 'activeView blue':''}}">{{staffVal}}</text>
  8. </view>
  9. <view class="flex-1" catchTap="selectRule">
  10. <text class="{{showRuleTwo? 'activeView blue':''}}">{{ruleVal}}</text>
  11. </view>
  12. <view class="flex-1">
  13. <picker onChange="bingIntegralType" value="{{typesIndex}}" range="{{types}}" range-key="name">
  14. <text a:if="{{types[typesIndex].name=='全部'}}">积分类型</text>
  15. <text a:else>{{types[typesIndex].name}}</text>
  16. </picker>
  17. </view>
  18. </view>
  19. <view class="main scroll">
  20. <scroll-view class="scroll" a:if="{{list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  21. <view class="flex-box li border-bottom" a:for="{{list}}" catchTap="openDetail" data-item="{{item}}">
  22. <img-box name="{{item.employee_name}}" imgUrl="{{item.employee_img_url}}" height="80rpx" width="80rpx" fSize="24rpx"></img-box>
  23. <view class="flex-1 main-right">
  24. <view class="flex-box flex-v-ce">
  25. <view class="name flex-1">{{item.employee_name}}</view>
  26. <view class="red da" a:if="{{item.point>0}}">+{{item.point}}{{item.ptObj.name}}</view>
  27. <view class="green da" a:else>{{item.point}}{{item.ptObj.name}}</view>
  28. </view>
  29. <view class="context" a:if="{{item.remark}}">{{item.remark}}</view>
  30. <view class="flex-box flex-v-ce">
  31. <view class="date flex-1">{{item.event_time}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  36. </scroll-view>
  37. <no-data a:if="{{list.length==0}}"></no-data>
  38. </view>
  39. <select-staff defaultUser="{{employee_ids}}" isShow="{{showStaff}}" a:if="{{showStaff==true}}" onClose="onClose" onConfirm="onConfirmStaff"></select-staff>
  40. <select-date defaultDate="{{defaultDate}}" isShow="{{showDate}}" a:if="{{showDate==true}}" onClose="onClose" onConfirm="onConfirmDate"></select-date>
  41. <select-rule-two isShow="{{showRuleTwo}}" a:if="{{showRuleTwo==true}}" onClose="onClose" onConfirm="onConfirmRule"></select-rule-two>
  42. </view>