<!-- packageE/ranking_2/my_reward/my_reward.wxml -->
<view class="header">
  <view class="header-member" wx:if="{{ userInfo }}">
    <image class="header-member-avatar" src="{{ userInfo.avatar_image }}"></image>
    <view class="header-member-nickname">{{ userInfo.nickname }}</view>
  </view>
  <view class="header-income ellipsis1">累计收入：￥{{ income }}</view>
</view>
<view class="records-list">
  <view class="records-list-title">奖励记录</view>
  <view class="record-list">
    <block wx:for="{{ records }}" wx:for-item="recordPageItem" wx:key="index">
      <block wx:for="{{ recordPageItem }}" wx:for-item="recordItem" wx:key="id">
        <view class="record-item">
          <text>{{ recordItem.created_at }}</text>
          <text class="record-income ellipsis1">+{{ recordItem.amount }}</text>
        </view>
      </block>
    </block>
  </view>
  <view class="no-record-prompt" wx:if="{{ recordTotal==0 }}">还没有奖励记录~</view>
</view>