Commit ac84355a authored by Steven杜宇's avatar Steven杜宇

// AI

parent 2f573fa6
...@@ -59,6 +59,8 @@ class YHAICardItemView: UIView { ...@@ -59,6 +59,8 @@ class YHAICardItemView: UIView {
lazy var cardImgView: UIImageView = { lazy var cardImgView: UIImageView = {
let v = UIImageView(image: UIImage(named: "global_default_image")) let v = UIImageView(image: UIImage(named: "global_default_image"))
v.layer.cornerRadius = 6.0
v.clipsToBounds = true
return v return v
}() }()
......
...@@ -17,7 +17,11 @@ class YHAIProductCell: UICollectionViewCell { ...@@ -17,7 +17,11 @@ class YHAIProductCell: UICollectionViewCell {
titleLabel.text = model.title titleLabel.text = model.title
subtitleLabel.text = model.description subtitleLabel.text = model.description
if !model.btnText.isEmpty { if !model.btnText.isEmpty {
blackTitleLabel.text = model.btnText var text = model.btnText
if text.count > 5 {
text = String(text.prefix(5))
}
blackTitleLabel.text = text
} else { } else {
blackTitleLabel.text = "去了解" blackTitleLabel.text = "去了解"
} }
......
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