修复任务提交与弹窗交互问题
This commit is contained in:
@ -17,6 +17,7 @@ final class OrderSourceEntryView: UIControl {
|
||||
private let personRow = UIStackView()
|
||||
private let personNameLabel = UILabel()
|
||||
private let personPhoneLabel = UILabel()
|
||||
private let personSpacerView = UIView()
|
||||
private let divider = UIView()
|
||||
private let leadContentView = OrderSourceLeadContentView()
|
||||
private var currentImages: [String] = []
|
||||
@ -83,10 +84,19 @@ final class OrderSourceEntryView: UIControl {
|
||||
personRow.spacing = 10
|
||||
personNameLabel.font = .systemFont(ofSize: 13, weight: .medium)
|
||||
personNameLabel.textColor = AppColor.text333
|
||||
personNameLabel.lineBreakMode = .byTruncatingTail
|
||||
personNameLabel.setContentHuggingPriority(.required, for: .horizontal)
|
||||
personNameLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
|
||||
personPhoneLabel.font = .systemFont(ofSize: 13)
|
||||
personPhoneLabel.textColor = AppColor.text666
|
||||
personPhoneLabel.lineBreakMode = .byTruncatingTail
|
||||
personPhoneLabel.setContentHuggingPriority(.required, for: .horizontal)
|
||||
personPhoneLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
|
||||
personSpacerView.setContentHuggingPriority(.defaultLow, for: .horizontal)
|
||||
personSpacerView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
|
||||
personRow.addArrangedSubview(personNameLabel)
|
||||
personRow.addArrangedSubview(personPhoneLabel)
|
||||
personRow.addArrangedSubview(personSpacerView)
|
||||
|
||||
divider.backgroundColor = OrderTokens.sourceDivider
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@ final class OrderSourceLeadContentView: UIView {
|
||||
private let phoneRow = UIStackView()
|
||||
private let phoneTitleLabel = UILabel()
|
||||
private let phoneValueLabel = UILabel()
|
||||
private let phoneSpacerView = UIView()
|
||||
private let remarkLabel = UILabel()
|
||||
private let imageRow = UIStackView()
|
||||
private let emptyImageLabel = UILabel()
|
||||
@ -91,12 +92,20 @@ final class OrderSourceLeadContentView: UIView {
|
||||
phoneTitleLabel.text = "客户手机号"
|
||||
phoneTitleLabel.font = .systemFont(ofSize: 12)
|
||||
phoneTitleLabel.textColor = AppColor.text666
|
||||
phoneTitleLabel.setContentHuggingPriority(.required, for: .horizontal)
|
||||
phoneTitleLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
|
||||
phoneValueLabel.font = .systemFont(ofSize: 13, weight: .medium)
|
||||
phoneValueLabel.lineBreakMode = .byTruncatingTail
|
||||
phoneValueLabel.setContentHuggingPriority(.required, for: .horizontal)
|
||||
phoneValueLabel.setContentCompressionResistancePriority(.required, for: .horizontal)
|
||||
phoneValueLabel.addGestureRecognizer(
|
||||
UITapGestureRecognizer(target: self, action: #selector(phoneTapped))
|
||||
)
|
||||
phoneSpacerView.setContentHuggingPriority(.defaultLow, for: .horizontal)
|
||||
phoneSpacerView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
|
||||
phoneRow.addArrangedSubview(phoneTitleLabel)
|
||||
phoneRow.addArrangedSubview(phoneValueLabel)
|
||||
phoneRow.addArrangedSubview(phoneSpacerView)
|
||||
|
||||
remarkLabel.textColor = AppColor.text333
|
||||
remarkLabel.lineBreakMode = .byTruncatingTail
|
||||
|
||||
Reference in New Issue
Block a user