Files
yuyin_ios/SweetParty/主类/RCMic/Room/Box/猫咪探险/DengBoxCell.m
2025-08-08 11:05:33 +08:00

32 lines
863 B
Objective-C

//
// DengBoxCell.m
// romantic
//
// Created by bj_szd on 2023/7/19.
// Copyright © 2023 romantic. All rights reserved.
//
#import "DengBoxCell.h"
@implementation DengBoxCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setModel:(DengBoxModel *)model {
_model = model;
self.orderLab.text = [NSString stringWithFormat:@"第%@期", model.nbl_sn];
[self.giftImgV sd_setImageWithURL:[NSURL URLWithString:model.base_image]];
self.giftNameLab.text = model.gift_name;
self.giftPriceLabel.text = model.gift_price;
self.totalNumLab.text = [NSString stringWithFormat:@"金币总数:%@", model.total_amount];
self.currentNumLab.text = model.amount;
CGFloat ratio = [model.amount floatValue]/[model.total_amount floatValue];
self.progressImgVWidthCon.constant = 134*ratio;
}
@end