优化提交

This commit is contained in:
启星
2025-09-19 11:38:43 +08:00
parent a3a7bfdf22
commit 231d3d8625
153 changed files with 20460 additions and 11929 deletions

View File

@@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) IBOutlet UILabel *reasonLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (nonatomic,assign)BOOL isCoin;
@property (nonatomic,strong) QXCoinDetailModel *model;
+(instancetype)cellWithTableView:(UITableView *)tableView;
@end

View File

@@ -18,6 +18,9 @@
}
return cell;
}
-(void)setIsCoin:(BOOL)isCoin{
_isCoin = isCoin;
}
-(void)setModel:(QXCoinDetailModel *)model{
_model = model;
self.reasonLabel.text = model.remarks;
@@ -26,7 +29,12 @@
formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
NSString*time = [formatter stringFromDate:date];
self.timeLabel.text = time;
self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.change_value.doubleValue];
if (self.isCoin) {
self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.change_value.doubleValue];
}else{
self.priceLabel.text = [NSString stringWithFormat:@"%.4f",model.change_value.doubleValue];
}
}
- (void)awakeFromNib {
[super awakeFromNib];