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

处理 一处bug

parent 38582e2c
......@@ -239,21 +239,30 @@ extension YHOtherSelecteItemView {
if textField.isEmpty == true {
noTextTipsLable.isHidden = false
noTextTipsLable.snp.remakeConstraints { make in
make.top.equalTo(titleLabel.snp.bottom).offset(6)
make.height.equalTo(20)
make.left.equalTo(subHoldView.snp.left)
make.right.equalTo(subHoldView.snp.right)
}
bottomLine.snp.remakeConstraints { make in
make.top.equalTo(noTextTipsLable.snp.bottom).offset(6)
make.left.right.equalToSuperview()
make.height.equalTo(0.5)
make.bottom.equalToSuperview()
if longTimeButton.isSelected {
noTextTipsLable.isHidden = true
bottomLine.snp.remakeConstraints { make in
make.top.equalTo(titleLabel.snp.bottom).offset(kMargin)
make.bottom.left.right.equalToSuperview()
make.height.equalTo(0.5)
}
} else {
noTextTipsLable.isHidden = false
noTextTipsLable.snp.remakeConstraints { make in
make.top.equalTo(titleLabel.snp.bottom).offset(6)
make.height.equalTo(20)
make.left.equalTo(subHoldView.snp.left)
make.right.equalTo(subHoldView.snp.right)
}
bottomLine.snp.remakeConstraints { make in
make.top.equalTo(noTextTipsLable.snp.bottom).offset(6)
make.left.right.equalToSuperview()
make.height.equalTo(0.5)
make.bottom.equalToSuperview()
}
}
}
else {
noTextTipsLable.isHidden = true
......@@ -263,9 +272,6 @@ extension YHOtherSelecteItemView {
make.height.equalTo(0.5)
}
}
} else {
noTextTipsLable.isHidden = true
titleLabel.snp.remakeConstraints { make in
......@@ -298,11 +304,9 @@ extension YHOtherSelecteItemView {
if longTimeButton.isSelected {
longTimeButton.snp.remakeConstraints { make in
make.left.equalTo(titleLabel.snp.right).offset(40)
make.centerY.equalToSuperview()
make.centerY.equalTo(titleLabel)
make.height.equalTo(32)
make.width.equalTo(43)
}
......@@ -312,12 +316,10 @@ extension YHOtherSelecteItemView {
make.right.equalToSuperview()
make.bottom.top.left.equalToSuperview()
}
} else {
longTimeButton.snp.remakeConstraints { make in
make.right.equalToSuperview()
make.centerY.equalToSuperview()
make.centerY.equalTo(titleLabel)
make.height.equalTo(32)
make.width.equalTo(43)
}
......@@ -327,9 +329,7 @@ extension YHOtherSelecteItemView {
make.right.equalTo(longTimeButton.snp.left).offset(-4)
make.bottom.top.left.equalToSuperview()
}
}
} else {
rightIcon.snp.removeConstraints()
rightIcon.isHidden = false
......
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