mod: 请求参数结构、评论页面初始化
This commit is contained in:
17
lib/pages/video/detail/reply/controller.dart
Normal file
17
lib/pages/video/detail/reply/controller.dart
Normal file
@ -0,0 +1,17 @@
|
||||
import 'package:get/get.dart';
|
||||
import 'package:pilipala/http/reply.dart';
|
||||
|
||||
class VideoReplyController extends GetxController {
|
||||
// 视频aid
|
||||
String aid = Get.parameters['aid']!;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
queryReplyList();
|
||||
}
|
||||
|
||||
Future queryReplyList() async {
|
||||
var res = await ReplyHttp.replyList(oid: aid, pageNum: 1, type: 1);
|
||||
}
|
||||
}
|
4
lib/pages/video/detail/reply/index.dart
Normal file
4
lib/pages/video/detail/reply/index.dart
Normal file
@ -0,0 +1,4 @@
|
||||
library video_reply_panel;
|
||||
|
||||
export './controller.dart';
|
||||
export './view.dart';
|
17
lib/pages/video/detail/reply/view.dart
Normal file
17
lib/pages/video/detail/reply/view.dart
Normal file
@ -0,0 +1,17 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class VideoReplyPanel extends StatefulWidget {
|
||||
const VideoReplyPanel({super.key});
|
||||
|
||||
@override
|
||||
State<VideoReplyPanel> createState() => _VideoReplyPanelState();
|
||||
}
|
||||
|
||||
class _VideoReplyPanelState extends State<VideoReplyPanel> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const SliverToBoxAdapter(
|
||||
child: Text('评论'),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user