// // 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() label.textAlignment = .center label.addRadius(radius: 12.rpx) label.backgroundColor = .hexStringColor(hexString: "#FFFEFC") let text = "0.35元/天" label.text(text) label.font(9) label.textColor = .hexStringColor(hexString: "#818181") // if let range = text.range(of: "/") { // let nsRange = NSRange(text.startIndex..