fix
杨锴
2025-04-16 f646fbebad928833d15546a36e37768d00fe6173
WanPai/Base/BaseNav.swift
@@ -14,10 +14,10 @@
            /// 需要透明Nav的VC
            private var lucencyVCs = [RechargeRecordVC.self,RechargeCenterVC.self]
    private var lucencyVCs = [RechargeRecordVC.self,RechargeCenterVC.self]
            /// 世界杯风格
            private var worldCupVCs = [SearchVC.self,WorldCupVC.self,WorldCupHeaderVC.self,WorldCupMenuVC.self,WorldCupContentVC.self,WorldCupRecordVC.self,WorldCupRankVC.self,WorldCupListVC.self,WorldCupContentApplyVC.self,WorldCupContentApplyInputVC.self,WorldCupContentDetailVC.self]
            private var worldCupVCs = [WorldCupVC.self,WorldCupHeaderVC.self,WorldCupMenuVC.self,WorldCupContentVC.self,WorldCupRecordVC.self,WorldCupRankVC.self,WorldCupListVC.self,WorldCupContentApplyVC.self,WorldCupContentApplyInputVC.self,WorldCupContentDetailVC.self]
            private let img = UIImage.jq_gradient([UIColor(hexStr: "#FD8C02"),UIColor(hexStr: "#FD7202")], size: CGSize(width: JQ_ScreenW, height: JQ_NavBarHeight), radius: 0, locations: [0,1], direction: .vertical)
@@ -29,7 +29,6 @@
                        self.navigationBar.shadowImage = UIImage()
                        self.navigationBar.isTranslucent = true
                        self.delegate = self
                        //        self.popDelegate = self.interactivePopGestureRecognizer?.delegate
                        self.interactivePopGestureRecognizer?.delegate = self
@@ -81,6 +80,16 @@
                                    return
                        }
        if viewController.classForCoder == CardCenterVC.self{
            if #available(iOS 15.0, *) {
                navigationBar.standardAppearance.backgroundImage = img
                navigationBar.scrollEdgeAppearance?.backgroundImage = img
            }else{
                navigationBar.setBackgroundImage(img, for: .default)
            }
            return
        }
                        let status = lucencyVCs.contains(where: {$0 == viewController.classForCoder})
                        if (navigationController.viewControllers.count == 1 || status) && !(viewController is WelfareVC){
                                    if #available(iOS 15.0, *) {