小说小程序前端代码仓库(小程序)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.6 KiB

  1. <template>
  2. <view class="rank-item">
  3. <view class="rank-left">
  4. <image src="@/pages_order/static/top/4.png" class="rank-icon" />
  5. <image src="@/pages_order/static/book/dj.png" class="rank-num-img" />
  6. <image class="avatar" src="@/pages_order/static/book/bd.png" mode="aspectFill" />
  7. <view class="name">发源于</view>
  8. </view>
  9. <view class="rank-right">
  10. <view class="score">200亲密值</view>
  11. <view class="level">护书使者 五级</view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'RankListItem',
  18. props: {
  19. }
  20. }
  21. </script>
  22. <style lang="scss" scoped>
  23. .rank-item {
  24. display: flex;
  25. align-items: center;
  26. justify-content: space-between;
  27. background: linear-gradient(to bottom, #FBEBC5, #FDF9DD);
  28. border-radius: 16rpx;
  29. margin-bottom: 18rpx;
  30. box-shadow: 0 2rpx 8rpx 0 rgba(184, 110, 59, 0.06);
  31. padding: 24rpx;
  32. .rank-left {
  33. display: flex;
  34. align-items: center;
  35. .rank-icon,
  36. .rank-num-img {
  37. width: 60rpx;
  38. height: 60rpx;
  39. margin-right: 10rpx;
  40. }
  41. .avatar {
  42. width: 60rpx;
  43. height: 60rpx;
  44. border-radius: 50%;
  45. margin-right: 14rpx;
  46. object-fit: cover;
  47. }
  48. .name {
  49. font-size: 26rpx;
  50. color: #222;
  51. font-weight: 500;
  52. }
  53. }
  54. .rank-right {
  55. display: flex;
  56. flex-direction: column;
  57. align-items: flex-end;
  58. gap: 10rpx;
  59. .score {
  60. font-size: 22rpx;
  61. color: #684427;
  62. }
  63. .level {
  64. font-size: 20rpx;
  65. color: #C28E00;
  66. background: #FFE8A8;
  67. border-radius: 8rpx;
  68. padding: 2rpx 10rpx;
  69. margin-top: 6rpx;
  70. font-weight: 500;
  71. }
  72. }
  73. }
  74. </style>