Commit b89de40f cgx

细节优化

1 个父辈 174f7448
......@@ -56,7 +56,7 @@
self.titleLab.text = officialModel.title;
self.mesCountLab.hidden = !officialModel.messageCount;
self.mesCountLab.text = [NSString stringWithFormat:@"%d", officialModel.messageCount];
self.detailLab.text = self.mesCountLab.hidden == NO ? officialModel.detail : @"暂无";
self.detailLab.text = self.mesCountLab.hidden == NO ? officialModel.detail : @"暂无通知";
}
#pragma mark - lazy
......
......@@ -192,9 +192,7 @@
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
if (scrollView.contentOffset.x >= 30) {
if ([LoginUtils getUserLoginData]) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self.ds_viewController.navigationController pushViewController:[SleepStoryController new] animated:YES];
});
[self.ds_viewController.navigationController pushViewController:[SleepStoryController new] animated:YES];
} else {
// 跳转到登录页面
[LoginUtils jumpToLoginControllerWithTarget:self.ds_viewController];
......@@ -275,11 +273,15 @@
topView.dk_backgroundColorPicker = DKColorPickerWithColors(ColorFromHex(0xFFF3E1), ColorFromHex(0xAEA9A6), DSWhite);
[tmpView addSubview:topView];
self.topView = topView;
UITapGestureRecognizer *tapGr1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(playAction)];
[topView addGestureRecognizer:tapGr1];
UIView *bottomView = [UIView new];
bottomView.dk_backgroundColorPicker = DKColorPickerWithKey(CornerViewBG);
[tmpView addSubview:bottomView];
self.bottomView = bottomView;
UITapGestureRecognizer *tapGr2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(playAction)];
[bottomView addGestureRecognizer:tapGr2];
self.audioIV = [[UIImageView alloc] initWithImage:[UIImage defaultPlaceholderWithSize:CGSizeMake(76, 90)]];
[self.audioIV cornerRadius:12];
......@@ -304,7 +306,7 @@
self.playBtn = [UIButton btnWithTitle:@"播放" font:BoldFont(16)];
self.playBtn.size = (CGSizeMake(64, 34));
[self.playBtn addTarget:self action:@selector(playAction) forControlEvents:UIControlEventTouchUpInside];
self.playBtn.userInteractionEnabled = NO;
[self.playBtn dk_setTitleColorPicker:DKColorPickerWithKey(Sub_Navi_TITLE) forState:UIControlStateNormal];
[self.playBtn cornerRadius:17];
CGPoint start = CGPointMake(0, 0.5);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!