ranking.wxml 1.4 KB

123456789101112131415161718192021
  1. <!--pages/ranking/ranking.wxml-->
  2. <view class='container' style="padding-top:100rpx">
  3. <image src='../../image/block.png' class='block' style="padding-top:{{statusBar+10}}px" bindtap='blockCtl'></image>
  4. <view class='wrapper' style="padding-top:{{statusBar-10}}px">
  5. <view class='list' wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0}}'>
  6. <view class='list-info'>
  7. <image src='../../image/one.png' class='list-num' wx:if='{{index==0}}'></image>
  8. <image src='../../image/two.png' class='list-num' wx:if='{{index==1}}'></image>
  9. <image src='../../image/three.png' class='list-num' wx:if='{{index==2}}'></image>
  10. <text wx:if='{{index>2}}' class='list-text'>{{index+1}}</text>
  11. <image src="{{item.photo?(baseImgUrl+item.photo):'../../image/default_headicon4.png'}}" class='list-head'></image>
  12. <view class='list-info-name'>{{item.name}}</view>
  13. <!-- <image src='{{item.sex==1?"../../image/man.png":"../../image/women.png"}}' class='{{item.sex==1?"list-info-sex":"women-img"}}'></image> -->
  14. </view>
  15. <view class='list-core {{index<3?"list-core-active":""}}'>{{item.score}}分</view>
  16. </view>
  17. <view class="li-nodata" wx:if='{{list.length==0}}'>
  18. <image src="../../image/no_data.png" class="li-nodata-img"></image>
  19. </view>
  20. </view>
  21. </view>