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

// 消息

parent dc87939a
......@@ -38,7 +38,8 @@ class YHDetailMessageCell: UITableViewCell {
detailLabel.text = model.content
unreadPointView.isHidden = model.isRead
timeLabel.text = formatTimestamp(Double(model.time))
lineView.isHidden = false
if type == YHMessageType.infoFill.rawValue {
bottomBtn.setTitle("去填写".local, for: .normal)
......@@ -65,7 +66,18 @@ class YHDetailMessageCell: UITableViewCell {
} else if type == YHMessageType.renewal.rawValue {
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