Commit 12aea708 authored by David黄金龙's avatar David黄金龙

首页 喜欢 按钮 逻辑

parent e04115c4
......@@ -23,6 +23,7 @@ class YHHomeListModel: YHBaseModel {
var type: Int = 0 //文章类型 '文章类型 1视频 2图文 3图片',
var is_like : Bool = false
var media_url : String = ""
var like_count : Int = 0
......
......@@ -175,7 +175,7 @@ extension YHHomeCollectionViewCell {
make.height.equalTo(listModel.textH)
make.bottom.equalTo(-36)
}
numLable.text = listModel.collect_count.string
numLable.text = listModel.like_count.string
heartImageViewBtn.isSelected = listModel.is_like
if listModel.type == 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