<wxs module="filters" src="../../utils/toFixed.wxs" />

<view class="up-down-view" >
  <view class="up-title">
       个股盈利榜单
  </view>
  <view class="up-down">
    <view class="title_1">
      <text style="width: 10%;">排名</text>
      <text style="width: 25%;">名称</text>
      <text style="width: 25%;">代码</text>
      <text style="width: 30%;">日期</text>
      <text style="width: 15%;text-align: right;">盈亏(w)</text>
    </view>
    <navigator wx:for="{{win}}" hover-class="none"  url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
            <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
            <text wx:else class="number">{{index+1}}</text>
            <text style="width: 25%;">{{item.name}}</text>
            <text style="width: 25%;color: #999;">{{item.code}}</text>
            <text style="width: 30%;">{{item.stock_date}}</text>
            <text style="text-align: right;" class="{{item.money>0 ? 'up':'down'}}">{{item.money}}w</text>
    </navigator>
  </view>
</view>

<view class="up-down-view" >
  <view class="up-title">
       个股亏损榜单
  </view>
  <view class="up-down">
    <view class="title_1">
      <text style="width: 10%;">排名</text>
      <text style="width: 25%;">名称</text>
      <text style="width: 25%;">代码</text>
      <text style="width: 30%;">日期</text>
      <text style="width: 15%;text-align: right;">盈亏(w)</text>
    </view>
    <navigator wx:for="{{loss}}" hover-class="none"  url="../today/today?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
            <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
            <text wx:else class="number">{{index+1}}</text>
            <text style="width: 25%;">{{item.name}}</text>
            <text style="width: 25%;color: #999;">{{item.code}}</text>
            <text style="width: 30%;">{{item.stock_date}}</text>
            <text style="text-align: right;" class="{{item.money>0 ? 'up':'down'}}">{{item.money}}w</text>
    </navigator>
  </view>
</view>
