| | |
| | | self.label_sustainDay.attributedText = AttributedStringbuilder.build().add(string: "0", withFont: .systemFont(ofSize: 23), withColor: UIColor(hexString: "#152715")!).add(string: "天", withFont: .systemFont(ofSize: 12), withColor: UIColor(hexString: "#152715")!).mutableAttributedString |
| | | |
| | | self.image_vipBg.image = UIImage(named: "bg_vip_u") |
| | | self.label_vipInfo.text = "升级为高级会员,解锁全部体验" |
| | | self.label_vipInfo.text = "升级为会员,解锁会员专属体验" |
| | | self.label_expirtTime.text = "你还未开通会员服务" |
| | | |
| | | }).disposed(by: disposeBag) |
| | |
| | | private func setUserUI(model:UserInfoModel){ |
| | | self.image_userAvatar.sd_setImage(with: URL(string: model.avatar)) |
| | | self.label_userName.text = model.nickname |
| | | self.label_phone.text = model.cellPhone.jq_blotOutPhone() |
| | | self.label_phone.text = model.cellPhone |
| | | |
| | | self.label_totalDay.attributedText = AttributedStringbuilder.build().add(string: "\(model.cumulative)", withFont: UIFont.init(name: "PingFang-SC-Regular", size: 60)!, withColor: UIColor(hexString: "#152715")!).add(string: "天", withFont: .systemFont(ofSize: 16), withColor: UIColor(hexString: "#152715")!).mutableAttributedString |
| | | |
| | | self.label_sustainDay.attributedText = AttributedStringbuilder.build().add(string: "\(model.continuity)", withFont: .systemFont(ofSize: 23), withColor: UIColor(hexString: "#152715")!).add(string: "天", withFont: .systemFont(ofSize: 12), withColor: UIColor(hexString: "#152715")!).mutableAttributedString |
| | | |
| | | self.image_medal.sd_setImage(with: URL(string: model.levelIcon)) |
| | | self.image_medal.sd_setImage(with: URL(string: model.levelIcon.jq_urlEncoded())) |
| | | |
| | | let timeTurple = Date.jq_formateToTime_tuple(model.today * 60) |
| | | |
| | |
| | | |
| | | if model.isVip == .yes{ |
| | | self.image_vipBg.image = UIImage(named: "bg_vip") |
| | | self.label_vipInfo.text = "你已是高级会员" |
| | | self.label_expirtTime.text = model.vipExpireTime + "到期" |
| | | self.label_vipInfo.text = "您将享受所有会员专享音频,尽情畅游心泉·疗愈世界" |
| | | self.label_expirtTime.text = model.vipExpireTime.components(separatedBy: " ").first! + "到期" |
| | | }else{ |
| | | self.image_vipBg.image = UIImage(named: "bg_vip_u") |
| | | self.label_vipInfo.text = "升级为高级会员,解锁全部体验" |
| | | self.label_vipInfo.text = "升级为会员,解锁会员专属体验" |
| | | self.label_expirtTime.text = "你还未开通会员服务" |
| | | } |
| | | } |