巡乐会改为抽百次

This commit is contained in:
启星
2025-09-19 14:16:37 +08:00
parent 231d3d8625
commit 2776cf66c2
4 changed files with 7 additions and 6 deletions

View File

@@ -19,6 +19,7 @@
return self.view;
}
-(void)listWillAppear{
self.page = 1;
[self getRoomList];
}
-(UIScrollView *)listScrollView{
@@ -54,15 +55,15 @@
- (void)getRoomList {
__weak typeof(self)weakSelf = self;
[QXHomePageNetwork homeRoomListWithPage:self.page is_top:NO label_id:self.roomType.id successBlock:^(NSArray<QXRoomListModel *> * _Nonnull list, BOOL isAppStore) {
if (self.page == 1) {
if (weakSelf.page == 1) {
[weakSelf.dataArray removeAllObjects];
}
[weakSelf.dataArray addObjectsFromArray:list];
[self.collectionView reloadData];
[weakSelf.collectionView reloadData];
if (list.count == 0) {
self.collectionView.mj_footer.state = MJRefreshStateNoMoreData;
weakSelf.collectionView.mj_footer.state = MJRefreshStateNoMoreData;
}else{
[self.collectionView.mj_footer endRefreshing];
[weakSelf.collectionView.mj_footer endRefreshing];
}
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
[self.collectionView.mj_footer endRefreshing];