|
@@ -288,13 +288,25 @@ extension PQEmptyRemindView {
|
|
|
remindSubLab.textColor = (emptyData?.summaryColor)!
|
|
|
}
|
|
|
if !isNetConnected() {
|
|
|
- remindLab.text = "网络连接失败,请检查网络后重试"
|
|
|
remindSubLab.isHidden = true
|
|
|
refreshBtn.isHidden = false
|
|
|
- refreshBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#EE0051")
|
|
|
- refreshBtn.setTitleColor(UIColor.white, for: .normal)
|
|
|
- refreshBtn.setTitle("刷新", for: .normal)
|
|
|
- imageView.image = UIImage.moduleImage(named: "pic_network", moduleName: "BFCommonKit")
|
|
|
+ remindLab.text = emptyData?.netDisTitle ?? "网络连接失败,请检查网络后重试"
|
|
|
+ if emptyData?.netDisRefreshBgColor != nil {
|
|
|
+ refreshBtn.backgroundColor = emptyData?.netDisRefreshBgColor
|
|
|
+ } else {
|
|
|
+ refreshBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#EE0051")
|
|
|
+ }
|
|
|
+ if emptyData?.netDisTitleColor != nil {
|
|
|
+ refreshBtn.setTitleColor(emptyData?.netDisTitleColor, for: .normal)
|
|
|
+ }else{
|
|
|
+ refreshBtn.setTitleColor(UIColor.white, for: .normal)
|
|
|
+ }
|
|
|
+ if emptyData?.netDisRefreshTitle != nil {
|
|
|
+ refreshBtn.setAttributedTitle(emptyData?.netDisRefreshTitle, for: .normal)
|
|
|
+ }else {
|
|
|
+ refreshBtn.setTitle("刷新", for: .normal)
|
|
|
+ }
|
|
|
+ imageView.image = emptyData?.netemptyDisImage ?? UIImage.moduleImage(named: "pic_network", moduleName: "BFCommonKit")
|
|
|
} else {
|
|
|
// if emptyData?.emptyImage != nil, emptyData?.emptyImage?.count ?? 0 > 0 {
|
|
|
// imageView.image = UIImage.moduleImage(named: emptyData?.emptyImage ?? "", moduleName: "BFCommonKit")
|