Commit cf361837 authored by Steven杜宇's avatar Steven杜宇

// 家庭信息

parent a071ee4a
......@@ -209,10 +209,13 @@ extension YHButlerServiceManager {
return components[0] == 17
}
@objc private func sessionGoBack() {
curentPresentedVC?.dismiss(animated: true)
@objc func sessionGoBack() {
guard let curentPresentedVC = curentPresentedVC else {
return
}
curentPresentedVC.dismiss(animated: true)
printLog("$$$$sessionGoBack")
curentPresentedVC = nil
self.curentPresentedVC = nil
}
@objc private func didRevUatParam() {
......
......@@ -93,9 +93,17 @@ class YHFamilyInfoConfirmViewController: YHBaseViewController {
[weak self] success, error in
guard let self = self else { return }
if success {
YHHUD.flash(message: "确认修改成功")
self.navigationController?.popViewController()
YHFamilyInfoWarmTipsView.tipsView().show()
self.navigationController?.popToRootViewController(animated: false)
YHButlerServiceManager.shared.sessionGoBack()
goTabBarBy(tabType: .service)
let tipsKey = "family_info_confirm_warm_tips_\(self.orderId)"
if let isShow = UserDefaults.standard.value(forKey: tipsKey) as? Bool, isShow {
} else {
YHFamilyInfoWarmTipsView.tipsView().show()
UserDefaults.standard.set(true, forKey: tipsKey)
UserDefaults.standard.synchronize()
}
return
}
let msg = error?.errorMsg ?? "确认修改失败"
......
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