Commit d3ab1a7b authored by Steven杜宇's avatar Steven杜宇

// 消息

parent dc87939a
...@@ -38,6 +38,7 @@ class YHDetailMessageCell: UITableViewCell { ...@@ -38,6 +38,7 @@ class YHDetailMessageCell: UITableViewCell {
detailLabel.text = model.content detailLabel.text = model.content
unreadPointView.isHidden = model.isRead unreadPointView.isHidden = model.isRead
timeLabel.text = formatTimestamp(Double(model.time)) timeLabel.text = formatTimestamp(Double(model.time))
lineView.isHidden = false
if type == YHMessageType.infoFill.rawValue { if type == YHMessageType.infoFill.rawValue {
bottomBtn.setTitle("去填写".local, for: .normal) bottomBtn.setTitle("去填写".local, for: .normal)
...@@ -65,7 +66,18 @@ class YHDetailMessageCell: UITableViewCell { ...@@ -65,7 +66,18 @@ class YHDetailMessageCell: UITableViewCell {
} else if type == YHMessageType.renewal.rawValue { } else if type == YHMessageType.renewal.rawValue {
bottomBtn.setTitle("去查看".local, for: .normal) bottomBtn.setTitle("去查看".local, for: .normal)
} else if type == YHMessageType.business.rawValue {
bottomBtn.setTitle("".local, for: .normal)
lineView.isHidden = true
}
var bottomBtnHeight = (type == YHMessageType.business.rawValue) ? 0.0 : 52.0
bottomBtn.snp.updateConstraints { make in
make.height.equalTo(bottomBtnHeight)
} }
self.setNeedsLayout()
self.layoutIfNeeded()
} }
......
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