无故事王国
2024-03-13 919d1d6bb0ec4043ec25b58a492618239ca37529
WanPai/Common/VC/CommonWebVC.swift
@@ -16,11 +16,13 @@
            @IBOutlet weak var webView: WKWebView!
            @IBOutlet weak var cons_webHeight: NSLayoutConstraint!
            @IBOutlet weak var view_btns: UIView!
            private var needBackBtn:Bool?
            init(type:AgreentType,customTitle:String? = nil,content:String? = nil) {
            init(type:AgreentType,customTitle:String? = nil,content:String? = nil,needBackBtn:Bool? = nil) {
                        super.init(nibName: nil, bundle: nil)
                        self.type = type
                        self.content = content
                        self.needBackBtn = needBackBtn
            }
            required init?(coder: NSCoder) {
@@ -98,7 +100,9 @@
                        switch type {
                                    case .user,.safe,.privacy:
                                                view_btns.isHidden = false
                                                navigationItem.leftBarButtonItem = UIBarButtonItem()
                                                if needBackBtn == false{
                                                            navigationItem.leftBarButtonItem = UIBarButtonItem()
                                                }
                                    default:
                                                view_btns.isHidden = true
                        }