Commit 2039227f authored by pete谢兆麟's avatar pete谢兆麟

操作指引

parent cb8feab5
...@@ -325,7 +325,9 @@ class YHlifeCollectionReusableViewTableViewCell: UITableViewCell { ...@@ -325,7 +325,9 @@ class YHlifeCollectionReusableViewTableViewCell: UITableViewCell {
} }
@objc func actionClick() { @objc func actionClick() {
actionButton.isSelected = true if actionButton.isSelected {
return
}
viewModel.postLiveBook(id: dataSource?.live_id ?? 0) { success, error in viewModel.postLiveBook(id: dataSource?.live_id ?? 0) { success, error in
if success { if success {
YHHUD.flash(message: "预约成功") YHHUD.flash(message: "预约成功")
...@@ -333,6 +335,6 @@ class YHlifeCollectionReusableViewTableViewCell: UITableViewCell { ...@@ -333,6 +335,6 @@ class YHlifeCollectionReusableViewTableViewCell: UITableViewCell {
YHHUD.flash(message: "预约失败") YHHUD.flash(message: "预约失败")
} }
} }
actionButton.isSelected = true
} }
} }
...@@ -238,8 +238,10 @@ extension YHServiceCenterViewController { ...@@ -238,8 +238,10 @@ extension YHServiceCenterViewController {
} }
@objc func pushOrderView() { @objc func pushOrderView() {
var flag = false
let flag = false if self.state == 1 {
flag = true
}
YHServiceMoreAlertView.show(flag) {[weak self] index in YHServiceMoreAlertView.show(flag) {[weak self] index in
guard let self = self else { return } guard let self = self else { return }
if index == 1 { if index == 1 {
......
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