From 54c6ef0be42d9f2e49a344fd69f231cb6df43797 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期一, 04 三月 2024 20:10:43 +0800
Subject: [PATCH] fix

---
 WanPai/Common/VC/CommonWebVC.swift |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/WanPai/Common/VC/CommonWebVC.swift b/WanPai/Common/VC/CommonWebVC.swift
index a5337af..c2012e3 100644
--- a/WanPai/Common/VC/CommonWebVC.swift
+++ b/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)

--
Gitblit v1.7.1