mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 02:56:58 +08:00
@@ -220,7 +220,7 @@ class PgcIntroController extends GetxController {
|
||||
}
|
||||
|
||||
// 分享视频
|
||||
void actionShareVideo(context) {
|
||||
void actionShareVideo(BuildContext context) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (_) {
|
||||
@@ -360,7 +360,7 @@ class PgcIntroController extends GetxController {
|
||||
}
|
||||
|
||||
// 修改分P或番剧分集
|
||||
void changeSeasonOrbangu(epId, bvid, cid, aid, cover) {
|
||||
void changeSeasonOrbangu(dynamic epId, bvid, cid, aid, cover) {
|
||||
// 重新获取视频资源
|
||||
this.epId = epId;
|
||||
this.bvid = bvid;
|
||||
@@ -420,7 +420,7 @@ class PgcIntroController extends GetxController {
|
||||
SmartDialog.showToast(result['msg']);
|
||||
}
|
||||
|
||||
Future<void> pgcUpdate(status) async {
|
||||
Future<void> pgcUpdate(int status) async {
|
||||
var result = await VideoHttp.pgcUpdate(
|
||||
seasonId: [pgcItem.seasonId],
|
||||
status: status,
|
||||
|
||||
@@ -19,13 +19,13 @@ import 'package:flutter/services.dart' show HapticFeedback;
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class PgcIntroPanel extends StatefulWidget {
|
||||
class PgcIntroPage extends StatefulWidget {
|
||||
final int? cid;
|
||||
final String heroTag;
|
||||
final Function showEpisodes;
|
||||
final Function showIntroDetail;
|
||||
|
||||
const PgcIntroPanel({
|
||||
const PgcIntroPage({
|
||||
super.key,
|
||||
this.cid,
|
||||
required this.heroTag,
|
||||
@@ -34,10 +34,10 @@ class PgcIntroPanel extends StatefulWidget {
|
||||
});
|
||||
|
||||
@override
|
||||
State<PgcIntroPanel> createState() => _PgcIntroPanelState();
|
||||
State<PgcIntroPage> createState() => _PgcIntroPageState();
|
||||
}
|
||||
|
||||
class _PgcIntroPanelState extends State<PgcIntroPanel>
|
||||
class _PgcIntroPageState extends State<PgcIntroPage>
|
||||
with AutomaticKeepAliveClientMixin {
|
||||
late PgcIntroController pgcIntroController;
|
||||
late VideoDetailController videoDetailCtr;
|
||||
|
||||
@@ -13,11 +13,11 @@ import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:flutter/material.dart' hide TabBarView;
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class IntroDetail extends CommonCollapseSlidePage {
|
||||
class PgcIntroPanel extends CommonCollapseSlidePage {
|
||||
final PgcInfoModel item;
|
||||
final List<VideoTagItem>? videoTags;
|
||||
|
||||
const IntroDetail({
|
||||
const PgcIntroPanel({
|
||||
super.key,
|
||||
required this.item,
|
||||
super.enableSlide = false,
|
||||
@@ -25,10 +25,10 @@ class IntroDetail extends CommonCollapseSlidePage {
|
||||
});
|
||||
|
||||
@override
|
||||
State<IntroDetail> createState() => _IntroDetailState();
|
||||
State<PgcIntroPanel> createState() => _IntroDetailState();
|
||||
}
|
||||
|
||||
class _IntroDetailState extends CommonCollapseSlidePageState<IntroDetail> {
|
||||
class _IntroDetailState extends CommonCollapseSlidePageState<PgcIntroPanel> {
|
||||
late final _tabController = TabController(length: 2, vsync: this);
|
||||
final _controller = ScrollController();
|
||||
|
||||
@@ -106,13 +106,13 @@ class _IntroDetailState extends CommonCollapseSlidePageState<IntroDetail> {
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Row(
|
||||
spacing: 6,
|
||||
children: [
|
||||
StatView(
|
||||
context: context,
|
||||
theme: 'gray',
|
||||
value: Utils.numFormat(widget.item.stat!.views),
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
StatDanMu(
|
||||
context: context,
|
||||
theme: 'gray',
|
||||
|
||||
Reference in New Issue
Block a user