|
@@ -205,6 +205,7 @@ open class PQEmptyRemindView: UIView {
|
|
// 是否没网提示
|
|
// 是否没网提示
|
|
public var isNetLost:Bool = false {
|
|
public var isNetLost:Bool = false {
|
|
didSet {
|
|
didSet {
|
|
|
|
+
|
|
addData()
|
|
addData()
|
|
addLayout()
|
|
addLayout()
|
|
}
|
|
}
|
|
@@ -516,7 +517,7 @@ public class PQUploadRemindView: PQRemindView {
|
|
/// - confirmTitle: <#confirmTitle description#>
|
|
/// - confirmTitle: <#confirmTitle description#>
|
|
/// - remindHandle: <#remindHandle description#>
|
|
/// - remindHandle: <#remindHandle description#>
|
|
/// - Returns: <#description#>
|
|
/// - Returns: <#description#>
|
|
- class public func showUploadRemindView(title: String?, attributedTitle: NSAttributedString? = nil, summary: String, canMoreOpration: Bool = false, confirmTitle: String?, cancelTitle: String? = nil, cancelColor: UIColor? = nil, remindHandle: @escaping (_ sender: UIButton, _ baseModel: PQBaseModel?) -> Void) {
|
|
|
|
|
|
+ class public func showUploadRemindView(title: String?, attributedTitle: NSAttributedString? = nil, summary: String, canMoreOpration: Bool = false, confirmTitle: String?, cancelTitle: String? = nil, cancelColor: UIColor? = nil,confirmColor: UIColor? = nil, remindHandle: @escaping (_ sender: UIButton, _ baseModel: PQBaseModel?) -> Void) {
|
|
if UIApplication.shared.keyWindow?.viewWithTag(cUploadViewRemindTag) != nil {
|
|
if UIApplication.shared.keyWindow?.viewWithTag(cUploadViewRemindTag) != nil {
|
|
UIApplication.shared.keyWindow?.viewWithTag(cUploadViewRemindTag)?.removeFromSuperview()
|
|
UIApplication.shared.keyWindow?.viewWithTag(cUploadViewRemindTag)?.removeFromSuperview()
|
|
}
|
|
}
|
|
@@ -543,8 +544,14 @@ public class PQUploadRemindView: PQRemindView {
|
|
remindView.remindBlock = { sender, baseModel in
|
|
remindView.remindBlock = { sender, baseModel in
|
|
remindHandle(sender, baseModel)
|
|
remindHandle(sender, baseModel)
|
|
}
|
|
}
|
|
|
|
+
|
|
remindView.tag = cUploadViewRemindTag
|
|
remindView.tag = cUploadViewRemindTag
|
|
UIApplication.shared.keyWindow?.addSubview(remindView)
|
|
UIApplication.shared.keyWindow?.addSubview(remindView)
|
|
remindView.remindData = remindData
|
|
remindView.remindData = remindData
|
|
|
|
+
|
|
|
|
+ if(confirmColor != nil){
|
|
|
|
+ remindView.confirmBtn.setTitleColor(confirmColor, for: .normal)
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|