| | |
| | | |
| | | class VIPCenterVC: BaseVC { |
| | | |
| | | @IBOutlet weak var collectionView: UICollectionView! |
| | | @IBOutlet weak var bg_vip: UIImageView! |
| | | @IBOutlet weak var label_vipHint: UILabel! |
| | | @IBOutlet weak var collectionView: UICollectionView! |
| | | @IBOutlet weak var btn_isRead: UIButton! |
| | | @IBOutlet weak var label_expirtTime: UILabel! |
| | | private var selectIndex = 0 |
| | | |
| | | private var productList = Set<String>() |
| | |
| | | return p1.price.doubleValue < p2.price.doubleValue |
| | | } |
| | | self.collectionView.reloadData() |
| | | } |
| | | |
| | | |
| | | if UserViewModel.getAvatarInfo().isVip == .yes{ |
| | | self.bg_vip.image = UIImage(named: "bg_vip") |
| | | self.label_vipHint.text = "您将享受所有会员专享音频,尽情畅游心泉·疗愈世界" |
| | | self.label_expirtTime.text = UserViewModel.getAvatarInfo().vipExpireTime.components(separatedBy: " ").first! + "到期" |
| | | }else{ |
| | | self.bg_vip.image = UIImage(named: "bg_vip_u") |
| | | self.label_vipHint.text = "升级为会员,解锁会员专属体验" |
| | | self.label_expirtTime.text = "你还未开通会员服务" |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | label_price = UILabel() |
| | | label_price.attributedText = AttributedStringbuilder.build().add(string: "¥", withFont: .systemFont(ofSize: 15, weight:.heavy), withColor: UIColor(hexString: "#353535")!).add(string: "199", withFont: .systemFont(ofSize: 20, weight:.heavy), withColor: UIColor(hexString: "#353535")!).mutableAttributedString |
| | | label_price.attributedText = AttributedStringbuilder.build().add(string: "¥", withFont: .systemFont(ofSize: 15, weight:.heavy), withColor: UIColor(hexString: "#353535")!).add(string: "0", withFont: .systemFont(ofSize: 20, weight:.heavy), withColor: UIColor(hexString: "#353535")!).mutableAttributedString |
| | | label_price.textAlignment = .center |
| | | label_price.font = .systemFont(ofSize: 16, weight: .medium) |
| | | contentView.addSubview(label_price) |