Commit 3626cf08 cgx

优化睡前故事

1 个父辈 70a9c53e
...@@ -98,22 +98,24 @@ ...@@ -98,22 +98,24 @@
self.playTimeLab.text = storyModel.audio.play_time; self.playTimeLab.text = storyModel.audio.play_time;
self.playCountLab.text = [NSString stringWithFormat:@"%d次", storyModel.audio.play_count]; self.playCountLab.text = [NSString stringWithFormat:@"%d次", storyModel.audio.play_count];
UIColor *dayBgColor = [UIColor colorWithHexStr:storyModel.audio.day_bg_color]; if (model) {
UIColor *nightBgColor = [UIColor colorWithHexStr:storyModel.audio.night_bg_color]; UIColor *dayBgColor = [UIColor colorWithHexStr:storyModel.audio.day_bg_color];
UIColor *nightBgColor = [UIColor colorWithHexStr:storyModel.audio.night_bg_color];
UIColor *dayTitleColor = [UIColor colorWithHexStr:storyModel.audio.day_title_color];
UIColor *nightTitleColor = [UIColor colorWithHexStr:storyModel.audio.night_title_color]; UIColor *dayTitleColor = [UIColor colorWithHexStr:storyModel.audio.day_title_color];
UIColor *nightTitleColor = [UIColor colorWithHexStr:storyModel.audio.night_title_color];
UIColor *dayDescColor = [UIColor colorWithHexStr:storyModel.audio.day_title_color alpha:.5];
UIColor *nightDescColor = [UIColor colorWithHexStr:storyModel.audio.night_title_color alpha:.5]; UIColor *dayDescColor = [UIColor colorWithHexStr:storyModel.audio.day_title_color alpha:.5];
UIColor *nightDescColor = [UIColor colorWithHexStr:storyModel.audio.night_title_color alpha:.5];
UIColor *dayTimeColor = [UIColor colorWithHexStr:storyModel.audio.day_title_color alpha:.3];
UIColor *nightTimeColor = [UIColor colorWithHexStr:storyModel.audio.night_title_color alpha:.3]; UIColor *dayTimeColor = [UIColor colorWithHexStr:storyModel.audio.day_title_color alpha:.3];
UIColor *nightTimeColor = [UIColor colorWithHexStr:storyModel.audio.night_title_color alpha:.3];
self.topView.dk_backgroundColorPicker = DKColorPickerWithColors(dayBgColor, nightBgColor, DSWhite);
self.audioLab.dk_textColorPicker = DKColorPickerWithColors(dayTitleColor, nightTitleColor, DSWhite); self.topView.dk_backgroundColorPicker = DKColorPickerWithColors(dayBgColor, nightBgColor, DSWhite);
self.audioDescLab.dk_textColorPicker = DKColorPickerWithColors(dayDescColor, nightDescColor, DSWhite); self.audioLab.dk_textColorPicker = DKColorPickerWithColors(dayTitleColor, nightTitleColor, DSWhite);
self.playTimeLab.dk_textColorPicker = DKColorPickerWithColors(dayTimeColor, nightTimeColor, DSWhite); self.audioDescLab.dk_textColorPicker = DKColorPickerWithColors(dayDescColor, nightDescColor, DSWhite);
self.playTimeLab.dk_textColorPicker = DKColorPickerWithColors(dayTimeColor, nightTimeColor, DSWhite);
}
[self.bubbleView removeFromSuperview]; [self.bubbleView removeFromSuperview];
self.bubbleView = nil; self.bubbleView = nil;
...@@ -260,6 +262,7 @@ ...@@ -260,6 +262,7 @@
[tmpView addSubview:line]; [tmpView addSubview:line];
UIView *topView = [UIView new]; UIView *topView = [UIView new];
topView.dk_backgroundColorPicker = DKColorPickerWithColors(ColorFromHex(0xFFF3E1), ColorFromHex(0xAEA9A6), DSWhite);
[tmpView addSubview:topView]; [tmpView addSubview:topView];
self.topView = topView; self.topView = topView;
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
[self.layer removeAllAnimations]; [self.layer removeAllAnimations];
[self.dataImgArr_net removeAllObjects]; [self.dataImgArr_net removeAllObjects];
if (_dataArr_net.count < MaxHeadCount) { if (_dataArr_net.count < MaxHeadCount) {
[DSProgressHUD showToast:[NSString stringWithFormat:@"传入图片个数不能少于%d个", MaxHeadCount]]; // [DSProgressHUD showToast:[NSString stringWithFormat:@"传入图片个数不能少于%d个", MaxHeadCount]];
return; return;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!