杨锴
2025-04-18 4af06968a271d2e4854ef9baa8d010260fe7d0ed
WanPai/Root/Search/VC/MyCardItemVC.swift
@@ -11,6 +11,7 @@
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!
@@ -35,6 +36,9 @@
        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
@@ -46,7 +50,7 @@
    }
    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,]
@@ -58,4 +62,7 @@
            self.cons_web_hei.constant = size.height
        }.store(in: &subscriptions)
    }
    @IBAction func backAction(_ sender: UIButton) {
        navigationController?.popViewController()
    }
}