1
This commit is contained in:
@@ -53,7 +53,9 @@
|
|||||||
[self.priceBtn setTitle:priceText forState:UIControlStateNormal];
|
[self.priceBtn setTitle:priceText forState:UIControlStateNormal];
|
||||||
|
|
||||||
// 简化:本地展示占位色,无网络图
|
// 简化:本地展示占位色,无网络图
|
||||||
self.coverView.backgroundColor = [UIColor colorWithWhite:0.92 alpha:1.0];
|
// self.coverView.backgroundColor = [UIColor colorWithWhite:0.92 alpha:1.0];
|
||||||
|
[self.coverView kb_setImageURL:[NSURL URLWithString:url] placeholder:KBPlaceholderImage];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - Lazy
|
#pragma mark - Lazy
|
||||||
|
|||||||
@@ -120,7 +120,7 @@
|
|||||||
KBShopThemeModel *theme = (indexPath.item < self.dataSource.count) ? self.dataSource[indexPath.item] : nil;
|
KBShopThemeModel *theme = (indexPath.item < self.dataSource.count) ? self.dataSource[indexPath.item] : nil;
|
||||||
NSString *title = theme.themeName.length ? theme.themeName : KBLocalized(@"Themes");
|
NSString *title = theme.themeName.length ? theme.themeName : KBLocalized(@"Themes");
|
||||||
NSString *price = [self kb_priceStringForTheme:theme];
|
NSString *price = [self kb_priceStringForTheme:theme];
|
||||||
[cell configWithTitle:title imageURL:nil price:price];
|
[cell configWithTitle:title imageURL:theme.themePreviewImageUrl price:price];
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
|||||||
- (void)requestDownload {
|
- (void)requestDownload {
|
||||||
// if (self.isProcessingAction) { return; }
|
// if (self.isProcessingAction) { return; }
|
||||||
// self.isProcessingAction = YES;
|
// self.isProcessingAction = YES;
|
||||||
[KBHUD show];
|
|
||||||
NSMutableDictionary *skin = [NSMutableDictionary dictionary];
|
NSMutableDictionary *skin = [NSMutableDictionary dictionary];
|
||||||
if (!skin[@"id"] && self.detailModel.themeId) {
|
if (!skin[@"id"] && self.detailModel.themeId) {
|
||||||
skin[@"id"] = self.detailModel.themeId;
|
skin[@"id"] = self.detailModel.themeId;
|
||||||
@@ -287,7 +287,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
|||||||
if (self.detailModel.themePreviewImageUrl.length > 0) {
|
if (self.detailModel.themePreviewImageUrl.length > 0) {
|
||||||
skin[@"preview"] = self.detailModel.themePreviewImageUrl;
|
skin[@"preview"] = self.detailModel.themePreviewImageUrl;
|
||||||
}
|
}
|
||||||
|
[KBHUD showWithStatus:@"正在下载..."];
|
||||||
[[KBSkinService shared] applySkinWithJSON:skin
|
[[KBSkinService shared] applySkinWithJSON:skin
|
||||||
fromViewController:self
|
fromViewController:self
|
||||||
mode:KBSkinSourceModeRemoteZip
|
mode:KBSkinSourceModeRemoteZip
|
||||||
|
|||||||
Reference in New Issue
Block a user