list.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!-- <view class="total">
  2. 应到 {{total_person}}人 | 实到 {{actual_person}} 人 | 请假 {{leave_person}} 人
  3. <view>盈亏比 <text class="up">{{win_person}}</text>:<text class="down">{{loss_person}}</text></view>
  4. </view> -->
  5. <view class="top">
  6. <text>排名</text>
  7. <text style="width:25%;">选手</text>
  8. <text>今日资产</text>
  9. <view style="color:#D94B24;" bindtap="changeOrder1">
  10. 今日收益
  11. <image wx:if='{{order1}}' mode="widthFix" src="../../images/up.png"></image>
  12. <image wx:else mode="widthFix" src="../../images/down.png"></image>
  13. </view>
  14. <view style="color:#D94B24;" bindtap="changeOrder2">
  15. 总盈亏
  16. <image wx:if='{{order2}}' mode="widthFix" src="../../images/up.png"></image>
  17. <image wx:else mode="widthFix" src="../../images/down.png"></image>
  18. </view>
  19. </view>
  20. <scroll-view scroll-y="true" class="list" bindscrolltolower='next'>
  21. <navigator hover-class="none" class="item" wx:for='{{list}}' bind:tap="pushToday" data-match_id="{{item.match_id}}" data-record_id="{{item.id}}" data-user_id = "{{item.user_id}}" >
  22. <view wx:if="{{order_by == 'total_income__desc'}}">
  23. <image wx:if='{{item.group_rank==1}}' mode="widthFix" src="../../images/1.png"></image>
  24. <image wx:if='{{item.group_rank==2}}' mode="widthFix" src="../../images/2.png"></image>
  25. <image wx:if='{{item.group_rank==3}}' mode="widthFix" src="../../images/3.png"></image>
  26. <text style="width:36rpx;text-align:center;color:#CE994F;" wx:if='{{item.group_rank>3}}'>{{item.group_rank}}</text>
  27. </view>
  28. <view wx:else>
  29. <image wx:if='{{item.rank==1}}' mode="widthFix" src="../../images/1.png"></image>
  30. <image wx:if='{{item.rank==2}}' mode="widthFix" src="../../images/2.png"></image>
  31. <image wx:if='{{item.rank==3}}' mode="widthFix" src="../../images/3.png"></image>
  32. <text style="width:36rpx;text-align:center;color:#CE994F;" wx:if='{{item.rank>3}}'>{{item.rank}}</text>
  33. </view>
  34. <text class="name">{{item.username}}</text>
  35. <text>{{item.today_fund}}w</text>
  36. <text class="{{item.today_income[0]=='-'?'down':'up'}}">{{item.today_income}}</text>
  37. <text class="{{item.total_income[0]=='-'?'down':'up'}}">{{item.total_income}}</text>
  38. </navigator>
  39. <block wx:if='{{total >= 50 }}'>
  40. <view class='more' wx:if='{{list.length < total}}'>上拉加载更多...</view>
  41. <!-- <view class='more' wx:else>已加载全部数据!</view> -->
  42. </block>
  43. <!-- <view>
  44. <text class="note">点击选手,查看每日持股与交割单...</text>
  45. </view> -->
  46. </scroll-view>