feat: 补充根评论结构;增加跳转至评论详情页;

This commit is contained in:
orz12
2024-08-25 13:51:40 +08:00
parent 5f43846d0c
commit 8c60bef982
4 changed files with 209 additions and 59 deletions

View File

@@ -11,7 +11,7 @@ class VideoReplyReplyController extends GetxController {
int? aid;
// rpid 请求楼中楼回复
String? rpid;
ReplyType replyType = ReplyType.video;
ReplyType replyType; // = ReplyType.video;
RxList<ReplyItemModel> replyList = <ReplyItemModel>[].obs;
// 当前页
int currentPage = 0;
@@ -19,6 +19,7 @@ class VideoReplyReplyController extends GetxController {
RxString noMore = ''.obs;
// 当前回复的回复
ReplyItemModel? currentReplyItem;
ReplyItemModel? root;
@override
void onInit() {
@@ -41,6 +42,7 @@ class VideoReplyReplyController extends GetxController {
type: replyType.index,
);
if (res['status']) {
if (res['data'].root != null) root = res['data'].root;
final List<ReplyItemModel> replies = res['data'].replies;
if (replies.isNotEmpty) {
noMore.value = '加载中...';