重构首页为单一集合视图并添加全部功能自定义

This commit is contained in:
2026-07-07 09:57:41 +08:00
parent 16e86c8899
commit af450fb4cc
14 changed files with 1222 additions and 209 deletions

View File

@ -13,9 +13,10 @@ enum HomeRouteHandler {
static func open(
uri: String,
from viewController: UIViewController,
storeItem: StoreItem?
storeItem: StoreItem?,
onCommonMenusChanged: (() -> Void)? = nil
) {
if uri == "pilot_controller" || uri == "more_functions" {
if uri == "pilot_controller" {
showDeveloping(from: viewController)
return
}
@ -26,6 +27,10 @@ enum HomeRouteHandler {
}
switch uri {
case "more_functions":
let controller = AllFunctionsViewController()
controller.onDidCustomize = onCommonMenusChanged
viewController.navigationController?.pushViewController(controller, animated: true)
case "verification_order":
selectTab(.orders, from: viewController)
case "photographer_stats":