fix
无故事王国
2024-03-04 54c6ef0be42d9f2e49a344fd69f231cb6df43797
WanPai/Common/VC/CommonWebVC.swift
@@ -12,11 +12,12 @@
            private var type:AgreentType!
            private var content:String!
            private var customTitle:String?
            @IBOutlet weak var webView: WKWebView!
            @IBOutlet weak var cons_webHeight: NSLayoutConstraint!
            @IBOutlet weak var view_btns: UIView!
            init(type:AgreentType,content:String? = nil) {
            init(type:AgreentType,customTitle:String? = nil,content:String? = nil) {
                        super.init(nibName: nil, bundle: nil)
                        self.type = type
                        self.content = content
@@ -33,6 +34,13 @@
                        if type != .other{
                                    title = type.titleStr
                                    if customTitle != nil{
                                                title = customTitle
                                    }else{
                                                title = type.titleStr
                                    }
                                    Services.queryProtocol(type,progress: false).subscribe(onNext: {[weak self] result in
                                                if let text = result.data?.jq_wrapHtml(){
                                                            self?.webView.loadHTMLString(text, baseURL: nil)