Commit 6bd1d7d9 authored by Alex朱枝文's avatar Alex朱枝文

直播间金额字体调整

parent 3bd14846
...@@ -262,10 +262,12 @@ class YHLiveShopViewCell: UITableViewCell { ...@@ -262,10 +262,12 @@ class YHLiveShopViewCell: UITableViewCell {
} }
titleLabel.text = dataSource.name titleLabel.text = dataSource.name
messageLabel.text = dataSource.description messageLabel.text = dataSource.description
let a: ASAttributedString = .init("¥", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor)) let a: ASAttributedString = .init("¥", .font(UIFont(name: "D-DIN-PRO-Bold", size: 14) ?? UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor))
let b: ASAttributedString = .init("\(dataSource.linePrice)", .font(UIFont(name: "DINAlternate-Bold", size: 20) ?? UIFont.PFSC_R(ofSize: 20)), .foreground(UIColor.mainTextColor)) let linePrice = dataSource.linePrice.formattedPrice()
let b: ASAttributedString = .init("\(linePrice)", .font(UIFont(name: "D-DIN-PRO-Bold", size: 20) ?? UIFont.PFSC_R(ofSize: 20)), .foreground(UIColor.mainTextColor))
priceLabel.attributed.text = a + b priceLabel.attributed.text = a + b
let c: ASAttributedString = .init(\(dataSource.price)", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor(hex: 0x8993a2)), .strikethrough(.single)) let price = dataSource.price.formattedPrice()
let c: ASAttributedString = .init(\(price)", .font(UIFont(name: "D-DIN-PRO-Medium", size: 14) ?? UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor(hex: 0x8993a2)), .strikethrough(.single))
subPriceLabel.attributed.text = c subPriceLabel.attributed.text = c
flagLabel.text = "\(dataSource.flag)" flagLabel.text = "\(dataSource.flag)"
subPriceLabel.isHidden = dataSource.linePrice == dataSource.price subPriceLabel.isHidden = dataSource.linePrice == dataSource.price
......
...@@ -32,12 +32,10 @@ class YHGalaxyNewsListViewController: YHBaseViewController { ...@@ -32,12 +32,10 @@ class YHGalaxyNewsListViewController: YHBaseViewController {
gk_navRightBarButtonItem = rightButtonItem gk_navRightBarButtonItem = rightButtonItem
gk_navItemRightSpace = 16 gk_navItemRightSpace = 16
} }
@objc func didCleanBtnClicked() { @objc func didCleanBtnClicked() {
} }
} }
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