Commit a33a1f25 authored by pete谢兆麟's avatar pete谢兆麟

处理价格异常

parent f059310d
...@@ -260,7 +260,11 @@ class YHSelectLookTableViewCell: UITableViewCell { ...@@ -260,7 +260,11 @@ class YHSelectLookTableViewCell: UITableViewCell {
let a: ASAttributedString = .init("¥", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor)) let a: ASAttributedString = .init("¥", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
let b: ASAttributedString = .init("\(dataSource.linePrice) ", .font(UIFont.PFSC_R(ofSize: 20)),.foreground(UIColor.mainTextColor)) let b: ASAttributedString = .init("\(dataSource.linePrice) ", .font(UIFont.PFSC_R(ofSize: 20)),.foreground(UIColor.mainTextColor))
let c: ASAttributedString = .init(\(dataSource.price)", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor(hex:0x8993a2)), .strikethrough(.single)) let c: ASAttributedString = .init(\(dataSource.price)", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor(hex:0x8993a2)), .strikethrough(.single))
self.subTitleLabel.attributed.text = a + b + c if dataSource.linePrice == dataSource.price {
self.subTitleLabel.attributed.text = a + b
} else {
self.subTitleLabel.attributed.text = a + b + c
}
itemView.removeSubviews() itemView.removeSubviews()
var i = 0 var i = 0
for item in dataSource.icons { for item in dataSource.icons {
......
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