|
@@ -4,17 +4,20 @@
|
|
|
<view class="flex align-center justify-between boder">
|
|
<view class="flex align-center justify-between boder">
|
|
|
<view class="flex align-center" style="width: 50%;">
|
|
<view class="flex align-center" style="width: 50%;">
|
|
|
<view class="padding-sm">
|
|
<view class="padding-sm">
|
|
|
- <u-avatar :src="item.image" size="82"></u-avatar>
|
|
|
|
|
|
|
+ <u-avatar :src="item.avatar" size="82"></u-avatar>
|
|
|
</view>
|
|
</view>
|
|
|
<view>
|
|
<view>
|
|
|
- <view class="name">{{item.name}}</view>
|
|
|
|
|
- <view class="time padding-top-xs">{{item.time}}</view>
|
|
|
|
|
|
|
+ <view class="name">{{item.nickName}}</view>
|
|
|
|
|
+ <view class="time padding-top-xs">{{item.createTime}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="text-sm" style="color: #757575;">{{item.type}}</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 class="name padding-right flex justify-end" style="width: 180upx;">{{item.totalHotValue}}热力值</view>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
|
|
+ <view style="height: 80rpx;" v-if="status">
|
|
|
|
|
+ <u-divider bgColor="#f1f1f1;" height="80">到底了</u-divider>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -22,19 +25,30 @@
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
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'}
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ current: 1,
|
|
|
|
|
+ size: 30,
|
|
|
|
|
+ status: false,
|
|
|
|
|
+ boostList: [],
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ onLoad() {
|
|
|
|
|
+ this.userId = uni.getStorageSync("userId");
|
|
|
|
|
+ this.getBoostDetail();
|
|
|
|
|
+ },
|
|
|
|
|
+ onReachBottom() {
|
|
|
|
|
+ if (this.boostList.length < this.current * this.size) {
|
|
|
|
|
+ this.status = true;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.current += 1;
|
|
|
|
|
+ this.getBoostDetail();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
-
|
|
|
|
|
|
|
+ getBoostDetail() {
|
|
|
|
|
+ this.$u.api.boost.list({id: this.userId, current: this.current, size: this.size}).then(res => {
|
|
|
|
|
+ this.boostList = [...this.boostList,...res.records];
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|