Commit 0495116b66eac8b1d276368978182e950f30bf92
1 parent
ee1d306b
no message
Showing
1 changed file
with
2 additions
and
2 deletions
CNLiveCollectionModule/Classes/Controller/CNLiveCollectionController.m
| @@ -37,9 +37,7 @@ static const CGFloat timeValue = 1.5; | @@ -37,9 +37,7 @@ static const CGFloat timeValue = 1.5; | ||
| 37 | 37 | ||
| 38 | #pragma mark - 数据 | 38 | #pragma mark - 数据 |
| 39 | - (void)loadData{ | 39 | - (void)loadData{ |
| 40 | -// [QMUITips showLoadingInView:self.view]; | ||
| 41 | __weak typeof(self) weakSelf = self; | 40 | __weak typeof(self) weakSelf = self; |
| 42 | - | ||
| 43 | [CNLiveCollectionRequest getCollectionList:[NSString stringWithFormat:@"%ld",_pageNo] pageSize:[NSString stringWithFormat:@"%ld",_pageSize] block:^(BOOL isSuccess, NSArray * _Nonnull array, NSError * _Nonnull error) { | 41 | [CNLiveCollectionRequest getCollectionList:[NSString stringWithFormat:@"%ld",_pageNo] pageSize:[NSString stringWithFormat:@"%ld",_pageSize] block:^(BOOL isSuccess, NSArray * _Nonnull array, NSError * _Nonnull error) { |
| 44 | __strong typeof(weakSelf) strongSelf = weakSelf; | 42 | __strong typeof(weakSelf) strongSelf = weakSelf; |
| 45 | if(!strongSelf) return ; | 43 | if(!strongSelf) return ; |
| @@ -96,6 +94,7 @@ static const CGFloat timeValue = 1.5; | @@ -96,6 +94,7 @@ static const CGFloat timeValue = 1.5; | ||
| 96 | 94 | ||
| 97 | - (void)loadMoreData{ | 95 | - (void)loadMoreData{ |
| 98 | if(!_isRefreshing){ | 96 | if(!_isRefreshing){ |
| 97 | + _isRefreshing = YES; | ||
| 99 | [self loadData]; | 98 | [self loadData]; |
| 100 | } | 99 | } |
| 101 | } | 100 | } |
| @@ -221,6 +220,7 @@ static const CGFloat timeValue = 1.5; | @@ -221,6 +220,7 @@ static const CGFloat timeValue = 1.5; | ||
| 221 | 220 | ||
| 222 | }]; | 221 | }]; |
| 223 | footer.backgroundColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0]; | 222 | footer.backgroundColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0]; |
| 223 | + footer.hidden = YES; | ||
| 224 | _tableView.mj_footer = footer; | 224 | _tableView.mj_footer = footer; |
| 225 | } | 225 | } |
| 226 | return _tableView; | 226 | return _tableView; |