杨锴
2024-10-31 2004d0578480d12cd69c4d42d414ffd11828d0f1
XQMuse/Root/Home/CCell/HomeRelaxBannerCCell.swift
@@ -25,6 +25,7 @@
        super.awakeFromNib()
        // Initialization code
                        jq_cornerRadius = 25
        view_price.jq_cornerRadius = 12.55
    }
            func setMeditationModel(_ model:MeditationModel){
@@ -65,15 +66,15 @@
            view_price.isHidden = true
            img_vip.isHidden = true
            return
        }
        switch model.chargeType {
            case .payment:
                image_free.isHidden = true
                view_price.isHidden = false
                label_price.attributedText = AttributedStringbuilder.build().add(string: "¥", withFont: UIFont(name: "DIN-Bold", size: 7.11) ?? UIFont.systemFont(ofSize: 7, weight: .bold), withColor: .white).add(string: "\(model.generalPrice.jq_formatFloat)", withFont: UIFont(name: "DIN-Bold", size: 11.44) ?? .systemFont(ofSize: 11,weight: .bold), withColor: .white).mutableAttributedString
            default:break
        }else{
            img_offine.isHidden = true
            switch model.chargeType {
                case .payment:
                    image_free.isHidden = true
                    view_price.isHidden = false
                    label_price.attributedText = AttributedStringbuilder.build().add(string: "¥", withFont: UIFont(name: "DIN-Bold", size: 7.11) ?? UIFont.systemFont(ofSize: 7, weight: .bold), withColor: .white).add(string: "\(model.generalPrice.jq_formatFloat)", withFont: UIFont(name: "DIN-Bold", size: 11.44) ?? .systemFont(ofSize: 11,weight: .bold), withColor: .white).mutableAttributedString
                default:break
            }
        }
            }
}