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

@@ -51,7 +51,7 @@ class VideoCardHLater extends StatelessWidget {
onTap ??
() async {
if (type == 'ketang') {
SmartDialog.showToast('课堂视频暂不支持播放');
PageUtils.viewPugv(seasonId: videoItem.aid);
return;
}
if (videoItem.isPgc == true) {
@@ -117,6 +117,12 @@ class VideoCardHLater extends StatelessWidget {
text: videoItem.pgcLabel,
top: 6.0,
right: 6.0,
)
else if (type == 'ketang')
const PBadge(
text: '课堂',
top: 6.0,
right: 6.0,
),
if (progress != null && progress != 0) ...[
PBadge(
@@ -146,13 +152,6 @@ class VideoCardHLater extends StatelessWidget {
bottom: 6.0,
type: PBadgeType.gray,
),
if (type != 'video')
PBadge(
text: type,
left: 6.0,
bottom: 6.0,
type: PBadgeType.primary,
),
],
);
},