|
@@ -31,11 +31,11 @@ class TSAILIstCell: TSBaseCollectionCell {
|
|
|
}()
|
|
|
|
|
|
|
|
|
- lazy var shadowImageView: UIImageView = {
|
|
|
- let shadowImageView = UIImageView.createImageView(imageName: "alList_shadow",contentMode: .scaleToFill)
|
|
|
- shadowImageView.alpha = 0.7
|
|
|
- return shadowImageView
|
|
|
- }()
|
|
|
+// lazy var shadowImageView: UIImageView = {
|
|
|
+// let shadowImageView = UIImageView.createImageView(imageName: "alList_shadow",contentMode: .scaleToFill)
|
|
|
+// shadowImageView.alpha = 0.7
|
|
|
+// return shadowImageView
|
|
|
+// }()
|
|
|
|
|
|
lazy var titleLab: UILabel = {
|
|
|
let titleLab = UILabel.createLabel(font: .font(size: 16,weight: .medium),textColor: .fromHex("FFFFFF"))
|
|
@@ -43,7 +43,7 @@ class TSAILIstCell: TSBaseCollectionCell {
|
|
|
}()
|
|
|
|
|
|
lazy var leftSubLab: UILabel = {
|
|
|
- return UILabel.createLabel(font: .font(size: 14,weight: .medium),textColor: .white.withAlphaComponent(0.8),numberOfLines: 0)
|
|
|
+ return UILabel.createLabel(font: .font(size: 14),textColor: .white.withAlphaComponent(0.8),numberOfLines: 0)
|
|
|
}()
|
|
|
|
|
|
lazy var submitBtn: UIButton = {
|
|
@@ -62,22 +62,20 @@ class TSAILIstCell: TSBaseCollectionCell {
|
|
|
make.top.bottom.leading.trailing.equalTo(0)
|
|
|
}
|
|
|
|
|
|
- bgContentView.addSubview(shadowImageView)
|
|
|
- shadowImageView.snp.makeConstraints { make in
|
|
|
- make.bottom.leading.trailing.equalTo(0)
|
|
|
- make.height.equalTo(90*kDesignScale)
|
|
|
- }
|
|
|
- submitBtn.setContentCompressionResistancePriority(.defaultHigh, for: .horizontal)
|
|
|
+// bgContentView.addSubview(shadowImageView)
|
|
|
+// shadowImageView.snp.makeConstraints { make in
|
|
|
+// make.bottom.leading.trailing.equalTo(0)
|
|
|
+// make.height.equalTo(90*kDesignScale)
|
|
|
+// }
|
|
|
+
|
|
|
bgContentView.addSubview(submitBtn)
|
|
|
submitBtn.snp.makeConstraints { make in
|
|
|
make.trailing.equalTo(-16)
|
|
|
make.bottom.equalTo(-27)
|
|
|
make.height.equalTo(24)
|
|
|
- // 设置按钮宽度根据内容自适应
|
|
|
make.width.equalTo(submitBtn.intrinsicContentSize.width)
|
|
|
}
|
|
|
|
|
|
- leftSubLab.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
|
|
|
bgContentView.addSubview(leftSubLab)
|
|
|
leftSubLab.snp.makeConstraints { make in
|
|
|
make.trailing.equalTo(submitBtn.snp.leading).offset(-15)
|