| | |
| | | view_btns.isHidden = true |
| | | webView.navigationDelegate = self |
| | | |
| | | yy_popBlock = {[unowned self] in |
| | | NotificationCenter.default.post(name: Noti_showSheetView, object: nil) |
| | | self.navigationController?.popViewController(animated: true) |
| | | } |
| | | |
| | | if type != .other{ |
| | | title = type.titleStr |
| | | |
| | |
| | | title = type.titleStr |
| | | } |
| | | |
| | | if !content.isEmpty{ |
| | | webView.loadHTMLString(content!.jq_wrapHtml(), baseURL: nil) |
| | | return |
| | | } |
| | | |
| | | Services.queryProtocol(type,progress: false).subscribe(onNext: {[weak self] result in |
| | | if let text = result.data?.jq_wrapHtml(edge: .init(top: 5, left:0, bottom: 0, right: 0)){ |
| | | self?.webView.loadHTMLString(text, baseURL: nil) |