|
@@ -239,6 +239,19 @@ public class PQBandingPhoneRemindView: UIView {
|
|
|
bandingPhoneRemindHandle!(sender)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /// 账号被封禁提示
|
|
|
+ /// - Returns: <#description#>
|
|
|
+ class func accountBlockRemindView(remindTitle: String) {
|
|
|
+ let remindData = PQBaseModel()
|
|
|
+ let paragraphStyle = NSMutableParagraphStyle()
|
|
|
+ paragraphStyle.lineSpacing = 3.0
|
|
|
+ paragraphStyle.alignment = .center
|
|
|
+ remindData.attributedTitle = NSMutableAttributedString(string: "您的账号已被封禁,\(remindTitle)\n有疑问可拨打客服电话:\n0731-85676658", attributes: [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 14), NSAttributedString.Key.foregroundColor: UIColor.hexColor(hexadecimal: "#666666"), NSAttributedString.Key.paragraphStyle: paragraphStyle])
|
|
|
+ let remindView = PQUploadRemindView(frame: CGRect(x: 0, y: 0, width: cScreenWidth, height: cScreenHeigth))
|
|
|
+ UIApplication.shared.keyWindow?.addSubview(remindView)
|
|
|
+ remindView.remindData = remindData
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -258,3 +271,6 @@ extension PQBandingPhoneRemindView: TYAttributedLabelDelegate {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|