Commit 179ab6af authored by Steven杜宇's avatar Steven杜宇

// 预约

parent 8f7bab59
......@@ -123,10 +123,21 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
self.navigationController?.pushViewController(vc)
}
@objc func didGuideBtnClicked() {
func firstShowGuideSheetView() {
let key = "resignGuideLine_watch_\(renewalId)"
let key = "resignGuideLine_is_first_watch_\(renewalId)"
if let isHaveFirstShow = UserDefaults.standard.value(forKey: key) as? Bool, isHaveFirstShow == true {
} else {
showGuideSheetView()
UserDefaults.standard.set(true, forKey: key)
UserDefaults.standard.synchronize()
}
}
func showGuideSheetView() {
let key = "resignGuideLine_watch_\(renewalId)"
let view = YHResignAppointGuideLineView.sheetView()
if let isWatched = UserDefaults.standard.value(forKey: key) as? Bool, isWatched == true {
view.ischeckBeforeFlag = true
......@@ -141,6 +152,10 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
view.show()
}
@objc func didGuideBtnClicked() {
self.showGuideSheetView()
}
// 更新底部下一步按钮点击状态
func updateBottomBtnAndMotifyBtnStatus() {
// 至少有一个行程已确认在港
......@@ -168,7 +183,12 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
alert.show()
} else if status == .canConfirmHK { // 可点击确认在港
requestConfirmInHK(model)
let alertView = YHResignAppointedScheduleRiskTipsView.alertView()
alertView.confirmBlock = {
[weak self] in
guard let self = self else { return }
self.requestConfirmInHK(model)
}
}
}
......@@ -345,6 +365,7 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
self.scheduleArr.append(contentsOf: self.viewModel.scheduleInfoList.renewal_List)
self.tableView.reloadData()
self.updateBottomBtnAndMotifyBtnStatus()
self.firstShowGuideSheetView()
}
}
}
......
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