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

// UI 更新

parent aa7c78de
......@@ -56,6 +56,10 @@ class YHResignInfoConfirmModifyViewController: YHBaseViewController {
confirmBtn.layer.cornerRadius = kCornerRadius3
view.addSubview(confirmBtn)
let topLineView = UIView()
topLineView.backgroundColor = .init(hex: 0xF0F0F0)
view.addSubview(topLineView)
cancelBtn.snp.makeConstraints { make in
make.top.equalTo(10)
make.left.equalTo(16)
......@@ -70,6 +74,11 @@ class YHResignInfoConfirmModifyViewController: YHBaseViewController {
make.left.equalTo(cancelBtn.snp.right).offset(10)
}
topLineView.snp.makeConstraints { make in
make.left.right.top.equalToSuperview()
make.height.equalTo(0.5)
}
return view
}()
......
......@@ -260,6 +260,7 @@ class YHResignFamilyInfoListCell: UITableViewCell {
if let itemView = itemView as? YHResignInfoItemView {
itemsContentView.addSubview(itemView)
itemView.updateItem(item, familyInfo: familyInfo)
itemView.updateLineMargin(index == 0 ? -18.0 : 0)
itemView.updateList = {
[weak self] in
guard let self = self else { return }
......
......@@ -69,6 +69,7 @@ class YHResignFamilyMemberInfoCell: UITableViewCell {
label.font = UIFont.PFSC_R(ofSize: 14)
label.text = "待核对"
label.textColor = UIColor.brandMainColor
label.textAlignment = .right
return label
}()
......@@ -113,7 +114,7 @@ class YHResignFamilyMemberInfoCell: UITableViewCell {
nameLabel.snp.makeConstraints { make in
make.left.equalTo(relationLabel.snp.right).offset(60)
make.right.equalTo(statusLabel.snp.left).offset(-14)
make.right.equalTo(statusLabel.snp.left).offset(0)
make.top.equalTo(16)
make.height.equalTo(20)
}
......
......@@ -298,6 +298,13 @@ class YHResignInfoItemView: UIView {
self.setNeedsLayout()
self.layoutIfNeeded()
}
func updateLineMargin(_ margin: CGFloat) {
lineView.snp.updateConstraints { make in
make.left.equalTo(margin)
make.right.equalTo(-margin)
}
}
}
extension YHResignInfoItemView: UITextFieldDelegate {
......
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