// // QSLVipGoodCollectionViewCell.swift // QuickSearchLocation // // Created by Destiny on 2024/11/28. // import UIKit class QSLVipGoodCollectionViewCell: UICollectionViewCell { var goodModel: QSLGoodModel? lazy var bgView: UIView = { let view = UIView() view.backgroundColor = .white view.addRadius(radius: 8.rpx) view.addBorder(borderWidth: 2.rpx, borderColor: .hexStringColor(hexString: "#EEEEEE")) return view }() lazy var tagIcon: UIImageView = { let imageView = UIImageView() imageView.image = UIImage(named: "vip_goods_tag_icon") return imageView }() lazy var goodNameLabel: UILabel = { let label = UILabel() label.text("年度会员") label.boldFont(13) label.textColor = .hexStringColor(hexString: "#404040") return label }() lazy var goodDailyPriceLabel: UILabel = { let label = UILabel() let text = "0.35元/天" label.text(text) label.font(13) label.textColor = .hexStringColor(hexString: "#F12A1D") if let range = text.range(of: "/") { let nsRange = NSRange(text.startIndex..