From a478b668ca1a5d4f6d2d9b1075d292cbbef90de5 Mon Sep 17 00:00:00 2001
From: 无故事王国 <841720330@qq.com>
Date: 星期四, 14 三月 2024 17:47:07 +0800
Subject: [PATCH] fix bug

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

diff --git a/WanPai/Common/VC/CommonWebVC.swift b/WanPai/Common/VC/CommonWebVC.swift
index 91b563f..0bad417 100644
--- a/WanPai/Common/VC/CommonWebVC.swift
+++ b/WanPai/Common/VC/CommonWebVC.swift
@@ -16,9 +16,9 @@
 				@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
@@ -102,6 +102,8 @@
 																view_btns.isHidden = false
 																if needBackBtn == false{
 																				navigationItem.leftBarButtonItem = UIBarButtonItem()
+																}else{
+																				view_btns.isHidden = true
 																}
 												default:
 																view_btns.isHidden = true

--
Gitblit v1.7.1