boostDetail.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view>
  3. <block v-for="(item, index) in boostList" :key="index">
  4. <view class="flex align-center justify-between boder">
  5. <view class="flex align-center" style="width: 50%;">
  6. <view class="padding-sm">
  7. <u-avatar :src="item.image" size="82"></u-avatar>
  8. </view>
  9. <view>
  10. <view class="name">{{item.name}}</view>
  11. <view class="time padding-top-xs">{{item.time}}</view>
  12. </view>
  13. </view>
  14. <view class="text-sm" style="color: #757575;">{{item.type}}</view>
  15. <view class="name padding-right flex justify-end" style="width: 180upx;">{{item.hotValue}}热力值</view>
  16. </view>
  17. </block>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. boostList: [
  25. {image: '/static/avatar.png', name: '私自弟弟', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '12'},
  26. {image: '/static/avatar2.png', name: '安置若梦', time: '2021-6-7 10:28:46', type: '礼物', hotValue: '13'},
  27. {image: '/static/avatar.png', name: '莫忘莫寻', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '188'},
  28. {image: '/static/avatar2.png', name: 'kris-Lee', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '88'},
  29. {image: '/static/avatar.png', name: 'RainBow维', time: '2021-6-7 10:28:46', type: '礼物', hotValue: '13'},
  30. {image: '/static/avatar.png', name: 'Niconic', time: '2021-6-7 10:28:46', type: '转发', hotValue: '1'},
  31. {image: '/static/avatar2.png', name: '晨光中。', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '5'}
  32. ],
  33. }
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style>
  40. .name {
  41. font-size: 26upx;
  42. font-family: PingFang SC;
  43. font-weight: bold;
  44. color: #111111;
  45. }
  46. .time {
  47. font-size: 16upx;
  48. font-family: PingFang SC;
  49. color: #9E9E9E;
  50. }
  51. .boder {
  52. margin: 20upx;
  53. box-shadow: -1upx -1upx 60upx #d0d0d0;
  54. border-radius: 30upx;
  55. }
  56. </style>