| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <view>
- <view class="bg-img" style="background-image: url('/static/bgimg.png');height: 310upx;"></view>
- <block v-for="(item, index) in boostList" :key="index">
- <view class="flex align-center justify-between boder">
- <view class="flex align-center">
- <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: '沈以诚', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '88'},
- {image: '/static/avatar.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: '1'},
- {image: '/static/avatar2.png', name: '陈奕迅', time: '2021-6-7 10:28:46', type: '打榜', hotValue: '5'}
- ],
- }
- },
- methods: {
-
- }
- }
- </script>
- <style lang="scss" scoped>
- .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>
|