Commit 2385d79a authored by Steven杜宇's avatar Steven杜宇

// 家庭

parent 7ed8e487
......@@ -103,7 +103,8 @@ class YHFamilyInfoUpdateViewController: YHBaseViewController {
self.updateData()
}
@objc func didCancelBtnClicked() {
// 展示挽留弹窗
func showRetainAlertView() {
YHCommonAlertView.show("", "您尚未保存修改,确定关闭吗?", "仍然关闭", "继续编辑", fullGuestureEnable: false) {
self.navigationController?.popViewController()
} callBack: {
......@@ -111,6 +112,14 @@ class YHFamilyInfoUpdateViewController: YHBaseViewController {
}
}
@objc func didCancelBtnClicked() {
if self.isInfoEditing {
showRetainAlertView()
return
}
self.navigationController?.popViewController()
}
@objc func didConfirmBtnClicked() {
self.detailMember.info.isCheck = true
self.updateData()
......@@ -170,6 +179,23 @@ class YHFamilyInfoUpdateViewController: YHBaseViewController {
self.tableView.reloadData()
}
override func backItemClick(_ sender: Any) {
if self.isInfoEditing {
showRetainAlertView()
return
}
self.navigationController?.popViewController()
}
// 是否可以返回,包括点击返回和手势返回,默认YES
override func navigationShouldPop() -> Bool {
if self.isInfoEditing {
showRetainAlertView()
return false
}
return true
}
}
extension YHFamilyInfoUpdateViewController: UITableViewDelegate, UITableViewDataSource {
......
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