From 7d9bf609b3ca1c3268dfabb8ccc609a8532ee3bf Mon Sep 17 00:00:00 2001 From: the1812 Date: Sat, 5 Mar 2022 17:41:11 +0800 Subject: [PATCH] Add bangumi ranklist --- .../fresh/layouts/categories/Categories.vue | 2 + .../layouts/categories/content/Bangumi.vue | 159 +++++++++++++++++- .../categories/content/BangumiTimeline.vue | 56 ++++++ .../layouts/categories/content/Default.vue | 38 ++++- .../layouts/categories/content/RankList.vue | 85 +++++----- .../categories/content/VideoSlides.vue | 14 +- .../layouts/categories/content/_effects.scss | 24 +++ .../categories/content/rank-list-card.ts | 11 ++ src/components/feeds/UpInfo.vue | 26 ++- 9 files changed, 346 insertions(+), 69 deletions(-) create mode 100644 registry/lib/components/style/home-redesign/fresh/layouts/categories/content/BangumiTimeline.vue create mode 100644 registry/lib/components/style/home-redesign/fresh/layouts/categories/content/_effects.scss create mode 100644 registry/lib/components/style/home-redesign/fresh/layouts/categories/content/rank-list-card.ts diff --git a/registry/lib/components/style/home-redesign/fresh/layouts/categories/Categories.vue b/registry/lib/components/style/home-redesign/fresh/layouts/categories/Categories.vue index 408c5549b..c7ed5dd85 100644 --- a/registry/lib/components/style/home-redesign/fresh/layouts/categories/Categories.vue +++ b/registry/lib/components/style/home-redesign/fresh/layouts/categories/Categories.vue @@ -109,6 +109,8 @@ export default Vue.extend({ .fresh-home-categories { @include v-stretch(); + --fresh-home-categories-column-gap: 28px; + --fresh-home-categories-header-gap: 12px; &-content { font-size: 14px; } diff --git a/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/Bangumi.vue b/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/Bangumi.vue index eb8b6a197..d4d3a2689 100644 --- a/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/Bangumi.vue +++ b/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/Bangumi.vue @@ -1,5 +1,160 @@ + + diff --git a/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/BangumiTimeline.vue b/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/BangumiTimeline.vue new file mode 100644 index 000000000..931827dd7 --- /dev/null +++ b/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/BangumiTimeline.vue @@ -0,0 +1,56 @@ + + + diff --git a/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/Default.vue b/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/Default.vue index 2066238d2..27a4f3544 100644 --- a/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/Default.vue +++ b/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/Default.vue @@ -1,7 +1,5 @@ diff --git a/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/RankList.vue b/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/RankList.vue index 1e4c33859..e2f068dd7 100644 --- a/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/RankList.vue +++ b/registry/lib/components/style/home-redesign/fresh/layouts/categories/content/RankList.vue @@ -20,7 +20,7 @@ {{ firstItem.title }} @@ -28,7 +28,7 @@ + > + +
{{ firstItem.points | formatCount }} @@ -50,7 +54,7 @@
+ > + +
{{ secondItem.points | formatCount }} @@ -73,7 +81,7 @@
+ > + +
{{ secondItem.points | formatCount }} @@ -109,7 +121,7 @@