报警相关

This commit is contained in:
ddisfriend
2025-08-06 17:14:43 +08:00
parent dd02ce9be8
commit d060351aca
74 changed files with 7682 additions and 95 deletions

View File

@@ -30,11 +30,13 @@ open class AcceptOrderTool : NSObject {
// -
let tabBarVc = UIApplication.shared.dd_keyWindow.rootViewController as? MainTabBarController
let currentNav = tabBarVc?.selectedViewController as? UINavigationController
currentNav?.popToRootViewController(animated: false)
tabBarVc?.selectedIndex = 0
let nav = tabBarVc?.children.first as? UINavigationController
let vc = nav?.children.first as? RescueController
vc?.categoryView.selectItem(at: 0)
currentNav?.popToRootViewController(animated: true)
DispatchQueue.main.asyncAfter(deadline: .now()+0.25, execute: {
tabBarVc?.selectedIndex = 0
let nav = tabBarVc?.children.first as? UINavigationController
let vc = nav?.children.first as? RescueController
vc?.categoryView.selectItem(at: 0)
})
}
}
})