1
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
#import "KBShopHeadView.h"
|
||||
#import "KBJfPay.h"
|
||||
#import "UIImageView+KBWebImage.h"
|
||||
#import "KBShopThemeDetailModel.h"
|
||||
|
||||
@interface KBShopHeadView ()
|
||||
|
||||
@@ -172,6 +174,16 @@
|
||||
self.amountLabel.text = points;
|
||||
}
|
||||
|
||||
- (void)configureWithThemeDetail:(KBShopThemeDetailModel * _Nullable)detail {
|
||||
NSString *urlString = detail.themePreviewImageUrl;
|
||||
UIImage *placeholder = [UIImage imageNamed:@"shop_headbigBg_icon"];
|
||||
if (urlString.length > 0) {
|
||||
[self.bigCoinView kb_setImageURL:urlString placeholder:placeholder];
|
||||
} else {
|
||||
self.bigCoinView.image = placeholder;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Actions
|
||||
- (void)onRechargeTappedAction {
|
||||
// if (self.onRechargeTapped) { self.onRechargeTapped(); }
|
||||
|
||||
Reference in New Issue
Block a user