Compare commits

...

5 Commits

Author SHA1 Message Date
06f23f67ca Merge pull request #1366 from yeqiling/feature-rank-rid-fix
fix: 排行榜数据修正 (rid变动), 移除"国创","生活"tab
2025-05-14 23:37:04 +08:00
6908f708cc fix: 移除无用的RandType与RankTypeDesc 2025-05-04 00:39:06 +08:00
21f06093a4 fix: 排行榜数据修正 (rid变动), 移除"国创","生活"tab 2025-05-03 23:50:06 +08:00
34fb580271 Update README.md 2025-03-05 23:59:51 +08:00
97f8c4440c Update README.md 2025-02-27 23:23:52 +08:00
2 changed files with 17 additions and 41 deletions

View File

@ -90,6 +90,8 @@ QQ 频道: https://pd.qq.com/s/365esodk3
- [x] 字幕 - [x] 字幕
- [x] 记忆播放 - [x] 记忆播放
- [x] 视频比例:高度/宽度适应、填充、包含等 - [x] 视频比例:高度/宽度适应、填充、包含等
- [x] 视频快照
- [x] 直播弹幕
- [x] 搜索相关 - [x] 搜索相关
- [x] 热搜 - [x] 热搜

View File

@ -3,7 +3,6 @@ import 'package:pilipala/pages/rank/zone/index.dart';
enum RandType { enum RandType {
all, all,
creation,
animation, animation,
music, music,
dance, dance,
@ -12,21 +11,17 @@ enum RandType {
technology, technology,
sport, sport,
car, car,
life,
food, food,
animal, animal,
madness, madness,
fashion, fashion,
entertainment, entertainment,
film, film
origin,
rookie
} }
extension RankTypeDesc on RandType { extension RankTypeDesc on RandType {
String get description => [ String get description => [
'全站', '全站',
'国创相关',
'动画', '动画',
'音乐', '音乐',
'舞蹈', '舞蹈',
@ -35,7 +30,6 @@ extension RankTypeDesc on RandType {
'科技', '科技',
'运动', '运动',
'汽车', '汽车',
'生活',
'美食', '美食',
'动物圈', '动物圈',
'鬼畜', '鬼畜',
@ -46,7 +40,6 @@ extension RankTypeDesc on RandType {
String get id => [ String get id => [
'all', 'all',
'creation',
'animation', 'animation',
'music', 'music',
'dance', 'dance',
@ -55,7 +48,6 @@ extension RankTypeDesc on RandType {
'technology', 'technology',
'sport', 'sport',
'car', 'car',
'life',
'food', 'food',
'animal', 'animal',
'madness', 'madness',
@ -75,15 +67,6 @@ List tabsConfig = [
'type': RandType.all, 'type': RandType.all,
'page': const ZonePage(rid: 0), 'page': const ZonePage(rid: 0),
}, },
{
'icon': const Icon(
Icons.live_tv_outlined,
size: 15,
),
'label': '国创相关',
'type': RandType.creation,
'page': const ZonePage(rid: 168),
},
{ {
'icon': const Icon( 'icon': const Icon(
Icons.live_tv_outlined, Icons.live_tv_outlined,
@ -91,7 +74,7 @@ List tabsConfig = [
), ),
'label': '动画', 'label': '动画',
'type': RandType.animation, 'type': RandType.animation,
'page': const ZonePage(rid: 1), 'page': const ZonePage(rid: 1005),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -100,7 +83,7 @@ List tabsConfig = [
), ),
'label': '音乐', 'label': '音乐',
'type': RandType.music, 'type': RandType.music,
'page': const ZonePage(rid: 3), 'page': const ZonePage(rid: 1003),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -109,7 +92,7 @@ List tabsConfig = [
), ),
'label': '舞蹈', 'label': '舞蹈',
'type': RandType.dance, 'type': RandType.dance,
'page': const ZonePage(rid: 129), 'page': const ZonePage(rid: 1004),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -118,7 +101,7 @@ List tabsConfig = [
), ),
'label': '游戏', 'label': '游戏',
'type': RandType.game, 'type': RandType.game,
'page': const ZonePage(rid: 4), 'page': const ZonePage(rid: 1008),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -127,7 +110,7 @@ List tabsConfig = [
), ),
'label': '知识', 'label': '知识',
'type': RandType.knowledge, 'type': RandType.knowledge,
'page': const ZonePage(rid: 36), 'page': const ZonePage(rid: 1010),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -136,7 +119,7 @@ List tabsConfig = [
), ),
'label': '科技', 'label': '科技',
'type': RandType.technology, 'type': RandType.technology,
'page': const ZonePage(rid: 188), 'page': const ZonePage(rid: 1012),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -145,7 +128,7 @@ List tabsConfig = [
), ),
'label': '运动', 'label': '运动',
'type': RandType.sport, 'type': RandType.sport,
'page': const ZonePage(rid: 234), 'page': const ZonePage(rid: 1018),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -154,16 +137,7 @@ List tabsConfig = [
), ),
'label': '汽车', 'label': '汽车',
'type': RandType.car, 'type': RandType.car,
'page': const ZonePage(rid: 223), 'page': const ZonePage(rid: 1013),
},
{
'icon': const Icon(
Icons.live_tv_outlined,
size: 15,
),
'label': '生活',
'type': RandType.life,
'page': const ZonePage(rid: 160),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -172,7 +146,7 @@ List tabsConfig = [
), ),
'label': '美食', 'label': '美食',
'type': RandType.food, 'type': RandType.food,
'page': const ZonePage(rid: 211), 'page': const ZonePage(rid: 1020),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -181,7 +155,7 @@ List tabsConfig = [
), ),
'label': '动物圈', 'label': '动物圈',
'type': RandType.animal, 'type': RandType.animal,
'page': const ZonePage(rid: 217), 'page': const ZonePage(rid: 1024),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -190,7 +164,7 @@ List tabsConfig = [
), ),
'label': '鬼畜', 'label': '鬼畜',
'type': RandType.madness, 'type': RandType.madness,
'page': const ZonePage(rid: 119), 'page': const ZonePage(rid: 1007),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -199,7 +173,7 @@ List tabsConfig = [
), ),
'label': '时尚', 'label': '时尚',
'type': RandType.fashion, 'type': RandType.fashion,
'page': const ZonePage(rid: 155), 'page': const ZonePage(rid: 1014),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -208,7 +182,7 @@ List tabsConfig = [
), ),
'label': '娱乐', 'label': '娱乐',
'type': RandType.entertainment, 'type': RandType.entertainment,
'page': const ZonePage(rid: 5), 'page': const ZonePage(rid: 1002),
}, },
{ {
'icon': const Icon( 'icon': const Icon(
@ -217,6 +191,6 @@ List tabsConfig = [
), ),
'label': '影视', 'label': '影视',
'type': RandType.film, 'type': RandType.film,
'page': const ZonePage(rid: 181), 'page': const ZonePage(rid: 1001),
} }
]; ];