From 63f7ed967433acee3ae8764c7a077e15c29c41f2 Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期三, 06 十一月 2024 21:17:19 +0800 Subject: [PATCH] fix bug --- XQMuse/Root/Home/View/PaymentOrderResultTopView.swift | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/XQMuse/Root/Home/View/PaymentOrderResultTopView.swift b/XQMuse/Root/Home/View/PaymentOrderResultTopView.swift index d935306..c48490a 100644 --- a/XQMuse/Root/Home/View/PaymentOrderResultTopView.swift +++ b/XQMuse/Root/Home/View/PaymentOrderResultTopView.swift @@ -22,7 +22,9 @@ 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) -- Gitblit v1.7.1