This commit is contained in:
2025-12-11 15:39:33 +08:00
parent 4fd0a52a36
commit be1d1ad70d
5 changed files with 36 additions and 11 deletions

View File

@@ -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(); }