Commit 6e1aa5bf authored by DavidHuang's avatar DavidHuang

修改 预约按钮 失败的问题

parent 4a071546
...@@ -59,6 +59,9 @@ class YHRecommendedAppointmentLiveView: UIView { ...@@ -59,6 +59,9 @@ class YHRecommendedAppointmentLiveView: UIView {
}() }()
@objc private func appointmentButtonClicked() { @objc private func appointmentButtonClicked() {
if appointmentButton.isSelected {
return
}
appointmentButtonEvent?() appointmentButtonEvent?()
} }
...@@ -126,11 +129,9 @@ class YHRecommendedAppointmentLiveView: UIView { ...@@ -126,11 +129,9 @@ class YHRecommendedAppointmentLiveView: UIView {
func updateAppointmentButton(isAppointmented: Bool) { func updateAppointmentButton(isAppointmented: Bool) {
if isAppointmented { if isAppointmented {
appointmentButton.isSelected = true self.appointmentButton.isSelected = true
appointmentButton.isEnabled = false
} else { } else {
appointmentButton.isSelected = false self.appointmentButton.isSelected = false
appointmentButton.isEnabled = true
} }
} }
......
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