feat(VideoCard): add tick icon for followed uploader (#672)

* feat: 关注标识
close [https://github.com/BewlyBewly/BewlyBewly/issues/671]

* refactor(VideoCard):  rename `isFollowed` to `followed`

* feat: add followed tag to videos in mobile recommendation mode

* style(VideoCard): adjust followed tick style

* chore: add corresponding documentation for [API.USER.RELATION_MODIFY]

---------

Co-authored-by: pengyunfei <pengyunfei@360.cn>
Co-authored-by: Hakadao <a578457889743@gmail.com>
This commit is contained in:
cloudflypeng
2024-04-26 19:02:21 +08:00
committed by GitHub
parent 7c45027e65
commit 39d6d9a91d
4 changed files with 33 additions and 2 deletions

View File

@@ -463,6 +463,7 @@ defineExpose({ initData })
:cover="video.pic"
:author="video.owner.name"
:author-face="video.owner.face"
:followed="!!video.is_followed"
:mid="video.owner.mid"
:view="video.stat.view"
:danmaku="video.stat.danmaku"
@@ -490,6 +491,7 @@ defineExpose({ initData })
:cover="`${video.cover}`"
:author="video?.mask?.avatar.text"
:author-face="video?.mask?.avatar.cover"
:followed="video?.bottom_rcmd_reason === '已关注' || video?.bottom_rcmd_reason === '已關注'"
:mid="video?.mask?.avatar.up_id "
:capsule-text="video?.desc?.split('·')[1]"
:bvid="video.bvid"