|
|
|
@ -13,7 +13,9 @@ |
|
|
|
<view class="middle"> |
|
|
|
<uni-section title="我的数据" type="line" padding> |
|
|
|
<uni-group mode="card"> |
|
|
|
<view>粉丝数 点赞数 收藏数 </view> |
|
|
|
<view>粉丝数 {{creatorFansLikeInfo.fansNum}} </view> |
|
|
|
<view>点赞数 {{creatorFansLikeInfo.likeNum}}</view> |
|
|
|
<view>收藏数 {{creatorFansLikeInfo.collectNum}} </view> |
|
|
|
</uni-group> |
|
|
|
</uni-section> |
|
|
|
</view> |
|
|
|
@ -36,6 +38,9 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { |
|
|
|
getCreatorInfoFansLike |
|
|
|
} from '@/api/userInfo.js' |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -66,6 +71,7 @@ |
|
|
|
}], |
|
|
|
pageUrl: '', |
|
|
|
userInfo: {}, |
|
|
|
creatorFansLikeInfo: {} |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
@ -86,6 +92,8 @@ |
|
|
|
this.userInfo = userInfo; |
|
|
|
console.log('have userInfo') |
|
|
|
} |
|
|
|
//获取粉丝李欢收藏数量 |
|
|
|
this.getCreatorInfoFansLike(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
change(e) { |
|
|
|
@ -99,6 +107,23 @@ |
|
|
|
url: this.pageUrl |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
//获取粉丝喜欢收藏数量 |
|
|
|
|
|
|
|
async getCreatorInfoFansLike() { |
|
|
|
let that = this; |
|
|
|
const res = await getCreatorInfoFansLike(that.userInfo.id) |
|
|
|
console.log('res', res) |
|
|
|
if (res.data.code === 200) { |
|
|
|
that.creatorFansLikeInfo = res.data.data |
|
|
|
console.log('creatorFansLikeInfo', that.creatorFansLikeInfo) |
|
|
|
} else { |
|
|
|
uni.showModal({ |
|
|
|
content: '获取粉丝喜欢收藏数量数据加载失败!', |
|
|
|
showCancel: false |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|