// // SPCoinRechargeBigCell.swift // MoviaBox // // Created by 长沙佳儿 on 2025/6/18. // import UIKit class SPCoinRechargeBigCell: SPCoinRechargeCell { override var sp_isSelected: Bool { didSet { if sp_isSelected { containerView.image = UIImage(named: "recharge_bg_big_image_01") } else { containerView.image = UIImage(named: "recharge_bg_big_image_02") } } } override init(frame: CGRect) { super.init(frame: frame) coinIconImageView.image = UIImage(named: "coin_icon_08") ratioBgView.image = UIImage(named: "mark_bg_icon_01") moneyBgView.colors = [UIColor.colorE9BB68().cgColor, UIColor.colorFFE18D().cgColor, UIColor.colorDDA754().cgColor] moneyBgView.layer.cornerRadius = 8 moneyLabel.textColor = .color6B3308() coinLabel.font = .fontBold(ofSize: 24) ratioLabel.font = .fontBold(ofSize: 12) ratioLabel.textColor = .color94550E() coinBgView.snp.updateConstraints { make in make.top.equalToSuperview().offset(28) } bonusLabel.snp.updateConstraints { make in make.top.equalTo(coinBgView.snp.bottom).offset(2) } moneyBgView.snp.remakeConstraints { make in make.bottom.equalToSuperview().offset(-5) make.centerX.equalToSuperview() make.left.equalToSuperview().offset(6) make.height.equalTo(30) } ratioLabel.snp.updateConstraints { make in make.centerY.equalToSuperview() make.left.equalToSuperview().offset(6) make.right.equalToSuperview().offset(-8) } } @MainActor required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } }