Commit 3717647d authored by pete谢兆麟's avatar pete谢兆麟

解决闪频问题

parent 378d92de
......@@ -39,7 +39,7 @@ class YHHomeListModel: YHBaseModel {
var img_height_cell : CGFloat = 0
//描述的高度
var textH : CGFloat = 20.0
var textH : CGFloat = 16.0
......@@ -80,6 +80,5 @@ class YHHomeListModel: YHBaseModel {
self.img_width_cell = width
self.img_height_cell = totalHeight
}
}
......@@ -172,7 +172,6 @@ extension YHHomeCollectionViewCell {
make.top.equalToSuperview().offset(10)
make.left.equalToSuperview().offset(8)
make.right.equalToSuperview().offset(-8)
make.height.equalTo(listModel.textH)
make.bottom.equalTo(-36)
}
numLable.text = listModel.collect_count.string
......
......@@ -39,7 +39,7 @@ class YHServiceSectionView: UIView {
let collectinoView = UICollectionView(frame: .zero, collectionViewLayout: flowLayout)
collectinoView.backgroundColor = .white
collectinoView.contentInset = UIEdgeInsets(top: 10, left: 20, bottom: 0, right: 20)
collectinoView.contentInset = UIEdgeInsets(top: 8, left: 20, bottom: 0, right: 20)
collectinoView.register(YHServiceSectionCollectionViewCell.self, forCellWithReuseIdentifier:YHServiceSectionCollectionViewCell.cellReuseIdentifier)
collectinoView.delegate = self
collectinoView.dataSource = self
......
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