rankingList.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <template>
  2. <view>
  3. <u-navbar title="积分排行榜">
  4. </u-navbar>
  5. <view class="background">
  6. 积分排行榜
  7. </view>
  8. <view class="self">
  9. <view class="rank">
  10. 105
  11. </view>
  12. <view class="photo">
  13. <img src="../../../assets/img/rankPhoto.png" alt="">
  14. </view>
  15. <view class="name">
  16. 王泽
  17. </view>
  18. <view class="points">
  19. 1015积分
  20. </view>
  21. </view>
  22. <view class="else">
  23. <view class="item">
  24. <view class="rank">
  25. <img src="../../../assets/img/Gold Medal@1x.png" alt="">
  26. </view>
  27. <view class="photo">
  28. <img src="../../../assets/img/jiguang.png" alt="">
  29. </view>
  30. <view class="name">
  31. 继广
  32. </view>
  33. <view class="points points1">
  34. 2011积分
  35. </view>
  36. </view>
  37. <view class="item">
  38. <view class="rank">
  39. <img src="../../../assets/img/Silver Medal Copy@1x.png" alt="">
  40. </view>
  41. <view class="photo">
  42. <img src="../../../assets/img/dingmanrong.png" alt="">
  43. </view>
  44. <view class="name">
  45. 丁曼容
  46. </view>
  47. <view class="points points2">
  48. 2011积分
  49. </view>
  50. </view>
  51. <view class="item">
  52. <view class="rank">
  53. <img src="../../../assets/img/Bronze Medal Copy@1x.png" alt="">
  54. </view>
  55. <view class="photo">
  56. <img src="../../../assets/img/lishuyi.png" alt="">
  57. </view>
  58. <view class="name">
  59. 李书易
  60. </view>
  61. <view class="points points3">
  62. 1917积分
  63. </view>
  64. </view>
  65. <view class="item">
  66. <view class="rank">
  67. 4
  68. </view>
  69. <view class="photo">
  70. <img src="../../../assets/img/jiguang.png" alt="">
  71. </view>
  72. <view class="name">
  73. 继广
  74. </view>
  75. <view class="points">
  76. 2011积分
  77. </view>
  78. </view>
  79. <view class="item">
  80. <view class="rank">
  81. 5
  82. </view>
  83. <view class="photo">
  84. <img src="../../../assets/img/jiguang.png" alt="">
  85. </view>
  86. <view class="name">
  87. 继广
  88. </view>
  89. <view class="points">
  90. 2011积分
  91. </view>
  92. </view>
  93. <view class="item">
  94. <view class="rank">
  95. 6
  96. </view>
  97. <view class="photo">
  98. <img src="../../../assets/img/jiguang.png" alt="">
  99. </view>
  100. <view class="name">
  101. 继广
  102. </view>
  103. <view class="points">
  104. 2011积分
  105. </view>
  106. </view>
  107. <view class="item">
  108. <view class="rank">
  109. 7
  110. </view>
  111. <view class="photo">
  112. <img src="../../../assets/img/jiguang.png" alt="">
  113. </view>
  114. <view class="name">
  115. 继广
  116. </view>
  117. <view class="points">
  118. 2011积分
  119. </view>
  120. </view>
  121. <view class="item">
  122. <view class="rank">
  123. 8
  124. </view>
  125. <view class="photo">
  126. <img src="../../../assets/img/jiguang.png" alt="">
  127. </view>
  128. <view class="name">
  129. 继广
  130. </view>
  131. <view class="points">
  132. 2011积分
  133. </view>
  134. </view>
  135. </view>
  136. <u-divider bg-color="#F2F4F4" border-color="#CFD2D5">已经到底了</u-divider>
  137. </view>
  138. </template>
  139. <script>
  140. export default {
  141. data() {
  142. return {
  143. }
  144. },
  145. methods: {
  146. }
  147. }
  148. </script>
  149. <style lang="scss" scoped>
  150. .background{
  151. height: 224rpx;
  152. color: rgba(255, 255, 255, 1);
  153. font-size: 24px;
  154. padding: 44rpx 32rpx;
  155. display: flex;
  156. background:url("../../../assets/img/Group Copy@1x.png" ),url("../../../assets/img/Group@1x.png"),
  157. linear-gradient(180deg, rgba(255,150,0,1) 0%,rgba(255,61,0,1) 100%) ;
  158. background-repeat: no-repeat,no-repeat;
  159. background-position: 85% 50%,105% 40%;
  160. font-family: 'SemiBold';
  161. }
  162. .self{
  163. background-color: #fff;
  164. margin: 0 32rpx 24rpx;
  165. margin-top: -90rpx;
  166. height: 64px;
  167. z-index: 999;
  168. overflow: hidden;
  169. position: relative;
  170. border-radius: 8px;
  171. padding: 36rpx 42rpx;
  172. display: flex;
  173. align-items: center;
  174. .rank{
  175. color: rgba(31, 74, 153, 1);
  176. font-size: 16px;
  177. }
  178. .photo{
  179. width: 80rpx;
  180. height: 80rpx;
  181. border-radius: 8px;
  182. overflow: hidden;
  183. margin-left: 24rpx;
  184. img{
  185. width: 100%;
  186. height: 100%;
  187. }
  188. }
  189. .name{
  190. color: rgba(51, 51, 51, 1);
  191. font-size: 16px;
  192. margin-left: 24rpx;
  193. font-family: 'Medium';
  194. }
  195. .points{
  196. color: rgba(31, 74, 153, 1);
  197. font-size: 16px;
  198. margin-left: auto;
  199. font-family: 'Regular';
  200. }
  201. }
  202. .else{
  203. background: #fff;
  204. border-radius: 8px;
  205. padding: 24rpx 48rpx;
  206. margin: 0 32rpx 24rpx;
  207. .item{
  208. display: flex;
  209. align-items: center;
  210. height: 128rpx;
  211. }
  212. .rank{
  213. color: rgba(31, 74, 153, 1);
  214. font-size: 16px;
  215. width: 48rpx;
  216. height: 48rpx;
  217. img{
  218. width: 100%;
  219. height: 100%;
  220. }
  221. }
  222. .photo{
  223. width: 80rpx;
  224. height: 80rpx;
  225. border-radius: 8px;
  226. overflow: hidden;
  227. margin-left: 24rpx;
  228. img{
  229. width: 100%;
  230. height: 100%;
  231. }
  232. }
  233. .name{
  234. color: rgba(51, 51, 51, 1);
  235. font-size: 16px;
  236. margin-left: 24rpx;
  237. font-family: 'Medium';
  238. }
  239. .points{
  240. color: rgba(31, 74, 153, 1);
  241. font-size: 16px;
  242. margin-left: auto;
  243. font-family: 'Regular';
  244. }
  245. .points1{
  246. color: rgba(226, 14, 22, 1);
  247. }
  248. .points2{
  249. color: rgba(255, 94, 0, 1);
  250. }
  251. .points3{
  252. color: rgba(255, 150, 0, 1);
  253. }
  254. }
  255. </style>