mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 19:16:44 +08:00
@@ -1,15 +0,0 @@
|
||||
enum HistoryBusinessType {
|
||||
// 普通视频
|
||||
archive('archive'),
|
||||
// 剧集(番剧 / 影视)
|
||||
pgc('pgc'),
|
||||
// 直播
|
||||
live('live'),
|
||||
// 文章
|
||||
articleList('article-list'),
|
||||
// 文章
|
||||
article('article');
|
||||
|
||||
final String type;
|
||||
const HistoryBusinessType(this.type);
|
||||
}
|
||||
@@ -59,7 +59,7 @@ class FavVideoCardH extends StatelessWidget {
|
||||
|
||||
ctr!.onViewFav(item, index);
|
||||
},
|
||||
onLongPress: isSort
|
||||
onLongPress: isSort || enableMultiSelect
|
||||
? null
|
||||
: isOwner && !enableMultiSelect
|
||||
? () {
|
||||
|
||||
@@ -191,9 +191,6 @@ class _HistoryPageState extends State<HistoryPage>
|
||||
case 'viewed':
|
||||
currCtr().onDelViewedHistory();
|
||||
break;
|
||||
case 'multiple':
|
||||
_historyController.baseCtr.enableMultiSelect.value = true;
|
||||
break;
|
||||
}
|
||||
},
|
||||
itemBuilder: (BuildContext context) => <PopupMenuEntry<String>>[
|
||||
@@ -213,10 +210,6 @@ class _HistoryPageState extends State<HistoryPage>
|
||||
value: 'viewed',
|
||||
child: Text('删除已看记录'),
|
||||
),
|
||||
const PopupMenuItem<String>(
|
||||
value: 'multiple',
|
||||
child: Text('多选删除'),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
|
||||
@@ -6,7 +6,6 @@ import 'package:PiliPlus/common/widgets/select_mask.dart';
|
||||
import 'package:PiliPlus/http/search.dart';
|
||||
import 'package:PiliPlus/http/user.dart';
|
||||
import 'package:PiliPlus/models/common/badge_type.dart';
|
||||
import 'package:PiliPlus/models/common/history_business_type.dart';
|
||||
import 'package:PiliPlus/models_new/history/list.dart';
|
||||
import 'package:PiliPlus/pages/common/multi_select/base.dart';
|
||||
import 'package:PiliPlus/utils/date_util.dart';
|
||||
@@ -136,9 +135,7 @@ class HistoryItem extends StatelessWidget {
|
||||
text: item.badge,
|
||||
top: 6.0,
|
||||
right: 6.0,
|
||||
type:
|
||||
business == HistoryBusinessType.live.type &&
|
||||
item.liveStatus != 1
|
||||
type: business == 'live' && item.liveStatus != 1
|
||||
? PBadgeType.gray
|
||||
: PBadgeType.primary,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user