feat: pugv (#927)

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-08-03 15:25:29 +08:00
committed by GitHub
parent cf835e330b
commit bd3d6cf34c
33 changed files with 596 additions and 421 deletions

View File

@@ -43,6 +43,11 @@ class VideoCardH extends StatelessWidget {
var typeOrNull = item.type;
if (typeOrNull?.isNotEmpty == true) {
type = typeOrNull!;
if (type == 'ketang') {
badge = '课堂';
} else if (type == 'live_room') {
badge = '直播';
}
}
if (item.isUnionVideo == 1) {
badge = '合作';
@@ -71,7 +76,7 @@ class VideoCardH extends StatelessWidget {
onTap ??
() async {
if (type == 'ketang') {
SmartDialog.showToast('课堂视频暂不支持播放');
PageUtils.viewPugv(seasonId: videoItem.aid);
return;
} else if (type == 'live_room') {
if (videoItem case SearchVideoItemModel item) {
@@ -173,13 +178,6 @@ class VideoCardH extends StatelessWidget {
bottom: 6.0,
type: PBadgeType.gray,
),
if (type != 'video')
PBadge(
text: type,
left: 6.0,
bottom: 6.0,
type: PBadgeType.primary,
),
],
);
},