ranking.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--pages/contest/ranking/ranking.wxml-->
  2. <wxs src="../../../utils/util.wxs" module="format" />
  3. <view bindtap="closeShow" style="min-height:100vh">
  4. <image src="../../../imgs/contest/ranking/bg.png" class="bg" mode="widthFix"></image>
  5. <image src="../../../imgs/contest/ranking/home.png" class="home" style="top:{{statusBar}}px" bindtap="goHome"></image>
  6. <view class="page-title" style="padding-top:{{statusBar}}px">排行榜</view>
  7. <view class="content">
  8. <view class="navList">
  9. <view class="{{page==1&&'active'}}" bindtap="togglePage" data-index="1">个人排名</view>
  10. <view class="{{page==2&&'active'}}" bindtap="togglePage" data-index="2">区排名</view>
  11. <view class="{{page==3&&'active'}}" bindtap="togglePage" data-index="3">学校排名</view>
  12. </view>
  13. <view style="height:430rpx"></view>
  14. <view class="ranking-list">
  15. <view class="ranking-item" wx:for="{{dataList}}" wx:key="index">
  16. <view class="order-num" wx:if="{{index>2}}">{{index+1}}</view>
  17. <image class="top-three" wx:else src="../../../imgs/contest/ranking/top-{{index+1}}.png"></image>
  18. <image class="avatar" src="{{item.avatar}}" wx:if="{{page===1}}"></image>
  19. <image class="page-icon-2" src="../../../imgs/contest/ranking/page-2.png" wx:elif="{{page===2}}"></image>
  20. <image class="page-icon-3" src="../../../imgs/contest/ranking/page-3.png" wx:else></image>
  21. <view class="nickname">{{item.nickname||item.areaName||item.schoolName||''}}
  22. <view wx:if="{{page===1}}">
  23. <text class="school-tag">{{item.schoolName||''}}</text>
  24. </view>
  25. </view>
  26. <view class="fraction">{{format.toFixed(item.score||item.avgScore||0,1)}}分</view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="help">
  31. <image class="help-icon" src="../../../imgs/contest/ranking/help-icon.png" catchtap="clickHelp"></image>
  32. <view class="help-message" wx:if="{{helpState}}">
  33. <image src="../../../imgs/contest/ranking/test-area.png"></image>
  34. <view class="message">
  35. <view class="message-title">{{['','个人','区','学校'][page]}}排名说明</view>
  36. <view class="message-test">以竞赛时间范围内{{['','个人','区域','学校'][page]}}{{['','最好成绩排序高低','成绩平均分高低排序','平均分高低排序'][page]}},如分数并列,则按照答题时间的快慢平均值排序;</view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>