|
@@ -173,15 +173,16 @@
|
|
|
}
|
|
|
|
|
|
- (void)configEmptyView {
|
|
|
- MJWeakSelf;
|
|
|
- self.actionStatusView = [self setActionPromptString:@"暂无预约课程" buttonTitlle:@"发现课程" imageName:@"no_course" inView:self.tableView actionBlock:^{
|
|
|
- [weakSelf findCourse];
|
|
|
- }];
|
|
|
- [self.actionStatusView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.right.mas_equalTo(self.view);
|
|
|
- make.top.mas_equalTo(self.calendarBottom.mas_bottom);
|
|
|
- make.bottom.mas_equalTo(self.view);
|
|
|
- }];
|
|
|
+ [self setPromptString:@"暂无课程~" imageName:@"empty_course" inView:self.tableView];
|
|
|
+// MJWeakSelf;
|
|
|
+// self.actionStatusView = [self setActionPromptString:@"暂无预约课程" buttonTitlle:@"发现课程" imageName:@"no_course" inView:self.tableView actionBlock:^{
|
|
|
+// [weakSelf findCourse];
|
|
|
+// }];
|
|
|
+// [self.actionStatusView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+// make.left.right.mas_equalTo(self.view);
|
|
|
+// make.top.mas_equalTo(self.calendarBottom.mas_bottom);
|
|
|
+// make.bottom.mas_equalTo(self.view);
|
|
|
+// }];
|
|
|
}
|
|
|
|
|
|
- (void)findCourse {
|
|
@@ -360,7 +361,7 @@
|
|
|
[self MBPShow:MESSAGEKEY];
|
|
|
}
|
|
|
[self.tableView reloadData];
|
|
|
- [self changeActionPromptLabelState];
|
|
|
+ [self changePromptLabelState];
|
|
|
} faliure:^(NSError * _Nonnull error) {
|
|
|
[self removehub];
|
|
|
}];
|
|
@@ -595,7 +596,6 @@
|
|
|
_tableView.backgroundColor = [UIColor clearColor];
|
|
|
_tableView.showsVerticalScrollIndicator = NO;
|
|
|
_tableView.showsHorizontalScrollIndicator = NO;
|
|
|
-// _tableView.rowHeight = UITableViewAutomaticDimension;
|
|
|
_tableView.rowHeight = 127.0f;
|
|
|
[_tableView registerNib:[UINib nibWithNibName:@"AccompanyCourseCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"AccompanyCourseCell"];
|
|
|
[_tableView registerNib:[UINib nibWithNibName:@"CourseForLiveCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"CourseForLiveCell"];
|