提交
This commit is contained in:
45
QXLive/Mine(音域)/View/充值/QXRechargePriceCell.m
Normal file
45
QXLive/Mine(音域)/View/充值/QXRechargePriceCell.m
Normal file
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// 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 = RGB16(0x333333).CGColor;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user