| | |
| | | import Combine |
| | | |
| | | class MyCardItemVC: BaseVC { |
| | | @IBOutlet weak var label_item_title: UILabel! |
| | | @IBOutlet weak var label_time: UILabel! |
| | | @IBOutlet weak var imgCode: UIImageView! |
| | | @IBOutlet weak var webView: WKWebView! |
| | |
| | | |
| | | Services.myHuiminCardDetail(id: id).subscribe(onNext: {data in |
| | | if let m = data.data{ |
| | | let names = m.studentList.map({$0.name}).joined(separator: ",") |
| | | |
| | | self.label_item_title.text = String(format: "%@的玩湃惠民卡入场二维码", names) |
| | | |
| | | self.label_time.attributedText = AttributedStringbuilder.build().add(string: "该卡有效期至 ", withFont: .systemFont(ofSize: 16, weight: .medium), withColor: .black) |
| | | .add(string: m.endTime, withFont: .systemFont(ofSize: 16), withColor: UIColor(hexString: "#ff7300")!).mutableAttributedString |
| | |
| | | } |
| | | |
| | | override func setUI() { |
| | | view.backgroundColor = UIColor(hexStr: "#F5F5F5") |
| | | view.backgroundColor = UIColor.white |
| | | view_container.jq_cornerRadius = 10 |
| | | let colors = [UIColor(hexStr: "#FD7202").cgColor, |
| | | UIColor.white.cgColor,] |
| | |
| | | self.cons_web_hei.constant = size.height |
| | | }.store(in: &subscriptions) |
| | | } |
| | | @IBAction func backAction(_ sender: UIButton) { |
| | | navigationController?.popViewController() |
| | | } |
| | | } |