Commit 2171ebd4 authored by David黄金龙's avatar David黄金龙

处理 提交成功的字体

parent 1d3d2912
...@@ -53,8 +53,8 @@ class YHScorePersonInfoCell: UITableViewCell { ...@@ -53,8 +53,8 @@ class YHScorePersonInfoCell: UITableViewCell {
//综合得分 //综合得分
private lazy var scoreLable : UILabel = { private lazy var scoreLable : UILabel = {
let lable0 = UILabel(text: "92 分") let lable0 = UILabel(text: "92 分")
lable0.textColor = UIColor(hex: 0x3C86F8) lable0.textColor = UIColor(hex: 0xFFEEB0)
lable0.font = UIFont.PFSC_B(ofSize: 68) lable0.font = UIFont(name: "DINAlternate-Bold", size: 68)
lable0.textAlignment = .right lable0.textAlignment = .right
return lable0 return lable0
}() }()
...@@ -186,8 +186,8 @@ extension YHScorePersonInfoCell { ...@@ -186,8 +186,8 @@ extension YHScorePersonInfoCell {
make.height.equalTo(79) make.height.equalTo(79)
} }
let a: ASAttributedString = .init("-", .font(UIFont.PFSC_R(ofSize: 43)),.foreground(UIColor(hex:0x3C86F8))) let a: ASAttributedString = .init("-",.font(UIFont(name: "DINAlternate-Bold", size: 68) ?? UIFont.PFSC_B(ofSize: 43)),.foreground(UIColor(hex: 0xFFEEB0)))
let b: ASAttributedString = .init("分", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor(hex:0x3C86F8))) let b: ASAttributedString = .init("分", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor(hex: 0xFFEEB0)))
scoreLable.attributed.text = a + b scoreLable.attributed.text = a + b
} }
...@@ -203,7 +203,7 @@ extension YHScorePersonInfoCell { ...@@ -203,7 +203,7 @@ extension YHScorePersonInfoCell {
phoneLable.text = model.userinfo?.mobile ?? "-" phoneLable.text = model.userinfo?.mobile ?? "-"
let score : String = String(model.total_score?.sum_score ?? 0) let score : String = String(model.total_score?.sum_score ?? 0)
let a: ASAttributedString = .init(NSAttributedString(string: score), .font(UIFont.PFSC_R(ofSize: 43)),.foreground(UIColor(hex:0xFFEEB0))) let a: ASAttributedString = .init(NSAttributedString(string: score),.font(UIFont(name: "DINAlternate-Bold", size: 68) ?? UIFont.PFSC_B(ofSize: 43)),.foreground(UIColor(hex: 0xFFEEB0)))
let b: ASAttributedString = .init("分", .font(UIFont.PFSC_M(ofSize: 16)),.foreground(.white)) let b: ASAttributedString = .init("分", .font(UIFont.PFSC_M(ofSize: 16)),.foreground(.white))
scoreLable.attributed.text = a + b scoreLable.attributed.text = a + b
} }
......
...@@ -23,7 +23,7 @@ class YHSubmintAllInfoSuccessTipView: UIView { ...@@ -23,7 +23,7 @@ class YHSubmintAllInfoSuccessTipView: UIView {
guard let model = model else { guard let model = model else {
return return
} }
let a: ASAttributedString = .init(NSAttributedString(string: model.sum_score), .font(UIFont.PFSC_M(ofSize: 43)),.foreground(UIColor.warnColor)) let a: ASAttributedString = .init(NSAttributedString(string: model.sum_score), .font(UIFont(name: "DINAlternate-Bold", size: 43) ?? UIFont.PFSC_M(ofSize: 43)),.foreground(UIColor.warnColor))
let b: ASAttributedString = .init("分", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor.labelTextColor2)) let b: ASAttributedString = .init("分", .font(UIFont.PFSC_R(ofSize: 12)),.foreground(UIColor.labelTextColor2))
messageLabel.attributed.text = a + b messageLabel.attributed.text = a + b
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment