feat: 番剧选集评论加载、分集渲染优化

This commit is contained in:
guozhigq
2023-08-04 19:15:53 +08:00
parent 01829ad965
commit 1454190f43
6 changed files with 58 additions and 103 deletions

View File

@ -62,14 +62,23 @@ class HistoryItem extends StatelessWidget {
int cid = result['data'].cid!;
String pic = result['data'].pic!;
String heroTag = Utils.makeHeroTag(cid);
Get.toNamed(
'/video?bvid=$bvid&cid=$cid&epId=${result['data'].epId}',
arguments: {
'pic': pic,
'heroTag': heroTag,
'videoType': SearchType.media_bangumi,
},
);
var epid = result['data'].epId;
if (epid != null) {
Get.toNamed(
'/video?bvid=$bvid&cid=$cid&epId=${result['data'].epId}',
arguments: {
'pic': pic,
'heroTag': heroTag,
'videoType': SearchType.media_bangumi,
},
);
} else {
int cid = videoItem.history.cid ??
// videoItem.history.oid ??
await SearchHttp.ab2c(aid: aid, bvid: bvid);
Get.toNamed('/video?bvid=$bvid&cid=$cid',
arguments: {'heroTag': heroTag, 'pic': videoItem.cover});
}
}
} else {
if (videoItem.history.epid != '') {