From 919d1d6bb0ec4043ec25b58a492618239ca37529 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期三, 13 三月 2024 19:59:56 +0800
Subject: [PATCH] fix BUG

---
 WanPai/Common/VC/CommonWebVC.swift |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

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

--
Gitblit v1.7.1