|
|
@@ -5,15 +5,16 @@
|
|
|
<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>
|
|
|
+ <u-avatar :src="item.avatar" size="82"></u-avatar>
|
|
|
</view>
|
|
|
<view>
|
|
|
- <view class="name">{{item.name}}</view>
|
|
|
+ <view class="name">{{item.nickName}}</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 class="text-sm" style="color: #757575;" v-if="item.typeSub==1">打榜</view>
|
|
|
+ <view class="text-sm" style="color: #757575;" v-if="item.typeSub==2">打赏</view>
|
|
|
+ <view class="name padding-right flex justify-end" style="width: 200upx;">{{item.totalHotValue}}热力值</view>
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
|
@@ -30,8 +31,12 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
- this.userId = uni.getStorageSync("userId") || -1;
|
|
|
- this.getMyBoostList();
|
|
|
+ this.userId = uni.getStorageSync("userId")
|
|
|
+ if (!this.userId) {
|
|
|
+ this.$u.toast('用户未登录')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.getMyBoostList()
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
if (this.boostList.length < this.current * this.size) {
|