| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <template>
- <view>
- <block v-for="(item, index) in boostList" :key="index">
- <view class="flex align-center justify-between boder">
- <view class="flex align-center" style="width: 50%;">
- <view class="padding-sm">
- <u-avatar :src="item.image" size="82"></u-avatar>
- </view>
- <view>
- <view class="name">{{item.name}}</view>
- <view class="time padding-top-xs">{{item.time}}</view>
- </view>
- </view>
- <view class="text-sm" style="color: #757575;">{{item.type}}</view>
- <view class="name padding-right flex justify-end" style="width: 180upx;">{{item.hotValue}}热力值</view>
- </view>
- </block>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- boostList: [
- {image: '/static/avatar.png', name: '私自弟弟', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '12'},
- {image: '/static/avatar2.png', name: '安置若梦', time: '2021-6-7 10:28:46', type: '礼物', hotValue: '13'},
- {image: '/static/avatar.png', name: '莫忘莫寻', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '188'},
- {image: '/static/avatar2.png', name: 'kris-Lee', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '88'},
- {image: '/static/avatar.png', name: 'RainBow维', time: '2021-6-7 10:28:46', type: '礼物', hotValue: '13'},
- {image: '/static/avatar.png', name: 'Niconic', time: '2021-6-7 10:28:46', type: '转发', hotValue: '1'},
- {image: '/static/avatar2.png', name: '晨光中。', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '5'}
- ],
- }
- },
- methods: {
-
- }
- }
- </script>
- <style>
- .name {
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- .time {
- font-size: 16upx;
- font-family: PingFang SC;
- color: #9E9E9E;
- }
- .boder {
- margin: 20upx;
- box-shadow: -1upx -1upx 60upx #d0d0d0;
- border-radius: 30upx;
- }
- </style>
|