Commit 2c336f81 authored by Steven杜宇's avatar Steven杜宇

// 数字图片

parent 82737c02
......@@ -67,9 +67,9 @@ class YHNameCardDynamicCell: UITableViewCell {
private lazy var img3V: UIImageView = {
let v = UIImageView()
v.addSubview(numLabel)
numLabel.snp.makeConstraints { make in
make.height.equalTo(44)
v.addSubview(numImgV)
numImgV.snp.makeConstraints { make in
make.width.height.equalTo(44)
make.right.equalTo(-12)
make.bottom.equalTo(0)
}
......@@ -97,12 +97,9 @@ class YHNameCardDynamicCell: UITableViewCell {
return label
}()
private lazy var numLabel: UILabel = {
let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 32)
label.textColor = .mainTextColor
label.textAlignment = .right
return label
private lazy var numImgV: UIImageView = {
let v = UIImageView()
return v
}()
private lazy var publishBtn: UIButton = {
......@@ -188,20 +185,9 @@ class YHNameCardDynamicCell: UITableViewCell {
img3V.sd_setImage(with: URL(string: resource.url), placeholderImage: UIImage(named: "global_default_image"), context: nil)
}
numLabel.isHidden = model.resource_urls.count <= 3
numLabel.text = "\(model.resource_urls.count)"
// let shadow = NSShadow()
// shadow.shadowColor = UIColor.black
// shadow.shadowOffset = CGSize(width: 44, height: 44)
// shadow.shadowBlurRadius = 44
//
// let attributes: [NSAttributedString.Key: Any] = [
// .foregroundColor: UIColor.white,
// .font: UIFont.PFSC_R(ofSize: 32),
// .shadow: shadow]
//
// numLabel.attributedText = NSAttributedString(string: "\(model.resource_urls.count)", attributes: attributes)
numImgV.isHidden = model.resource_urls.count <= 3
numImgV.image = UIImage(named: "name_card_img_\(model.resource_urls.count)")
}
func formatDateString(_ dateString: String) -> String? {
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "4.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "5.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "6.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "7.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "8.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "9.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"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