mod: av替换为bv

This commit is contained in:
guozhigq
2023-06-22 16:15:20 +08:00
parent 4e47281e7d
commit 28e7980c47
17 changed files with 98 additions and 71 deletions

View File

@ -8,7 +8,7 @@ class VideoReplyReplyController extends GetxController {
VideoReplyReplyController(this.aid, this.rpid);
final ScrollController scrollController = ScrollController();
// 视频aid 请求时使用的oid
String? aid;
int? aid;
// rpid 请求楼中楼回复
String? rpid;
RxList<ReplyItemModel> replyList = [ReplyItemModel()].obs;
@ -29,13 +29,14 @@ class VideoReplyReplyController extends GetxController {
super.onInit();
currentPage = 0;
}
// 上拉加载
Future onLoad() async {
queryReplyList(type: 'onLoad');
}
Future queryReplyList({type = 'init'}) async {
if(type == 'init'){
if (type == 'init') {
currentPage = 0;
}
isLoadingMore = true;
@ -87,4 +88,4 @@ class VideoReplyReplyController extends GetxController {
currentPage = 0;
super.onClose();
}
}
}

View File

@ -31,8 +31,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
@override
void initState() {
_videoReplyReplyController = Get.put(
VideoReplyReplyController(
widget.oid.toString(), widget.rpid.toString()),
VideoReplyReplyController(widget.oid, widget.rpid.toString()),
tag: widget.rpid.toString());
super.initState();