Merge branch 'main' into feature-media_kit
This commit is contained in:
@ -121,7 +121,7 @@ class HisListItem {
|
|||||||
viewAt = json['view_at'];
|
viewAt = json['view_at'];
|
||||||
progress = json['progress'];
|
progress = json['progress'];
|
||||||
badge = json['badge'];
|
badge = json['badge'];
|
||||||
showTitle = json['show_title'];
|
showTitle = json['show_title'] == '' ? null : json['show_title'];
|
||||||
duration = json['duration'];
|
duration = json['duration'];
|
||||||
current = json['current'];
|
current = json['current'];
|
||||||
total = json['total'];
|
total = json['total'];
|
||||||
|
|||||||
@ -102,8 +102,7 @@ class _HistoryPageState extends State<HistoryPage> {
|
|||||||
Map data = snapshot.data;
|
Map data = snapshot.data;
|
||||||
if (data['status']) {
|
if (data['status']) {
|
||||||
return Obx(
|
return Obx(
|
||||||
() => _historyController.historyList.isNotEmpty &&
|
() => _historyController.historyList.isNotEmpty
|
||||||
!_historyController.isLoadingMore.value
|
|
||||||
? SliverList(
|
? SliverList(
|
||||||
delegate: SliverChildBuilderDelegate(
|
delegate: SliverChildBuilderDelegate(
|
||||||
(context, index) {
|
(context, index) {
|
||||||
|
|||||||
@ -37,20 +37,23 @@ class HistoryItem extends StatelessWidget {
|
|||||||
'pageTitle': videoItem.title
|
'pageTitle': videoItem.title
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else if (videoItem.history.business == 'live' &&
|
} else if (videoItem.history.business == 'live') {
|
||||||
videoItem.liveStatus == 1) {
|
if (videoItem.liveStatus == 1) {
|
||||||
LiveItemModel liveItem = LiveItemModel.fromJson({
|
LiveItemModel liveItem = LiveItemModel.fromJson({
|
||||||
'face': videoItem.authorFace,
|
'face': videoItem.authorFace,
|
||||||
'roomid': videoItem.history.oid,
|
'roomid': videoItem.history.oid,
|
||||||
'pic': videoItem.cover,
|
'pic': videoItem.cover,
|
||||||
'title': videoItem.title,
|
'title': videoItem.title,
|
||||||
'uname': videoItem.authorName,
|
'uname': videoItem.authorName,
|
||||||
'cover': videoItem.cover,
|
'cover': videoItem.cover,
|
||||||
});
|
});
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
'/liveRoom?roomid=${videoItem.history.oid}',
|
'/liveRoom?roomid=${videoItem.history.oid}',
|
||||||
arguments: {'liveItem': liveItem},
|
arguments: {'liveItem': liveItem},
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
SmartDialog.showToast('直播未开播');
|
||||||
|
}
|
||||||
} else if (videoItem.badge == '番剧' ||
|
} else if (videoItem.badge == '番剧' ||
|
||||||
videoItem.tagName.contains('动画')) {
|
videoItem.tagName.contains('动画')) {
|
||||||
/// hack
|
/// hack
|
||||||
|
|||||||
Reference in New Issue
Block a user