Commit 8ac491c5 cgx

修复列表页面无数据显示问题

1 个父辈 c62bd710
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
self.type = type; self.type = type;
self.defaultIcon.image = [UIImage imageNamed:[self _getDefaultIconWithType:type]]; self.defaultIcon.image = [UIImage imageNamed:[self _getDefaultIconWithType:type]];
self.reasonLab.text = [self _getReasonWithType:type]; self.reasonLab.text = [self _getReasonWithType:type];
self.handleBtn.hidden = self.type == DefaultTypeEmpty;
[self.handleBtn setTitle:[self _getHandleBtnTitleWithType:type] forState:UIControlStateNormal]; [self.handleBtn setTitle:[self _getHandleBtnTitleWithType:type] forState:UIControlStateNormal];
} }
......
...@@ -65,11 +65,6 @@ ...@@ -65,11 +65,6 @@
} }
} }
- (void)fireHandler {
[super fireHandler];
[self getArticleListRequest:NO];
}
#pragma mark - UITableViewDelegate #pragma mark - UITableViewDelegate
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
return 110; return 110;
......
...@@ -43,11 +43,6 @@ ...@@ -43,11 +43,6 @@
}]; }];
} }
- (void)fireHandler {
[super fireHandler];
[self getListDataRequest];
}
#pragma mark - UITableViewDelegate #pragma mark - UITableViewDelegate
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
OfficialNotiModel *model = self.dataSource.dataArray[indexPath.row]; OfficialNotiModel *model = self.dataSource.dataArray[indexPath.row];
......
...@@ -54,9 +54,9 @@ ...@@ -54,9 +54,9 @@
[self.icon yy_setImageWithURL:[NSURL URLWithString:officialModel.iconName] placeholder:[UIImage defaultPlaceholderWithSize:CGSizeMake(40, 40)]]; [self.icon yy_setImageWithURL:[NSURL URLWithString:officialModel.iconName] placeholder:[UIImage defaultPlaceholderWithSize:CGSizeMake(40, 40)]];
self.titleLab.text = officialModel.title; self.titleLab.text = officialModel.title;
self.detailLab.text = officialModel.detail;
self.mesCountLab.hidden = !officialModel.messageCount; self.mesCountLab.hidden = !officialModel.messageCount;
self.mesCountLab.text = [NSString stringWithFormat:@"%d", officialModel.messageCount]; self.mesCountLab.text = [NSString stringWithFormat:@"%d", officialModel.messageCount];
self.detailLab.text = self.mesCountLab.hidden == NO ? officialModel.detail : @"暂无";
} }
#pragma mark - lazy #pragma mark - lazy
......
...@@ -32,11 +32,6 @@ ...@@ -32,11 +32,6 @@
self.edgesForExtendedLayout = UIRectEdgeNone; self.edgesForExtendedLayout = UIRectEdgeNone;
} }
- (void)fireHandler {
[super fireHandler];
[self getDynamicListRequest:NO];
}
#pragma mark - MyDynamicViewDelegate #pragma mark - MyDynamicViewDelegate
- (void)getDynamicListRequest:(BOOL)loadMore { - (void)getDynamicListRequest:(BOOL)loadMore {
if (loadMore == NO) { self.offset = 1; } if (loadMore == NO) { self.offset = 1; }
......
...@@ -26,11 +26,6 @@ ...@@ -26,11 +26,6 @@
self.navigationItem.title = @"睡前故事"; self.navigationItem.title = @"睡前故事";
} }
- (void)fireHandler {
[super fireHandler];
[self getSleepStoryListData];
}
#pragma mark - SleepStoryViewDelegate #pragma mark - SleepStoryViewDelegate
- (void)getSleepStoryListData { - (void)getSleepStoryListData {
[SafeSleepRequestModel queryRelaxMeditationAudiosWithTypeID:501 completion:^(SafeSleepRequestModel * _Nonnull requestModel) { [SafeSleepRequestModel queryRelaxMeditationAudiosWithTypeID:501 completion:^(SafeSleepRequestModel * _Nonnull requestModel) {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!