index.wxml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="rankingBox">
  3. <view class="podiumBox {{podiumBoxBg}}">
  4. <view class="switchType" bindtap="switchType">
  5. <view class="ilk {{rankingType=='3'?'current tips2':''}}" data-type='3'>
  6. 热播榜
  7. </view>
  8. <view class="ilk {{rankingType=='4'?'current tips2':''}}" data-type='4'>
  9. 挑战PK榜
  10. </view>
  11. <view class="ilk {{rankingType=='2'?'current tips2':''}}" data-type='2'>
  12. 邀新榜
  13. </view>
  14. </view>
  15. <view class="selectDay">
  16. <picker mode="date" fields="month" value="{{day}}" bindchange="bindDateChange" start="{{historyList[0]}}"
  17. end="{{historyList[historyList.length-1]}}">
  18. <view class="day">{{filters.textSlice(day)}}月</view>
  19. </picker>
  20. <image src="/static/rbtn.png" class="rIcon" />
  21. </view>
  22. <view class="podiumContent">
  23. <view class="user first">
  24. <image src="{{userList[0].avatar}}" class="avatar" bindtap="jumpUserInfo"
  25. data-uid='{{userList[0].uid}}' />
  26. <view class="iconBox">
  27. <image src="{{icon}}" class="icon {{rankingType=='4'?'iconPk':''}}" />
  28. <view class="num">{{userList[0].count}}</view>
  29. </view>
  30. <view class="nickName textOver">
  31. {{userList[0].nickName||userList[0].eid}}
  32. </view>
  33. </view>
  34. <view class="user second">
  35. <image src="{{userList[1].avatar}}" class="avatar" bindtap="jumpUserInfo"
  36. data-uid='{{userList[1].uid}}' />
  37. <view class="iconBox">
  38. <image src="{{icon}}" class="icon {{rankingType=='4'?'iconPk':''}}" />
  39. <view class="num">{{userList[1].count}}</view>
  40. </view>
  41. <view class="nickName textOver">
  42. {{userList[1].nickName||userList[1].eid}}
  43. </view>
  44. </view>
  45. <view class="user third">
  46. <image src="{{userList[2].avatar}}" class="avatar" bindtap="jumpUserInfo"
  47. data-uid='{{userList[2].uid}}' />
  48. <view class="iconBox">
  49. <image src="{{icon}}" class="icon {{rankingType=='4'?'iconPk':''}}" />
  50. <view class="num">{{userList[2].count}}</view>
  51. </view>
  52. <view class="nickName textOver">
  53. {{userList[2].nickName||userList[2].eid}}
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="podiumList">
  59. <scroll-view scroll-y="true" enhanced="true" show-scrollbar="{{false}}" class="scrollBox">
  60. <view class="row" wx:for="{{userList.length-3}}" wx:key="index">
  61. <view class="left">
  62. <view class="num">{{index+4}}</view>
  63. <image src="{{userList[index+3].avatar}}" class="avatar" bindtap="jumpUserInfo"
  64. data-uid='{{userList[index+3].uid}}' />
  65. <view class="nickName textOver">
  66. {{userList[index+3].nickName||userList[index+3].eid}}
  67. </view>
  68. </view>
  69. <view class="right">
  70. <image src="{{icon}}" class="icon {{rankingType=='4'?'iconPk':''}}" />
  71. <view class="num"> {{userList[index+3].count}}</view>
  72. </view>
  73. </view>
  74. <view class="null" wx:if="{{userList.length<=3}}">
  75. <image src="/static/inviteH.png" class="nullImg" />
  76. <view>等你来冲榜!</view>
  77. </view>
  78. </scroll-view>
  79. </view>
  80. <view class="footer">
  81. <view class="left">我的排名<text>{{ranking?ranking:'100+'}}</text></view>
  82. <button class="resetBtn rigth" open-type="share" wx:if="{{rankingType!=4}}">
  83. <image src="/static/forward.png" class="share" />呼朋唤友来加热
  84. </button>
  85. <button class="resetBtn rigth" wx:else bindtap="jumpIndex">
  86. 我要冲榜
  87. </button>
  88. </view>
  89. </view>