| | |
| | | func setPrice(type:PaymentOrderVC.PaymentOrderType,id:Int,price:Double){ |
| | | self.id = id |
| | | self.type = type |
| | | label_price.text = "\(price.jq_formatFloat)" |
| | | |
| | | label_price.attributedText = AttributedStringbuilder.build().add(string: "疗愈币", withFont: .systemFont(ofSize: 18, weight: .semibold), withColor: UIColor(hexStr: "#FF9000")) |
| | | .add(string: String(format: "%.2lf", price), withFont: UIFont(name: "DIN Alternate", size: 30)!, withColor: UIColor(hexStr: "#FF9000")).mutableAttributedString |
| | | |
| | | switch type { |
| | | case .course:btn_lookCourse.setTitle("查看课程", for: .normal) |