|
@@ -37,11 +37,11 @@ class TSGennertatorSelectStyleVC: TSBaseVC {
|
|
|
lazy var layout: UICollectionViewFlowLayout = {
|
|
|
let w = (k_ScreenWidth-32.0-30.0-2.0)/4.0
|
|
|
let layout = UICollectionViewFlowLayout()
|
|
|
- layout.itemSize = CGSize(width: w, height: 110)
|
|
|
+ layout.itemSize = CGSize(width: w, height: 108)
|
|
|
|
|
|
layout.scrollDirection = .vertical
|
|
|
layout.minimumInteritemSpacing = 0.0
|
|
|
- layout.minimumLineSpacing = 10.0
|
|
|
+ layout.minimumLineSpacing = 4.0
|
|
|
layout.sectionInset = UIEdgeInsets(top: 0, left: 16, bottom: k_Height_safeAreaInsetsBottom(), right: 16)
|
|
|
return layout
|
|
|
}()
|
|
@@ -120,7 +120,6 @@ class TSGennertatorSelectStyleVC: TSBaseVC {
|
|
|
}
|
|
|
|
|
|
override func dealThings() {
|
|
|
- addPullDownClosePage()
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -209,12 +208,13 @@ class TSGennertatorSelectStyleCell: TSBaseCollectionCell {
|
|
|
}()
|
|
|
|
|
|
lazy var textLabel: UILabel = {
|
|
|
- let textLabel = UILabel.createLabel(font: .font(size: 11),textColor: .white.withAlphaComponent(0.8),textAlignment: .center,numberOfLines: 2)
|
|
|
+ let textLabel = UILabel.createLabel(font: .font(size: 12),textColor: .white.withAlphaComponent(0.8),textAlignment: .center,numberOfLines: 2)
|
|
|
return textLabel
|
|
|
}()
|
|
|
|
|
|
override func creatUI() {
|
|
|
- let w = contentView.width
|
|
|
+// let w = contentView.width
|
|
|
+ let w = 78
|
|
|
bgContentView.addSubview(boardImageView)
|
|
|
boardImageView.snp.makeConstraints { make in
|
|
|
make.top.centerX.equalToSuperview()
|
|
@@ -237,7 +237,7 @@ class TSGennertatorSelectStyleCell: TSBaseCollectionCell {
|
|
|
|
|
|
bgContentView.addSubview(textLabel)
|
|
|
textLabel.snp.makeConstraints { make in
|
|
|
- make.top.equalTo(boardImageView.snp.bottom).offset(0)
|
|
|
+ make.top.equalTo(imageView.snp.bottom).offset(2)
|
|
|
make.leading.trailing.bottom.equalToSuperview()
|
|
|
}
|
|
|
|