<!--packageC/redPacket/redRank/redRank.wxml-->
<view id="redRank">
  <van-tabs active="{{active}}" title-active-color="#f8aa3d" bind:change="onChange">
    <van-tab title="今日排名"></van-tab>
    <van-tab title="本月排名"></van-tab>
    <van-tab title="总排名"></van-tab>
  </van-tabs>
  <view class="list">
    <block wx:for="{{list}}" wx:key="index">
      <view class="{{index == 0 ? 'lisone' : 'lis'}}">
        <view class="left">
          <view class="no" style="color: #f63b2c;">{{ index < 10 ? '0' +(index + 1) : index + 1 }}</view>
              <view class="name">
                <view class="nickname">{{item.member.nickname}}</view>
              </view>
              <view class="txt">抢红包获得</view>
              <view class="topOne" wx:if="{{index == 0}}">{{item.rank_remark}}</view>
          </view>
          <view class="right">￥{{item.amount_total}}</view>
        </view>
    </block>
  </view>
</view>