feat: 番剧选集评论加载、分集渲染优化

This commit is contained in:
guozhigq
2023-08-04 19:15:53 +08:00
parent 01829ad965
commit 1454190f43
6 changed files with 58 additions and 103 deletions

View File

@ -34,6 +34,9 @@ class VideoReplyController extends GetxController {
Future queryReplyList({type = 'init'}) async {
isLoadingMore = true;
if (type == 'init') {
currentPage = 0;
}
var res = await ReplyHttp.replyList(
oid: aid!,
pageNum: currentPage + 1,

View File

@ -281,7 +281,8 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
isScrollControlled: true,
builder: (BuildContext context) {
return VideoReplyNewDialog(
oid: IdUtils.bv2av(Get.parameters['bvid']!),
oid: _videoReplyController.aid ??
IdUtils.bv2av(Get.parameters['bvid']!),
root: 0,
parent: 0,
replyType: ReplyType.video,