From e69c723e191ba1a96b2259f0d2275f310f8b6b64 Mon Sep 17 00:00:00 2001 From: orz12 Date: Thu, 11 Jul 2024 17:32:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=88=86=E5=8C=BA=EF=BC=88=E4=BD=86=E6=9C=AA=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E6=94=AF=E6=8C=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/models/common/rank_type.dart | 45 +++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/lib/models/common/rank_type.dart b/lib/models/common/rank_type.dart index 7eaae240..710100e9 100644 --- a/lib/models/common/rank_type.dart +++ b/lib/models/common/rank_type.dart @@ -20,8 +20,9 @@ enum RandType { fashion, entertainment, film, - origin, - rookie + documentary, + movie, + teleplay } extension RankTypeDesc on RandType { @@ -42,7 +43,10 @@ extension RankTypeDesc on RandType { '鬼畜', '时尚', '娱乐', - '影视' + '影视', + '纪录', + '电影', + '剧集' ][index]; String get id => [ @@ -62,7 +66,10 @@ extension RankTypeDesc on RandType { 'madness', 'fashion', 'entertainment', - 'film' + 'film', + 'documentary', + 'movie', + 'teleplay' ][index]; } @@ -236,5 +243,35 @@ List tabsConfig = [ 'type': RandType.film, 'ctr': Get.put(ZoneController(), tag: '181'), 'page': const ZonePage(rid: 181), + }, + { + 'icon': const Icon( + Icons.live_tv_outlined, + size: 15, + ), + 'label': '纪录', + 'type': RandType.documentary, + 'ctr': Get.put(ZoneController(), tag: '177'), + 'page': const ZonePage(rid: 177), + }, + { + 'icon': const Icon( + Icons.live_tv_outlined, + size: 15, + ), + 'label': '电影', + 'type': RandType.movie, + 'ctr': Get.put(ZoneController(), tag: '23'), + 'page': const ZonePage(rid: 23), + }, + { + 'icon': const Icon( + Icons.live_tv_outlined, + size: 15, + ), + 'label': '剧集', + 'type': RandType.teleplay, + 'ctr': Get.put(ZoneController(), tag: '11'), + 'page': const ZonePage(rid: 11), } ];