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

//A I

parent 323f4644
......@@ -15,22 +15,18 @@ class YHAIProductCell: UICollectionViewCell {
var model = YHEntranceconfigModel() {
didSet {
titleLabel.text = model.title
if !model.btnText.isEmpty {
subtitleLabel.text = model.description
} else {
subtitleLabel.text = "详细了解银河产品"
}
if !model.btnText.isEmpty {
blackButton.setTitle(model.btnText, for: .normal)
} else {
blackButton.setTitle("去了解", for: .normal)
}
bgImgView.sd_setImage(with: URL(string: model.cover))
bgImgView.sd_setImage(with: URL(string: model.cover), placeholderImage: UIImage(named: "ai_product_bg_default"))
}
}
lazy var bgImgView: UIImageView = {
let v = UIImageView(image: UIImage(named: ""))
let v = UIImageView(image: UIImage(named: "ai_product_bg_default"))
return v
}()
......
......@@ -5,11 +5,12 @@
"scale" : "1x"
},
{
"filename" : "了解银河.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "背景图样例1.png",
"filename" : "了解银河@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "背景图样例2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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