46 lines
1.1 KiB
Objective-C
46 lines
1.1 KiB
Objective-C
//
|
|
// QXRechargePriceCell.m
|
|
// QXLive
|
|
//
|
|
// Created by 启星 on 2025/5/16.
|
|
//
|
|
|
|
#import "QXRechargePriceCell.h"
|
|
|
|
@implementation QXRechargePriceCell
|
|
//-(void)setIsCustom:(BOOL)isCustom{
|
|
// _isCustom = isCustom;
|
|
// self.customLabel.hidden = !isCustom;
|
|
// self.cornBtn.hidden = isCustom;
|
|
// self.priceLabel.hidden = isCustom;
|
|
//}
|
|
-(void)setModel:(QXRechargeListModel *)model{
|
|
_model = model;
|
|
self.priceLabel.text = model.money;
|
|
[self.cornBtn setTitle:model.coins forState:(UIControlStateNormal)];
|
|
if (model.money.intValue == 0 && model.coins.intValue == 0) {
|
|
self.customLabel.hidden = NO;
|
|
self.cornBtn.hidden = YES;
|
|
self.priceLabel.hidden = YES;
|
|
}else{
|
|
self.customLabel.hidden = YES;
|
|
self.cornBtn.hidden = NO;
|
|
self.priceLabel.hidden = NO;
|
|
}
|
|
if (model.isSelected) {
|
|
self.bgView.layer.borderWidth = 1;
|
|
}else{
|
|
self.bgView.layer.borderWidth = 0;
|
|
}
|
|
}
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
// Initialization code
|
|
self.bgView.layer.borderColor = QXConfig.themeColor.CGColor;
|
|
}
|
|
|
|
@end
|
|
|
|
|