rankingList.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <template>
  2. <view>
  3. <u-navbar title="积分排行榜">
  4. </u-navbar>
  5. <view class="background">
  6. 积分排行榜
  7. </view>
  8. <view class="self" v-if="false">
  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" v-if="false">
  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 :isnone="true" nonetext="统计中,敬请期待" bg-color="#F2F4F4" border-color="#CFD2D5">已经到底了</u-divider>
  137. </view>
  138. </template>
  139. <script>
  140. export default {
  141. data() {
  142. return {
  143. list:[],
  144. listForm:{
  145. pageIndex:1,
  146. typeId:"",
  147. title:"",
  148. pageSize:20,
  149. },
  150. recordsTotal:0,
  151. }
  152. },
  153. methods: {
  154. }
  155. }
  156. </script>
  157. <style lang="scss" scoped>
  158. .background{
  159. height: 224rpx;
  160. color: rgba(255, 255, 255, 1);
  161. font-size: 24px;
  162. padding: 44rpx 32rpx;
  163. display: flex;
  164. background:url("../../../assets/img/Group Copy@1x.png" ),url("../../../assets/img/Group@1x.png"),
  165. linear-gradient(180deg, rgba(255,150,0,1) 0%,rgba(255,61,0,1) 100%) ;
  166. background-repeat: no-repeat,no-repeat;
  167. background-position: 85% 50%,105% 40%;
  168. }
  169. .self{
  170. background-color: #fff;
  171. margin: 0 32rpx 24rpx;
  172. margin-top: -90rpx;
  173. height: 64px;
  174. z-index: 999;
  175. overflow: hidden;
  176. position: relative;
  177. border-radius: 8px;
  178. padding: 36rpx 42rpx;
  179. display: flex;
  180. align-items: center;
  181. .rank{
  182. color: rgba(31, 74, 153, 1);
  183. font-size: 16px;
  184. }
  185. .photo{
  186. width: 80rpx;
  187. height: 80rpx;
  188. border-radius: 8px;
  189. overflow: hidden;
  190. margin-left: 24rpx;
  191. img{
  192. width: 100%;
  193. height: 100%;
  194. }
  195. }
  196. .name{
  197. color: rgba(51, 51, 51, 1);
  198. font-size: 16px;
  199. margin-left: 24rpx;
  200. }
  201. .points{
  202. color: rgba(31, 74, 153, 1);
  203. font-size: 16px;
  204. margin-left: auto;
  205. }
  206. }
  207. .else{
  208. background: #fff;
  209. border-radius: 8px;
  210. padding: 24rpx 48rpx;
  211. margin: 0 32rpx 24rpx;
  212. .item{
  213. display: flex;
  214. align-items: center;
  215. height: 128rpx;
  216. }
  217. .rank{
  218. color: rgba(31, 74, 153, 1);
  219. font-size: 16px;
  220. width: 48rpx;
  221. height: 48rpx;
  222. img{
  223. width: 100%;
  224. height: 100%;
  225. }
  226. }
  227. .photo{
  228. width: 80rpx;
  229. height: 80rpx;
  230. border-radius: 8px;
  231. overflow: hidden;
  232. margin-left: 24rpx;
  233. img{
  234. width: 100%;
  235. height: 100%;
  236. }
  237. }
  238. .name{
  239. color: rgba(51, 51, 51, 1);
  240. font-size: 16px;
  241. margin-left: 24rpx;
  242. }
  243. .points{
  244. color: rgba(31, 74, 153, 1);
  245. font-size: 16px;
  246. margin-left: auto;
  247. }
  248. .points1{
  249. color: rgba(226, 14, 22, 1);
  250. }
  251. .points2{
  252. color: rgba(255, 94, 0, 1);
  253. }
  254. .points3{
  255. color: rgba(255, 150, 0, 1);
  256. }
  257. }
  258. </style>