| | |
| | | @IBOutlet weak var webView: WKWebView! |
| | | @IBOutlet weak var cons_webHeight: NSLayoutConstraint! |
| | | @IBOutlet weak var view_btns: UIView! |
| | | private var needBackBtn:Bool? |
| | | private var needBackBtn:Bool! |
| | | |
| | | init(type:AgreentType,customTitle:String? = nil,content:String? = nil,needBackBtn:Bool? = nil) { |
| | | init(type:AgreentType,customTitle:String? = nil,content:String? = nil,needBackBtn:Bool = false) { |
| | | super.init(nibName: nil, bundle: nil) |
| | | self.type = type |
| | | self.content = content |
| | |
| | | view_btns.isHidden = false |
| | | if needBackBtn == false{ |
| | | navigationItem.leftBarButtonItem = UIBarButtonItem() |
| | | }else{ |
| | | view_btns.isHidden = true |
| | | } |
| | | default: |
| | | view_btns.isHidden = true |