myGrant.axml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <view>
  2. <view class="headed"><view class="top"></view></view>
  3. <view class="head flex-box flex-center-center">
  4. <view class="{{tabIndex==1?'activeIndex':''}} flex-1" data-index="1" catchTap="tabActive">
  5. <view>{{month_total}}</view>
  6. <view>{{dateStr}}月奖票</view>
  7. </view>
  8. <view class="{{tabIndex==2?'activeIndex':''}} flex-1" data-index="2" catchTap="tabActive">
  9. <view>{{total}}</view>
  10. <view>累计奖票</view>
  11. </view>
  12. </view>
  13. <view class="main">
  14. <view class="title" style="padding-bottom:0rpx">
  15. <text style="position: relative;" class="{{showDate? 'activeView':''}} text" catchTap="openDate" a:if="{{tabIndex==1}}">{{date}}</text>
  16. <text a:else>累计奖票</text>
  17. </view>
  18. <scroll-view class="scroll" a:if="{{list.length>0}}" scroll-y="{{true}}" onScrollToLower="onScrollToLower">
  19. <view class="flex-box-ce li " a:for="{{list}}" catchTap="openDetail" data-item="{{item}}" key="{{item.id}}">
  20. <view class="flex-box-v flex-center-center" style="width:140rpx;background:#C3E0FD;height:160rpx">
  21. <image mode="scaleToFill" src="../../../image/pj.png" style="width:60rpx;height:60rpx;margin-bottom:0.1rem"/>
  22. <text style="font-size:28rpx" class="blue">奖票</text>
  23. </view>
  24. <view class="flex-1" style="padding:16rpx 20rpx">
  25. <view class="context">{{item.remark.customize||item.remark.rule}}</view>
  26. <view class="flex-box-ce fontColorC" style="font-size:28rpx">
  27. <text class="flex-1">{{item.employee_name}}</text>
  28. <text class="">{{item.dateStr}}</text>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  33. </scroll-view>
  34. <no-data a:if="{{list.length==0}}" content="没有奖票" />
  35. </view>
  36. </view>