Commit 6f9d8b60 authored by Steven杜宇's avatar Steven杜宇

// 原则批

parent d02f0eaf
...@@ -273,11 +273,13 @@ class YHPrincipleUploadStatusCell: UITableViewCell { ...@@ -273,11 +273,13 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
make.top.equalTo(titleLabel.snp.bottom).offset(4) make.top.equalTo(titleLabel.snp.bottom).offset(4)
make.height.equalTo(1.0) make.height.equalTo(1.0)
} }
let isHiddenReason = model.audit_content.isEmpty || model.check_status != YHPrincipleUploadStatus.rejected.rawValue
rejectReasonLabel.snp.remakeConstraints { make in rejectReasonLabel.snp.remakeConstraints { make in
make.top.equalTo(lineView.snp.bottom).offset(model.audit_content.isEmpty ? 0 : 16) make.top.equalTo(lineView.snp.bottom).offset(isHiddenReason ? 0 : 16)
make.left.equalTo(16) make.left.equalTo(16)
make.right.equalTo(-16) make.right.equalTo(-16)
if model.audit_content.isEmpty || model.check_status != YHPrincipleUploadStatus.rejected.rawValue{ if isHiddenReason {
make.height.equalTo(0) make.height.equalTo(0)
} }
} }
......
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