Commit 6e1aa5bf authored by DavidHuang's avatar DavidHuang

修改 预约按钮 失败的问题

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