<!-- packageE/ranking_2/reward_log/reward_log.wxml -->
<view class="select-date">
  <view class="select-date-previous iconfont icon-fanhui" bind:tap="switchToPreviousYear"></view>
  <view class="select-date-title" bind:tap="displayCalendar">
    <text class="select-date-icon iconfont icon-fontclass-rili"></text>
    {{ currentSelectedYear }}年{{ currentSelectedMonth }}月
  </view>
  <view class="select-date-next iconfont icon-member_right" bind:tap="switchToNextYear" style="visibility:{{ isLastMonth?'hidden':'visible' }}"></view>
</view>
<van-popup show="{{ showCalendar }}" bind:close="displayCalendar" position="top" z-index="10">
  <view class="calendar">
    <view class="calendar-year">{{ currentSelectedYear }}年</view>
    <view class="calendar-months" catch:tap="selectMonth">
      <view class="calendar-month-item {{ currentSelectedMonth==index?'calendar-month-item-active':'' }}" wx:for="{{ calendarMonths }}" wx:key="index" data-month="{{ index }}">
        {{ item }}月
      </view>
    </view>
  </view>
</van-popup>
<view class="income-ranking-list income-list">
  <view class="income-list-item">
    <view>排名</view>
    <view style="text-align:left;">会员</view>
    <view>双创金</view>
    <view class="ellipsis1">奖学金</view>
  </view>
  <block wx:for="{{ rewardRecords }}" wx:for-item="recordPageItem" wx:key="index">
    <block wx:for="{{ recordPageItem }}" wx:for-item="recordItem" wx:key="id">
      <view class="income-list-item">
        <view class="ellipsis1">{{ recordItem.ranking }}</view>
        <view class="ellipsis1 income-item-member">
          <image class="income-list-member-avatar" src="{{ recordItem.has_one_member.avatar_image }}" />
          {{ recordItem.has_one_member.nickname }}
        </view>
        <view class="ellipsis1">{{ recordItem.cumulative }}</view>
        <view class="ellipsis1">{{ recordItem.bonus }}</view>
      </view>
    </block>
  </block>
</view>