myBoost.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view>
  3. <view class="bg-img" style="background-image: url('/static/bgimg.png');height: 310upx;"></view>
  4. <block v-for="(item, index) in boostList" :key="index">
  5. <view class="flex align-center justify-between boder">
  6. <view class="flex align-center">
  7. <view class="padding-sm">
  8. <u-avatar :src="item.image" size="82"></u-avatar>
  9. </view>
  10. <view>
  11. <view class="name">{{item.name}}</view>
  12. <view class="time padding-top-xs">{{item.time}}</view>
  13. </view>
  14. </view>
  15. <view class="text-sm" style="color: #757575;">{{item.type}}</view>
  16. <view class="name padding-right flex justify-end" style="width: 180upx;">{{item.hotValue}}热力值</view>
  17. </view>
  18. </block>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. boostList: [
  26. {image: '/static/avatar.png', name: '易烊千玺', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '12'},
  27. {image: '/static/avatar2.png', name: '许嵩', time: '2021-6-7 10:28:46', type: '礼物', hotValue: '13'},
  28. {image: '/static/avatar.png', name: '林俊杰', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '188'},
  29. {image: '/static/avatar2.png', name: '沈以诚', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '88'},
  30. {image: '/static/avatar.png', name: '颜人中', time: '2021-6-7 10:28:46', type: '礼物', hotValue: '13'},
  31. {image: '/static/avatar.png', name: '毛不易', time: '2021-6-7 10:28:46', type: '转发', hotValue: '1'},
  32. {image: '/static/avatar2.png', name: '陈奕迅', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '5'}
  33. ],
  34. }
  35. },
  36. methods: {
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .name {
  42. font-size: 26upx;
  43. font-family: PingFang SC;
  44. font-weight: bold;
  45. color: #111111;
  46. }
  47. .time {
  48. font-size: 16upx;
  49. font-family: PingFang SC;
  50. color: #9E9E9E;
  51. }
  52. .boder {
  53. margin: 20upx;
  54. box-shadow: -1upx -1upx 60upx #d0d0d0;
  55. border-radius: 30upx;
  56. }
  57. </style>