index.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="rankingBox">
  3. <view class="podiumBox invitation">
  4. <view class="dateBox">
  5. 邀新排行榜
  6. </view>
  7. <view class="podiumContent">
  8. <view class="user first">
  9. <image src="{{userList[0].avatar}}" class="avatar" bindtap="jumpUserInfo"
  10. data-uid='{{userList[0].uid}}' />
  11. <view class="iconBox">
  12. <image src="/static/yx.png" class="icon" />
  13. <view class="num">{{userList[0].count}}</view>
  14. </view>
  15. <view class="nickName textOver">
  16. {{userList[0].nickName||userList[0].eid}}
  17. </view>
  18. </view>
  19. <view class="user second">
  20. <image src="{{userList[1].avatar}}" class="avatar" bindtap="jumpUserInfo"
  21. data-uid='{{userList[1].uid}}' />
  22. <view class="iconBox">
  23. <image src="/static/yx.png" class="icon" />
  24. <view class="num">{{userList[1].count}}</view>
  25. </view>
  26. <view class="nickName textOver">
  27. {{userList[1].nickName||userList[1].eid}}
  28. </view>
  29. </view>
  30. <view class="user third">
  31. <image src="{{userList[2].avatar}}" class="avatar" bindtap="jumpUserInfo"
  32. data-uid='{{userList[2].uid}}' />
  33. <view class="iconBox">
  34. <image src="/static/yx.png" class="icon" />
  35. <view class="num">{{userList[2].count}}</view>
  36. </view>
  37. <view class="nickName textOver">
  38. {{userList[2].nickName||userList[2].eid}}
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="podiumList">
  44. <scroll-view scroll-y="true" enhanced="true" show-scrollbar="{{false}}" class="scrollBox">
  45. <view class="row" wx:for="{{userList.length-3}}" wx:key="index">
  46. <view class="left">
  47. <view class="num">{{index+4}}</view>
  48. <image src="{{userList[index+3].avatar}}" class="avatar" bindtap="jumpUserInfo"
  49. data-uid='{{userList[index+3].uid}}' />
  50. <view class="nickName textOver">
  51. {{userList[index+3].nickName||userList[index+3].eid}}
  52. </view>
  53. </view>
  54. <view class="right">
  55. <image src="/static/yx.png" class="icon" />
  56. <view class="num"> {{userList[index+3].count}}</view>
  57. </view>
  58. </view>
  59. </scroll-view>
  60. </view>
  61. <view class="footer">
  62. <view class="detail" wx:if="{{myCount>0}}">
  63. <view class="left">
  64. <image src="{{userInfo.avatar}}" class="avatar" />
  65. <view class="nickName textOver">{{userInfo.nickName}}</view>
  66. </view>
  67. <view class="right">
  68. <view class="info">
  69. <view class="i1">第{{ranking?ranking+'名':'100+'}}</view>
  70. <view class="i2" wx:if="{{ranking&&ranking!='1'}}">距离上一名还差{{gap}}</view>
  71. </view>
  72. <view class="num">
  73. {{myCount}}
  74. </view>
  75. </view>
  76. </view>
  77. <view class="operate">
  78. <view class="record" bindtap="showTranscript">邀请记录</view>
  79. <button class="resetBtn share" open-type="share">
  80. 邀请我的同学朋友
  81. </button>
  82. </view>
  83. </view>
  84. <popUp id="popUp">
  85. <view class="popBox">
  86. <view class="header">
  87. 邀请记录
  88. <image src="/static/lollipop.png" class="close" bindtap="closeTranscript" />
  89. </view>
  90. <view class="copywriting" wx:if="{{inviteList.length==0}}">
  91. <view class="text">别的小伙伴已经拿到大奖啦!</view>
  92. <view>快去邀请你的小伙伴为你助力!</view>
  93. </view>
  94. <scroll-view scroll-y="true" class="list" enhanced show-scrollbar='{{false}}'>
  95. <view class="item" wx:for="{{inviteList}}" wx:key="eid">
  96. <view class="left" bindtap="jumpUserInfo" data-uid='{{item.uid}}'>
  97. <view class="num">{{index+1}}</view>
  98. <image src="{{item.avatar}}" class="avatar" data-uid="{{item.uid}}" bindtap="jumpUserInfo" />
  99. <view class="nickName textOver">{{item.nickName||item.eid}}</view>
  100. </view>
  101. <view class="time">{{filters.formatDate(item.gmtCreated,1)}}</view>
  102. </view>
  103. </scroll-view>
  104. </view>
  105. </popUp>
  106. </view>