| | |
| | | |
| | | image_free.isHidden = model.chargeType != .free |
| | | img_vip.isHidden = model.chargeType != .vipFree |
| | | view_price.isHidden = model.chargeType != .payment |
| | | view_price.isHidden = (model.chargeType != .payment || model.isBuy == .yes) |
| | | |
| | | 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.iosPrice.jq_formatFloat)", withFont: UIFont(name: "DIN-Bold", size: 11) ?? .systemFont(ofSize: 11,weight: .bold), withColor: .white).mutableAttributedString |
| | | default:break |
| | | } |