ranking.component.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <nav title="排名"></nav>
  2. <ion-content class="content">
  3. <div class="order" [style.background-image]="'url(img/用户榜底.png)'">
  4. <div class="ladder">
  5. <div class="top-block">
  6. <div class="top2">
  7. <div class="user-block">
  8. <div class="user-avatar">
  9. <img src="img/2.png" alt="" class="tag" />
  10. <img [src]="orderList[1]?.avatar" class="avatar" alt="" />
  11. </div>
  12. <div class="user-name">
  13. {{ orderList[1]?.nickname }}
  14. </div>
  15. </div>
  16. <div class="user-detail user-detail2">
  17. <div class="num">{{ orderList[1]?.credit }}</div>
  18. <div class="pm">TOP2</div>
  19. </div>
  20. </div>
  21. <div class="top1">
  22. <div class="user-block">
  23. <div class="user-avatar">
  24. <img src="img/1.png" alt="" class="tag" style="transform: rotate(90deg);" />
  25. <img [src]="orderList[0]?.avatar" class="avatar" alt="" />
  26. </div>
  27. <div class="user-name">
  28. {{ orderList[0]?.nickname }}
  29. </div>
  30. </div>
  31. <div class="user-detail user-detail1">
  32. <div class="num">{{ orderList[0]?.credit }}</div>
  33. <div class="pm">TOP2</div>
  34. </div>
  35. </div>
  36. <div class="top3">
  37. <div class="user-block">
  38. <div class="user-avatar">
  39. <img src="img/3.png" alt="" class="tag" />
  40. <img [src]="orderList[2]?.avatar" class="avatar" alt="" />
  41. </div>
  42. <div class="user-name">
  43. {{ orderList[2]?.nickname }}
  44. </div>
  45. </div>
  46. <div class="user-detail user-detail3">
  47. <div class="num">{{ orderList[2]?.credit }}</div>
  48. <div class="pm">TOP2</div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. @for (item of orderList.slice(2,4); track $index) {
  54. <div class="row">
  55. <div class="row-left">
  56. <span class="row-index">4</span>
  57. <img [src]="item.avatar" alt="" class="row-avatar" />
  58. <div class="row-name">{{ item?.nickname }}</div>
  59. </div>
  60. <div class="row-right">
  61. <div class="row-tpis">距离第一名</div>
  62. <div class="row-tpis-num">
  63. {{ item.credit - orderList[0].credit }}<span></span>
  64. </div>
  65. </div>
  66. </div>
  67. }
  68. </div>
  69. </ion-content>