Commit f45fa4da authored by David黄金龙's avatar David黄金龙

细节优化

parent 26f65c50
...@@ -240,6 +240,7 @@ private extension YHUploadCertificateDetailVC { ...@@ -240,6 +240,7 @@ private extension YHUploadCertificateDetailVC {
make.top.equalTo(cardButton.snp.bottom).offset(32) make.top.equalTo(cardButton.snp.bottom).offset(32)
make.height.equalTo(20) make.height.equalTo(20)
} }
startDateItem.update(title: "入境日期")
...@@ -262,6 +263,7 @@ private extension YHUploadCertificateDetailVC { ...@@ -262,6 +263,7 @@ private extension YHUploadCertificateDetailVC {
make.height.equalTo(20) make.height.equalTo(20)
make.bottom.equalToSuperview().offset(-kMargin) make.bottom.equalToSuperview().offset(-kMargin)
} }
endDateItem.update(title: "逗留截止")
} }
......
...@@ -88,5 +88,16 @@ private extension YHUploadCertificateDateItem { ...@@ -88,5 +88,16 @@ private extension YHUploadCertificateDateItem {
extension YHUploadCertificateDateItem { extension YHUploadCertificateDateItem {
func update(title : String,isMust : Bool = true) {
if isMust {
let a: ASAttributedString = .init("*", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.failColor))
let b: ASAttributedString = .init(NSAttributedString(string: title), .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
cardLabel.attributed.text = a + b
} else {
let b: ASAttributedString = .init(NSAttributedString(string: title), .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor))
cardLabel.attributed.text = b
}
}
} }
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