Commit e29512a0 authored by pete谢兆麟's avatar pete谢兆麟

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

parents 072a26c9 6e1aa5bf
...@@ -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