mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 评论区无限滚动
This commit is contained in:
@@ -49,7 +49,10 @@ class DynamicDetailController extends GetxController {
|
|||||||
Future queryReplyList({reqType = 'init'}) async {
|
Future queryReplyList({reqType = 'init'}) async {
|
||||||
if (reqType == 'init') {
|
if (reqType == 'init') {
|
||||||
nextOffset = "";
|
nextOffset = "";
|
||||||
|
noMore.value = "";
|
||||||
}
|
}
|
||||||
|
if (isLoadingMore) return;
|
||||||
|
if (noMore.value == '没有更多了') return;
|
||||||
isLoadingMore = true;
|
isLoadingMore = true;
|
||||||
var res = await ReplyHttp.replyList(
|
var res = await ReplyHttp.replyList(
|
||||||
oid: oid!,
|
oid: oid!,
|
||||||
|
|||||||
@@ -62,7 +62,9 @@ class HtmlRenderController extends GetxController {
|
|||||||
Future queryReplyList({reqType = 'init'}) async {
|
Future queryReplyList({reqType = 'init'}) async {
|
||||||
if (reqType == 'init') {
|
if (reqType == 'init') {
|
||||||
nextOffset = "";
|
nextOffset = "";
|
||||||
|
noMore.value = "";
|
||||||
}
|
}
|
||||||
|
if (noMore.value == '没有更多了') return;
|
||||||
var res = await ReplyHttp.replyList(
|
var res = await ReplyHttp.replyList(
|
||||||
oid: oid.value,
|
oid: oid.value,
|
||||||
nextOffset: nextOffset,
|
nextOffset: nextOffset,
|
||||||
|
|||||||
@@ -58,9 +58,7 @@ class VideoReplyController extends GetxController {
|
|||||||
nextOffset = '';
|
nextOffset = '';
|
||||||
noMore.value = '';
|
noMore.value = '';
|
||||||
}
|
}
|
||||||
if (noMore.value == '没有更多了') {
|
if (noMore.value == '没有更多了') return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
isLoadingMore = true;
|
isLoadingMore = true;
|
||||||
final res = await ReplyHttp.replyList(
|
final res = await ReplyHttp.replyList(
|
||||||
oid: aid!,
|
oid: aid!,
|
||||||
|
|||||||
Reference in New Issue
Block a user