<!-- <view class="total">
  应到 {{total_person}}人 | 实到 {{actual_person}} 人 | 请假 {{leave_person}} 人    
  <view>盈亏比  <text class="up">{{win_person}}</text>:<text class="down">{{loss_person}}</text></view>
</view> -->
<view class="top">
    <text>排名</text>
    <text style="width:25%;">选手</text>
    <text>今日资产</text>
    <view style="color:#D94B24;" bindtap="changeOrder1">
      今日收益 
      <image  wx:if='{{order1}}' mode="widthFix" src="../../images/up.png"></image>
      <image  wx:else mode="widthFix" src="../../images/down.png"></image>
    </view>
    <view style="color:#D94B24;" bindtap="changeOrder2">
      总盈亏
      <image  wx:if='{{order2}}' mode="widthFix" src="../../images/up.png"></image>
      <image  wx:else mode="widthFix" src="../../images/down.png"></image>
    </view>
</view>
<scroll-view scroll-y="true" class="list" bindscrolltolower='next'>
    <navigator hover-class="none" class="item" wx:for='{{list}}'  url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
        <view wx:if="{{order_by == 'total_income__desc'}}">
        <image wx:if='{{item.group_rank==1}}' mode="widthFix" src="../../images/1.png"></image>
        <image wx:if='{{item.group_rank==2}}' mode="widthFix" src="../../images/2.png"></image>
        <image wx:if='{{item.group_rank==3}}' mode="widthFix" src="../../images/3.png"></image>
        <text style="width:36rpx;text-align:center;color:#CE994F;" wx:if='{{item.group_rank>3}}'>{{item.group_rank}}</text>
        </view>
        <view wx:else>
          <image wx:if='{{item.rank==1}}' mode="widthFix" src="../../images/1.png"></image>
          <image wx:if='{{item.rank==2}}' mode="widthFix" src="../../images/2.png"></image>
          <image wx:if='{{item.rank==3}}' mode="widthFix" src="../../images/3.png"></image>
          <text style="width:36rpx;text-align:center;color:#CE994F;" wx:if='{{item.rank>3}}'>{{item.rank}}</text>
        </view>
        <text class="name">{{item.username}}</text>
        <text>{{item.today_fund}}w</text>
        <text  class="{{item.today_income[0]=='-'?'down':'up'}}">{{item.today_income}}</text>
        <text  class="{{item.total_income[0]=='-'?'down':'up'}}">{{item.total_income}}</text>
        
    </navigator>
    
    <block wx:if='{{total >= 50 }}'>
                  <view class='more' wx:if='{{list.length < total}}'>上拉加载更多...</view>
                  <!-- <view class='more' wx:else>已加载全部数据！</view> -->
    </block>
    <!-- <view>
        <text class="note">点击选手，查看每日持股与交割单...</text>
    </view> -->
</scroll-view>