rankList.wxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <view class="content">
  2. <view class="rank-top-three">
  3. <view class="two top-three-option">
  4. <view class="leader-info" wx:if="{{listInfo.list.length>1}}">
  5. <view class="crown">
  6. <text class="icon icon-crown"></text>
  7. </view>
  8. <view class="headImg-box">
  9. <image class="headImg" src="{{listInfo.list[1].avatar||'/img/default_logo.jpg'}}"></image>
  10. </view>
  11. <view class="leader-name">{{listInfo.list[1].nickname ||''}}</view>
  12. <view class="sigle">
  13. <!-- <text class="info-sigle">王牌分享家</text> -->
  14. <view class="level {{listInfo.list[1].maxLevel==1?'ordinary':(listInfo.list[1].maxLevel==2?'copper':(listInfo.list[1].maxLevel==3?'silver':(listInfo.list[1].maxLevel==4?'gold':(listInfo.list[1].maxLevel==5?'super':''))))}}">
  15. <text class="icon icon-sharer-level"></text>
  16. <text>{{listInfo.list[1].maxLevel==1?'普通':(listInfo.list[1].maxLevel==2?'铜牌':(listInfo.list[1].maxLevel==3?'银牌':(listInfo.list[1].maxLevel==4?'金牌':(listInfo.list[1].maxLevel==5?'超级':''))))}}</text>
  17. </view>
  18. </view>
  19. <view class="leadGroup-num">累计佣金:¥{{listInfo.list[1].price}}</view>
  20. </view>
  21. <view class="leader-info no-data" wx:else>
  22. 暂无数据
  23. </view>
  24. <view class="box-h"></view>
  25. </view>
  26. <view class="one top-three-option">
  27. <view class="leader-info" wx:if="{{listInfo.list.length>0}}">
  28. <view class="crown">
  29. <text class="icon icon-crown"></text>
  30. </view>
  31. <view class="headImg-box">
  32. <image class="headImg" src="{{listInfo.list[0].avatar||'/img/default_logo.jpg'}}"></image>
  33. </view>
  34. <view class="leader-name">{{listInfo.list[0].nickname || ''}}</view>
  35. <view class="sigle">
  36. <view class="level {{listInfo.list[0].maxLevel==1?'ordinary':(listInfo.list[0].maxLevel==2?'copper':(listInfo.list[0].maxLevel==3?'silver':(listInfo.list[0].maxLevel==4?'gold':(listInfo.list[0].maxLevel==5?'super':''))))}}">
  37. <text class="icon icon-sharer-level"></text>
  38. <text>{{listInfo.list[0].maxLevel==1?'普通':(listInfo.list[0].maxLevel==2?'铜牌':(listInfo.list[0].maxLevel==3?'银牌':(listInfo.list[0].maxLevel==4?'金牌':(listInfo.list[0].maxLevel==5?'超级':''))))}}</text>
  39. </view>
  40. </view>
  41. <view class="leadGroup-num">累计佣金:¥{{listInfo.list[0].price}}</view>
  42. </view>
  43. <view class="leader-info no-data" wx:else>
  44. 暂无数据
  45. </view>
  46. <view class="box-h"></view>
  47. </view>
  48. <view class="three top-three-option">
  49. <view class="leader-info" wx:if="{{listInfo.list.length>2}}">
  50. <view class="crown">
  51. <text class="icon icon-crown"></text>
  52. </view>
  53. <view class="headImg-box">
  54. <image class="headImg" src="{{listInfo.list[2].avatar||'/img/default_logo.jpg'}}"></image>
  55. </view>
  56. <view class="leader-name">{{listInfo.list[2].nickname ||''}}</view>
  57. <view class="sigle">
  58. <view class="level {{listInfo.list[2].maxLevel==1?'ordinary':(listInfo.list[2].maxLevel==2?'copper':(listInfo.list[2].maxLevel==3?'silver':(listInfo.list[2].maxLevel==4?'gold':(listInfo.list[2].maxLevel==5?'super':''))))}}">
  59. <text class="icon icon-sharer-level"></text>
  60. <text>{{listInfo.list[2].maxLevel==1?'普通':(listInfo.list[2].maxLevel==2?'铜牌':(listInfo.list[2].maxLevel==3?'银牌':(listInfo.list[2].maxLevel==4?'金牌':(listInfo.list[2].maxLevel==5?'超级':''))))}}</text>
  61. </view>
  62. </view>
  63. <view class="leadGroup-num">累计佣金:¥{{listInfo.list[2].price}}</view>
  64. </view>
  65. <view class="leader-info no-data" wx:else>
  66. 暂无数据
  67. </view>
  68. <view class="box-h"></view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="list">
  73. <block wx:if="{{listInfo.list.length>3}}">
  74. <view class="list-item" wx:for="{{listInfo.list}}" wx:key="userId" wx:if="{{index>2}}">
  75. <view class="item-rankingNum">
  76. <text class="have-rank">{{index+1}}</text>
  77. </view>
  78. <view class="leader-info">
  79. <image class="info-img" src="{{item.avatar||'/img/default_logo.jpg'}}"></image>
  80. <view class="info-name">{{item.nickname || ''}}</view>
  81. <view class="info-sigle">
  82. <view class="level {{item.maxLevel==1?'ordinary':(item.maxLevel==2?'copper':(item.maxLevel==3?'silver':(item.maxLevel==4?'gold':(item.maxLevel==5?'super':''))))}}">
  83. <text class="icon icon-sharer-level"></text>
  84. <text>{{item.maxLevel==1?'普通':(item.maxLevel==2?'铜牌':(item.maxLevel==3?'银牌':(item.maxLevel==4?'金牌':(item.maxLevel==5?'超级':''))))}}</text>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="item-times" wx:if="{{item.price>=0}}">累计佣金:¥{{item.price}}</view>
  89. </view>
  90. </block>
  91. <block wx:else>
  92. <view class='noData'>
  93. <text class="ion-baby"></text><text>~暂无数据~</text>
  94. </view>
  95. </block>
  96. </view>
  97. <view class="oneself" wx:if="{{listInfo.list.length>0&&listInfo.oneself&&listInfo.oneself.nickname}}">
  98. <view class="list-item">
  99. <view class="item-rankingNum">
  100. <text class="{{listInfo.oneself && listInfo.oneself.rankNum!=-1?'':'no-rank'}}">{{listInfo.oneself && listInfo.oneself.rankNum!=-1?listInfo.oneself.rankNum:'未上榜'}}</text>
  101. </view>
  102. <view class="leader-info">
  103. <image class="info-img" src="{{listInfo.oneself.avatar||'/img/default_logo.jpg'}}"></image>
  104. <view class="info-name">{{listInfo.oneself.nickname}}</view>
  105. <view class="info-sigle">
  106. <view class="level {{listInfo.oneself.maxLevel==1?'ordinary':(listInfo.oneself.maxLevel==2?'copper':(listInfo.oneself.maxLevel==3?'silver':(listInfo.oneself.maxLevel==4?'gold':(listInfo.oneself.maxLevel==5?'super':''))))}}">
  107. <text class="icon icon-sharer-level"></text>
  108. <text>{{listInfo.oneself.maxLevel==1?'普通':(listInfo.oneself.maxLevel==2?'铜牌':(listInfo.oneself.maxLevel==3?'银牌':(listInfo.oneself.maxLevel==4?'金牌':(listInfo.oneself.maxLevel==5?'超级':''))))}}</text>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="item-times">累计佣金:¥{{listInfo.oneself.price}}</view>
  113. </view>
  114. </view>