likeList.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <view class="container">
  3. <view class="list">
  4. <!-- 每一个用户区域 -->
  5. <view class="list_box" v-for="item in list" :key="item.id">
  6. <img mode="aspectFill" :src="item.url" />
  7. <view class="box_info">
  8. <view class="info_name">{{ item.name }}</view>
  9. <view class="info_num">
  10. <view class="num_article">{{ item.count }}篇推文</view>
  11. <view class="num_fans">{{ item.fans }}粉丝</view>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. list: [
  23. {
  24. id: 1,
  25. url: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1933617026前台.jpg',
  26. name: '鸣人',
  27. count: 6,
  28. fans: 10
  29. },
  30. {
  31. id: 2,
  32. url: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1933617026前台.jpg',
  33. name: '路飞',
  34. count: 6,
  35. fans: 10
  36. },
  37. {
  38. id: 3,
  39. url: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1933617026前台.jpg',
  40. name: '黑崎一护',
  41. count: 6,
  42. fans: 10
  43. },
  44. {
  45. id: 4,
  46. url: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1933617026前台.jpg',
  47. name: '灰太狼',
  48. count: 6,
  49. fans: 10
  50. },
  51. {
  52. id: 5,
  53. url: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1933617026前台.jpg',
  54. name: '哆啦A梦',
  55. count: 6,
  56. fans: 10
  57. }
  58. ]
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .container {
  65. min-height: 100vh;
  66. background-color: #fff;
  67. .list {
  68. padding: 10rpx 20rpx;
  69. .list_box {
  70. display: flex;
  71. align-items: center;
  72. height: 100rpx;
  73. border-bottom: 1rpx solid #e5e5e5;
  74. img {
  75. width: 60rpx;
  76. height: 60rpx;
  77. border-radius: 50%;
  78. }
  79. .box_info {
  80. margin-left: 15rpx;
  81. font-size: 24rpx;
  82. .info_name {
  83. font-weight: bold;
  84. }
  85. .info_num {
  86. display: flex;
  87. align-items: center;
  88. margin-top: 5rpx;
  89. color: #808080;
  90. .num_article {
  91. }
  92. .num_fans {
  93. margin-left: 30rpx;
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }
  100. </style>