充电管理

This commit is contained in:
ddisfriend
2026-07-29 19:48:16 +08:00
parent bf7123d9f0
commit 93ce2e7210
3 changed files with 7 additions and 2 deletions
+1
View File
@@ -210,6 +210,7 @@ GEM
xcpretty (~> 0.2, >= 0.0.7) xcpretty (~> 0.2, >= 0.0.7)
PLATFORMS PLATFORMS
arm64-darwin-21
arm64-darwin-22 arm64-darwin-22
DEPENDENCIES DEPENDENCIES
@@ -138,7 +138,11 @@ class WebViewController : ZDViewController {
if showNavBar == false { return true } if showNavBar == false { return true }
guard let hiddenPaths = hiddenNavBarURLPaths, let currentUrl = webView.url else { return false } guard let hiddenPaths = hiddenNavBarURLPaths, let currentUrl = webView.url else { return false }
let currentPath = currentUrl.path let currentPath = currentUrl.path
return hiddenPaths.contains(currentPath) return hiddenPaths.contains { hiddenPath in
// path path + "/"
let basePath = hiddenPath.hasSuffix("/") ? String(hiddenPath.dropLast()) : hiddenPath
return currentPath == basePath || currentPath.hasPrefix(basePath + "/")
}
} }
private func updateNavBarVisibility() { private func updateNavBarVisibility() {
@@ -170,7 +170,7 @@ open class WebViewTool : NSObject {
vc = WebViewController(showNavBar:false, title: nil, url: "\((h5Models?.managerPeople)!)?token=\((USER.token)!)"+(appending ?? "")) vc = WebViewController(showNavBar:false, title: nil, url: "\((h5Models?.managerPeople)!)?token=\((USER.token)!)"+(appending ?? ""))
break break
case .gjUrl: case .gjUrl:
vc = WebViewController(showNavBar:true, title: nil, url: "\((h5Models?.gjUrl)!)?"+(appending ?? ""), hiddenNavBarURLPaths: ["/h5/pages/order/list", "/h5/pages/invoice/list"]) vc = WebViewController(showNavBar:true, title: nil, url: "\((h5Models?.gjUrl)!)?"+(appending ?? ""), hiddenNavBarURLPaths: ["/h5/pages/order/list", "/h5/pages/invoice/list", "/h5/pages/order/detail", "/h5/pages/invoice/detail"])
break break
} }