无故事王国
2023-06-28 a56ff03fc62bb894160f9b71fc54f66e77e48712
WanPai/Base/BaseNav.swift
@@ -12,6 +12,10 @@
    
    private var popDelegate: UIGestureRecognizerDelegate?
    
        /// 需要透明Nav的VC
    private var lucencyVCs = [RechargeRecordVC.self,RechargeCenterVC.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)
    
    open override func viewDidLoad() {
@@ -54,7 +58,10 @@
    }
    
    open func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {
        if navigationController.viewControllers.count == 1{
        let status = lucencyVCs.contains(where: {$0 == viewController.classForCoder})
        if navigationController.viewControllers.count == 1 || status{
            navigationBar.standardAppearance.backgroundImage = nil
            navigationBar.scrollEdgeAppearance?.backgroundImage = nil
        }else{