Commit 174f7448 cgx

睡眠故事处理未登录逻辑

1 个父辈 39b8f0be
......@@ -3221,7 +3221,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
......@@ -3304,7 +3304,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/DreamSleep.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
ENABLE_BITCODE = NO;
......@@ -3447,7 +3447,7 @@
CODE_SIGN_ENTITLEMENTS = DreamSleep/Basement/DSConfig/DreamSleepBeta.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = 4NDZ6UX8PW;
......
......@@ -97,7 +97,7 @@
self.audioDescLab.text = storyModel.audio.audio_desc;
self.playTimeLab.text = storyModel.audio.play_time;
self.playCountLab.text = [NSString stringWithFormat:@"%d次", storyModel.audio.play_count];
if (model) {
UIColor *dayBgColor = [UIColor colorWithHexStr:storyModel.audio.day_bg_color];
UIColor *nightBgColor = [UIColor colorWithHexStr:storyModel.audio.night_bg_color];
......@@ -191,17 +191,27 @@
#pragma mark - UIScrollViewDelegate
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
if (scrollView.contentOffset.x >= 30) {
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];
});
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];
});
} else {
// 跳转到登录页面
[LoginUtils jumpToLoginControllerWithTarget:self.ds_viewController];
}
}
}
#pragma private
- (void)playAction {
StoryPlayController *playVC = [StoryPlayController new];
playVC.audioModel = self.audioModel;
[self.ds_viewController presentViewController:playVC animated:YES completion:nil];
if ([LoginUtils getUserLoginData]) {
StoryPlayController *playVC = [StoryPlayController new];
playVC.audioModel = self.audioModel;
[self.ds_viewController presentViewController:playVC animated:YES completion:nil];
} else {
// 跳转到登录页面
[LoginUtils jumpToLoginControllerWithTarget:self.ds_viewController];
}
}
#pragma mark - lazy
......@@ -270,7 +280,7 @@
bottomView.dk_backgroundColorPicker = DKColorPickerWithKey(CornerViewBG);
[tmpView addSubview:bottomView];
self.bottomView = bottomView;
self.audioIV = [[UIImageView alloc] initWithImage:[UIImage defaultPlaceholderWithSize:CGSizeMake(76, 90)]];
[self.audioIV cornerRadius:12];
self.audioIV.contentMode = UIViewContentModeScaleAspectFit;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!