|
@@ -2,7 +2,7 @@
|
|
// MARK: - 设置页退出登录跟注销账号提示视图
|
|
// MARK: - 设置页退出登录跟注销账号提示视图
|
|
|
|
|
|
/// 设置页退出登录跟注销账号提示视图
|
|
/// 设置页退出登录跟注销账号提示视图
|
|
-public class PQRemindView: UIView {
|
|
|
|
|
|
+open class PQRemindView: UIView {
|
|
public var isBanned: Bool = false // 是否是拉黑用户提示
|
|
public var isBanned: Bool = false // 是否是拉黑用户提示
|
|
public var isBlank: Bool = false { // 是否是黑色弹窗
|
|
public var isBlank: Bool = false { // 是否是黑色弹窗
|
|
didSet {
|
|
didSet {
|
|
@@ -100,7 +100,7 @@ public class PQRemindView: UIView {
|
|
backgroundColor = cShadowColor
|
|
backgroundColor = cShadowColor
|
|
}
|
|
}
|
|
|
|
|
|
- required init?(coder _: NSCoder) {
|
|
|
|
|
|
+ required public init?(coder _: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
}
|
|
|
|
|
|
@@ -111,7 +111,7 @@ public class PQRemindView: UIView {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public func addData() {
|
|
|
|
|
|
+ open func addData() {
|
|
titleLab.text = remindData?.title
|
|
titleLab.text = remindData?.title
|
|
contentLab.text = remindData?.summary
|
|
contentLab.text = remindData?.summary
|
|
cancelBtn.setTitleColor(isBanned ? (isBlank ? UIColor.white : UIColor.black) : (isBlank ? UIColor.white : UIColor.hexColor(hexadecimal: "#666666")), for: .normal)
|
|
cancelBtn.setTitleColor(isBanned ? (isBlank ? UIColor.white : UIColor.black) : (isBlank ? UIColor.white : UIColor.hexColor(hexadecimal: "#666666")), for: .normal)
|
|
@@ -122,7 +122,7 @@ public class PQRemindView: UIView {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public func addLayout() {
|
|
|
|
|
|
+ open func addLayout() {
|
|
var summH: CGFloat = 0
|
|
var summH: CGFloat = 0
|
|
var titleH: CGFloat = 0
|
|
var titleH: CGFloat = 0
|
|
if (remindData?.summary?.count ?? 0) > 0 {
|
|
if (remindData?.summary?.count ?? 0) > 0 {
|
|
@@ -190,7 +190,7 @@ public class PQRemindView: UIView {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- @objc func btnClck(sender: UIButton) {
|
|
|
|
|
|
+ @objc open func btnClck(sender: UIButton) {
|
|
removeFromSuperview()
|
|
removeFromSuperview()
|
|
if remindBlock != nil {
|
|
if remindBlock != nil {
|
|
remindBlock!(sender, remindData!)
|
|
remindBlock!(sender, remindData!)
|
|
@@ -201,7 +201,7 @@ public class PQRemindView: UIView {
|
|
// MARK: 空白提示页
|
|
// MARK: 空白提示页
|
|
|
|
|
|
/// 空白提示页
|
|
/// 空白提示页
|
|
-public class PQEmptyRemindView: UIView {
|
|
|
|
|
|
+open class PQEmptyRemindView: UIView {
|
|
// 回调
|
|
// 回调
|
|
public var fullRefreshBloc: ((_ isNetConnected: Bool, _ emptyData: PQEmptyModel?) -> Void)?
|
|
public var fullRefreshBloc: ((_ isNetConnected: Bool, _ emptyData: PQEmptyModel?) -> Void)?
|
|
|
|
|
|
@@ -241,7 +241,7 @@ public class PQEmptyRemindView: UIView {
|
|
return remindSubLab
|
|
return remindSubLab
|
|
}()
|
|
}()
|
|
|
|
|
|
- lazy var refreshBtn: UIButton = {
|
|
|
|
|
|
+ lazy public var refreshBtn: UIButton = {
|
|
let refreshBtn = UIButton(type: .custom)
|
|
let refreshBtn = UIButton(type: .custom)
|
|
refreshBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#EE0051")
|
|
refreshBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#EE0051")
|
|
refreshBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
|
|
refreshBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
|
|
@@ -254,7 +254,7 @@ public class PQEmptyRemindView: UIView {
|
|
return refreshBtn
|
|
return refreshBtn
|
|
}()
|
|
}()
|
|
|
|
|
|
- override init(frame: CGRect) {
|
|
|
|
|
|
+ override public init(frame: CGRect) {
|
|
super.init(frame: frame)
|
|
super.init(frame: frame)
|
|
addSubview(imageView)
|
|
addSubview(imageView)
|
|
addSubview(shimmeringView)
|
|
addSubview(shimmeringView)
|
|
@@ -467,7 +467,7 @@ public class PQUploadRemindView: PQRemindView {
|
|
removeFromSuperview()
|
|
removeFromSuperview()
|
|
}
|
|
}
|
|
|
|
|
|
- @objc override func btnClck(sender: UIButton) {
|
|
|
|
|
|
+ @objc public override func btnClck(sender: UIButton) {
|
|
removeFromSuperview()
|
|
removeFromSuperview()
|
|
if remindBlock != nil {
|
|
if remindBlock != nil {
|
|
remindBlock!(sender, remindData!)
|
|
remindBlock!(sender, remindData!)
|