index.wxml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. </scroll-view>
  75. </view>
  76. <view class="footer">
  77. <view class="left">我的排名<text>{{ranking?ranking:'100+'}}</text></view>
  78. <button class="resetBtn rigth" open-type="share" wx:if="{{rankingType!=4}}">
  79. <image src="/static/forward.png" class="share" />呼朋唤友来加热
  80. </button>
  81. <button class="resetBtn rigth" wx:else bindtap="jumpIndex">
  82. 我要冲榜
  83. </button>
  84. </view>
  85. </view>