Commit 96409dbc authored by Steven杜宇's avatar Steven杜宇

// AI

parent df15f933
...@@ -19,7 +19,12 @@ class YHProductItemView: UIView { ...@@ -19,7 +19,12 @@ class YHProductItemView: UIView {
let bb: ASAttributedString = .init("\(productModel.discountPrice)", .font(UIFont(name: "DINAlternate-Bold", size: 20)!),.foreground(UIColor.mainTextColor)) let bb: ASAttributedString = .init("\(productModel.discountPrice)", .font(UIFont(name: "DINAlternate-Bold", size: 20)!),.foreground(UIColor.mainTextColor))
let cc: ASAttributedString = .init(" ", .font(UIFont(name: "DINAlternate-Bold", size: 14)!),.foreground(UIColor.init(hex: 0xB9C1CC))) let cc: ASAttributedString = .init(" ", .font(UIFont(name: "DINAlternate-Bold", size: 14)!),.foreground(UIColor.init(hex: 0xB9C1CC)))
let dd: ASAttributedString = .init("¥\(productModel.originalPrice)", .font(UIFont(name: "DINAlternate-Bold", size: 14)!),.foreground(UIColor.init(hex: 0xB9C1CC)), .strikethrough(.single)) let dd: ASAttributedString = .init("¥\(productModel.originalPrice)", .font(UIFont(name: "DINAlternate-Bold", size: 14)!),.foreground(UIColor.init(hex: 0xB9C1CC)), .strikethrough(.single))
priceLabel.attributed.text = aa+bb+cc+dd
if productModel.discountPrice == productModel.originalPrice {
priceLabel.attributed.text = aa+bb+cc
} else {
priceLabel.attributed.text = aa+bb+cc+dd
}
tagContentView.removeSubviews() tagContentView.removeSubviews()
var lastTagView:YHProductTagView? = nil var lastTagView:YHProductTagView? = nil
......
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