fix: 观看记录异常

This commit is contained in:
guozhigq
2023-06-20 23:38:05 +08:00
parent c2f8f143f8
commit fe93eb690c
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class HisListItem {
String? longTitle; String? longTitle;
String? cover; String? cover;
String? pic; String? pic;
String? covers; List? covers;
String? uri; String? uri;
History? history; History? history;
int? videos; int? videos;
@ -111,7 +111,7 @@ class HisListItem {
longTitle = json['long_title']; longTitle = json['long_title'];
cover = json['cover']; cover = json['cover'];
pic = json['cover'] ?? ''; pic = json['cover'] ?? '';
covers = json['covers'] ?? ''; covers = json['covers'] ?? [];
uri = json['uri']; uri = json['uri'];
history = History.fromJson(json['history']); history = History.fromJson(json['history']);
videos = json['videos']; videos = json['videos'];

View File

@ -15,7 +15,7 @@ class HistoryItem extends StatelessWidget {
return InkWell( return InkWell(
onTap: () async { onTap: () async {
await Future.delayed(const Duration(milliseconds: 200)); await Future.delayed(const Duration(milliseconds: 200));
Get.toNamed('/video?aid=$aid', Get.toNamed('/video?aid=$aid&cid=${videoItem.history.cid}',
arguments: {'heroTag': heroTag, 'pic': videoItem.cover}); arguments: {'heroTag': heroTag, 'pic': videoItem.cover});
}, },
child: Column( child: Column(