巡乐会改为抽百次
This commit is contained in:
Binary file not shown.
@@ -19,6 +19,7 @@
|
|||||||
return self.view;
|
return self.view;
|
||||||
}
|
}
|
||||||
-(void)listWillAppear{
|
-(void)listWillAppear{
|
||||||
|
self.page = 1;
|
||||||
[self getRoomList];
|
[self getRoomList];
|
||||||
}
|
}
|
||||||
-(UIScrollView *)listScrollView{
|
-(UIScrollView *)listScrollView{
|
||||||
@@ -54,15 +55,15 @@
|
|||||||
- (void)getRoomList {
|
- (void)getRoomList {
|
||||||
__weak typeof(self)weakSelf = self;
|
__weak typeof(self)weakSelf = self;
|
||||||
[QXHomePageNetwork homeRoomListWithPage:self.page is_top:NO label_id:self.roomType.id successBlock:^(NSArray<QXRoomListModel *> * _Nonnull list, BOOL isAppStore) {
|
[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 removeAllObjects];
|
||||||
}
|
}
|
||||||
[weakSelf.dataArray addObjectsFromArray:list];
|
[weakSelf.dataArray addObjectsFromArray:list];
|
||||||
[self.collectionView reloadData];
|
[weakSelf.collectionView reloadData];
|
||||||
if (list.count == 0) {
|
if (list.count == 0) {
|
||||||
self.collectionView.mj_footer.state = MJRefreshStateNoMoreData;
|
weakSelf.collectionView.mj_footer.state = MJRefreshStateNoMoreData;
|
||||||
}else{
|
}else{
|
||||||
[self.collectionView.mj_footer endRefreshing];
|
[weakSelf.collectionView.mj_footer endRefreshing];
|
||||||
}
|
}
|
||||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||||
[self.collectionView.mj_footer endRefreshing];
|
[self.collectionView.mj_footer endRefreshing];
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ typedef NS_ENUM(NSInteger) {
|
|||||||
/// 抽10次
|
/// 抽10次
|
||||||
QXMeetDrawBtnTypeTen = 10,
|
QXMeetDrawBtnTypeTen = 10,
|
||||||
/// 抽100次
|
/// 抽100次
|
||||||
QXMeetDrawBtnTypeHundred = 20,
|
QXMeetDrawBtnTypeHundred = 100,
|
||||||
}QXMeetDrawBtnType;
|
}QXMeetDrawBtnType;
|
||||||
@interface QXMeetActivityView : UIView
|
@interface QXMeetActivityView : UIView
|
||||||
-(void)showInView:(UIView *)view;
|
-(void)showInView:(UIView *)view;
|
||||||
|
|||||||
@@ -795,7 +795,7 @@
|
|||||||
break;
|
break;
|
||||||
case QXMeetDrawBtnTypeHundred:
|
case QXMeetDrawBtnTypeHundred:
|
||||||
{
|
{
|
||||||
self.titleLabel.text = @"抽二十次";
|
self.titleLabel.text = @"抽百次";
|
||||||
[self.giftCoin setTitle:@"1000币一次" forState:(UIControlStateNormal)];
|
[self.giftCoin setTitle:@"1000币一次" forState:(UIControlStateNormal)];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user