Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-16 10:52:39 +08:00
parent 2090fd2312
commit 55733d30c5
86 changed files with 1359 additions and 1740 deletions

View File

@@ -51,7 +51,9 @@ class VideoCardH extends StatelessWidget {
badge = '合作';
}
} else if (videoItem case HotVideoItemModel item) {
if (item.isCooperation == 1) {
if (item.isCharging == true) {
badge = '充电专属';
} else if (item.isCooperation == 1) {
badge = '合作';
} else {
badge = item.pgcLabel;
@@ -147,6 +149,10 @@ class VideoCardH extends StatelessWidget {
text: badge,
top: 6.0,
right: 6.0,
type: switch (badge) {
'充电专属' => PBadgeType.error,
_ => PBadgeType.primary,
},
),
if (progress != null && progress != 0) ...[
PBadge(