tlb.wxml 1.6 KB

12345678910111213141516171819202122232425
  1. <wxs module="filters" src="../../utils/toFixed.wxs" />
  2. <view class="top_bg">
  3. <image mode="widthFix" src="../../xiao/titlebg@2x.png"></image>
  4. <view class="top_title">顽 主 杯 屠 龙 榜</view>
  5. </view>
  6. <view class="tab">
  7. <view bindtap="tab" data-id='win' class="{{cur=='win'?'act':''}}">今日盈利榜</view>
  8. <view bindtap="tab" data-id='loss' class="{{cur=='loss'?'act':''}}">今日亏损榜</view>
  9. <view bindtap="tab" data-id='total_win' class="{{cur=='total_win'?'act':''}}">总盈利榜</view>
  10. <view bindtap="tab" data-id='total_loss' class="{{cur=='total_loss'?'act':''}}">总亏损榜</view>
  11. </view>
  12. <scroll-view scroll-y="{{true}}" bindscrolltolower='next'>
  13. <navigator wx:for="{{list}}" class="list" url="../homepage/homepage?id={{item.match_id}}&record_id={{item.id}}&user_id={{item.user_id}}">
  14. <image wx:if="{{index<3}}" class="number" mode="widthFix" src="../../xiao/{{index+1}}.png"></image>
  15. <text wx:else class="number">{{index+1}}</text>
  16. <text class="usn">{{item.username}}</text>
  17. <text wx:if="{{cur == 'win' || cur == 'loss'}}" class="bar" style="background-color: {{filters.getColor()}};width:{{item.win_loss/list[0].win_loss*320}}rpx"></text>
  18. <text wx:else class="bar" style="background-color: {{filters.getColor()}};width:{{item.total_win_loss/list[0].total_win_loss*320}}rpx"></text>
  19. <text wx:if="{{cur == 'win' || cur == 'loss'}}">{{item.win_loss}}w</text>
  20. <text wx:else>{{item.total_win_loss}}w</text>
  21. </navigator>
  22. <block wx:if='{{total >= 20}}'>
  23. <view class='loading' wx:if='{{list.length < total}}'>加载更多...</view>
  24. </block>
  25. </scroll-view>